DATAKIT API  V2025.1
Dtk_DatumTarget Class Reference

This is the Datum Target. More...

+ Inheritance diagram for Dtk_DatumTarget:

Public Types

enum  DatumTargetMovableStatusEnum { NonMovable = 0, Movable = 1 }
 
enum  DatumTargetTypeEnum {
  Unknown = 0, Point = 1, Linear = 2, Rectangular = 3,
  Circular = 4, Annular = 5, Spherical = 6, Cylindrical = 7,
  Arbitrary = 8, NumTypes
}
 
enum  DatumTargetValueEnum {
  DiameterValue = 0, InnerDiameterValue = 1, OuterDiameterValue = 2, WidthValue = 3,
  HeightValue = 4, StartPointValue = 5, EndPointValue = 6, AreaValue = 7,
  NumValues
}
 

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_CompositeTextBottomText ()
 Retrieves the bottom text - get/set -. More...
 
const Dtk_CompositeTextBottomText () const
 Retrieves the bottom text - read only -. More...
 
void DisableFrame ()
 Disables the frame status. 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)
 
void EnableFrame ()
 Enables the frame status. 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])
 Processes all the Dtk_DatumTarget anchor points. More...
 
Dtk_ErrorStatus GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const
 Processes all the Dtk_DatumTarget anchor points. More...
 
Dtk_DatumTarget::DatumTargetMovableStatusEnum GetDatumTargetMovableStatus () const
 Gets the Movable status of the Dtk_DatumTarget. More...
 
Dtk_tab< Dtk_CurvePtr > & GetDatumTargetMovableStatusRelatedGeom () const
 Gets the geometry related to the Movable status of the Dtk_DatumTarget. More...
 
Dtk_DatumTarget::DatumTargetTypeEnum GetDatumTargetType () const
 Gets the type of the Dtk_DatumTarget. More...
 
const Dtk_FrameGetFrame () const
 Retrieves the frame of the Datum Target. More...
 
Dtk_tab< Dtk_EntityPtrGetGeometries () const
 Retrieves the Dtk_DatumTarget geometries - frame -. 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 GetNumLeaders () const
 Retrieves the number of leaders. More...
 
Dtk_Double64 GetOffset () const
 Gets the annotation offset - read only -. More...
 
const Dtk_LeaderPtrGetOptionnalBottomTextLeader () const
 Retrieves optionnal Leader of the Bottom Text. More...
 
const Dtk_LeaderPtrGetOptionnalTopTextLeader () const
 Retrieves optionnal Leader of the Top Text. More...
 
Dtk_ErrorStatus GetParameterValue (const DatumTargetValueEnum &inValueEnum, Dtk_Val &outValue)
 Gets the value associated to DatumTargetValueEnum . 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...
 
const Dtk_boolHasFrame () const
 Retrieves the frame status - read only -. More...
 
Dtk_InfoPtrinfo ()
 
virtual std::ostream & operator<< (std::ostream &o) const
 
Dtk_DatumTargetoperator= (const Dtk_DatumTarget &inToBeAssigned)
 Assignment Operator. More...
 
Dtk_DatumTargetoperator= (Dtk_DatumTarget &&inToBeMoved) DTK_NOEXCEPT
 \MoveOp{inToBeMoved} More...
 
virtual void PrepareTransfo ()
 
Dtk_Oriented2dBBox ProcessBoundingBox () const
 
Dtk_pnt ProcessCenterPoint () const
 Retrieves the center point - read only -. More...
 
Dtk_Double64 ProcessRadius () const
 Processes the Dtk_DatumTarget radius. More...
 
Dtk_ErrorStatus Reverse ()
 Reverses the text The text anchor type is replaced by the opposed one and the text orientation is reversed. More...
 
Dtk_ErrorStatus SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType)
 Sets the Dtk_DatumTarget anchor point. More...
 
 SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const
 Get the justification type - read only -. More...
 
void SetDatumTargetMovable (const DatumTargetMovableStatusEnum inMovableStatus, Dtk_tab< Dtk_CurvePtr > inMovableGeom)
 Sets the Movable status of the Dtk_DatumTarget. More...
 
void SetDatumTargetType (const DatumTargetTypeEnum inType)
 Sets the type of the Dtk_DatumTarget. More...
 
void SetFrame (Dtk_Frame inFrame)
 Sets the frame of the Datum Target. More...
 
Dtk_ErrorStatus SetLocation (const Dtk_pnt &inLocation)
 Sets the location point of the Dtk_DatumTarget. 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_DatumTarget. More...
 
void SetOptionnalBottomTextLeader (const Dtk_LeaderPtr &inLeader)
 Sets the optionnal Leader of the Bottom Text. More...
 
void SetOptionnalTopTextLeader (const Dtk_LeaderPtr &inLeader)
 Sets the optionnal Leader of the Top Text. More...
 
Dtk_ErrorStatus SetParameterValue (const DatumTargetValueEnum &inValueEnum, Dtk_Val inValue)
 Sets the value associated to DatumTargetValueEnum . More...
 
Dtk_ErrorStatus SetRotationAngle (const Dtk_Double64 &inRotationAngle)
 Sets the annotation angle using the annotation base. More...
 
Dtk_ErrorStatus SwapTexts ()
 Swaps the Dtk_DatumTarget texts. More...
 
Dtk_CompositeTextTopText ()
 Retrieves the top text - get/set -. More...
 
const Dtk_CompositeTextTopText () const
 Retrieves the top text - read only -. More...
 
Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Applies a transformation matrix to the entity. //! More...
 
void Translate (const Dtk_dir &inTranslationDir)
 Translates the Dtk_ReferenceBlock - internal use only -. More...
 

Static Public Member Functions

static Dtk_DatumTargetPtr Create ()
 Base constructor. More...
 
static Dtk_DatumTargetPtr Create (const Dtk_DatumTarget &inToBeCopied)
 Copy constructor. More...
 
static Dtk_DatumTargetPtr Create (Dtk_CompositeText inTopText, Dtk_CompositeText inBottomText, const Dtk_pnt &inLocationPnt, const Dtk_InfoPtr &inInfos, Dtk_tab< Dtk_LeaderPtr > inLeadersArray=Dtk_tab< Dtk_LeaderPtr >(), const Dtk_Double64 &inAngle=0.0, const Dtk_Double64 &inOffSet=0.0, const Dtk_bool &inHasFrame=DTK_TRUE, const Dtk_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT)
 Full featured constructor. More...
 
static Dtk_DatumTargetPtr Create (Dtk_DatumTarget &&inToBeMoved)
 \MoveConstructor{inToBeMoved} More...
 
static Dtk_string DatumTargetMovableStatusEnumToString (const DatumTargetMovableStatusEnum &inEnum)
 
static Dtk_string DatumTargetTypeEnumToString (const DatumTargetTypeEnum &inEnum)
 
static Dtk_string DatumTargetValueEnumToString (const DatumTargetValueEnum &inEnum)
 
static Dtk_DatumTargetDtkDynamicCast (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_ANNOTATION }
 
enum  { _typeID = DTK_TYPE_DATUM_TARGET }
 

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_DatumTarget ()
 
 Dtk_DatumTarget (const Dtk_DatumTarget &inToBeCopied)
 
 Dtk_DatumTarget (Dtk_CompositeText inTopText, Dtk_CompositeText inBottomText, const Dtk_pnt &inLocationPnt, const Dtk_InfoPtr &inInfos, Dtk_tab< Dtk_LeaderPtr > inLeadersArray=Dtk_tab< Dtk_LeaderPtr >(), const Dtk_Double64 &inAngle=0.0, const Dtk_Double64 &inOffSet=0.0, const Dtk_bool &inHasFrame=DTK_TRUE, const Dtk_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT)
 
 Dtk_DatumTarget (Dtk_DatumTarget &&inToBeMoved) DTK_NOEXCEPT
 
 ~Dtk_DatumTarget ()
 Destructor. More...
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Friends

class Dtk_SmartPtr< Dtk_DatumTarget >
 

Detailed Description

This is the Datum Target.

See also
Please use the Dtk_DatumTargetPtr 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
protectedinherited
Enumerator
_typeID 
2542  {
2544  };

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
3911  {
3913  };

◆ DatumTargetMovableStatusEnum

Enumerator
NonMovable 
Movable 
3864  {
3865  NonMovable = 0,
3866  Movable = 1
3867  };

◆ DatumTargetTypeEnum

Enumerator
Unknown 
Point 
Linear 
Rectangular 
Circular 
Annular 
Spherical 
Cylindrical 
Arbitrary 
NumTypes 
3832  {
3833  Unknown = 0,
3834  Point = 1,
3835  Linear = 2,
3836  Rectangular = 3,
3837  Circular = 4,
3838  Annular = 5,
3839  Spherical = 6,
3840  Cylindrical = 7,
3841  Arbitrary = 8,
3842 
3843  NumTypes
3844 
3845  };

◆ DatumTargetValueEnum

Enumerator
DiameterValue 
InnerDiameterValue 
OuterDiameterValue 
WidthValue 
HeightValue 
StartPointValue 
EndPointValue 
AreaValue 
NumValues 
3879  {
3880  DiameterValue = 0,
3881  InnerDiameterValue = 1,
3882  OuterDiameterValue = 2,
3883  WidthValue = 3,
3884  HeightValue = 4,
3885  StartPointValue = 5,
3886  EndPointValue = 6,
3887  AreaValue = 7,
3888  NumValues
3889  };

Constructor & Destructor Documentation

◆ Dtk_DatumTarget() [1/4]

Dtk_DatumTarget::Dtk_DatumTarget ( )
protected
See also
Create()

◆ Dtk_DatumTarget() [2/4]

Dtk_DatumTarget::Dtk_DatumTarget ( const Dtk_DatumTarget inToBeCopied)
protected

◆ Dtk_DatumTarget() [3/4]

Dtk_DatumTarget::Dtk_DatumTarget ( Dtk_DatumTarget &&  inToBeMoved)
protected

◆ Dtk_DatumTarget() [4/4]

Dtk_DatumTarget::Dtk_DatumTarget ( Dtk_CompositeText  inTopText,
Dtk_CompositeText  inBottomText,
const Dtk_pnt inLocationPnt,
const Dtk_InfoPtr inInfos,
Dtk_tab< Dtk_LeaderPtr inLeadersArray = Dtk_tabDtk_LeaderPtr >(),
const Dtk_Double64 inAngle = 0.0,
const Dtk_Double64 inOffSet = 0.0,
const Dtk_bool inHasFrame = DTK_TRUE,
const Dtk_anchor_type inAnchorType = DTK_ANCHOR_BOTTOM_LEFT,
const Dtk_justication_type inJustificationType = DTK_JUSTIFY_LEFT 
)
protected
See also
Create(const Dtk_CompositeText&, const Dtk_CompositeText&, const Dtk_pnt &, const Dtk_InfoPtr &,const Dtk_tab<Dtk_LeaderPtr> &,const Dtk_Double64 &,const Dtk_Double64 &,const Dtk_bool&, const Dtk_anchor_type &,const Dtk_justication_type &)

◆ ~Dtk_DatumTarget()

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

◆ BottomText() [1/2]

Dtk_CompositeText& Dtk_DatumTarget::BottomText ( )

Retrieves the bottom text - get/set -.

Returns
The bottom text
See also
BottomText() const

◆ BottomText() [2/2]

const Dtk_CompositeText& Dtk_DatumTarget::BottomText ( ) const

Retrieves the bottom text - read only -.

Returns
The bottom text
See also
BottomText()

◆ Clone()

virtual Dtk_Object* Dtk_DatumTarget::Clone ( )
protectedvirtual

Implements Dtk_Annotation.

3932 { return new Dtk_DatumTarget(*this); }

◆ Create() [1/4]

static Dtk_DatumTargetPtr Dtk_DatumTarget::Create ( )
static

Base constructor.

◆ Create() [2/4]

static Dtk_DatumTargetPtr Dtk_DatumTarget::Create ( const Dtk_DatumTarget inToBeCopied)
static

Copy constructor.

Parameters
inToBeCopiedObject to copy.

◆ Create() [3/4]

static Dtk_DatumTargetPtr Dtk_DatumTarget::Create ( Dtk_CompositeText  inTopText,
Dtk_CompositeText  inBottomText,
const Dtk_pnt inLocationPnt,
const Dtk_InfoPtr inInfos,
Dtk_tab< Dtk_LeaderPtr inLeadersArray = Dtk_tabDtk_LeaderPtr >(),
const Dtk_Double64 inAngle = 0.0,
const Dtk_Double64 inOffSet = 0.0,
const Dtk_bool inHasFrame = DTK_TRUE,
const Dtk_anchor_type inAnchorType = DTK_ANCHOR_BOTTOM_LEFT,
const Dtk_justication_type inJustificationType = DTK_JUSTIFY_LEFT 
)
static

Full featured constructor.

Parameters
inTopTextTop text
inBottomTextBottom text
inLocationPntThe Dtk_DatumTarget location
inInfosDtk_DatumTarget infos
inLeadersArrayLeaders array
inAngleAngle
inOffSetOffset
inHasFrameDTK_TRUE if the Dtk_DatumTarget has frame
inAnchorTypeDtk_DatumTarget anchor type
inJustificationTypeJustification type
Returns
The created Dtk_DatumTargetPtr

◆ Create() [4/4]

static Dtk_DatumTargetPtr Dtk_DatumTarget::Create ( Dtk_DatumTarget &&  inToBeMoved)
static

\MoveConstructor{inToBeMoved}

◆ DatumTargetMovableStatusEnumToString()

static Dtk_string Dtk_DatumTarget::DatumTargetMovableStatusEnumToString ( const DatumTargetMovableStatusEnum inEnum)
static
3869  {
3870  switch( inEnum )
3871  {
3872  default:
3873  case NonMovable: return L"NonMovable";
3874  case Movable: return L"Movable";
3875  }
3876  }

◆ DatumTargetTypeEnumToString()

static Dtk_string Dtk_DatumTarget::DatumTargetTypeEnumToString ( const DatumTargetTypeEnum inEnum)
static
3847  {
3848  switch( inEnum )
3849  {
3850  default:
3851  case Unknown: return L"Unknown";
3852  case Point: return L"Point";
3853  case Linear: return L"Linear";
3854  case Rectangular: return L"Rectangular";
3855  case Circular: return L"Circular";
3856  case Annular: return L"Annular";
3857  case Spherical: return L"Spherical";
3858  case Cylindrical: return L"Cylindrical";
3859  case Arbitrary: return L"Arbitrary";
3860  }
3861  }

◆ DatumTargetValueEnumToString()

static Dtk_string Dtk_DatumTarget::DatumTargetValueEnumToString ( const DatumTargetValueEnum inEnum)
static
3892  {
3893  switch (inEnum)
3894  {
3895  default:
3896  case DiameterValue: return L"DiameterValue";
3897  case InnerDiameterValue: return L"InnerDiameterValue";
3898  case OuterDiameterValue: return L"OuterDiameterValue";
3899  case WidthValue: return L"WidthValue";
3900  case HeightValue: return L"HeightValue";
3901  case StartPointValue: return L"StartPointValue";
3902  case EndPointValue: return L"EndPointValue";
3903  case AreaValue: return L"AreaValue";
3904  }
3905  }

◆ DisableFrame()

void Dtk_DatumTarget::DisableFrame ( )

Disables the frame status.

See also
HasFrame() const
DisableFrame()

◆ DtkDynamicCast()

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

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

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_DatumTarget::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

◆ DtkDynamicType() [2/2]

◆ dump()

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

◆ EnableFrame()

void Dtk_DatumTarget::EnableFrame ( )

Enables the frame status.

See also
HasFrame() const
DisableFrame()

◆ get_info()

Dtk_InfoPtr Dtk_Entity::get_info ( ) const
inherited

◆ get_type_detk()

type_detk Dtk_DatumTarget::get_type_detk ( ) const
virtual
Returns
The type of the entity type - DTK_TYPE_DATUM_TARGET -

Implements Dtk_Annotation.

4101  {
4102  return DTK_TYPE_DATUM_TARGET;
4103  }

◆ 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_DatumTarget::GetAnchorPoints ( Dtk_pnt(&)  outTabPnts[DTK_NB_ANCHOR_TYPES])

Processes all the Dtk_DatumTarget anchor points.

Parameters
outTabPntsThe resulting anchor point array.
Returns
dtkNoError if OK

◆ GetAnchorPoints() [2/2]

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

Processes all the Dtk_DatumTarget anchor points.

Parameters
outTabPntsThe resulting anchor point array.
Returns
dtkNoError if OK

Implements Dtk_Annotation.

◆ GetDatumTargetMovableStatus()

Dtk_DatumTarget::DatumTargetMovableStatusEnum Dtk_DatumTarget::GetDatumTargetMovableStatus ( ) const

Gets the Movable status of the Dtk_DatumTarget.

Returns
The Dtk_DatumTarget Movable status
See also
SetDatumTargetMovable() const

◆ GetDatumTargetMovableStatusRelatedGeom()

Dtk_tab<Dtk_CurvePtr>& Dtk_DatumTarget::GetDatumTargetMovableStatusRelatedGeom ( ) const

Gets the geometry related to the Movable status of the Dtk_DatumTarget.

Returns
The tab of Dtk_CurvePtr composing the geometry related to the Movable status
See also
SetDatumTargetMovable() const

◆ GetDatumTargetType()

Dtk_DatumTarget::DatumTargetTypeEnum Dtk_DatumTarget::GetDatumTargetType ( ) const

Gets the type of the Dtk_DatumTarget.

Returns
The Dtk_DatumTarget type
See also
GetDatumTargetType() const

◆ GetFrame()

const Dtk_Frame& Dtk_DatumTarget::GetFrame ( ) const

Retrieves the frame of the Datum Target.

Returns
The Dtk_Frame
See also
SetFrame()

◆ GetGeometries()

Dtk_tab< Dtk_EntityPtr > Dtk_DatumTarget::GetGeometries ( ) const

Retrieves the Dtk_DatumTarget geometries - frame -.

Returns
All the geometries asked.

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

◆ 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

◆ GetOptionnalBottomTextLeader()

const Dtk_LeaderPtr& Dtk_DatumTarget::GetOptionnalBottomTextLeader ( ) const

Retrieves optionnal Leader of the Bottom Text.

Returns
The Dtk_LeaderPtr
See also
SetOptionnalBottomTextLeader()

◆ GetOptionnalTopTextLeader()

const Dtk_LeaderPtr& Dtk_DatumTarget::GetOptionnalTopTextLeader ( ) const

Retrieves optionnal Leader of the Top Text.

Returns
The Dtk_LeaderPtr
See also
SetOptionnalTopTextLeader()

◆ GetParameterValue()

Dtk_ErrorStatus Dtk_DatumTarget::GetParameterValue ( const DatumTargetValueEnum inValueEnum,
Dtk_Val outValue 
)

Gets the value associated to DatumTargetValueEnum .

Parameters
outValueGet the value associated to inValueEnum
Returns
dtkNoError if OK

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

◆ HasFrame()

const Dtk_bool& Dtk_DatumTarget::HasFrame ( ) const

Retrieves the frame status - read only -.

Returns
The text frame status
See also
EnableFrame()
DisableFrame()

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

Assignment Operator.

Parameters
inToBeAssignedObject to copy.

◆ operator=() [2/2]

Dtk_DatumTarget& Dtk_DatumTarget::operator= ( Dtk_DatumTarget &&  inToBeMoved)

\MoveOp{inToBeMoved}

◆ PrepareTransfo()

virtual void Dtk_Entity::PrepareTransfo ( )
virtualinherited

Reimplemented in Dtk_OffsetSurface.

◆ ProcessBoundingBox()

Dtk_Oriented2dBBox Dtk_DatumTarget::ProcessBoundingBox ( ) const

◆ ProcessCenterPoint()

Dtk_pnt Dtk_DatumTarget::ProcessCenterPoint ( ) const

Retrieves the center point - read only -.

Returns
The center point
See also
CenterPoint()

◆ ProcessRadius()

Dtk_Double64 Dtk_DatumTarget::ProcessRadius ( ) const

Processes the Dtk_DatumTarget radius.

Returns
the processed radius.

◆ Reverse()

Dtk_ErrorStatus Dtk_DatumTarget::Reverse ( )
virtual

Reverses the text The text anchor type is replaced by the opposed one and the text orientation is reversed.

Returns
dtkNoError if OK

Reimplemented from Dtk_Annotation.

◆ SetAnchorPoint()

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

Sets the Dtk_DatumTarget anchor point.

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

Implements Dtk_Annotation.

◆ 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

◆ SetDatumTargetMovable()

void Dtk_DatumTarget::SetDatumTargetMovable ( const DatumTargetMovableStatusEnum  inMovableStatus,
Dtk_tab< Dtk_CurvePtr inMovableGeom 
)

Sets the Movable status of the Dtk_DatumTarget.

Parameters
inMovableStatusThe Dtk_DatumTarget Movable status
inMovableGeomThe geometry related to the Movable status
See also
GetDatumTargetMovableStatus() const
GetDatumTargetMovableStatusRelatedGeom() const

◆ SetDatumTargetType()

void Dtk_DatumTarget::SetDatumTargetType ( const DatumTargetTypeEnum  inType)

Sets the type of the Dtk_DatumTarget.

Parameters
inTypeThe Dtk_DatumTarget type
See also
GetDatumTargetType() const

◆ SetFrame()

void Dtk_DatumTarget::SetFrame ( Dtk_Frame  inFrame)

Sets the frame of the Datum Target.

Parameters
inFrameThe Dtk_Frame
See also
GetFrame() const

◆ SetLocation() [1/2]

Dtk_ErrorStatus Dtk_DatumTarget::SetLocation ( const Dtk_pnt inLocation)
virtual

Sets the location point of the Dtk_DatumTarget.

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

Sets the offset of the Dtk_DatumTarget.

The Offset is used to process bounding frames.

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

Implements Dtk_Annotation.

◆ SetOptionnalBottomTextLeader()

void Dtk_DatumTarget::SetOptionnalBottomTextLeader ( const Dtk_LeaderPtr inLeader)

Sets the optionnal Leader of the Bottom Text.

Parameters
inLeaderThe Dtk_LeaderPtr
See also
GetOptionnalBottomTextLeader() const

◆ SetOptionnalTopTextLeader()

void Dtk_DatumTarget::SetOptionnalTopTextLeader ( const Dtk_LeaderPtr inLeader)

Sets the optionnal Leader of the Top Text.

Parameters
inLeaderThe Dtk_LeaderPtr
See also
GetOptionnalTopTextLeader() const

◆ SetParameterValue()

Dtk_ErrorStatus Dtk_DatumTarget::SetParameterValue ( const DatumTargetValueEnum inValueEnum,
Dtk_Val  inValue 
)

Sets the value associated to DatumTargetValueEnum .

Parameters
inValueSet the inValue associated to the inValueEnum
Returns
dtkNoError if OK

◆ SetRotationAngle()

Dtk_ErrorStatus Dtk_DatumTarget::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.

◆ SwapTexts()

Dtk_ErrorStatus Dtk_DatumTarget::SwapTexts ( )

Swaps the Dtk_DatumTarget texts.

Returns
dtkNoError if OK

◆ TopText() [1/2]

Dtk_CompositeText& Dtk_DatumTarget::TopText ( )

Retrieves the top text - get/set -.

Returns
The top text
See also
TopText() const

◆ TopText() [2/2]

const Dtk_CompositeText& Dtk_DatumTarget::TopText ( ) const

Retrieves the top text - read only -.

Returns
The top text
See also
TopText()

◆ Transform()

Dtk_ErrorStatus Dtk_DatumTarget::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_DatumTarget::Translate ( const Dtk_dir inTranslationDir)

Translates the Dtk_ReferenceBlock - internal use only -.

Parameters
inTranslationDirthe translation vector.

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_DatumTarget >

friend class Dtk_SmartPtr< Dtk_DatumTarget >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_DatumTarget::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
Dtk_DatumTarget::Linear
@ Linear
Definition: util_draw_dtk.hpp:3835
Dtk_DatumTarget::NumValues
@ NumValues
Definition: util_draw_dtk.hpp:3888
Dtk_DatumTarget::NumTypes
@ NumTypes
Definition: util_draw_dtk.hpp:3843
DTK_TYPE_ANNOTATION
@ DTK_TYPE_ANNOTATION
Definition: define.h:436
Dtk_DatumTarget::HeightValue
@ HeightValue
Definition: util_draw_dtk.hpp:3884
Dtk_DatumTarget::Point
@ Point
Definition: util_draw_dtk.hpp:3834
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:466
Dtk_DatumTarget::Circular
@ Circular
Definition: util_draw_dtk.hpp:3837
Dtk_DatumTarget::DiameterValue
@ DiameterValue
Definition: util_draw_dtk.hpp:3880
Dtk_Annotation::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:2543
Dtk_DatumTarget::Dtk_DatumTarget
Dtk_DatumTarget()
Dtk_DatumTarget::Unknown
@ Unknown
Definition: util_draw_dtk.hpp:3833
DTK_TYPE_DATUM_TARGET
@ DTK_TYPE_DATUM_TARGET
Definition: define.h:437
Dtk_DatumTarget::Rectangular
@ Rectangular
Definition: util_draw_dtk.hpp:3836
Dtk_DatumTarget::Annular
@ Annular
Definition: util_draw_dtk.hpp:3838
Dtk_DatumTarget::Movable
@ Movable
Definition: util_draw_dtk.hpp:3866
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:333
Dtk_DatumTarget::NonMovable
@ NonMovable
Definition: util_draw_dtk.hpp:3865
Dtk_DatumTarget::InnerDiameterValue
@ InnerDiameterValue
Definition: util_draw_dtk.hpp:3881
Dtk_DatumTarget::WidthValue
@ WidthValue
Definition: util_draw_dtk.hpp:3883
Dtk_2dEntity::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:1788
Dtk_DatumTarget::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:3912
DTK_TYPE_2D_ENTITY
@ DTK_TYPE_2D_ENTITY
Definition: define.h:471
Dtk_DatumTarget::StartPointValue
@ StartPointValue
Definition: util_draw_dtk.hpp:3885
Dtk_DatumTarget::Arbitrary
@ Arbitrary
Definition: util_draw_dtk.hpp:3841
Dtk_DatumTarget::Spherical
@ Spherical
Definition: util_draw_dtk.hpp:3839
Dtk_DatumTarget::Cylindrical
@ Cylindrical
Definition: util_draw_dtk.hpp:3840
Dtk_DatumTarget::EndPointValue
@ EndPointValue
Definition: util_draw_dtk.hpp:3886
Dtk_DatumTarget::OuterDiameterValue
@ OuterDiameterValue
Definition: util_draw_dtk.hpp:3882
Dtk_DatumTarget::AreaValue
@ AreaValue
Definition: util_draw_dtk.hpp:3887