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 | AddLeaderWithExtensionLine (const Dtk_LeaderPtr &inLeader, const Dtk_tab< Dtk_pnt > &inExtensionLinePnts) |
Adds a leader with an extension line to the Dtk_Dimension. More... | |
Dtk_ErrorStatus | AddLeaderWithExtensionLine (const Dtk_LeaderPtr &inLeader, Polyline_detk *const &inExtensionLine) |
Adds a leader with an extension line 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... | |
Dtk_ErrorStatus | ConvertExtensionLineToGeometries (const Dtk_Size_t &inExtLinePos, Dtk_tab< Dtk_CurvePtr > &outGeomsArray) const |
Converts the ith extension line into geometrical elements. 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... | |
Polyline_detk * | GetExtensionLine (const Dtk_Size_t &inPos) const |
OBSOLETE. More... | |
Dtk_CurvePtr | GetExtensionLineAsCurve (const Dtk_Size_t &inPos) const |
Retrieves the ith extension line - 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 | GetNumExtensionLines () const |
Retrieves the extension lines number - 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 std::ostream & | operator<< (std::ostream &o) const |
virtual void | PrepareTransfo () |
SetAsDeprecated ("2020.2", "Use Dtk_ErrorStatus ConvertExtensionLineToGeometries(const Dtk_Size_t &inExtLinePos,Dtk_tab<Dtk_CurvePtr> &outGeomsArray) instead") Dtk_ErrorStatus ConvertExtensionLineToGeometries(const Dtk_Size_t &inExtLinePos | |
OBSOLETE. More... | |
SetAsDeprecated ("2020.2", "Use GetExtraGeometryAsCurve(const Dtk_Size_t &inPos) instead") Geometric_set_select_entity *GetExtraGeometry(const Dtk_Size_t &inPos) const | |
OBSOLETE. More... | |
SetAsDeprecated ("2021.1", "Use GetExtraGeometryAsCurve(const Dtk_Size_t &inPos) instead") Dtk_ErrorStatus AddExtraGeometry(Geometric_set *inExtraGeom) | |
Adds an extra geometrical element - internal use 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 () |
Base constructor. More... | |
static Dtk_DimensionPtr | Create (const DimensionTypeEnum &inDimensionType, Dtk_CompositeText inTexts) |
Full featured constructor. More... | |
static Dtk_DimensionPtr | Create (const Dtk_Dimension &inToBeCopied) |
Copy constructor. More... | |
static Dtk_DimensionPtr | Create (Dtk_Dimension &&inToMoved) |
\MoveConstructor{inToBeMoved} More... | |
static Dtk_Dimension * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Data Fields | |
Geometric_set_select_entity Dtk_Size_t &outGeomsNum | const |
Geometric_set_select_entity **& | outGeomsArray |
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) |
void | _copy (const Dtk_Object &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 &inToBeCopied) | |
Dtk_Dimension (Dtk_Dimension &&inToBeMoved) DTK_NOEXCEPT | |
~Dtk_Dimension () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_Dimension > |
std::ostream & | operator<< (std::ostream &o, const Dtk_Dimension &d) |
This is the general dimension.
|
protected |
Destructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
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::AddLeaderWithExtensionLine | ( | const Dtk_LeaderPtr & | inLeader, |
const Dtk_tab< Dtk_pnt > & | inExtensionLinePnts | ||
) |
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_ErrorStatus Dtk_Dimension::AddLeaderWithExtensionLine | ( | const Dtk_LeaderPtr & | inLeader, |
Polyline_detk *const & | inExtensionLine | ||
) |
Adds a leader with an extension line to the Dtk_Dimension.
inLeader | the leader to add |
inExtensionLine | The additional extension line - optional - |
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 -.
|
protectedvirtual |
Implements Dtk_2dEntity.
Dtk_ErrorStatus Dtk_Dimension::ConvertExtensionLineToGeometries | ( | const Dtk_Size_t & | inExtLinePos, |
Dtk_tab< Dtk_CurvePtr > & | outGeomsArray | ||
) | const |
Converts the ith extension line into geometrical elements.
inExtLinePos | The extension line index. |
outGeomsArray | The geometrical elements array. |
|
static |
Base constructor.
|
static |
Full featured constructor.
inDimensionType | The Dtk_Dimension type |
inTexts | The Dtk_Dimension texts |
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
\MoveConstructor{inToBeMoved}
|
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 -.
Polyline_detk* Dtk_Dimension::GetExtensionLine | ( | const Dtk_Size_t & | inPos | ) | const |
OBSOLETE.
Dtk_CurvePtr Dtk_Dimension::GetExtensionLineAsCurve | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith extension line - read only -.
inPos | The extension line index. |
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::GetNumExtensionLines | ( | ) | const |
Retrieves the extension lines number - read only -.
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 |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
Dtk_Dimension::SetAsDeprecated | ( | "2020.2" | , |
"Use Dtk_ErrorStatus ConvertExtensionLineToGeometries(const Dtk_Size_t &inExtLinePos,Dtk_tab<Dtk_CurvePtr> &outGeomsArray) instead" | |||
) | const & |
OBSOLETE.
Dtk_Dimension::SetAsDeprecated | ( | "2020.2" | , |
"Use GetExtraGeometryAsCurve(const Dtk_Size_t &inPos) instead" | |||
) | const & |
OBSOLETE.
Dtk_Dimension::SetAsDeprecated | ( | "2021.1" | , |
"Use GetExtraGeometryAsCurve(const Dtk_Size_t &inPos) instead" | |||
) |
Adds an extra geometrical element - internal use only -.
inExtraGeom | The extra geometrical element. |
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.
|
friend |
|
friend |
|
protected |
Geometric_set_select_entity Dtk_Size_t& outGeomsNum Dtk_Dimension::const |
|
protectedinherited |
Geometric_set_select_entity**& Dtk_Dimension::outGeomsArray |