This is the general dimension. More...
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
void | AddAdditionnalGeometries (const Dtk_tab< Dtk_EntityPtr > &inAdditionnalGeometries) |
Adds some additionnal geometries to the Dtk_2dEntity. More... | |
void | AddAdditionnalGeometry (const Dtk_EntityPtr &inAdditionnalGeometry) |
Adds an additionnal geometry to the Dtk_2dEntity. More... | |
void | AddAdditionnalTexts (Dtk_CompositeText inAddtionnalTexts) |
Adds some additionnal texts to the Dtk_2dEntity. More... | |
Dtk_ErrorStatus | AddLeader (const Dtk_LeaderPtr &leader) |
Adds a leader to the Dtk_Dimension. More... | |
Dtk_ErrorStatus | AddText (Dtk_Text inText) |
Adds text to the Dtk_Dimension text. More... | |
BasicDimensionTypeEnum & | BasicDimensionType () |
Retrieves the Dtk_Dimension Basic status type - get/set -. More... | |
const BasicDimensionTypeEnum & | BasicDimensionType () const |
Retrieves the Dtk_Dimension Basic status type - read only -. More... | |
void | ClearLeader () |
Remove leader-. More... | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
int | DtkDynamicType (const int &inId) |
virtual void | dump (FILE *file=stdout) |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
const Dtk_tab< Dtk_EntityPtr > & | GetAdditionnalGeometries () const |
Retrieves the additionnal geometries of the Dtk_2dEntity. More... | |
const Dtk_CompositeText & | GetAdditionnalTexts () const |
Retrieves the additionnal texts of the Dtk_2dEntity. More... | |
BasicDimensionTypeEnum & | GetBasicDimensionType () const |
Get the Dtk_Dimension Basic status type with its Geometries definition- get only -. More... | |
BasicDimensionTypeEnum & | GetBasicDimensionType (Dtk_tab< Dtk_CurvePtr > &inRelatedGeomElements) const |
Get the Dtk_Dimension Basic status type - get only -. More... | |
DimensionTypeEnum | GetDimensionType () const |
Retrieves the Dtk_Dimension type - read only -. More... | |
Dtk_CurvePtr | GetExtraGeometryAsCurve (const Dtk_Size_t &inPos) const |
Gets the ith extra geometrical element - read only -. More... | |
void | GetFrame (Dtk_Frame &outFrame) const |
Retrieves the Frame - read only -. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_LeaderPtr | GetLeader (const Dtk_Size_t &inPos) const |
Retrieves the ith leader - read only -. More... | |
Dtk_Size_t | GetNumExtraGeometries () const |
Gets the extra geometrical elements number - read only -. More... | |
Dtk_Size_t | GetNumLeaders () const |
Retrieves the leaders number - read only -. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_ErrorStatus | GetTextRefPoint (Dtk_pnt &outRefPnt) |
const Dtk_CompositeText & | GetTexts () const |
Retrieves the Dtk_Dimension text - read only -. More... | |
Dtk_ErrorStatus | GetTextVerticalOffSet (double &outOffSet) |
Dtk_InfoPtr & | info () |
Dtk_bool | IsFakeDimension () const |
Tells if the Dtk_Dimension is a Fake one or not. More... | |
virtual void | PrepareTransfo () |
SetAsDeprecated ("2025.4", "Use Dtk_ErrorStatus Dtk_Leader::SetExtensionLine(const Dtk_PolylinePtr &) and Dtk_ErrorStatus AddLeader( const Dtk_LeaderPtr& leader ) instead") Dtk_ErrorStatus AddLeaderWithExtensionLine(const Dtk_LeaderPtr &inLeader | |
Adds a leader with an extension line to the Dtk_Dimension. More... | |
SetAsDeprecated ("2025.4", "Use Dtk_ErrorStatus Dtk_Leader::SetExtensionLine(const Dtk_PolylinePtr &) and Dtk_ErrorStatus AddLeader( const Dtk_LeaderPtr& leader ) instead") Dtk_ErrorStatus AddLeaderWithExtensionLine(const Dtk_LeaderPtr &inLeader | |
Adds a leader with an extension line to the Dtk_Dimension. More... | |
SetAsDeprecated ("2025.4", "Use Dtk_LeaderPtr GetLeader(const Dtk_Size_t &inPos) and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead") Dtk_CurvePtr GetExtensionLineAsCurve(const Dtk_Size_t &inPos) const | |
Retrieves the ith extension line found in the leaders - read only -. More... | |
SetAsDeprecated ("2025.4", "Use Dtk_LeaderPtr GetLeader(const Dtk_Size_t &inPos) and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead") Dtk_ErrorStatus ConvertExtensionLineToGeometries(const Dtk_Size_t &inExtLinePos | |
Converts the ith extension line found in the leaders into geometrical elements. More... | |
SetAsDeprecated ("2025.4", "Use Dtk_LeaderPtr GetNumLeaders() and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead") Dtk_Size_t GetNumExtensionLines() const | |
Retrieves the extension lines number - read only -. More... | |
void | SetBasicDimensionType (const BasicDimensionTypeEnum &inBasicDimensionTypeEnum) const |
Set the Dtk_Dimension Basic status type - set only -. More... | |
void | SetBasicDimensionType (const BasicDimensionTypeEnum &inBasicDimensionTypeEnum, Dtk_tab< Dtk_CurvePtr > inRelatedGeomElements) const |
Set the Dtk_Dimension Basic status type with its Geometries definition- set only -. More... | |
void | SetFakeDimensionStatus (const Dtk_bool inIsFakeDimension) |
Sets the Fake Dimension Status. More... | |
void | SetFrameType (const Dtk_frame_type &inFrameType, Dtk_tab< Dtk_CurvePtr > inRelatedGeomElements) |
Set the Dtk_Dimension frame information - get/set -. More... | |
ShowDualValueTypeEnum & | ShowDualValueType () |
Retrieves the Dtk_Dimension show dual value type - get/set -. More... | |
const ShowDualValueTypeEnum & | ShowDualValueType () const |
Retrieves the Dtk_Dimension show dual value type - read only -. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_DimensionPtr | Create () |
Calls default constructor to allocate a new object. More... | |
static Dtk_DimensionPtr | Create (const DimensionTypeEnum &inDimensionType, Dtk_CompositeText inTexts) |
Calls full featured constructor to allocate a new object. More... | |
static Dtk_DimensionPtr | Create (const Dtk_Dimension &in) |
Calls copy constructor to allocate a new object. More... | |
static Dtk_DimensionPtr | Create (Dtk_Dimension &&in) |
Calls move constructor to allocate a new object. More... | |
static Dtk_Dimension * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Data Fields | |
Dtk_tab< Dtk_CurvePtr > &outGeomsArray | const |
Polyline_detk *const & | inExtensionLine |
const Dtk_tab< Dtk_pnt > & | inExtensionLinePnts |
Protected Types | |
enum | { _typeID = DTK_TYPE_2D_ENTITY } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_DIMENSION } |
Protected Member Functions | |
void | _Copy (const Dtk_2dEntity &s) |
void | _copy (const Dtk_Entity &s) |
Dtk_ErrorStatus | _GetExtensionLineIdx (const Dtk_Size_t &pos, Dtk_Size_t &outIdx) const |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_Dimension () | |
Dtk_Dimension (const DimensionTypeEnum &inDimensionType, Dtk_CompositeText inTexts) | |
Dtk_Dimension (const Dtk_Dimension &in) | |
Dtk_Dimension (Dtk_Dimension &&in) DTK_NOEXCEPT | |
~Dtk_Dimension () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
This is the general dimension.
|
protected |
Destructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, 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, and Dtk_Point.
|
inherited |
Adds some additionnal geometries to the Dtk_2dEntity.
inAdditionnalGeometries | The geometries to be added |
|
inherited |
Adds an additionnal geometry to the Dtk_2dEntity.
inAdditionnalGeometry | The geometry to be added |
|
inherited |
Adds some additionnal texts to the Dtk_2dEntity.
inAddtionnalTexts | The texts to be added |
Dtk_ErrorStatus Dtk_Dimension::AddLeader | ( | const Dtk_LeaderPtr & | leader | ) |
Dtk_ErrorStatus Dtk_Dimension::AddText | ( | Dtk_Text | inText | ) |
BasicDimensionTypeEnum& Dtk_Dimension::BasicDimensionType | ( | ) |
Retrieves the Dtk_Dimension Basic status type - get/set -.
const BasicDimensionTypeEnum& Dtk_Dimension::BasicDimensionType | ( | ) | const |
Retrieves the Dtk_Dimension Basic status type - read only -.
void Dtk_Dimension::ClearLeader | ( | ) |
Remove leader-.
|
protectedvirtual |
Implements Dtk_2dEntity.
|
static |
Calls default constructor to allocate a new object.
|
static |
Calls full featured constructor to allocate a new object.
inDimensionType | The Dtk_Dimension type |
inTexts | The Dtk_Dimension texts |
|
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.
|
virtualinherited |
Implements Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, 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, and Dtk_AxisSystem.
|
virtualinherited |
|
inherited |
|
virtual |
Implements Dtk_2dEntity.
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
BasicDimensionTypeEnum& Dtk_Dimension::GetBasicDimensionType | ( | ) | const |
Get the Dtk_Dimension Basic status type with its Geometries definition- get only -.
BasicDimensionTypeEnum& Dtk_Dimension::GetBasicDimensionType | ( | Dtk_tab< Dtk_CurvePtr > & | inRelatedGeomElements | ) | const |
Get the Dtk_Dimension Basic status type - get only -.
DimensionTypeEnum Dtk_Dimension::GetDimensionType | ( | ) | const |
Retrieves the Dtk_Dimension type - read only -.
Dtk_CurvePtr Dtk_Dimension::GetExtraGeometryAsCurve | ( | const Dtk_Size_t & | inPos | ) | const |
Gets the ith extra geometrical element - read only -.
inPos | The extra geometrical element index. |
void Dtk_Dimension::GetFrame | ( | Dtk_Frame & | outFrame | ) | const |
Retrieves the Frame - read only -.
outFrame | The frame |
Dtk_LeaderPtr Dtk_Dimension::GetLeader | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith leader - read only -.
inPos | The leader index. |
Dtk_Size_t Dtk_Dimension::GetNumExtraGeometries | ( | ) | const |
Gets the extra geometrical elements number - read only -.
Dtk_Size_t Dtk_Dimension::GetNumLeaders | ( | ) | const |
Retrieves the leaders number - read only -.
|
virtualinherited |
Reimplemented from Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, 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, and Dtk_Point.
Dtk_ErrorStatus Dtk_Dimension::GetTextRefPoint | ( | Dtk_pnt & | outRefPnt | ) |
const Dtk_CompositeText& Dtk_Dimension::GetTexts | ( | ) | const |
Retrieves the Dtk_Dimension text - read only -.
Dtk_ErrorStatus Dtk_Dimension::GetTextVerticalOffSet | ( | double & | outOffSet | ) |
|
inherited |
Dtk_bool Dtk_Dimension::IsFakeDimension | ( | ) | const |
Tells if the Dtk_Dimension is a Fake one or not.
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
Dtk_Dimension::SetAsDeprecated | ( | "2025.4" | , |
"Use Dtk_ErrorStatus Dtk_Leader::SetExtensionLine(const Dtk_PolylinePtr &) and Dtk_ErrorStatus AddLeader( const Dtk_LeaderPtr& leader ) instead" | |||
) | const & |
Adds a leader with an extension line to the Dtk_Dimension.
inLeader | the leader to add |
inExtensionLine | The additional extension line - optional - |
Dtk_Dimension::SetAsDeprecated | ( | "2025.4" | , |
"Use Dtk_ErrorStatus Dtk_Leader::SetExtensionLine(const Dtk_PolylinePtr &) and Dtk_ErrorStatus AddLeader( const Dtk_LeaderPtr& leader ) instead" | |||
) | const & |
Adds a leader with an extension line to the Dtk_Dimension.
inLeader | the leader to add. |
inExtensionLinePnts | The additional extension line - optional - in points array form. |
Dtk_Dimension::SetAsDeprecated | ( | "2025.4" | , |
"Use Dtk_LeaderPtr GetLeader(const Dtk_Size_t &inPos) and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead" | |||
) | const & |
Retrieves the ith extension line found in the leaders - read only -.
inPos | The extension line index. |
Dtk_Dimension::SetAsDeprecated | ( | "2025.4" | , |
"Use Dtk_LeaderPtr GetLeader(const Dtk_Size_t &inPos) and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead" | |||
) | const & |
Converts the ith extension line found in the leaders into geometrical elements.
inExtLinePos | The extension line index. |
outGeomsArray | The geometrical elements array to populate. |
Dtk_Dimension::SetAsDeprecated | ( | "2025.4" | , |
"Use Dtk_LeaderPtr GetNumLeaders() and Dtk_ErrorStatus Dtk_Leader::GetExtensionLine() instead" | |||
) | const |
Retrieves the extension lines number - read only -.
void Dtk_Dimension::SetBasicDimensionType | ( | const BasicDimensionTypeEnum & | inBasicDimensionTypeEnum | ) | const |
Set the Dtk_Dimension Basic status type - set only -.
void Dtk_Dimension::SetBasicDimensionType | ( | const BasicDimensionTypeEnum & | inBasicDimensionTypeEnum, |
Dtk_tab< Dtk_CurvePtr > | inRelatedGeomElements | ||
) | const |
Set the Dtk_Dimension Basic status type with its Geometries definition- set only -.
Sets the Fake Dimension Status.
inIsFakeDimension | DTK_TRUE if it's a fake Dimension, DTK_FALSE else. |
void Dtk_Dimension::SetFrameType | ( | const Dtk_frame_type & | inFrameType, |
Dtk_tab< Dtk_CurvePtr > | inRelatedGeomElements | ||
) |
Set the Dtk_Dimension frame information - get/set -.
ShowDualValueTypeEnum& Dtk_Dimension::ShowDualValueType | ( | ) |
Retrieves the Dtk_Dimension show dual value type - get/set -.
const ShowDualValueTypeEnum& Dtk_Dimension::ShowDualValueType | ( | ) | const |
Retrieves the Dtk_Dimension show dual value type - read only -.
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_2dEntity.
|
protected |
Dtk_tab<Dtk_CurvePtr>& outGeomsArray Dtk_Dimension::const |
|
protectedinherited |
Polyline_detk* const& Dtk_Dimension::inExtensionLine |