This is the Reference Frame Class.
It is part of the Dtk_ToleranceSpecification entity.
It's basically composed by one - or more - Dtk_ReferenceBlock.
More...
Public Member Functions | |
Dtk_ErrorStatus | AddReferenceBlock (const Dtk_ReferenceBlockPtr &inReferenceBlock) |
Add a reference block to the Dtk_ReferenceFrame. More... | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
virtual int | DtkDynamicType (const int &inId)=0 |
virtual void | dump (FILE *file=stdout) |
Dtk_ReferenceBlockPtr & | FirstReference () |
Retrieves the first reference block - get/set -. More... | |
const Dtk_ReferenceBlockPtr & | FirstReference () const |
Retrieves the first reference block - read only -. More... | |
Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES], const Dtk_Double64 &inOffSet=0.0) const |
Processes all the Dtk_ReferenceFrame anchor points. More... | |
Dtk_Size_t | GetNumReferences () const |
Retrieves the number of reference blocks - read only -. More... | |
Dtk_ErrorStatus | GetOuterBoundingBox (Dtk_Oriented2dBBox &outOuterBBox) const |
virtual Dtk_Size_t | GetSize () const |
Dtk_ReferenceFrame & | operator= (const Dtk_ReferenceFrame &inToBeAssigned) |
Assignment Operator. More... | |
Dtk_ReferenceFrame & | operator= (Dtk_ReferenceFrame &&inToBeMoved) DTK_NOEXCEPT |
\MoveOp{inToBeMoved} More... | |
Dtk_ReferenceBlockPtr & | Reference (const Dtk_Size_t &inReferencePos) |
Retrieves the ith reference block - get/set -. More... | |
const Dtk_ReferenceBlockPtr & | Reference (const Dtk_Size_t &inReferencePos) const |
Retrieves the ith reference blocks - read only -. More... | |
Dtk_ReferenceBlockPtr & | SecondReference () |
Retrieves the second reference block - get/set -. More... | |
const Dtk_ReferenceBlockPtr & | SecondReference () const |
Retrieves the second reference block - read only -. More... | |
Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType, const Dtk_Double64 &inOffSet=0.0) |
Sets the Dtk_ReferenceFrame anchor point. More... | |
Dtk_ReferenceBlockPtr & | ThirdReference () |
Retrieves the third reference block - get/set -. More... | |
const Dtk_ReferenceBlockPtr & | ThirdReference () const |
Retrieves the third reference block - read only -. More... | |
void | Translate (const Dtk_dir &inTranslationDir) |
Static Public Member Functions | |
static Dtk_ReferenceFramePtr | Create () |
Base constructor. More... | |
static Dtk_ReferenceFramePtr | Create (const Dtk_ReferenceBlockPtr &inFirstReferenceBlock) |
Full featured constructor with one first reference block. More... | |
static Dtk_ReferenceFramePtr | Create (const Dtk_ReferenceFrame &inToBeCopied) |
Copy constructor. More... | |
static Dtk_ReferenceFramePtr | Create (Dtk_ReferenceFrame &&inToBeMoved) |
\MoveConstructor{inToBeMoved} More... | |
static Dtk_ReferenceFrame * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_REFERENCE_FRAME } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_ReferenceFrame () | |
Dtk_ReferenceFrame (const Dtk_ReferenceBlockPtr &ref) | |
Dtk_ReferenceFrame (const Dtk_ReferenceFrame &s) | |
Dtk_ReferenceFrame (Dtk_ReferenceFrame &&s) DTK_NOEXCEPT | |
~Dtk_ReferenceFrame () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_ReferenceFrame > |
This is the Reference Frame Class.
It is part of the Dtk_ToleranceSpecification entity.
It's basically composed by one - or more - Dtk_ReferenceBlock.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Dtk_ErrorStatus Dtk_ReferenceFrame::AddReferenceBlock | ( | const Dtk_ReferenceBlockPtr & | inReferenceBlock | ) |
Add a reference block to the Dtk_ReferenceFrame.
inReferenceBlock | The reference block to add |
|
protectedvirtual |
|
static |
Base constructor.
|
static |
Full featured constructor with one first reference block.
inFirstReferenceBlock | The first reference block |
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
\MoveConstructor{inToBeMoved}
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::FirstReference | ( | ) |
Retrieves the first reference block - get/set -.
const Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::FirstReference | ( | ) | const |
Retrieves the first reference block - read only -.
Dtk_ErrorStatus Dtk_ReferenceFrame::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPnts[DTK_NB_ANCHOR_TYPES], |
const Dtk_Double64 & | inOffSet = 0.0 |
||
) | const |
Processes all the Dtk_ReferenceFrame anchor points.
outTabPnts | The resulting anchor point array. |
inOffSet | - internal use only -. |
Dtk_Size_t Dtk_ReferenceFrame::GetNumReferences | ( | ) | const |
Retrieves the number of reference blocks - read only -.
Dtk_ErrorStatus Dtk_ReferenceFrame::GetOuterBoundingBox | ( | Dtk_Oriented2dBBox & | outOuterBBox | ) | const |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
Dtk_ReferenceFrame& Dtk_ReferenceFrame::operator= | ( | const Dtk_ReferenceFrame & | inToBeAssigned | ) |
Assignment Operator.
inToBeAssigned | Object to copy. |
Dtk_ReferenceFrame& Dtk_ReferenceFrame::operator= | ( | Dtk_ReferenceFrame && | inToBeMoved | ) |
\MoveOp{inToBeMoved}
Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::Reference | ( | const Dtk_Size_t & | inReferencePos | ) |
Retrieves the ith reference block - get/set -.
inReferencePos | The reference block index |
Dtk_OutOfRangeType | Dtk_Exception is raised if the inReferencePos parameter is invalid |
const Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::Reference | ( | const Dtk_Size_t & | inReferencePos | ) | const |
Retrieves the ith reference blocks - read only -.
inReferencePos | The reference block index |
Dtk_OutOfRangeType | Dtk_Exception is raised if the inReferencePos parameter is invalid |
Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::SecondReference | ( | ) |
Retrieves the second reference block - get/set -.
const Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::SecondReference | ( | ) | const |
Retrieves the second reference block - read only -.
Dtk_ErrorStatus Dtk_ReferenceFrame::SetAnchorPoint | ( | const Dtk_pnt & | inNewLocation, |
const Dtk_anchor_type & | inLocationAnchorType, | ||
const Dtk_Double64 & | inOffSet = 0.0 |
||
) |
Sets the Dtk_ReferenceFrame anchor point.
inNewLocation | The new location point. |
inLocationAnchorType | The anchor type related to the new location. |
inOffSet | For internal use only. |
Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::ThirdReference | ( | ) |
Retrieves the third reference block - get/set -.
const Dtk_ReferenceBlockPtr& Dtk_ReferenceFrame::ThirdReference | ( | ) | const |
Retrieves the third reference block - read only -.
void Dtk_ReferenceFrame::Translate | ( | const Dtk_dir & | inTranslationDir | ) |
|
friend |
|
protected |
|
protectedinherited |