This is the Dtk_ReferenceBlock Class.
It is part of the Dtk_ReferenceFrame entity.
More...
Inheritance diagram for Dtk_ReferenceBlock:Public Member Functions | |
| Dtk_ErrorStatus | AddReference (Dtk_string inFullTextWithMaterialCondition, const Dtk_FdtPtr &inLinkedFdt) |
| Add a reference to the Dtk_ReferenceBlock. More... | |
| Dtk_ErrorStatus | AddReference (Dtk_string inReferenceLabel, const DTK_FDT_MODIFIER &inMaterialModifier=DTK_FDT_MODIFIER_NONE, const Dtk_FdtPtr &inLinkedFdt=NULL) |
| Add a reference to the Dtk_ReferenceBlock. More... | |
| Dtk_string | ConvertToDtk_String () const |
| Converts the Dtk_ReferenceBlock into a Dtk_string - used for Dtk_Symbol conversion -. 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_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPoints)[DTK_NB_ANCHOR_TYPES], const Dtk_Double64 &inOffSet=0.0) const |
| Processes all the Dtk_ReferenceBlock anchor points. More... | |
| Dtk_Oriented2dBBox | GetInnerBoundingBox () const |
| Dtk_FdtPtr | GetLinkedtFdt (const Dtk_Size_t &inReferencePos) const |
| Retrieves the Linked Fdt. More... | |
| DTK_FDT_MODIFIER | GetMaterialModifier (const Dtk_Size_t &inReferencePos) const |
| Retrieves the material modifier related to the ith reference. More... | |
| Dtk_Size_t | GetNumReferences () const |
| Retrieves the references number. More... | |
| Dtk_Oriented2dBBox | GetOuterBoundingBox () const |
| const Dtk_string & | GetReferenceLabel (const Dtk_Size_t &inReferencePos) const |
| Retrieves the ith reference label - read only -. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_ReferenceBlock & | operator= (const Dtk_ReferenceBlock &in) |
| Full featured constructor. More... | |
| Dtk_ReferenceBlock & | operator= (Dtk_ReferenceBlock &&in) DTK_NOEXCEPT |
| Move assignment operator. More... | |
| Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_Double64 &inOffSet=0.0) |
| Sets the Dtk_ReferenceBlock anchor point. More... | |
| void | SetInnerBoundingBox (const Dtk_Oriented2dBBox &inInnerBBox) |
| Set the inner Bounding Box. More... | |
| void | SetOuterBoundingBox (const Dtk_Oriented2dBBox &inOuterBBox) const |
| Set the outer Bounding Box. More... | |
| Dtk_ErrorStatus | SetXAxis (const Dtk_dir &ref_dir) |
| Sets the X Axis for the Dtk_CompositeText and included Dtk_Texts. More... | |
| Dtk_ErrorStatus | SetYAxis (const Dtk_dir &axis_dir) |
| Sets the Y Axis for the Dtk_CompositeText and included Dtk_Texts. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
| Applies a transformation matrix to the entity. //! More... | |
| void | Translate (const Dtk_dir &inTranslationDir) |
| Translates the Dtk_ReferenceBlock - internal use only -. More... | |
Static Public Member Functions | |
| static Dtk_ReferenceBlockPtr | Create (const Dtk_Oriented2dBBox &inInnerBBox, const Dtk_Oriented2dBBox &inOuterBBox) |
| Calls full featured constructor to allocate a new object. More... | |
| static Dtk_ReferenceBlockPtr | Create (const Dtk_ReferenceBlock &in) |
| Calls copy constructor to allocate a new object. More... | |
| static Dtk_ReferenceBlockPtr | Create (Dtk_ReferenceBlock &&in) |
| Calls move constructor to allocate a new object. More... | |
| static Dtk_ReferenceBlock * | 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 } |
Protected Member Functions | |
| void | _ConcatenateMaterialModifierToText (const Dtk_Size_t &inReferencePos, const DTK_FDT_MODIFIER &inMaterialModifier) |
| Internal use only. More... | |
| void | _ReplaceFirstMaterialModifer (const Dtk_Size_t &inReferencePos, const DTK_FDT_MODIFIER &inMaterialModifier) |
| Internal use only. More... | |
| virtual Dtk_Object * | Clone () |
| Dtk_ReferenceBlock (const Dtk_Oriented2dBBox &inInnerBBox, const Dtk_Oriented2dBBox &inOuterBBox) | |
| Dtk_ReferenceBlock (const Dtk_ReferenceBlock &in) | |
| Dtk_ReferenceBlock (Dtk_ReferenceBlock &&in) DTK_NOEXCEPT | |
| ~Dtk_ReferenceBlock () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the Dtk_ReferenceBlock Class.
It is part of the Dtk_ReferenceFrame entity.
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protected |
Internal use only.
|
protected |
Internal use only.
| Dtk_ErrorStatus Dtk_ReferenceBlock::AddReference | ( | Dtk_string | inFullTextWithMaterialCondition, |
| const Dtk_FdtPtr & | inLinkedFdt | ||
| ) |
Add a reference to the Dtk_ReferenceBlock.
| inFullTextWithMaterialCondition | The reference label. May contain also material modifier. |
| inLinkedFdt | The FDT to be linked - NULL by default -. |
| Dtk_ErrorStatus Dtk_ReferenceBlock::AddReference | ( | Dtk_string | inReferenceLabel, |
| const DTK_FDT_MODIFIER & | inMaterialModifier = DTK_FDT_MODIFIER_NONE, |
||
| const Dtk_FdtPtr & | inLinkedFdt = NULL |
||
| ) |
Add a reference to the Dtk_ReferenceBlock.
| inReferenceLabel | The reference label. |
| inMaterialModifier | The reference material modifier. |
| inLinkedFdt | The FDT to be linked - NULL by default -. |
|
protectedvirtual |
| Dtk_string Dtk_ReferenceBlock::ConvertToDtk_String | ( | ) | const |
Converts the Dtk_ReferenceBlock into a Dtk_string - used for Dtk_Symbol conversion -.
|
static |
Calls full featured constructor to allocate a new object.
|
static |
Calls copy constructor to allocate a new object.
| in | Object to copy from. |
|
static |
Calls move constructor to allocate a new object.
| in | Object to move from. |
|
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_ErrorStatus Dtk_ReferenceBlock::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPoints[DTK_NB_ANCHOR_TYPES], |
| const Dtk_Double64 & | inOffSet = 0.0 |
||
| ) | const |
Processes all the Dtk_ReferenceBlock anchor points.
| outTabPnts | The resulting anchor point array. |
| inOffSet | - internal use only -. |
| Dtk_Oriented2dBBox Dtk_ReferenceBlock::GetInnerBoundingBox | ( | ) | const |
| Dtk_FdtPtr Dtk_ReferenceBlock::GetLinkedtFdt | ( | const Dtk_Size_t & | inReferencePos | ) | const |
Retrieves the Linked Fdt.
| DTK_FDT_MODIFIER Dtk_ReferenceBlock::GetMaterialModifier | ( | const Dtk_Size_t & | inReferencePos | ) | const |
Retrieves the material modifier related to the ith reference.
| inReferencePos | The reference index. |
| Dtk_Size_t Dtk_ReferenceBlock::GetNumReferences | ( | ) | const |
Retrieves the references number.
| Dtk_Oriented2dBBox Dtk_ReferenceBlock::GetOuterBoundingBox | ( | ) | const |
| const Dtk_string& Dtk_ReferenceBlock::GetReferenceLabel | ( | const Dtk_Size_t & | inReferencePos | ) | const |
Retrieves the ith reference label - read only -.
| inReferencePos | The reference index |
|
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_ReferenceBlock& Dtk_ReferenceBlock::operator= | ( | const Dtk_ReferenceBlock & | in | ) |
Full featured constructor.
| inFullTextWithMaterialCondition | The Transformation Matrix |
| inLinkedFdt | The FDT to be linked. |
Copy assignment operator.
| in | Object to copy from. |
| Dtk_ReferenceBlock& Dtk_ReferenceBlock::operator= | ( | Dtk_ReferenceBlock && | in | ) |
Move assignment operator.
| in | Object to move from. |
| Dtk_ErrorStatus Dtk_ReferenceBlock::SetAnchorPoint | ( | const Dtk_pnt & | inNewLocation, |
| const Dtk_anchor_type & | inLocationAnchorType = DTK_ANCHOR_BOTTOM_LEFT, |
||
| const Dtk_Double64 & | inOffSet = 0.0 |
||
| ) |
Sets the Dtk_ReferenceBlock anchor point.
| inNewLocation | The new location point. |
| inLocationAnchorType | The anchor type related to the new location. |
| inOffSet | For internal use only. |
| void Dtk_ReferenceBlock::SetInnerBoundingBox | ( | const Dtk_Oriented2dBBox & | inInnerBBox | ) |
Set the inner Bounding Box.
| inInnerBBox | The inner Bounding Box. |
| void Dtk_ReferenceBlock::SetOuterBoundingBox | ( | const Dtk_Oriented2dBBox & | inOuterBBox | ) | const |
Set the outer Bounding Box.
| inOuterBBox | The outer Bounding Box. |
| Dtk_ErrorStatus Dtk_ReferenceBlock::SetXAxis | ( | const Dtk_dir & | ref_dir | ) |
Sets the X Axis for the Dtk_CompositeText and included Dtk_Texts.
| inXAxis | The new X Axis |
| Dtk_ErrorStatus Dtk_ReferenceBlock::SetYAxis | ( | const Dtk_dir & | axis_dir | ) |
Sets the Y Axis for the Dtk_CompositeText and included Dtk_Texts.
| inYAxis | The new Y Axis |
| Dtk_ErrorStatus Dtk_ReferenceBlock::Transform | ( | const Dtk_transfo & | inTransfo | ) |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
| void Dtk_ReferenceBlock::Translate | ( | const Dtk_dir & | inTranslationDir | ) |
Translates the Dtk_ReferenceBlock - internal use only -.
| inTranslationDir | the translation vector. |
|
protected |
|
protectedinherited |