DATAKIT API  V2025.1
Dtk_FCFFeatureIndicator Class Referenceabstract

This is the Feature Indicator.
It is part of the Dtk_ToleranceSpecification.
It's basically composed by a type, a symbol and a Datum feature identifier. More...

+ Inheritance diagram for Dtk_FCFFeatureIndicator:

Public Member Functions

void Clear ()
 
Dtk_Int32 DtkDynamicType (const Dtk_Int32 &inId)
 Retrieves the dynamic entity type. More...
 
virtual int DtkDynamicType (const int &inId)=0
 
virtual void dump (FILE *file=stdout)
 
Dtk_ErrorStatus Explode (Dtk_CompositeText &outText, Dtk_tab< Dtk_CurvePtr > &outGeomsArray) const
 Explodes the Dtk_FCFFeatureIndicator into Dtk_CompositeText and geometrical elements - used for Dtk_Symbol conversion only -. More...
 
Dtk_ErrorStatus GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const
 Processes all the Dtk_FCFFeatureIndicator anchor points. More...
 
const Dtk_TextGetDatumFeatureIdentifier () const
 Retrieves the DatumFeature Identifier of the Dtk_FCFFeatureIndicator - Read Only -. More...
 
const Dtk_FCFFeatureIndicatorTypeGetFeatureIndicatorType () const
 Retrieves the Full Type of the Dtk_FCFFeatureIndicator - Read Only -. More...
 
Dtk_Oriented2dBBox GetOuterBoundingBox () const
 Retrieves the Dtk_FCFFeatureIndicator Outer Bounding Box. More...
 
virtual Dtk_Size_t GetSize () const
 
const Dtk_TextGetSymbol () const
 Retrieves the Symbol of the Dtk_FCFFeatureIndicator - Read Only -. More...
 
Dtk_FCFFeatureIndicatoroperator= (const Dtk_FCFFeatureIndicator &inToBeAssigned)
 Assignment Operator. More...
 
Dtk_FCFFeatureIndicatoroperator= (Dtk_FCFFeatureIndicator &&inToBeMoved) DTK_NOEXCEPT
 \MoveOp{inToBeMoved} More...
 
Dtk_ErrorStatus SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType)
 Sets the Dtk_FCFFeatureIndicator anchor point. More...
 
Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Transforms the Dtk_FCFFeatureIndicator giving a transformation matrix. More...
 
Dtk_ErrorStatus Translate (const Dtk_dir &inTranslationDir)
 Translates the Dtk_FCFFeatureIndicator giving a translation vector. More...
 

Static Public Member Functions

static Dtk_FCFFeatureIndicatorPtr Create ()
 Base constructor. More...
 
static Dtk_FCFFeatureIndicatorPtr Create (const Dtk_FCFFeatureIndicator &inToBeCopied)
 Copy constructor. More...
 
static Dtk_FCFFeatureIndicatorPtr Create (Dtk_FCFFeatureIndicator &&inToBeMoved)
 \MoveConstructor{inToBeMoved} More...
 
static Dtk_FCFFeatureIndicatorPtr Create (Dtk_FCFFeatureIndicatorType inFeatureIndicatorType, Dtk_Text inSymbol, Dtk_Text inDatumFeatureIdentifier)
 Full featured constructor. More...
 
static Dtk_FCFFeatureIndicatorDtkDynamicCast (Dtk_Object *s)
 Performs a dynamic cast - doesn't need RTTI -. More...
 

Protected Types

enum  { _typeID = DTK_TYPE_OBJECT }
 
enum  { _typeID = DTK_TYPE_SPECIFICATION_INDICATOR }
 

Protected Member Functions

void _copy (const Dtk_Object &s)
 
void _init ()
 
void _reset ()
 
virtual Dtk_ObjectClone ()
 
 Dtk_FCFFeatureIndicator ()
 
 Dtk_FCFFeatureIndicator (const Dtk_FCFFeatureIndicator &s)
 
 Dtk_FCFFeatureIndicator (Dtk_FCFFeatureIndicator &&s) DTK_NOEXCEPT
 
 Dtk_FCFFeatureIndicator (Dtk_FCFFeatureIndicatorType inFeatureIndicatorType, Dtk_Text inSymbol, Dtk_Text inDatumFeatureIdentifier)
 
 ~Dtk_FCFFeatureIndicator ()
 Destructor. More...
 

Protected Attributes

unsigned long count_
 
Dtk_Handle * m_Private
 

Friends

class Dtk_SmartPtr< Dtk_FCFFeatureIndicator >
 

Detailed Description

This is the Feature Indicator.
It is part of the Dtk_ToleranceSpecification.
It's basically composed by a type, a symbol and a Datum feature identifier.

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
6040  {
6042  };

Constructor & Destructor Documentation

◆ Dtk_FCFFeatureIndicator() [1/4]

Dtk_FCFFeatureIndicator::Dtk_FCFFeatureIndicator ( )
protected
See also
Create()
6046  {
6047  _Init();
6048  }

◆ Dtk_FCFFeatureIndicator() [2/4]

Dtk_FCFFeatureIndicator::Dtk_FCFFeatureIndicator ( const Dtk_FCFFeatureIndicator s)
protected
See also
Create(const Dtk_FCFFeatureIndicator &)
6050  : Dtk_Object ( s )
6051  {
6052  _Init();
6053  _Copy( s );
6054  }

◆ Dtk_FCFFeatureIndicator() [3/4]

Dtk_FCFFeatureIndicator::Dtk_FCFFeatureIndicator ( Dtk_FCFFeatureIndicator &&  s)
protected
See also
Create( Dtk_FCFFeatureIndicator&& )
6057  : m_Private( s.m_Private )
6058  {
6059  s.m_Private = nullptr;
6060  }

◆ Dtk_FCFFeatureIndicator() [4/4]

Dtk_FCFFeatureIndicator::Dtk_FCFFeatureIndicator ( Dtk_FCFFeatureIndicatorType  inFeatureIndicatorType,
Dtk_Text  inSymbol,
Dtk_Text  inDatumFeatureIdentifier 
)
protected

◆ ~Dtk_FCFFeatureIndicator()

Dtk_FCFFeatureIndicator::~Dtk_FCFFeatureIndicator ( )
protected

Destructor.

6072  {
6073  _Reset();
6074  }

Member Function Documentation

◆ _copy()

void Dtk_Object::_copy ( const Dtk_Object s)
protectedinherited

◆ _init()

void Dtk_Object::_init ( )
protectedinherited

◆ _reset()

void Dtk_Object::_reset ( )
protectedinherited

◆ Clear()

void Dtk_FCFFeatureIndicator::Clear ( )
6097  {
6098  _Reset();
6099  _Init();
6100  }

◆ Clone()

virtual Dtk_Object* Dtk_FCFFeatureIndicator::Clone ( )
protectedvirtual
6066  {
6067  return new Dtk_FCFFeatureIndicator( *this );
6068  }

◆ Create() [1/4]

static Dtk_FCFFeatureIndicatorPtr Dtk_FCFFeatureIndicator::Create ( )
static

Base constructor.

6104  {
6105  return new Dtk_FCFFeatureIndicator();
6106  }

◆ Create() [2/4]

static Dtk_FCFFeatureIndicatorPtr Dtk_FCFFeatureIndicator::Create ( const Dtk_FCFFeatureIndicator inToBeCopied)
static

Copy constructor.

Parameters
inToBeCopiedObject to copy.
6110  {
6111  return new Dtk_FCFFeatureIndicator( inToBeCopied );
6112  }

◆ Create() [3/4]

static Dtk_FCFFeatureIndicatorPtr Dtk_FCFFeatureIndicator::Create ( Dtk_FCFFeatureIndicator &&  inToBeMoved)
static

\MoveConstructor{inToBeMoved}

6115  {
6116  return new Dtk_FCFFeatureIndicator( std::move( inToBeMoved ) );
6117  }

◆ Create() [4/4]

static Dtk_FCFFeatureIndicatorPtr Dtk_FCFFeatureIndicator::Create ( Dtk_FCFFeatureIndicatorType  inFeatureIndicatorType,
Dtk_Text  inSymbol,
Dtk_Text  inDatumFeatureIdentifier 
)
static

Full featured constructor.

Parameters
inFeatureIndicatorTypeThe FeatureIndicator Type.
inSymbolThe FeatureIndicator symbol.
inDatumFeatureIdentifierThe FeatureIndicator Datum feature identifier.
Returns
the created Dtk_FCFFeatureIndicatorPtr
6127  {
6128  return new Dtk_FCFFeatureIndicator( std::move( inFeatureIndicatorType ), std::move( inSymbol ), std::move( inDatumFeatureIdentifier ) );
6129  }

◆ DtkDynamicCast()

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

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

6091  {
6092  if( s->DtkDynamicType( _typeID ) )
6093  return static_cast< Dtk_FCFFeatureIndicator* >( s );
6094  return NULL;
6095  }

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_FCFFeatureIndicator::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

6084  {
6085  if( inId == _typeID )
6086  return 1;
6087  return Dtk_Object::DtkDynamicType( inId );
6088  }

◆ DtkDynamicType() [2/2]

◆ dump()

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

◆ Explode()

Dtk_ErrorStatus Dtk_FCFFeatureIndicator::Explode ( Dtk_CompositeText outText,
Dtk_tab< Dtk_CurvePtr > &  outGeomsArray 
) const

Explodes the Dtk_FCFFeatureIndicator into Dtk_CompositeText and geometrical elements - used for Dtk_Symbol conversion only -.

Parameters
outTextResulting composite text
outGeomsArrayResulting geometrical elements
Returns
DtkNoError if OK

◆ GetAnchorPoints()

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

Processes all the Dtk_FCFFeatureIndicator anchor points.

Parameters
outTabPntsThe resulting anchor point array.
inOffSet- internal use only -.
Returns
DtkNoError if OK

◆ GetDatumFeatureIdentifier()

const Dtk_Text& Dtk_FCFFeatureIndicator::GetDatumFeatureIdentifier ( ) const

Retrieves the DatumFeature Identifier of the Dtk_FCFFeatureIndicator - Read Only -.

Returns
The Dtk_FCFFeatureIndicator DatumFeature Identifier.

◆ GetFeatureIndicatorType()

const Dtk_FCFFeatureIndicatorType& Dtk_FCFFeatureIndicator::GetFeatureIndicatorType ( ) const

Retrieves the Full Type of the Dtk_FCFFeatureIndicator - Read Only -.

Returns
The Dtk_FCFFeatureIndicator Dtk_FCFFeatureIndicatorType.

◆ GetOuterBoundingBox()

Dtk_Oriented2dBBox Dtk_FCFFeatureIndicator::GetOuterBoundingBox ( ) const

Retrieves the Dtk_FCFFeatureIndicator Outer Bounding Box.

Returns
The Dtk_FCFFeatureIndicator Outer Bounding Box.

◆ GetSize()

◆ GetSymbol()

const Dtk_Text& Dtk_FCFFeatureIndicator::GetSymbol ( ) const

Retrieves the Symbol of the Dtk_FCFFeatureIndicator - Read Only -.

Returns
The Dtk_FCFFeatureIndicator Symbol.

◆ operator=() [1/2]

Dtk_FCFFeatureIndicator& Dtk_FCFFeatureIndicator::operator= ( const Dtk_FCFFeatureIndicator inToBeAssigned)

Assignment Operator.

Parameters
inToBeAssignedObject to copy.

◆ operator=() [2/2]

Dtk_FCFFeatureIndicator& Dtk_FCFFeatureIndicator::operator= ( Dtk_FCFFeatureIndicator &&  inToBeMoved)

\MoveOp{inToBeMoved}

◆ SetAnchorPoint()

Dtk_ErrorStatus Dtk_FCFFeatureIndicator::SetAnchorPoint ( const Dtk_pnt inNewLocation,
const Dtk_anchor_type inLocationAnchorType 
)

Sets the Dtk_FCFFeatureIndicator anchor point.

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

◆ Transform()

Dtk_ErrorStatus Dtk_FCFFeatureIndicator::Transform ( const Dtk_transfo inTransfo)

Transforms the Dtk_FCFFeatureIndicator giving a transformation matrix.

Parameters
inTranslationDirThe transformation matrix.
Returns
DtkNoError if OK

◆ Translate()

Dtk_ErrorStatus Dtk_FCFFeatureIndicator::Translate ( const Dtk_dir inTranslationDir)

Translates the Dtk_FCFFeatureIndicator giving a translation vector.

Parameters
inTranslationDirThe translation vector.
Returns
DtkNoError if OK

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_FCFFeatureIndicator >

friend class Dtk_SmartPtr< Dtk_FCFFeatureIndicator >
friend

Field Documentation

◆ count_

unsigned long Dtk_Object::count_
protectedinherited

◆ m_Private

Dtk_Handle* Dtk_FCFFeatureIndicator::m_Private
protected
Dtk_FCFFeatureIndicator::m_Private
Dtk_Handle * m_Private
Definition: util_draw_dtk.hpp:6037
DTK_TYPE_OBJECT
@ DTK_TYPE_OBJECT
Definition: define.h:464
Dtk_FCFFeatureIndicator::Dtk_FCFFeatureIndicator
Dtk_FCFFeatureIndicator()
Definition: util_draw_dtk.hpp:6045
Dtk_Object::_typeID
@ _typeID
Definition: dtk_object.hpp:13
Dtk_FCFFeatureIndicator::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:6041
Dtk_FCFFeatureIndicator
This is the Feature Indicator. It is part of the Dtk_ToleranceSpecification. It's basically compose...
Definition: util_draw_dtk.hpp:6035
Dtk_Object::DtkDynamicType
virtual int DtkDynamicType(const int &inId)=0
Dtk_Object::Dtk_Object
Dtk_Object()
DTK_TYPE_SPECIFICATION_INDICATOR
@ DTK_TYPE_SPECIFICATION_INDICATOR
Definition: define.h:487