|
Open CASCADE Technology 6.5.2
|
The abstract class AxisPlacement describes the
common behavior of positioning systems in 3D space,
such as axis or coordinate systems.
The Geom package provides two implementations of
3D positioning systems:
More...
#include <Geom_AxisPlacement.hxx>

Public Member Functions | |
| void | SetAxis (const gp_Ax1 &A1) |
| Assigns A1 as the "main Axis" of this positioning system. This modifies | |
| virtual void | SetDirection (const gp_Dir &V)=0 |
| Changes the direction of the axis placement. If <me> is an axis placement two axis the main "Direction" is modified and the "XDirection" and "YDirection" are recomputed. Raises ConstructionError only for an axis placement two axis if V and the previous "XDirection" are parallel because it is not possible to calculate the new "XDirection" and the new "YDirection". | |
| void | SetLocation (const gp_Pnt &P) |
| Assigns the point P as the origin of this positioning system. | |
| Standard_Real | Angle (const Handle< Geom_AxisPlacement > &Other) const |
| Computes the angular value, in radians, between the "main Direction" of this positioning system and that of positioning system Other. The result is a value between 0 and Pi. | |
| const gp_Ax1 & | Axis () const |
| Returns the main axis of the axis placement. For an "Axis2placement" it is the main axis (Location, Direction ). For an "Axis1Placement" this method returns a copy of <me>. | |
| gp_Dir | Direction () const |
| Returns the main "Direction" of an axis placement. | |
| gp_Pnt | Location () const |
| Returns the Location point (origin) of the axis placement. | |
Protected Attributes | |
| gp_Ax1 | axis |
| Standard_Real Geom_AxisPlacement::Angle | ( | const Handle< Geom_AxisPlacement > & | Other | ) | const |
| const gp_Ax1& Geom_AxisPlacement::Axis | ( | ) | const |
| gp_Dir Geom_AxisPlacement::Direction | ( | ) | const |
| gp_Pnt Geom_AxisPlacement::Location | ( | ) | const |
| void Geom_AxisPlacement::SetAxis | ( | const gp_Ax1 & | A1 | ) |
| virtual void Geom_AxisPlacement::SetDirection | ( | const gp_Dir & | V | ) | [pure virtual] |
Implemented in Geom_Axis1Placement, and Geom_Axis2Placement.
| void Geom_AxisPlacement::SetLocation | ( | const gp_Pnt & | P | ) |
gp_Ax1 Geom_AxisPlacement::axis [protected] |
1.7.4