DATAKIT API  V2025.1
Dtk_Fdt Class Reference

This is the FD&T class.
The base PMI Class contains a Dtk_2dEntity and Transformation Matrix to locate the FDT into 3D Space.
Please use the Dtk_FdtPtr class to handle it... More...

+ Inheritance diagram for Dtk_Fdt:

Public Types

enum  ScreenDisplayEnum { Default = 0, ParallelToScreen = 1, PinToScreen = 2 }
 

Public Member Functions

virtual Dtk_ErrorStatus _Store (void *)
 
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_IDGetID () const
 Get Internal UniqueID. More...
 
bool GetIsZoomableAttribute () const
 Gets the Zoomable attribute of the Dtk_Fdt. More...
 
Dtk_Fdt::ScreenDisplayEnum GetScreenDisplayAttribute () const
 Gets the ScreenDisplay attribute of the Dtk_Fdt. More...
 
virtual Dtk_Size_t GetSize () const
 
Dtk_InfoPtrinfo ()
 
virtual void PrepareTransfo ()
 
void SetIsZoomableAttribute (const bool &inBool)
 Sets the Zoomable attribute of the Dtk_Fdt. More...
 
void SetScreenDisplayAttribute (const ScreenDisplayEnum inType)
 Sets the ScreenDisplay attribute of the Dtk_Fdt. More...
 
Dtk_2dEntityPtrSub2DEntity ()
 Retrieves the sub 2D entity - get/set -. More...
 
const Dtk_2dEntityPtrSub2DEntity () const
 Retrieves the sub 2D entity - read only -. More...
 
Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Applies a transformation matrix to the entity. //! More...
 
Dtk_transfoTransformationMatrix ()
 Retrieves the transformation matrix - get/set -. More...
 
const Dtk_transfoTransformationMatrix () const
 Retrieves the transformation matrix - read only -. More...
 

Static Public Member Functions

static Dtk_FdtPtr Create ()
 Base constructor. More...
 
static Dtk_FdtPtr Create (const Dtk_Fdt &s)
 Copy constructor. More...
 
static Dtk_FdtPtr Create (const Dtk_transfo &inTransformationMatrix, const Dtk_2dEntityPtr &inSub2DEntity)
 Full featured constructor. More...
 
static Dtk_FdtPtr Create (Dtk_Fdt &&inToBeMoved)
 \MoveConstructor{inToBeMoved} More...
 
static Dtk_FdtDtkDynamicCast (Dtk_Object *s)
 Performs a dynamic cast - doesn't need RTTI -. More...
 
static Dtk_string ScreenDisplayEnumToString (const ScreenDisplayEnum &inEnum)
 

Protected Types

enum  { _typeID = DTK_TYPE_OBJECT }
 
enum  { _typeID = DTK_TYPE_ENTITY }
 
enum  { _typeID = DTK_TYPE_FDT }
 

Protected Member Functions

void _copy (const Dtk_Entity &s)
 
void _copy (const Dtk_Object &s)
 
void _init ()
 
void _reset ()
 
virtual Dtk_ObjectClone ()
 
 Dtk_Fdt ()
 
 Dtk_Fdt (const Dtk_Fdt &inToBeCopied)
 
 Dtk_Fdt (const Dtk_transfo &inTransforansform, const Dtk_2dEntityPtr &entity2D)
 
 Dtk_Fdt (Dtk_Fdt &&inToBeMoved) DTK_NOEXCEPT
 
virtual ~Dtk_Fdt ()
 Destructor. More...
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Friends

class Dtk_SmartPtr< Dtk_Fdt >
 

Detailed Description

This is the FD&T class.
The base PMI Class contains a Dtk_2dEntity and Transformation Matrix to locate the FDT into 3D Space.
Please use the Dtk_FdtPtr class to handle it...

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
7369  {
7371  };

◆ ScreenDisplayEnum

Enumerator
Default 
ParallelToScreen 
PinToScreen 
7350  {
7351  Default = 0,
7352  ParallelToScreen = 1, //Keep the annotation facing the viewport - Rotate won't have effect on annotation display -. Pan/Zoom WILL have effect on annotation display.
7353  PinToScreen = 2 //Keep the annotation facing the viewport - Rotate won't have effect on annotation display -. Pan and zoom also WON'T have effect on annotation display.
7354  };

Constructor & Destructor Documentation

◆ Dtk_Fdt() [1/4]

Dtk_Fdt::Dtk_Fdt ( )
protected
See also
Create()

◆ Dtk_Fdt() [2/4]

Dtk_Fdt::Dtk_Fdt ( const Dtk_Fdt inToBeCopied)
protected

◆ Dtk_Fdt() [3/4]

Dtk_Fdt::Dtk_Fdt ( Dtk_Fdt &&  inToBeMoved)
protected

◆ Dtk_Fdt() [4/4]

Dtk_Fdt::Dtk_Fdt ( const Dtk_transfo inTransforansform,
const Dtk_2dEntityPtr entity2D 
)
protected

◆ ~Dtk_Fdt()

virtual Dtk_Fdt::~Dtk_Fdt ( )
protectedvirtual

Destructor.

Member Function Documentation

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

◆ Clone()

virtual Dtk_Object* Dtk_Fdt::Clone ( )
protectedvirtual

Implements Dtk_Entity.

7384 { return new Dtk_Fdt(*this); }

◆ Create() [1/4]

static Dtk_FdtPtr Dtk_Fdt::Create ( )
static

Base constructor.

◆ Create() [2/4]

static Dtk_FdtPtr Dtk_Fdt::Create ( const Dtk_Fdt s)
static

Copy constructor.

Parameters
inToBeCopiedObject to copy.

◆ Create() [3/4]

static Dtk_FdtPtr Dtk_Fdt::Create ( const Dtk_transfo inTransformationMatrix,
const Dtk_2dEntityPtr inSub2DEntity 
)
static

Full featured constructor.

Parameters
inTransformationMatrixThe Transformation Matrix
inSub2DEntityThe sub 2D entity

◆ Create() [4/4]

static Dtk_FdtPtr Dtk_Fdt::Create ( Dtk_Fdt &&  inToBeMoved)
static

\MoveConstructor{inToBeMoved}

◆ DtkDynamicCast()

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

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

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_Fdt::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_Fdt::get_type_detk ( ) const
virtual
Returns
The type of the entity type - DTK_TYPE_FDT -

Implements Dtk_Entity.

7417  {
7418  return DTK_TYPE_FDT;
7419  }

◆ GetID()

const Dtk_ID& Dtk_Entity::GetID ( ) const
inherited

Get Internal UniqueID.

Returns
InternalID

◆ GetIsZoomableAttribute()

bool Dtk_Fdt::GetIsZoomableAttribute ( ) const

Gets the Zoomable attribute of the Dtk_Fdt.

Returns
The Dtk_Fdt Zoomable attribute
See also
GetIsZoomableAttribute() const

◆ GetScreenDisplayAttribute()

Dtk_Fdt::ScreenDisplayEnum Dtk_Fdt::GetScreenDisplayAttribute ( ) const

Gets the ScreenDisplay attribute of the Dtk_Fdt.

Returns
The Dtk_Fdt ScreenDisplay attribute
See also
GetScreenDisplayAttribute() const

◆ GetSize()

◆ info()

Dtk_InfoPtr& Dtk_Entity::info ( )
inherited

◆ PrepareTransfo()

virtual void Dtk_Entity::PrepareTransfo ( )
virtualinherited

Reimplemented in Dtk_OffsetSurface.

◆ ScreenDisplayEnumToString()

static Dtk_string Dtk_Fdt::ScreenDisplayEnumToString ( const ScreenDisplayEnum inEnum)
static
7356  {
7357  switch( inEnum )
7358  {
7359  default:
7360  case Default: return L"Default";
7361  case ParallelToScreen: return L"ParallelToScreen";
7362  case PinToScreen: return L"PinToScreen";
7363  }
7364  }

◆ SetIsZoomableAttribute()

void Dtk_Fdt::SetIsZoomableAttribute ( const bool &  inBool)

Sets the Zoomable attribute of the Dtk_Fdt.

Parameters
inBoolThe Dtk_Fdt zoomable attribute
See also
SetIsZoomableAttribute() const
Remarks
: by default fdt will be zoomable

◆ SetScreenDisplayAttribute()

void Dtk_Fdt::SetScreenDisplayAttribute ( const ScreenDisplayEnum  inType)

Sets the ScreenDisplay attribute of the Dtk_Fdt.

Parameters
inTypeThe Dtk_Fdt ScreenDisplay attribute
See also
SetScreenDisplayAttribute()

◆ Sub2DEntity() [1/2]

Dtk_2dEntityPtr& Dtk_Fdt::Sub2DEntity ( )

Retrieves the sub 2D entity - get/set -.

Returns
The sub 2D entity.
See also
Sub2DEntity() const

◆ Sub2DEntity() [2/2]

const Dtk_2dEntityPtr& Dtk_Fdt::Sub2DEntity ( ) const

Retrieves the sub 2D entity - read only -.

Returns
The sub 2D entity.
See also
Sub2DEntity()

◆ Transform()

Dtk_ErrorStatus Dtk_Fdt::Transform ( const Dtk_transfo inTransfo)
virtual

Applies a transformation matrix to the entity. //!

Parameters
inTransfoThe transformation matrix to apply.

Implements Dtk_Entity.

◆ TransformationMatrix() [1/2]

Dtk_transfo& Dtk_Fdt::TransformationMatrix ( )

Retrieves the transformation matrix - get/set -.

Returns
The transformation matrix.
See also
TransformationMatrix() const

◆ TransformationMatrix() [2/2]

const Dtk_transfo& Dtk_Fdt::TransformationMatrix ( ) const

Retrieves the transformation matrix - read only -.

Returns
The transformation matrix.
See also
TransformationMatrix()

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_Fdt >

friend class Dtk_SmartPtr< Dtk_Fdt >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Fdt::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
Dtk_Fdt::ParallelToScreen
@ ParallelToScreen
Definition: util_draw_dtk.hpp:7352
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:466
Dtk_Fdt::_typeID
@ _typeID
Definition: util_draw_dtk.hpp:7370
DTK_TYPE_OBJECT
@ DTK_TYPE_OBJECT
Definition: define.h:464
Dtk_Fdt::PinToScreen
@ PinToScreen
Definition: util_draw_dtk.hpp:7353
Dtk_Fdt::Default
@ Default
Definition: util_draw_dtk.hpp:7351
Dtk_Fdt::Dtk_Fdt
Dtk_Fdt()
DTK_TYPE_FDT
@ DTK_TYPE_FDT
Definition: define.h:433
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:333
Dtk_Object::_typeID
@ _typeID
Definition: dtk_object.hpp:13