This is the general symbol class.
It's basically composed of Dtk_CompositeText and geometrical elements.
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 | AddGeometricalElement (const Dtk_EntityPtr &inGeomElt) |
Adds a geometrical element to the Dtk_Symbol. More... | |
Dtk_ErrorStatus | AddLeader (const Dtk_LeaderPtr &leader) |
Adds a leader to the Dtk_Annotation. More... | |
void | ConvertLeadersToGeometrie () |
Converts all leaders into Dtk_Symbol into geometrical elements. More... | |
Dtk_ErrorStatus | CreateFrameAsGeometries () |
Processes Dtk_Symbol frame as 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_frame_type | FrameType () const |
Retrieves the Dtk_Symbol frame type - read only -. More... | |
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... | |
Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const |
Processes all the Dtk_Symbol anchor points. More... | |
void | GetFrame (Dtk_Frame &outFrame) const |
Retrieves the Frame - read only -. More... | |
Dtk_EntityPtr | GetGeomElement (const Dtk_Size_t &inPos) const |
Retrieves the ith geometrical element. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_LeaderPtr | GetLeader (const Dtk_Size_t &inPos) const |
Gets the i'th leader. More... | |
virtual Dtk_pnt | GetLocation () const |
Get the annoation location point. More... | |
const Dtk_anchor_type & | GetLocationAnchorType () const |
Gets the location anchor type - read only -. More... | |
Dtk_Size_t | GetNumGeometricalElements () const |
Retrieves the geometrical elements number - read only -. More... | |
Dtk_Size_t | GetNumLeaders () const |
Retrieves the number of leaders. More... | |
Dtk_Double64 | GetOffset () const |
Gets the annotation offset - read only -. More... | |
Dtk_Double64 | GetRotationAngle (const Dtk_dir &inXAxis=Dtk_dir(1, 0, 0), const Dtk_dir &inYAxis=Dtk_dir(0, 1, 0)) const |
Gets the text rotation angle giving a reference base. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_dir | GetXAxis () const |
Get the X Axis - read only -. More... | |
Dtk_dir | GetYAxis () const |
Get the Y Axis - read only -. More... | |
Dtk_InfoPtr & | info () |
void | MergeWithOtherSymbol (const Dtk_SymbolPtr &inSymbolToBeMerged) |
Merges texts and geometrical element of the given Dtk_Symbol into this Dtk_Symbol. More... | |
virtual std::ostream & | operator<< (std::ostream &o) const |
Dtk_Symbol & | operator= (const Dtk_Symbol &s) |
Assignment Operator. More... | |
Dtk_Symbol & | operator= (Dtk_Symbol &&s) DTK_NOEXCEPT |
\MoveOp{inToBeMoved} More... | |
virtual void | PrepareTransfo () |
virtual Dtk_ErrorStatus | Reverse () |
Reverses the Dtk_Annotation. More... | |
Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType) |
Sets the Dtk_Symbol anchor point. More... | |
SetAsDeprecated ("2020.2", "Use AddGeometricalElement( const Dtk_EntityPtr &inGeomElt ) instead") Dtk_ErrorStatus AddGeometricalElement(Geometric_set_select_entity *inGeomElt) | |
OBSOLETE Adds a geometrical element to the Dtk_Symbol. More... | |
SetAsDeprecated ("2020.2", "Use Dtk_Symbol::GetGeomElement instead") Geometric_set_select_entity *GetGeometricalElement(const Dtk_Size_t &inPos) const | |
OBSOLETE. More... | |
SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const | |
Get the justification type - read only -. More... | |
void | SetFrameType (const Dtk_frame_type &inFrameType, Dtk_tab< Dtk_CurvePtr > inRelatedGeomElements) |
Set the Dtk_Symbol frame information - get/set -. More... | |
Dtk_ErrorStatus | SetLocation (const Dtk_pnt &inLocation) |
Sets the location point of the Dtk_Symbol. More... | |
Dtk_ErrorStatus | SetLocation (const Dtk_pnt &location, const Dtk_anchor_type &inAnchorType) |
Sets the location point of the Dtk_Annotation. More... | |
Dtk_ErrorStatus | SetOffset (const Dtk_Double64 &inOffset) |
Sets the offset of the Dtk_Symbol. More... | |
Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &inRotationAngle) |
Sets the annotation angle using the annotation base. More... | |
TypeEnum & | SymbolType () |
Retrieves the Dtk_Symbol type - get/set -. More... | |
const TypeEnum & | SymbolType () const |
Retrieves the Dtk_Symbol type - read only -. More... | |
Dtk_CompositeText & | Texts () |
Retrieves the Dtk_CompositeText included into the Dtk_Symbol - get/set -. More... | |
const Dtk_CompositeText & | Texts () const |
Retrieves the Dtk_CompositeText included into the Dtk_Symbol - read only -. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_SymbolPtr | Create () |
Base constructor. More... | |
static Dtk_SymbolPtr | Create (const Dtk_2dEntityPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE, const Dtk_bool &inKeepLeaderAsLeader=DTK_FALSE) |
Constructor from Dtk_2dEntityPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_AnnotationPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_AnnotationPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_CompositeEntityPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip) |
Constructor from Dtk_CompositeEntityPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_DatumTargetPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_DatumTargetPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_DimensionPtr &inToBeConverted, const Dtk_bool &inKeepLeaderAsLeader=DTK_FALSE) |
Constructor from Dtk_DimensionPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_GeometricalTolerancePtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_GeometricalTolerancePtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_GridPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_GridPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_pnt &inLocation, const Dtk_anchor_type &inLocationAnchorType) |
Full featured constructor. More... | |
static Dtk_SymbolPtr | Create (const Dtk_RegionPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_RegionPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_RoughnessPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_RoughnessPtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_Symbol &inToBeCopied) |
Copy constructor. More... | |
static Dtk_SymbolPtr | Create (const Dtk_TablePtr &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) |
Constructor from Dtk_TablePtr. More... | |
static Dtk_SymbolPtr | Create (const Dtk_WeldingPtr &inToBeConverted, const Dtk_bool &inTextAutoFlip) |
Constructor from Dtk_WeldingPtr. More... | |
static Dtk_SymbolPtr | Create (Dtk_Symbol &&inToBeMoved) |
\MoveConstructor{inToBeMoved} More... | |
static Dtk_Symbol * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
static const Dtk_string | TypeEnumToString (const TypeEnum &inEnum) |
Protected Types | |
enum | { _typeID = DTK_TYPE_2D_ENTITY } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_SYMBOL } |
enum | { _typeID = DTK_TYPE_ANNOTATION } |
Protected Member Functions | |
void | _Copy (const Dtk_2dEntity &s) |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
Dtk_ErrorStatus | _CreateDatumFeatureFrameAsGeometries (Dtk_pnt(&inTabPoints)[DTK_NB_ANCHOR_TYPES]) |
Internal use only. More... | |
void | _init () |
void | _reset () |
Dtk_ErrorStatus | _ResizeGeom (const Dtk_Size_t &new_size) |
Internal use only. More... | |
virtual Dtk_Object * | Clone () |
Dtk_Symbol () | |
Dtk_Symbol (const Dtk_CompositeEntity &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
Dtk_Symbol (const Dtk_DatumTarget &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
Dtk_Symbol (const Dtk_Dimension &inToBeConverted, const Dtk_bool &inKeepLeaderAsLeader) | |
Dtk_Symbol (const Dtk_GeometricalTolerance &inToBeConverteds, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
Dtk_Symbol (const Dtk_Grid &inGrid, const Dtk_bool &text_auto_flip=DTK_FALSE) | |
Dtk_Symbol (const Dtk_Region &inRegion, const Dtk_bool &text_auto_flip) | |
Dtk_Symbol (const Dtk_Roughness &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
Dtk_Symbol (const Dtk_Symbol &s) | |
Dtk_Symbol (const Dtk_Welding &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
Dtk_Symbol (Dtk_Symbol &&s) DTK_NOEXCEPT | |
Dtk_Symbol (Dtk_Table &inToBeConverted, const Dtk_bool &inTextAutoFlip=DTK_FALSE) | |
~Dtk_Symbol () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_Symbol > |
std::ostream & | operator<< (std::ostream &o, const Dtk_Symbol &d) |
This is the general symbol class.
It's basically composed of Dtk_CompositeText and geometrical elements.
enum Dtk_Symbol::TypeEnum |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
Internal use only.
|
protectedinherited |
|
protectedinherited |
|
protected |
Internal use only.
|
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_Symbol::AddGeometricalElement | ( | const Dtk_EntityPtr & | inGeomElt | ) |
Adds a geometrical element to the Dtk_Symbol.
inGeomElt | The geometrical element to be added. |
|
inherited |
Adds a leader to the Dtk_Annotation.
leader | The leader to be added |
|
protectedvirtual |
Implements Dtk_Annotation.
void Dtk_Symbol::ConvertLeadersToGeometrie | ( | ) |
Converts all leaders into Dtk_Symbol into geometrical elements.
|
static |
Base constructor.
|
static |
Constructor from Dtk_2dEntityPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only - except for Dtk_Dimension -. |
inKeepLeaderAsLeader | to keep the leader definition put the value DTK_TRUE - only for Dtk_Dimension -. |
|
static |
Constructor from Dtk_AnnotationPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_CompositeEntityPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_DatumTargetPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_DimensionPtr.
inToBeConverted | Entity to be converted. |
inKeepLeaderAsLeader | to keep the leader definition put the value DTK_TRUE. |
|
static |
Constructor from Dtk_GeometricalTolerancePtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_GridPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Full featured constructor.
inLocation | The symbol location point |
inLocationAnchorType | The anchor type related to the location. |
|
static |
Constructor from Dtk_RegionPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_RoughnessPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
Constructor from Dtk_TablePtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
Constructor from Dtk_WeldingPtr.
inToBeConverted | Entity to be converted. |
inTextAutoFlip | For internal use only. |
|
static |
\MoveConstructor{inToBeMoved}
Dtk_ErrorStatus Dtk_Symbol::CreateFrameAsGeometries | ( | ) |
Processes Dtk_Symbol frame as geometrical elements/.
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
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 |
Dtk_frame_type Dtk_Symbol::FrameType | ( | ) | const |
|
inherited |
|
virtual |
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
|
virtual |
Processes all the Dtk_Symbol anchor points.
outTabPnts | The resulting anchor point array. |
Implements Dtk_Annotation.
void Dtk_Symbol::GetFrame | ( | Dtk_Frame & | outFrame | ) | const |
Dtk_EntityPtr Dtk_Symbol::GetGeomElement | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith geometrical element.
inPos | The geoemtrical element index |
|
inherited |
Get Internal UniqueID.
|
inherited |
Gets the i'th leader.
inPos | The leader position - 0 indexed - |
|
virtualinherited |
Get the annoation location point.
|
inherited |
Gets the location anchor type - read only -.
Dtk_Size_t Dtk_Symbol::GetNumGeometricalElements | ( | ) | const |
Retrieves the geometrical elements number - read only -.
|
inherited |
Retrieves the number of leaders.
|
inherited |
Gets the annotation offset - read only -.
|
inherited |
Gets the text rotation angle giving a reference base.
inXAxis | The reference X Axis - default value = (1,0,0) - |
inYAxis | The reference Y Axis - default value = (0,1,0) - |
|
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.
|
inherited |
Get the X Axis - read only -.
|
inherited |
Get the Y Axis - read only -.
|
inherited |
void Dtk_Symbol::MergeWithOtherSymbol | ( | const Dtk_SymbolPtr & | inSymbolToBeMerged | ) |
Merges texts and geometrical element of the given Dtk_Symbol into this Dtk_Symbol.
inSymbolToBeMerged | Dtk_Symbol to be merged into. |
|
virtualinherited |
Dtk_Symbol& Dtk_Symbol::operator= | ( | const Dtk_Symbol & | s | ) |
Assignment Operator.
inToBeAssigned | Object to copy. |
Dtk_Symbol& Dtk_Symbol::operator= | ( | Dtk_Symbol && | s | ) |
\MoveOp{inToBeMoved}
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
|
virtualinherited |
Reverses the Dtk_Annotation.
Reimplemented in Dtk_DatumTarget.
|
virtual |
Sets the Dtk_Symbol anchor point.
inNewLocation | The new location point. |
inLocationAnchorType | The anchor type related to the new location. |
Implements Dtk_Annotation.
Dtk_Symbol::SetAsDeprecated | ( | "2020.2" | , |
"Use AddGeometricalElement( const Dtk_EntityPtr &inGeomElt ) instead" | |||
) |
OBSOLETE Adds a geometrical element to the Dtk_Symbol.
inGeomElt | The geometrical element to be added. |
Dtk_Symbol::SetAsDeprecated | ( | "2020.2" | , |
"Use Dtk_Symbol::GetGeomElement instead" | |||
) | const & |
OBSOLETE.
|
inherited |
Get the justification type - read only -.
void Dtk_Symbol::SetFrameType | ( | const Dtk_frame_type & | inFrameType, |
Dtk_tab< Dtk_CurvePtr > | inRelatedGeomElements | ||
) |
Set the Dtk_Symbol frame information - get/set -.
|
virtual |
Sets the location point of the Dtk_Symbol.
The location point is related to the anchor type
inLocation | the location point |
Implements Dtk_Annotation.
|
inherited |
Sets the location point of the Dtk_Annotation.
The location point is related to the anchor type
location | the location point |
inAnchorType | The anchor type related to the new location. |
|
virtual |
Sets the offset of the Dtk_Symbol.
The Offset is used to process bounding frames.
inOffset | The offset |
Implements Dtk_Annotation.
|
virtual |
Sets the annotation angle using the annotation base.
inRotationAngle | The rotation angle to be set |
Reimplemented from Dtk_Annotation.
TypeEnum& Dtk_Symbol::SymbolType | ( | ) |
const TypeEnum& Dtk_Symbol::SymbolType | ( | ) | const |
Dtk_CompositeText& Dtk_Symbol::Texts | ( | ) |
Retrieves the Dtk_CompositeText included into the Dtk_Symbol - get/set -.
const Dtk_CompositeText& Dtk_Symbol::Texts | ( | ) | const |
Retrieves the Dtk_CompositeText included into the Dtk_Symbol - read only -.
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_Annotation.
|
static |
|
friend |
|
friend |
|
protected |
|
protectedinherited |