This is the geometrical tolerance specification.
It is part of the Dtk_ToleranceSpecificationContainer.
It may contain a Dtk_ReferenceFrame and/or Dtk_FCFFeatureIndicator.
More...
Inheritance diagram for Dtk_ToleranceSpecification:Public Member Functions | |
| void | AddIndicator (const Dtk_FCFFeatureIndicatorPtr &inIndicator) |
| Adds a feature indicator to the Dtk_ToleranceSpecification. 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 | Explode (Dtk_CompositeText &outCompositeText, Dtk_tab< Dtk_CurvePtr > &outGeoms) |
| Explodes the Dtk_ToleranceSpecification into Dtk_CompositeText and geometrical elements - used for Dtk_Symbol conversion only -. More... | |
| Dtk_ReferenceBlockPtr & | FirstReference () |
| Retrieves the first reference block - get/set -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| const Dtk_ReferenceBlockPtr & | FirstReference () const |
| Retrieves the first reference block - read only -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES], const Dtk_Int32 &ignoreadd=0) |
| Processes all the Dtk_ToleranceSpecification anchor points. More... | |
| Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES], const Dtk_Int32 &ignoreadd=0) const |
| Processes all the Dtk_ToleranceSpecification anchor points. More... | |
| Dtk_FCFFeatureIndicatorPtr & | GetIndicator (const Dtk_Size_t inIndicatorIndex) |
| Retrieves the ith indicator - get/set -. . More... | |
| const Dtk_FCFFeatureIndicatorPtr & | GetIndicator (const Dtk_Size_t inIndicatorIndex) const |
| Retrieves the ith indicator - get only -. . More... | |
| Dtk_ErrorStatus | GetInnerBoundingBox (Dtk_Oriented2dBBox &outInnerBBox) const |
| const Dtk_CompositeText & | GetMainValue () const |
| Retrieves the Dtk_ToleranceSpecification text including all modifiers as Dtk_CompositeText - material modifier, etc... - - read only -. More... | |
| DTK_FDT_MODIFIER | GetMaterialModifier () const |
| Retrieves the Dtk_ToleranceSpecification material modifier - read only -. More... | |
| Dtk_Size_t | GetNumIndicators () const |
| Retrieves indicator number - read only -. . More... | |
| Dtk_Size_t | GetNumReferences () const |
| Retrieves the reference blocks number - read only -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| Dtk_ErrorStatus | GetOuterBoundingBox (Dtk_Oriented2dBBox &outOuterBBox, const Dtk_bool inIncludeReferenceFrame=DTK_TRUE, const Dtk_bool InIncludeIndicators=DTK_TRUE) const |
| Retrieve the Dtk_ToleranceSpecification Outer Bounding Box. More... | |
| Dtk_ErrorStatus | GetOuterBoundingBoxWithOutRefFrame (Dtk_Oriented2dBBox &outOuterBBox) const |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_dir | GetXAxis () const |
| Retrieves the X Axis for the Dtk_ToleranceSpecification - read only -. More... | |
| Dtk_dir | GetYAxis () const |
| Retrieves the Y Axis for the Dtk_ToleranceSpecification - read only -. More... | |
| Dtk_bool | HasFreeStateModifier () const |
| Tells if the Dtk_ToleranceSpecification has a FreeState Modifier or not - read only -. More... | |
| Dtk_ToleranceSpecification & | operator= (const Dtk_ToleranceSpecification &in) |
| Copy assignment operator. More... | |
| Dtk_ToleranceSpecification & | operator= (Dtk_ToleranceSpecification &&in) DTK_NOEXCEPT |
| Move assignment operator. More... | |
| Dtk_Double64 | ProcessHeight () const |
| Internal use only. More... | |
| Dtk_Double64 | ProcessWidth () const |
| Internal use only. More... | |
| Dtk_ReferenceBlockPtr & | Reference (const Dtk_Size_t &inReferencePos) |
| Retrieves the ith reference block - get/set -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| const Dtk_ReferenceBlockPtr & | Reference (const Dtk_Size_t &inReferencePos) const |
| Retrieves the ith reference block - get/set -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| Dtk_ReferenceFramePtr & | ReferenceFrame () |
| Retrieves the reference frame- get/set -. More... | |
| const Dtk_ReferenceFramePtr & | ReferenceFrame () const |
| Retrieves the reference frame- read only -. More... | |
| Dtk_ReferenceBlockPtr & | SecondReference () |
| Retrieves the second reference block - get/set -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| const Dtk_ReferenceBlockPtr & | SecondReference () const |
| Retrieves the second reference block - read only -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType) |
| Sets the Dtk_ToleranceSpecification anchor point. More... | |
| SetAsDeprecated ("2021.1", "Use SetMainValue mehod to alter MainValue instead.") Dtk_ErrorStatus SetInnerBoundingBox(const Dtk_Oriented2dBBox &inInnerBBox) | |
| SetAsDeprecated ("2021.1", "Use SetMainValue mehod to alter MainValue instead.") Dtk_ErrorStatus SetOuterBoundingBox(const Dtk_Oriented2dBBox &inOuterBBox) | |
| SetAsDeprecated ("2021.1", "Use SetMainValue mehod to alter MainValue instead.") Dtk_ErrorStatus SetOuterBoundingBoxWithOutRefFrame(const Dtk_Oriented2dBBox &inOuterBBox) | |
| Set the outer Bounding Box. More... | |
| void | SetMainValue (Dtk_CompositeText inNewMainValue) |
| Sets the Dtk_ToleranceSpecification text including all modifiers - material modifier, etc... -. More... | |
| Dtk_ErrorStatus | SetXAxis (const Dtk_dir &dir) |
| Sets the X Axis for the Dtk_ToleranceSpecification and included Dtk_Texts. More... | |
| Dtk_ErrorStatus | SetYAxis (const Dtk_dir &dir) |
| Sets the Y Axis for the Dtk_ToleranceSpecification and included Dtk_Texts. More... | |
| Dtk_ReferenceBlockPtr & | ThirdReference () |
| Retrieves the third reference block - get/set -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| const Dtk_ReferenceBlockPtr & | ThirdReference () const |
| Retrieves the third reference block - read only -. This is a shortcut without using Dtk_ReferenceFrame object. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
| Applies a transformation matrix to the entity. //! More... | |
| void | Translate (const Dtk_dir &inTranslationDir) |
| Translates the text giving a translation vector. More... | |
Static Public Member Functions | |
| static Dtk_ToleranceSpecificationPtr | Create () |
| Calls default constructor to allocate a new object. More... | |
| static Dtk_ToleranceSpecificationPtr | Create (const Dtk_ToleranceSpecification &in) |
| Calls copy constructor to allocate a new object. More... | |
| static Dtk_ToleranceSpecificationPtr | Create (Dtk_Text inFullTextWithMaterialCondition, const Dtk_ReferenceFramePtr &inReferenceFrame=Dtk_ReferenceFrame::Create()) |
| Calls full featured constructor to allocate a new object. More... | |
| static Dtk_ToleranceSpecificationPtr | Create (Dtk_ToleranceSpecification &&in) |
| Calls move constructor to allocate a new object. More... | |
| static Dtk_ToleranceSpecification * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_TOL_SPEC } |
Protected Member Functions | |
| virtual Dtk_Object * | Clone () |
| Dtk_ToleranceSpecification () | |
| Dtk_ToleranceSpecification (const Dtk_ToleranceSpecification &in) | |
| Dtk_ToleranceSpecification (Dtk_Text inFullTextWithMaterialCondition, const Dtk_ReferenceFramePtr &inReferenceFrame=Dtk_ReferenceFrame::Create()) | |
| Dtk_ToleranceSpecification (Dtk_ToleranceSpecification &&in) DTK_NOEXCEPT | |
| ~Dtk_ToleranceSpecification () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the geometrical tolerance specification.
It is part of the Dtk_ToleranceSpecificationContainer.
It may contain a Dtk_ReferenceFrame and/or Dtk_FCFFeatureIndicator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
| void Dtk_ToleranceSpecification::AddIndicator | ( | const Dtk_FCFFeatureIndicatorPtr & | inIndicator | ) |
Adds a feature indicator to the Dtk_ToleranceSpecification.
| inIndicator | the feature indicator to be added. |
|
protectedvirtual |
|
static |
Calls default constructor to allocate a new object.
|
static |
Calls copy constructor to allocate a new object.
| in | Object to copy from. |
|
static |
Calls full featured constructor to allocate a new object.
| inFullTextWithMaterialCondition | A full text string containing the main value AND the optional material modifier. |
| inReferenceFrame | The optional reference frame. |
|
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_ToleranceSpecification::Explode | ( | Dtk_CompositeText & | outCompositeText, |
| Dtk_tab< Dtk_CurvePtr > & | outGeoms | ||
| ) |
Explodes the Dtk_ToleranceSpecification into Dtk_CompositeText and geometrical elements - used for Dtk_Symbol conversion only -.
| outCompositeText | Resulting composite text |
| outGeoms | Resulting geometrical elements |
| Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::FirstReference | ( | ) |
Retrieves the first reference block - get/set -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| const Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::FirstReference | ( | ) | const |
Retrieves the first reference block - read only -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPnts[DTK_NB_ANCHOR_TYPES], |
| const Dtk_Int32 & | ignoreadd = 0 |
||
| ) |
Processes all the Dtk_ToleranceSpecification anchor points.
| outTabPnts | The resulting anchor point array. |
| ignoreadd | - internal use only -. |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPnts[DTK_NB_ANCHOR_TYPES], |
| const Dtk_Int32 & | ignoreadd = 0 |
||
| ) | const |
Processes all the Dtk_ToleranceSpecification anchor points.
| outTabPnts | The resulting anchor point array. |
| ignoreadd | - internal use only -. |
| Dtk_FCFFeatureIndicatorPtr& Dtk_ToleranceSpecification::GetIndicator | ( | const Dtk_Size_t | inIndicatorIndex | ) |
Retrieves the ith indicator - get/set -.
.
| inIndicatorIndex | the indicator index. |
| const Dtk_FCFFeatureIndicatorPtr& Dtk_ToleranceSpecification::GetIndicator | ( | const Dtk_Size_t | inIndicatorIndex | ) | const |
Retrieves the ith indicator - get only -.
.
| inIndicatorIndex | the indicator index. |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::GetInnerBoundingBox | ( | Dtk_Oriented2dBBox & | outInnerBBox | ) | const |
| const Dtk_CompositeText& Dtk_ToleranceSpecification::GetMainValue | ( | ) | const |
Retrieves the Dtk_ToleranceSpecification text including all modifiers as Dtk_CompositeText - material modifier, etc... - - read only -.
| DTK_FDT_MODIFIER Dtk_ToleranceSpecification::GetMaterialModifier | ( | ) | const |
Retrieves the Dtk_ToleranceSpecification material modifier - read only -.
| Dtk_Size_t Dtk_ToleranceSpecification::GetNumIndicators | ( | ) | const |
Retrieves indicator number - read only -.
.
| Dtk_Size_t Dtk_ToleranceSpecification::GetNumReferences | ( | ) | const |
Retrieves the reference blocks number - read only -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_ErrorStatus Dtk_ToleranceSpecification::GetOuterBoundingBox | ( | Dtk_Oriented2dBBox & | outOuterBBox, |
| const Dtk_bool | inIncludeReferenceFrame = DTK_TRUE, |
||
| const Dtk_bool | InIncludeIndicators = DTK_TRUE |
||
| ) | const |
Retrieve the Dtk_ToleranceSpecification Outer Bounding Box.
| outOuterBBox | The resulting Outer Bounding Box. |
| inIncludeReferenceFrame | DTK_TRUE to include the reference frame Bounding box - DTK_TRUE by default -. |
| InIncludeIndicators | DTK_TRUE to include the indicatorBounding boxes - DTK_TRUE by default -. |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::GetOuterBoundingBoxWithOutRefFrame | ( | 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_dir Dtk_ToleranceSpecification::GetXAxis | ( | ) | const |
Retrieves the X Axis for the Dtk_ToleranceSpecification - read only -.
| Dtk_dir Dtk_ToleranceSpecification::GetYAxis | ( | ) | const |
Retrieves the Y Axis for the Dtk_ToleranceSpecification - read only -.
| Dtk_bool Dtk_ToleranceSpecification::HasFreeStateModifier | ( | ) | const |
Tells if the Dtk_ToleranceSpecification has a FreeState Modifier or not - read only -.
| Dtk_ToleranceSpecification& Dtk_ToleranceSpecification::operator= | ( | const Dtk_ToleranceSpecification & | in | ) |
Copy assignment operator.
| in | Object to copy from. |
| Dtk_ToleranceSpecification& Dtk_ToleranceSpecification::operator= | ( | Dtk_ToleranceSpecification && | in | ) |
Move assignment operator.
| in | Object to move from. |
| Dtk_Double64 Dtk_ToleranceSpecification::ProcessHeight | ( | ) | const |
Internal use only.
| Dtk_Double64 Dtk_ToleranceSpecification::ProcessWidth | ( | ) | const |
Internal use only.
| Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::Reference | ( | const Dtk_Size_t & | inReferencePos | ) |
Retrieves the ith reference block - get/set -.
This is a shortcut without using Dtk_ReferenceFrame object.
| inReferencePos | the reference block index. |
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| const Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::Reference | ( | const Dtk_Size_t & | inReferencePos | ) | const |
Retrieves the ith reference block - get/set -.
This is a shortcut without using Dtk_ReferenceFrame object.
| inReferencePos | the reference block index. |
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| Dtk_ReferenceFramePtr& Dtk_ToleranceSpecification::ReferenceFrame | ( | ) |
| const Dtk_ReferenceFramePtr& Dtk_ToleranceSpecification::ReferenceFrame | ( | ) | const |
| Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::SecondReference | ( | ) |
Retrieves the second reference block - get/set -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| const Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::SecondReference | ( | ) | const |
Retrieves the second reference block - read only -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::SetAnchorPoint | ( | const Dtk_pnt & | inNewLocation, |
| const Dtk_anchor_type & | inLocationAnchorType | ||
| ) |
Sets the Dtk_ToleranceSpecification anchor point.
| inNewLocation | The new location point. |
| inLocationAnchorType | The anchor type related to the new location. |
| Dtk_ToleranceSpecification::SetAsDeprecated | ( | "2021.1" | , |
| "Use SetMainValue mehod to alter MainValue instead." | |||
| ) | const & |
| Dtk_ToleranceSpecification::SetAsDeprecated | ( | "2021.1" | , |
| "Use SetMainValue mehod to alter MainValue instead." | |||
| ) | const & |
| Dtk_ToleranceSpecification::SetAsDeprecated | ( | "2021.1" | , |
| "Use SetMainValue mehod to alter MainValue instead." | |||
| ) | const & |
Set the outer Bounding Box.
| inOuterBBox | The outer Bounding Box. |
| void Dtk_ToleranceSpecification::SetMainValue | ( | Dtk_CompositeText | inNewMainValue | ) |
Sets the Dtk_ToleranceSpecification text including all modifiers - material modifier, etc... -.
| Dtk_ErrorStatus Dtk_ToleranceSpecification::SetXAxis | ( | const Dtk_dir & | dir | ) |
Sets the X Axis for the Dtk_ToleranceSpecification and included Dtk_Texts.
| inXAxis | The new X Axis |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::SetYAxis | ( | const Dtk_dir & | dir | ) |
Sets the Y Axis for the Dtk_ToleranceSpecification and included Dtk_Texts.
| inYAxis | The new Y Axis |
| Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::ThirdReference | ( | ) |
Retrieves the third reference block - get/set -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| const Dtk_ReferenceBlockPtr& Dtk_ToleranceSpecification::ThirdReference | ( | ) | const |
Retrieves the third reference block - read only -.
This is a shortcut without using Dtk_ReferenceFrame object.
| Dtk_NullPointerType | Dtk_Exception is raised if there isn't any Dtk_ReferenceFrame into the Dtk_ToleranceSpecification object |
| Dtk_ErrorStatus Dtk_ToleranceSpecification::Transform | ( | const Dtk_transfo & | inTransfo | ) |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
| void Dtk_ToleranceSpecification::Translate | ( | const Dtk_dir & | inTranslationDir | ) |
Translates the text giving a translation vector.
| inTranslateDir | the translation vector |
|
protected |
|
protectedinherited |