OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKG2d
Geom2d


Geom2d_AxisPlacement Class Reference

Describes an axis in 2D space.
An axis is defined by:
- its origin, also termed the "Location point" of the axis,
- its unit vector, termed the "Direction" of the axis.
Note: Geom2d_AxisPlacement axes provide the
same kind of "geometric" services as gp_Ax2d axes
but have more complex data structures. The
geometric objects provided by the Geom2d package
use gp_Ax2d objects to include axes in their data
structures, or to define an axis of symmetry or axis of rotation.
Geom2d_AxisPlacement axes are used in a context
where they can be shared by several objects
contained inside a common data structure.
.

#include <Geom2d_AxisPlacement.hxx>

Inheritance diagram for Geom2d_AxisPlacement:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT Geom2d_AxisPlacement (const gp_Ax2d &A)
 Constructs an axis by conversion of the gp_Ax2d axis A.
.
Standard_EXPORT Geom2d_AxisPlacement (const gp_Pnt2d &P, const gp_Dir2d &V)
 Constructs an axis from a given origin P and unit vector V.
.
Standard_EXPORT void Reverse ()
Standard_EXPORT Handle_Geom2d_AxisPlacement Reversed () const
 Reverses the unit vector of this axis.
Note:
- Reverse assigns the result to this axis, while
- Reversed creates a new one.
.
Standard_EXPORT void SetAxis (const gp_Ax2d &A)
 Changes the complete definition of the axis placement.
.
Standard_EXPORT void SetDirection (const gp_Dir2d &V)
 Changes the "Direction" of the axis placement.
.
Standard_EXPORT void SetLocation (const gp_Pnt2d &P)
 Changes the "Location" point (origin) of the axis placement.
.
Standard_EXPORT Standard_Real Angle (const Handle(Geom2d_AxisPlacement)&Other) const
 Computes the angle between the "Direction" of
two axis placement in radians.
The result is comprised between -Pi and Pi.
.
Standard_EXPORT gp_Ax2d Ax2d () const
 Converts this axis into a gp_Ax2d axis.
.
Standard_EXPORT gp_Dir2d Direction () const
 Returns the "Direction" of <me>.
-C++: return const&
.
Standard_EXPORT gp_Pnt2d Location () const
 Returns the "Location" point (origin) of the axis placement.
-C++: return const&
.
Standard_EXPORT void Transform (const gp_Trsf2d &T)
 Applies the transformation T to this axis.
.
Standard_EXPORT Handle_Geom2d_Geometry Copy () const
 Creates a new object which is a copy of this axis.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Attributes

gp_Ax2d axis

Constructor & Destructor Documentation

Standard_EXPORT Geom2d_AxisPlacement::Geom2d_AxisPlacement const gp_Ax2d &  A  ) 
 

Standard_EXPORT Geom2d_AxisPlacement::Geom2d_AxisPlacement const gp_Pnt2d &  P,
const gp_Dir2d &  V
 


Member Function Documentation

Standard_EXPORT Standard_Real Geom2d_AxisPlacement::Angle const Handle(Geom2d_AxisPlacement)&  Other  )  const
 

Standard_EXPORT gp_Ax2d Geom2d_AxisPlacement::Ax2d  )  const
 

Standard_EXPORT Handle_Geom2d_Geometry Geom2d_AxisPlacement::Copy  )  const [virtual]
 

Implements Geom2d_Geometry.

Standard_EXPORT gp_Dir2d Geom2d_AxisPlacement::Direction  )  const
 

Standard_EXPORT const Geom2d_AxisPlacement::Handle Standard_Type   )  const
 

Reimplemented from Geom2d_Geometry.

Standard_EXPORT gp_Pnt2d Geom2d_AxisPlacement::Location  )  const
 

Standard_EXPORT void Geom2d_AxisPlacement::Reverse  ) 
 

Standard_EXPORT Handle_Geom2d_AxisPlacement Geom2d_AxisPlacement::Reversed  )  const
 

Standard_EXPORT void Geom2d_AxisPlacement::SetAxis const gp_Ax2d &  A  ) 
 

Standard_EXPORT void Geom2d_AxisPlacement::SetDirection const gp_Dir2d &  V  ) 
 

Standard_EXPORT void Geom2d_AxisPlacement::SetLocation const gp_Pnt2d &  P  ) 
 

Standard_EXPORT void Geom2d_AxisPlacement::Transform const gp_Trsf2d &  T  )  [virtual]
 

Implements Geom2d_Geometry.


Field Documentation

gp_Ax2d Geom2d_AxisPlacement::axis [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:45 2008 for OpenCASCADE by  doxygen 1.4.1