Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:35

0001 // Created on: 1993-03-09
0002 // Created by: JCV
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Geom_Axis1Placement_HeaderFile
0018 #define _Geom_Axis1Placement_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <Geom_AxisPlacement.hxx>
0023 class gp_Ax1;
0024 class gp_Pnt;
0025 class gp_Dir;
0026 class gp_Trsf;
0027 class Geom_Geometry;
0028 
0029 
0030 class Geom_Axis1Placement;
0031 DEFINE_STANDARD_HANDLE(Geom_Axis1Placement, Geom_AxisPlacement)
0032 
0033 //! Describes an axis in 3D space.
0034 //! An axis is defined by:
0035 //! - its origin, also termed the "Location point" of the axis,
0036 //! - its unit vector, termed the "Direction" of the axis.
0037 //! Note: Geom_Axis1Placement axes provide the
0038 //! same kind of "geometric" services as gp_Ax1 axes
0039 //! but have more complex data structures. The
0040 //! geometric objects provided by the Geom package
0041 //! use gp_Ax1 objects to include axes in their data
0042 //! structures, or to define an axis of symmetry or axis of rotation.
0043 //! Geom_Axis1Placement axes are used in a context
0044 //! where they can be shared by several objects
0045 //! contained inside a common data structure.
0046 class Geom_Axis1Placement : public Geom_AxisPlacement
0047 {
0048 
0049 public:
0050 
0051   
0052   //! Returns a transient copy of A1.
0053   Standard_EXPORT Geom_Axis1Placement(const gp_Ax1& A1);
0054   
0055 
0056   //! P is the origin of the axis placement and V is the direction
0057   //! of the axis placement.
0058   Standard_EXPORT Geom_Axis1Placement(const gp_Pnt& P, const gp_Dir& V);
0059   
0060   //! Returns a non transient copy of <me>.
0061   Standard_EXPORT const gp_Ax1& Ax1() const;
0062   
0063   //! Reverses the direction of the axis placement.
0064   Standard_EXPORT void Reverse();
0065   
0066   //! Returns a copy of <me> reversed.
0067   Standard_NODISCARD Standard_EXPORT Handle(Geom_Axis1Placement) Reversed() const;
0068   
0069   //! Assigns V to the unit vector of this axis.
0070   Standard_EXPORT void SetDirection (const gp_Dir& V) Standard_OVERRIDE;
0071   
0072   //! Applies the transformation T to this axis.
0073   Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE;
0074   
0075   //! Creates a new object, which is a copy of this axis.
0076   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
0077 
0078 
0079 
0080 
0081   DEFINE_STANDARD_RTTIEXT(Geom_Axis1Placement,Geom_AxisPlacement)
0082 
0083 protected:
0084 
0085 
0086 
0087 
0088 private:
0089 
0090 
0091 
0092 
0093 };
0094 
0095 
0096 
0097 
0098 
0099 
0100 
0101 #endif // _Geom_Axis1Placement_HeaderFile