DATAKIT API  V2025.1
Dtk_GeometricalTolerance Class Reference

This is the geometrical tolerance.
It's basically composed by one - or more - Dtk_ToleranceSpecificationContainer. More...

+ Inheritance diagram for Dtk_GeometricalTolerance:

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_Annotation. More...
 
Dtk_ErrorStatus AddToleranceSpecificationContainer (const Dtk_ToleranceSpecificationContainerPtr &inTolSpecCont)
 Adds a Dtk_ToleranceSpecificationContainer to the Dtk_GeometricalTolerance. More...
 
Dtk_ToleranceSpecificationContainerPtrat (const Dtk_Size_t &inPos)
 Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -. More...
 
const Dtk_ToleranceSpecificationContainerPtrat (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -. 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_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_GeometricalTolerance anchor points. More...
 
Dtk_ErrorStatus GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES], const Dtk_bool &inProcessAddtionnalTexts) const
 Processes all the Dtk_GeometricalTolerance anchor points. More...
 
const Dtk_RGBGetFrameColor () const
 Gets the frame color . More...
 
const Dtk_IDGetID () const
 Get Internal UniqueID. More...
 
Dtk_LeaderPtr GetLeader (const Dtk_Size_t &inPos) const
 Gets the i'th leader. More...
 
const Dtk_RGBGetLetteringColor () const
 Gets the lettering color for symbol and references. 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 GetNumLeaders () const
 Retrieves the number of leaders. More...
 
Dtk_Double64 GetOffset () const
 Gets the annotation offset - read only -. More...
 
Dtk_ErrorStatus GetOuterBoundingBox (const Dtk_bool &inProcessAddtionnalTexts, Dtk_Oriented2dBBox &outOuterBBox) const
 
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_ToleranceSpecificationContainerPtrGetToleranceSpecificationContainer (const Dtk_Size_t &inPos)
 Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -. More...
 
const Dtk_ToleranceSpecificationContainerPtrGetToleranceSpecificationContainer (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -. More...
 
Dtk_Size_t GetToleranceSpecificationContainerNb () const
 Retrieves the Dtk_ToleranceSpecificationContainer number - read only -. More...
 
Dtk_dir GetXAxis () const
 Get the X Axis - read only -. More...
 
Dtk_dir GetYAxis () const
 Get the Y Axis - read only -. More...
 
Dtk_InfoPtrinfo ()
 
virtual std::ostream & operator<< (std::ostream &o) const
 
Dtk_GeometricalToleranceoperator= (const Dtk_GeometricalTolerance &inToBeAssigned)
 Assignment Operator. More...
 
Dtk_GeometricalToleranceoperator= (Dtk_GeometricalTolerance &&inToBeMoved) DTK_NOEXCEPT
 \MoveOp{inToBeMoved} More...
 
Dtk_ToleranceSpecificationContainerPtroperator[] (const Dtk_Size_t &inPos)
 Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -. More...
 
const Dtk_ToleranceSpecificationContainerPtroperator[] (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -. 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_GeometricalTolerance anchor point. More...
 
Dtk_ErrorStatus SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType, const Dtk_bool &inProcessAddtionnalTexts)
 Sets the Dtk_GeometricalTolerance anchor point. More...
 
 SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const
 Get the justification type - read only -. More...
 
void SetFrameColor (const Dtk_RGB &inFrameColor)
 Sets the frame color . More...
 
void SetLetteringColor (const Dtk_RGB &inLetteringColor)
 Sets the lettering color for symbol and references. More...
 
Dtk_ErrorStatus SetLocation (const Dtk_pnt &inLocation)
 Sets the location point of the Dtk_GeometricalTolerance. 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_GeometricalTolerance. More...
 
Dtk_ErrorStatus SetRotationAngle (const Dtk_Double64 &inRotationAngle)
 Sets the annotation angle using the annotation base. More...
 
Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Applies a transformation matrix to the entity. //! More...
 
void Translate (const Dtk_dir &inTranslationDir)
 

Static Public Member Functions

static Dtk_GeometricalTolerancePtr Create ()
 Base constructor. More...
 
static Dtk_GeometricalTolerancePtr Create (const Dtk_GeometricalTolerance &inToBeCopied)
 Copy constructor. More...
 
static Dtk_GeometricalTolerancePtr Create (Dtk_GeometricalTolerance &&inToBeMoved)
 \MoveConstructor{inToBeMoved} More...
 
static Dtk_GeometricalToleranceDtkDynamicCast (Dtk_Object *s)
 Performs a dynamic cast - doesn't need RTTI -. More...
 

Protected Types

enum  { _typeID = DTK_TYPE_2D_ENTITY }
 
enum  { _typeID = DTK_TYPE_ENTITY }
 
enum  { _typeID = DTK_TYPE_GEOM_TOL }
 
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)
 
void _init ()
 
void _reset ()
 
virtual Dtk_ObjectClone ()
 
 Dtk_GeometricalTolerance ()
 
 Dtk_GeometricalTolerance (const Dtk_GeometricalTolerance &s)
 
 Dtk_GeometricalTolerance (Dtk_GeometricalTolerance &&s) DTK_NOEXCEPT
 
 ~Dtk_GeometricalTolerance ()
 Destructor. More...
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Friends

class Dtk_SmartPtr< Dtk_GeometricalTolerance >
 

Detailed Description

This is the geometrical tolerance.
It's basically composed by one - or more - Dtk_ToleranceSpecificationContainer.

See also
Please use the Dtk_GeometricalTolerancePtr class to handle it...
How to use Dtk_GeometricalTolerance Class

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 
5716  {
5718  };

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 
2542  {
2544  };

Constructor & Destructor Documentation

◆ Dtk_GeometricalTolerance() [1/3]

Dtk_GeometricalTolerance::Dtk_GeometricalTolerance ( )
protected
See also
Create()

◆ Dtk_GeometricalTolerance() [2/3]

Dtk_GeometricalTolerance::Dtk_GeometricalTolerance ( const Dtk_GeometricalTolerance s)
protected

◆ Dtk_GeometricalTolerance() [3/3]

Dtk_GeometricalTolerance::Dtk_GeometricalTolerance ( Dtk_GeometricalTolerance &&  s)
protected

◆ ~Dtk_GeometricalTolerance()

Dtk_GeometricalTolerance::~Dtk_GeometricalTolerance ( )
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

◆ _init()

void Dtk_Entity::_init ( )
protectedinherited

◆ _reset()

void Dtk_Entity::_reset ( )
protectedinherited

◆ _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

◆ 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.

◆ AddToleranceSpecificationContainer()

Dtk_ErrorStatus Dtk_GeometricalTolerance::AddToleranceSpecificationContainer ( const Dtk_ToleranceSpecificationContainerPtr inTolSpecCont)

Adds a Dtk_ToleranceSpecificationContainer to the Dtk_GeometricalTolerance.

Parameters
inTolSpecContThe Dtk_ToleranceSpecificationContainer to be Added.
Returns
DtkNoError if OK

◆ at() [1/2]

Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::at ( const Dtk_Size_t inPos)

Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&) const

◆ at() [2/2]

const Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::at ( const Dtk_Size_t inPos) const

Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&)

◆ Clone()

virtual Dtk_Object* Dtk_GeometricalTolerance::Clone ( )
protectedvirtual

Implements Dtk_Annotation.

5727 { return new Dtk_GeometricalTolerance(*this); }

◆ Create() [1/3]

static Dtk_GeometricalTolerancePtr Dtk_GeometricalTolerance::Create ( )
static

Base constructor.

◆ Create() [2/3]

static Dtk_GeometricalTolerancePtr Dtk_GeometricalTolerance::Create ( const Dtk_GeometricalTolerance inToBeCopied)
static

Copy constructor.

Parameters
inToBeCopiedObject to copy.

◆ Create() [3/3]

static Dtk_GeometricalTolerancePtr Dtk_GeometricalTolerance::Create ( Dtk_GeometricalTolerance &&  inToBeMoved)
static

\MoveConstructor{inToBeMoved}

◆ DtkDynamicCast()

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

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

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_GeometricalTolerance::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

◆ DtkDynamicType() [2/2]

◆ dump()

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

◆ get_info()

Dtk_InfoPtr Dtk_Entity::get_info ( ) const
inherited

◆ get_type_detk()

type_detk Dtk_GeometricalTolerance::get_type_detk ( ) const
virtual
Returns
The type of the entity type - DTK_TYPE_GEOM_TOL -

Implements Dtk_Annotation.

5744 { return DTK_TYPE_GEOM_TOL; }

◆ 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() [1/2]

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

Processes all the Dtk_GeometricalTolerance anchor points.

Parameters
outTabPntsThe resulting anchor point array.
Returns
dtkNoError if OK

Implements Dtk_Annotation.

◆ GetAnchorPoints() [2/2]

Dtk_ErrorStatus Dtk_GeometricalTolerance::GetAnchorPoints ( Dtk_pnt(&)  outTabPnts[DTK_NB_ANCHOR_TYPES],
const Dtk_bool inProcessAddtionnalTexts 
) const

Processes all the Dtk_GeometricalTolerance anchor points.

Parameters
outTabPntsThe resulting anchor point array.
inProcessAddtionnalTextsDTK_TRUE if additional texts are included in the bounding box.
Returns
dtkNoError if OK

◆ GetFrameColor()

const Dtk_RGB& Dtk_GeometricalTolerance::GetFrameColor ( ) const

Gets the frame color .

Returns
the frame color

◆ 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

◆ GetLetteringColor()

const Dtk_RGB& Dtk_GeometricalTolerance::GetLetteringColor ( ) const

Gets the lettering color for symbol and references.

Returns
the lettering color

◆ 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.

◆ 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

◆ GetOuterBoundingBox()

Dtk_ErrorStatus Dtk_GeometricalTolerance::GetOuterBoundingBox ( const Dtk_bool inProcessAddtionnalTexts,
Dtk_Oriented2dBBox outOuterBBox 
) const

◆ 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()

◆ GetToleranceSpecificationContainer() [1/2]

Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::GetToleranceSpecificationContainer ( const Dtk_Size_t inPos)

Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&)
GetToleranceSpecificationContainer(const Dtk_Size_t&) const

◆ GetToleranceSpecificationContainer() [2/2]

const Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::GetToleranceSpecificationContainer ( const Dtk_Size_t inPos) const

Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&) const
GetToleranceSpecificationContainer(const Dtk_Size_t&)

◆ GetToleranceSpecificationContainerNb()

Dtk_Size_t Dtk_GeometricalTolerance::GetToleranceSpecificationContainerNb ( ) const

Retrieves the Dtk_ToleranceSpecificationContainer number - read only -.

Returns
The Dtk_ToleranceSpecificationContainer number

◆ 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

◆ 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_GeometricalTolerance& Dtk_GeometricalTolerance::operator= ( const Dtk_GeometricalTolerance inToBeAssigned)

Assignment Operator.

Parameters
inToBeAssignedObject to copy.

◆ operator=() [2/2]

Dtk_GeometricalTolerance& Dtk_GeometricalTolerance::operator= ( Dtk_GeometricalTolerance &&  inToBeMoved)

\MoveOp{inToBeMoved}

◆ operator[]() [1/2]

Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::operator[] ( const Dtk_Size_t inPos)

Retrieves the ith Dtk_ToleranceSpecificationContainer - get/set -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&)

◆ operator[]() [2/2]

const Dtk_ToleranceSpecificationContainerPtr& Dtk_GeometricalTolerance::operator[] ( const Dtk_Size_t inPos) const

Retrieves the ith Dtk_ToleranceSpecificationContainer - read only -.

Parameters
inPostolerance specification container index.
Returns
the inPos'th Dtk_ToleranceSpecificationContainer
See also
at(const Dtk_Size_t&) const

◆ 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() [1/2]

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

Sets the Dtk_GeometricalTolerance anchor point.

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

Implements Dtk_Annotation.

◆ SetAnchorPoint() [2/2]

Dtk_ErrorStatus Dtk_GeometricalTolerance::SetAnchorPoint ( const Dtk_pnt inNewLocation,
const Dtk_anchor_type inLocationAnchorType,
const Dtk_bool inProcessAddtionnalTexts 
)

Sets the Dtk_GeometricalTolerance anchor point.

Parameters
inNewLocationThe new location point.
inLocationAnchorTypeThe anchor type related to the new location.
inProcessAddtionnalTextsDTK_TRUE if additional texts are included in the bounding box.
Returns
dtkNoError if OK

◆ SetAsDeprecated()

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

◆ SetFrameColor()

void Dtk_GeometricalTolerance::SetFrameColor ( const Dtk_RGB inFrameColor)

Sets the frame color .

Parameters
inFrameColorThe color to be set

◆ SetLetteringColor()

void Dtk_GeometricalTolerance::SetLetteringColor ( const Dtk_RGB inLetteringColor)

Sets the lettering color for symbol and references.

Parameters
inLetteringColorThe color to be set

◆ SetLocation() [1/2]

Dtk_ErrorStatus Dtk_GeometricalTolerance::SetLocation ( const Dtk_pnt inLocation)
virtual

Sets the location point of the Dtk_GeometricalTolerance.

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_GeometricalTolerance::SetOffset ( const Dtk_Double64 inOffset)
virtual

Sets the offset of the Dtk_GeometricalTolerance.

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_GeometricalTolerance::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.

◆ Transform()

Dtk_ErrorStatus Dtk_GeometricalTolerance::Transform ( const Dtk_transfo inTransfo)
virtual

Applies a transformation matrix to the entity. //!

Parameters
inTransfoThe transformation matrix to apply.

Implements Dtk_Annotation.

◆ Translate()

void Dtk_GeometricalTolerance::Translate ( const Dtk_dir inTranslationDir)

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_GeometricalTolerance >

friend class Dtk_SmartPtr< Dtk_GeometricalTolerance >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_GeometricalTolerance::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
DTK_TYPE_GEOM_TOL
@ DTK_TYPE_GEOM_TOL
Definition: define.h:439
DTK_TYPE_ANNOTATION
@ DTK_TYPE_ANNOTATION
Definition: define.h:436
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:466
Dtk_Annotation::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:2543
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:333
Dtk_2dEntity::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:1788
Dtk_GeometricalTolerance::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:5717
DTK_TYPE_2D_ENTITY
@ DTK_TYPE_2D_ENTITY
Definition: define.h:471
Dtk_GeometricalTolerance::Dtk_GeometricalTolerance
Dtk_GeometricalTolerance()