DATAKIT API  V2025.1
Dtk_Symbol Class Reference

This is the general symbol class.
It's basically composed of Dtk_CompositeText and geometrical elements. More...

+ Inheritance diagram for Dtk_Symbol:

Public Types

enum  TypeEnum {
  TypeUnknown = -1, TypeNote = 0, TypeDatum, TypeBalloon,
  TypeDatumTarget, TypeRoughness, TypeDimension, TypeFlagNote,
  TypeGeometricalTolerance, TypeAnnotationTable, TypeCell, TypeTable,
  TypeCallout, TypeWelding, TypeCoordinateDimension, TypeGeom,
  TypeAxis, TypeAxisSystem, TypeCenterLine, TypeCenterMark,
  TypeGrid, TypeRegion, TypeHatching, TypeFullBoltCircle,
  TypeCustomSymbol, TypeHoleNote, TypeUrl, TypeArrow
}
 

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_CompositeTextGetAdditionnalTexts () 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_IDGetID () 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_typeGetLocationAnchorType () 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_InfoPtrinfo ()
 
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_Symboloperator= (const Dtk_Symbol &s)
 Assignment Operator. More...
 
Dtk_Symboloperator= (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...
 
TypeEnumSymbolType ()
 Retrieves the Dtk_Symbol type - get/set -. More...
 
const TypeEnumSymbolType () const
 Retrieves the Dtk_Symbol type - read only -. More...
 
Dtk_CompositeTextTexts ()
 Retrieves the Dtk_CompositeText included into the Dtk_Symbol - get/set -. More...
 
const Dtk_CompositeTextTexts () 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_SymbolDtkDynamicCast (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_ObjectClone ()
 
 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)
 

Detailed Description

This is the general symbol class.
It's basically composed of Dtk_CompositeText and geometrical elements.

See also
Please use the Dtk_SymbolPtr class to handle it...

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 
1787  {
1789  };

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
6574 { _typeID = DTK_TYPE_SYMBOL };

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 
2542  {
2544  };

◆ TypeEnum

Enumerator
TypeUnknown 
TypeNote 
TypeDatum 
TypeBalloon 
TypeDatumTarget 
TypeRoughness 
TypeDimension 
TypeFlagNote 
TypeGeometricalTolerance 
TypeAnnotationTable 
TypeCell 
TypeTable 
TypeCallout 
TypeWelding 
TypeCoordinateDimension 
TypeGeom 
TypeAxis 
TypeAxisSystem 
TypeCenterLine 
TypeCenterMark 
TypeGrid 
TypeRegion 
TypeHatching 
TypeFullBoltCircle 
TypeCustomSymbol 
TypeHoleNote 
TypeUrl 
TypeArrow 
6507  {
6508  TypeUnknown = -1,
6509  TypeNote = 0,
6510  TypeDatum,
6511  TypeBalloon,
6513  TypeRoughness,
6514  TypeDimension,
6515  TypeFlagNote,
6518  TypeCell,
6519  TypeTable,
6520  TypeCallout,
6521  TypeWelding,
6523  TypeGeom,
6524  TypeAxis,
6528  TypeGrid,
6529  TypeRegion,
6530  TypeHatching,
6533  TypeHoleNote,
6534  TypeUrl,
6535  TypeArrow
6536  };

Constructor & Destructor Documentation

◆ Dtk_Symbol() [1/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Dimension inToBeConverted,
const Dtk_bool inKeepLeaderAsLeader 
)
protected
See also
Create(const Dtk_Dimension &)

◆ Dtk_Symbol() [2/12]

Dtk_Symbol::Dtk_Symbol ( Dtk_Table inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected
See also
Create(const Dtk_Table &, const Dtk_bool &)

◆ Dtk_Symbol() [3/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_GeometricalTolerance inToBeConverteds,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected
See also
Create(const Dtk_GeometricalTolerance &, const Dtk_bool &)

◆ Dtk_Symbol() [4/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Roughness inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected
See also
Create(const Dtk_Roughness &, const Dtk_bool &)

◆ Dtk_Symbol() [5/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_DatumTarget inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected
See also
Create(const Dtk_DatumTarget &, const Dtk_bool &)

◆ Dtk_Symbol() [6/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Welding inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected
See also
Create(const Dtk_Welding &, const Dtk_bool &)

◆ Dtk_Symbol() [7/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_CompositeEntity inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
protected

◆ Dtk_Symbol() [8/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Grid inGrid,
const Dtk_bool text_auto_flip = DTK_FALSE 
)
protected

◆ Dtk_Symbol() [9/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Region inRegion,
const Dtk_bool text_auto_flip 
)
protected

◆ Dtk_Symbol() [10/12]

Dtk_Symbol::Dtk_Symbol ( )
protected
See also
Create()

◆ Dtk_Symbol() [11/12]

Dtk_Symbol::Dtk_Symbol ( const Dtk_Symbol s)
protected

◆ Dtk_Symbol() [12/12]

Dtk_Symbol::Dtk_Symbol ( Dtk_Symbol &&  s)
protected

◆ ~Dtk_Symbol()

Dtk_Symbol::~Dtk_Symbol ( )
protected

Destructor.

Member Function Documentation

◆ _Copy()

void Dtk_2dEntity::_Copy ( const Dtk_2dEntity s)
protectedinherited

◆ _copy() [1/2]

void Dtk_Entity::_copy ( const Dtk_Entity s)
protectedinherited

◆ _copy() [2/2]

void Dtk_Object::_copy ( const Dtk_Object s)
protectedinherited

◆ _CreateDatumFeatureFrameAsGeometries()

Dtk_ErrorStatus Dtk_Symbol::_CreateDatumFeatureFrameAsGeometries ( Dtk_pnt(&)  inTabPoints[DTK_NB_ANCHOR_TYPES])
protected

Internal use only.

◆ _init()

void Dtk_Entity::_init ( )
protectedinherited

◆ _reset()

void Dtk_Entity::_reset ( )
protectedinherited

◆ _ResizeGeom()

Dtk_ErrorStatus Dtk_Symbol::_ResizeGeom ( const Dtk_Size_t new_size)
protected

Internal use only.

◆ _Store()

◆ AddAdditionnalGeometries()

void Dtk_2dEntity::AddAdditionnalGeometries ( const Dtk_tab< Dtk_EntityPtr > &  inAdditionnalGeometries)
inherited

Adds some additionnal geometries to the Dtk_2dEntity.

Parameters
inAdditionnalGeometriesThe geometries to be added

◆ AddAdditionnalGeometry()

void Dtk_2dEntity::AddAdditionnalGeometry ( const Dtk_EntityPtr inAdditionnalGeometry)
inherited

Adds an additionnal geometry to the Dtk_2dEntity.

Parameters
inAdditionnalGeometryThe geometry to be added

◆ AddAdditionnalTexts()

void Dtk_2dEntity::AddAdditionnalTexts ( Dtk_CompositeText  inAddtionnalTexts)
inherited

Adds some additionnal texts to the Dtk_2dEntity.

Parameters
inAddtionnalTextsThe texts to be added

◆ AddGeometricalElement()

Dtk_ErrorStatus Dtk_Symbol::AddGeometricalElement ( const Dtk_EntityPtr inGeomElt)

Adds a geometrical element to the Dtk_Symbol.

Parameters
inGeomEltThe geometrical element to be added.
Returns
DtkNoError if OK.

◆ AddLeader()

Dtk_ErrorStatus Dtk_Annotation::AddLeader ( const Dtk_LeaderPtr leader)
inherited

Adds a leader to the Dtk_Annotation.

Parameters
leaderThe leader to be added
Returns
dtkNoError is OK
Remarks
If Added leader is NULL, so no leader is added.

◆ Clone()

virtual Dtk_Object* Dtk_Symbol::Clone ( )
protectedvirtual

Implements Dtk_Annotation.

6624 { return new Dtk_Symbol(*this); }

◆ ConvertLeadersToGeometrie()

void Dtk_Symbol::ConvertLeadersToGeometrie ( )

Converts all leaders into Dtk_Symbol into geometrical elements.

◆ Create() [1/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( )
static

Base constructor.

◆ Create() [2/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_2dEntityPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE,
const Dtk_bool inKeepLeaderAsLeader = DTK_FALSE 
)
static

Constructor from Dtk_2dEntityPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only - except for Dtk_Dimension -.
inKeepLeaderAsLeaderto keep the leader definition put the value DTK_TRUE - only for Dtk_Dimension -.
Returns
the created Dtk_SymbolPtr

◆ Create() [3/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_AnnotationPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_AnnotationPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [4/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_CompositeEntityPtr inToBeConverted,
const Dtk_bool inTextAutoFlip 
)
static

Constructor from Dtk_CompositeEntityPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [5/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_DatumTargetPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_DatumTargetPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [6/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_DimensionPtr inToBeConverted,
const Dtk_bool inKeepLeaderAsLeader = DTK_FALSE 
)
static

Constructor from Dtk_DimensionPtr.

Parameters
inToBeConvertedEntity to be converted.
inKeepLeaderAsLeaderto keep the leader definition put the value DTK_TRUE.
Returns
the created Dtk_SymbolPtr

◆ Create() [7/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_GeometricalTolerancePtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_GeometricalTolerancePtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [8/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_GridPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_GridPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [9/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_pnt inLocation,
const Dtk_anchor_type inLocationAnchorType 
)
static

Full featured constructor.

Parameters
inLocationThe symbol location point
inLocationAnchorTypeThe anchor type related to the location.
Returns
the created Dtk_SymbolPtr

◆ Create() [10/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_RegionPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_RegionPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [11/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_RoughnessPtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_RoughnessPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [12/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_Symbol inToBeCopied)
static

Copy constructor.

Parameters
inToBeCopiedObject to copy.

◆ Create() [13/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_TablePtr inToBeConverted,
const Dtk_bool inTextAutoFlip = DTK_FALSE 
)
static

Constructor from Dtk_TablePtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [14/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( const Dtk_WeldingPtr inToBeConverted,
const Dtk_bool inTextAutoFlip 
)
static

Constructor from Dtk_WeldingPtr.

Parameters
inToBeConvertedEntity to be converted.
inTextAutoFlipFor internal use only.
Returns
the created Dtk_SymbolPtr

◆ Create() [15/15]

static Dtk_SymbolPtr Dtk_Symbol::Create ( Dtk_Symbol &&  inToBeMoved)
static

\MoveConstructor{inToBeMoved}

◆ CreateFrameAsGeometries()

Dtk_ErrorStatus Dtk_Symbol::CreateFrameAsGeometries ( )

Processes Dtk_Symbol frame as geometrical elements/.

Returns
dtkNoError if OK

◆ DtkDynamicCast()

static Dtk_Symbol* Dtk_Symbol::DtkDynamicCast ( Dtk_Object s)
static

Performs a dynamic cast - doesn't need RTTI -.

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_Symbol::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

◆ DtkDynamicType() [2/2]

◆ dump()

virtual void Dtk_Object::dump ( FILE *  file = stdout)
virtualinherited

◆ FrameType()

Dtk_frame_type Dtk_Symbol::FrameType ( ) const

Retrieves the Dtk_Symbol frame type - read only -.

Returns
The frame type.
See also
FrameType()

◆ get_info()

Dtk_InfoPtr Dtk_Entity::get_info ( ) const
inherited

◆ get_type_detk()

type_detk Dtk_Symbol::get_type_detk ( ) const
virtual
Returns
The type of the entity type - DTK_TYPE_SYMBOL -

Implements Dtk_Annotation.

6821 { return DTK_TYPE_SYMBOL; }

◆ GetAdditionnalGeometries()

const Dtk_tab< Dtk_EntityPtr >& Dtk_2dEntity::GetAdditionnalGeometries ( ) const
inherited

Retrieves the additionnal geometries of the Dtk_2dEntity.

Returns
The additionnal geometries array - read only -.

◆ GetAdditionnalTexts()

const Dtk_CompositeText& Dtk_2dEntity::GetAdditionnalTexts ( ) const
inherited

Retrieves the additionnal texts of the Dtk_2dEntity.

Returns
The additionnal texts - read only -.

◆ GetAnchorPoints()

Dtk_ErrorStatus Dtk_Symbol::GetAnchorPoints ( Dtk_pnt(&)  outTabPnts[DTK_NB_ANCHOR_TYPES]) const
virtual

Processes all the Dtk_Symbol anchor points.

Parameters
outTabPntsThe resulting anchor point array.
Returns
dtkNoError if OK

Implements Dtk_Annotation.

◆ GetFrame()

void Dtk_Symbol::GetFrame ( Dtk_Frame outFrame) const

Retrieves the Frame - read only -.

Parameters
outFrameThe frame
See also
FrameType() const

◆ GetGeomElement()

Dtk_EntityPtr Dtk_Symbol::GetGeomElement ( const Dtk_Size_t inPos) const

Retrieves the ith geometrical element.

Parameters
inPosThe geoemtrical element index
Returns
The inPos'th geometrical element.

◆ GetID()

const Dtk_ID& Dtk_Entity::GetID ( ) const
inherited

Get Internal UniqueID.

Returns
InternalID

◆ GetLeader()

Dtk_LeaderPtr Dtk_Annotation::GetLeader ( const Dtk_Size_t inPos) const
inherited

Gets the i'th leader.

Parameters
inPosThe leader position - 0 indexed -
Returns
The inPos'th leader

◆ GetLocation()

virtual Dtk_pnt Dtk_Annotation::GetLocation ( ) const
virtualinherited

Get the annoation location point.

Returns
The location point

◆ GetLocationAnchorType()

const Dtk_anchor_type& Dtk_Annotation::GetLocationAnchorType ( ) const
inherited

Gets the location anchor type - read only -.

Returns
The location anchor type.

◆ GetNumGeometricalElements()

Dtk_Size_t Dtk_Symbol::GetNumGeometricalElements ( ) const

Retrieves the geometrical elements number - read only -.

Returns
The geometrical elements number.

◆ GetNumLeaders()

Dtk_Size_t Dtk_Annotation::GetNumLeaders ( ) const
inherited

Retrieves the number of leaders.

Returns
The number of leaders

◆ GetOffset()

Dtk_Double64 Dtk_Annotation::GetOffset ( ) const
inherited

Gets the annotation offset - read only -.

Returns
The annotation offset.
Warning
For internal use only

◆ GetRotationAngle()

Dtk_Double64 Dtk_Annotation::GetRotationAngle ( const Dtk_dir inXAxis = Dtk_dir(1, 0, 0),
const Dtk_dir inYAxis = Dtk_dir(0, 1, 0) 
) const
inherited

Gets the text rotation angle giving a reference base.

Parameters
inXAxisThe reference X Axis - default value = (1,0,0) -
inYAxisThe reference Y Axis - default value = (0,1,0) -
Returns
The rotation angle.

◆ GetSize()

◆ GetXAxis()

Dtk_dir Dtk_Annotation::GetXAxis ( ) const
inherited

Get the X Axis - read only -.

Returns
The X Axis.

◆ GetYAxis()

Dtk_dir Dtk_Annotation::GetYAxis ( ) const
inherited

Get the Y Axis - read only -.

Returns
The Y Axis.

◆ info()

Dtk_InfoPtr& Dtk_Entity::info ( )
inherited

◆ MergeWithOtherSymbol()

void Dtk_Symbol::MergeWithOtherSymbol ( const Dtk_SymbolPtr inSymbolToBeMerged)

Merges texts and geometrical element of the given Dtk_Symbol into this Dtk_Symbol.

Parameters
inSymbolToBeMergedDtk_Symbol to be merged into.

◆ operator<<()

virtual std::ostream& Dtk_2dEntity::operator<< ( std::ostream &  o) const
virtualinherited
1846  {
1847  return o << "Dtk_2dEntity Base class";
1848  }

◆ operator=() [1/2]

Dtk_Symbol& Dtk_Symbol::operator= ( const Dtk_Symbol s)

Assignment Operator.

Parameters
inToBeAssignedObject to copy.

◆ operator=() [2/2]

Dtk_Symbol& Dtk_Symbol::operator= ( Dtk_Symbol &&  s)

\MoveOp{inToBeMoved}

◆ PrepareTransfo()

virtual void Dtk_Entity::PrepareTransfo ( )
virtualinherited

Reimplemented in Dtk_OffsetSurface.

◆ Reverse()

virtual Dtk_ErrorStatus Dtk_Annotation::Reverse ( )
virtualinherited

Reverses the Dtk_Annotation.

Reimplemented in Dtk_DatumTarget.

◆ SetAnchorPoint()

Dtk_ErrorStatus Dtk_Symbol::SetAnchorPoint ( const Dtk_pnt inNewLocation,
const Dtk_anchor_type inLocationAnchorType 
)
virtual

Sets the Dtk_Symbol anchor point.

Parameters
inNewLocationThe new location point.
inLocationAnchorTypeThe anchor type related to the new location.
Returns
dtkNoError if OK

Implements Dtk_Annotation.

◆ SetAsDeprecated() [1/3]

Dtk_Symbol::SetAsDeprecated ( "2020.2"  ,
"Use AddGeometricalElement( const Dtk_EntityPtr &inGeomElt ) instead"   
)

OBSOLETE Adds a geometrical element to the Dtk_Symbol.

Parameters
inGeomEltThe geometrical element to be added.
Returns
DtkNoError if OK.

◆ SetAsDeprecated() [2/3]

Dtk_Symbol::SetAsDeprecated ( "2020.2"  ,
"Use Dtk_Symbol::GetGeomElement instead"   
) const &

OBSOLETE.

◆ SetAsDeprecated() [3/3]

Dtk_Annotation::SetAsDeprecated ( "Undefined"  ,
"Use Dtk_TextStyle::Justification()"   
) const
inherited

Get the justification type - read only -.

Returns
The justification type
Deprecated:
use the Dtk_TextStyle::Justification() instead

◆ SetFrameType()

void Dtk_Symbol::SetFrameType ( const Dtk_frame_type inFrameType,
Dtk_tab< Dtk_CurvePtr inRelatedGeomElements 
)

Set the Dtk_Symbol frame information - get/set -.

Returns
The Dtk_Symbol frame type
See also
FrameType() const

◆ SetLocation() [1/2]

Dtk_ErrorStatus Dtk_Symbol::SetLocation ( const Dtk_pnt inLocation)
virtual

Sets the location point of the Dtk_Symbol.

The location point is related to the anchor type

Parameters
inLocationthe location point
Returns
dtkNoError if OK

Implements Dtk_Annotation.

◆ SetLocation() [2/2]

Dtk_ErrorStatus Dtk_Annotation::SetLocation ( const Dtk_pnt location,
const Dtk_anchor_type inAnchorType 
)
inherited

Sets the location point of the Dtk_Annotation.

The location point is related to the anchor type

Parameters
locationthe location point
inAnchorTypeThe anchor type related to the new location.
Returns
dtkNoError if OK

◆ SetOffset()

Dtk_ErrorStatus Dtk_Symbol::SetOffset ( const Dtk_Double64 inOffset)
virtual

Sets the offset of the Dtk_Symbol.

The Offset is used to process bounding frames.

Parameters
inOffsetThe offset
Returns
dtkNoError if OK
Warning
For internal use only

Implements Dtk_Annotation.

◆ SetRotationAngle()

Dtk_ErrorStatus Dtk_Symbol::SetRotationAngle ( const Dtk_Double64 inRotationAngle)
virtual

Sets the annotation angle using the annotation base.

Parameters
inRotationAngleThe rotation angle to be set
Returns
dtkNoError if OK

Reimplemented from Dtk_Annotation.

◆ SymbolType() [1/2]

TypeEnum& Dtk_Symbol::SymbolType ( )

Retrieves the Dtk_Symbol type - get/set -.

Returns
The Dtk_Symbol type.
See also
SymbolType() const

◆ SymbolType() [2/2]

const TypeEnum& Dtk_Symbol::SymbolType ( ) const

Retrieves the Dtk_Symbol type - read only -.

Returns
The Dtk_Symbol type.
See also
SymbolType()

◆ Texts() [1/2]

Dtk_CompositeText& Dtk_Symbol::Texts ( )

Retrieves the Dtk_CompositeText included into the Dtk_Symbol - get/set -.

Returns
The Dtk_CompositeText.
See also
Texts() const

◆ Texts() [2/2]

const Dtk_CompositeText& Dtk_Symbol::Texts ( ) const

Retrieves the Dtk_CompositeText included into the Dtk_Symbol - read only -.

Returns
The Dtk_CompositeText.
See also
Texts()

◆ Transform()

Dtk_ErrorStatus Dtk_Symbol::Transform ( const Dtk_transfo inTransfo)
virtual

Applies a transformation matrix to the entity. //!

Parameters
inTransfoThe transformation matrix to apply.

Implements Dtk_Annotation.

◆ TypeEnumToString()

static const Dtk_string Dtk_Symbol::TypeEnumToString ( const TypeEnum inEnum)
static
6538  {
6539  switch( inEnum )
6540  {
6541  case TypeNote: return L"TypeNote";
6542  case TypeDatum: return L"TypeDatum";
6543  case TypeBalloon: return L"TypeBalloon";
6544  case TypeDatumTarget: return L"TypeDatumTarget";
6545  case TypeRoughness: return L"TypeRoughness";
6546  case TypeDimension: return L"TypeDimension";
6547  case TypeFlagNote: return L"TypeFlagNote";
6548  case TypeGeometricalTolerance: return L"TypeGeometricalTolerance";
6549  case TypeAnnotationTable: return L"TypeAnnotationTable";
6550  case TypeCell: return L"TypeCell";
6551  case TypeTable: return L"TypeTable";
6552  case TypeCallout: return L"TypeCallout";
6553  case TypeWelding: return L"TypeWelding";
6554  case TypeCoordinateDimension: return L"TypeCoordinateDimension";
6555  case TypeGeom: return L"TypeGeom";
6556  case TypeAxis: return L"TypeAxis";
6557  case TypeAxisSystem: return L"TypeAxisSystem";
6558  case TypeCenterLine: return L"TypeCenterLine";
6559  case TypeCenterMark: return L"TypeCenterMark";
6560  case TypeGrid: return L"TypeGrid";
6561  case TypeHatching: return L"TypeHatching";
6562  case TypeFullBoltCircle: return L"TypeFullBoltCircle";
6563  case TypeCustomSymbol: return L"TypeCustomSymbol";
6564  case TypeHoleNote: return L"TypeHoleNote";
6565  case TypeUrl: return L"TypeUrl";
6566  case TypeArrow: return L"TypeArrow";
6567  default: return L"Unknown";
6568  }
6569  }

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_Symbol >

friend class Dtk_SmartPtr< Dtk_Symbol >
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const Dtk_Symbol d 
)
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Symbol::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
Dtk_Symbol::TypeHatching
@ TypeHatching
Definition: util_draw_dtk.hpp:6530
Dtk_Symbol::TypeWelding
@ TypeWelding
Definition: util_draw_dtk.hpp:6521
Dtk_Symbol::Dtk_Symbol
Dtk_Symbol()
Dtk_Symbol::TypeAxis
@ TypeAxis
Definition: util_draw_dtk.hpp:6524
DTK_TYPE_ANNOTATION
@ DTK_TYPE_ANNOTATION
Definition: define.h:436
Dtk_Symbol::TypeGeometricalTolerance
@ TypeGeometricalTolerance
Definition: util_draw_dtk.hpp:6516
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:466
Dtk_Symbol::TypeFullBoltCircle
@ TypeFullBoltCircle
Definition: util_draw_dtk.hpp:6531
Dtk_Symbol::TypeUrl
@ TypeUrl
Definition: util_draw_dtk.hpp:6534
Dtk_Annotation::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:2543
Dtk_Symbol::TypeRoughness
@ TypeRoughness
Definition: util_draw_dtk.hpp:6513
DTK_TYPE_SYMBOL
@ DTK_TYPE_SYMBOL
Definition: define.h:409
Dtk_Symbol::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:6574
Dtk_Symbol::TypeCenterMark
@ TypeCenterMark
Definition: util_draw_dtk.hpp:6527
Dtk_Symbol::TypeCustomSymbol
@ TypeCustomSymbol
Definition: util_draw_dtk.hpp:6532
Dtk_Symbol::TypeHoleNote
@ TypeHoleNote
Definition: util_draw_dtk.hpp:6533
Dtk_Symbol::TypeCoordinateDimension
@ TypeCoordinateDimension
Definition: util_draw_dtk.hpp:6522
Dtk_Symbol::TypeRegion
@ TypeRegion
Definition: util_draw_dtk.hpp:6529
Dtk_Symbol::TypeAnnotationTable
@ TypeAnnotationTable
Definition: util_draw_dtk.hpp:6517
Dtk_Symbol::TypeDatum
@ TypeDatum
Definition: util_draw_dtk.hpp:6510
Dtk_Symbol::TypeGeom
@ TypeGeom
Definition: util_draw_dtk.hpp:6523
Dtk_Symbol::TypeCell
@ TypeCell
Definition: util_draw_dtk.hpp:6518
Dtk_Symbol::TypeFlagNote
@ TypeFlagNote
Definition: util_draw_dtk.hpp:6515
Dtk_Symbol::TypeTable
@ TypeTable
Definition: util_draw_dtk.hpp:6519
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:333
Dtk_Symbol::TypeBalloon
@ TypeBalloon
Definition: util_draw_dtk.hpp:6511
Dtk_Symbol::TypeGrid
@ TypeGrid
Definition: util_draw_dtk.hpp:6528
Dtk_2dEntity::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:1788
Dtk_Symbol::TypeCallout
@ TypeCallout
Definition: util_draw_dtk.hpp:6520
DTK_TYPE_2D_ENTITY
@ DTK_TYPE_2D_ENTITY
Definition: define.h:471
Dtk_Symbol::TypeAxisSystem
@ TypeAxisSystem
Definition: util_draw_dtk.hpp:6525
Dtk_Symbol::TypeUnknown
@ TypeUnknown
Definition: util_draw_dtk.hpp:6508
Dtk_Symbol::TypeCenterLine
@ TypeCenterLine
Definition: util_draw_dtk.hpp:6526
Dtk_Symbol::TypeDimension
@ TypeDimension
Definition: util_draw_dtk.hpp:6514
Dtk_Symbol::TypeArrow
@ TypeArrow
Definition: util_draw_dtk.hpp:6535
Dtk_Symbol::TypeDatumTarget
@ TypeDatumTarget
Definition: util_draw_dtk.hpp:6512
Dtk_Symbol::TypeNote
@ TypeNote
Definition: util_draw_dtk.hpp:6509