DATAKIT API  V2025.1
Dtk_Node Class Reference

This is the Node Class The Dtk_Node object is used to retrieve informations in a Dtk_ComponentPtr object Is typically used as geometry into a Part. More...

+ Inheritance diagram for Dtk_Node:

Data Structures

class  FullType
 This is the Node FullType Class The Dtk_Node::FullType object is used to retrieve the full informations about Dtk_Node Type - Primary and SubType -. More...
 

Public Types

enum  BodyNodeDataTypeEnum {
  UnknownType = 0, HasPoints = 1, HasCurves = 2, HasSurfaces = 4,
  HasSolids = 8, HasAxis = 16, HasMesh = 32, HasMeshSurfaces = 64
}
 
enum  NodeDataTypeEnum {
  NullType = 0, BodyType, MeshType, AnnotationSetType,
  FdtType, DrawingType, KinematicsType, AxisSystemType,
  LayerInfosSetType, ColorInfosSetType, MetaDataType, ModelDisplayType,
  CameraType, VirtualType, ConstraintType, MaxNodeDataType
}
 

Public Member Functions

void AddAssociatedEntities (const Dtk_tab< Dtk_NodeConnectorPtr > &inAssociatedEntities)
 Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node. More...
 
void AddAssociatedEntity (const Dtk_NodeConnectorPtr &inAssociatedEntity)
 Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -. More...
 
void AddChild (const Dtk_NodePtr &inChild)
 Adds a child Dtk_Node to main Node. More...
 
void AddMetaData (const Dtk_MetaDataPtr &inMetaData)
 Adds a Dtk_MetaDataPtr to the Dtk_DocElement. More...
 
void AddMetaDataGroup (const Dtk_MetaDataGroupPtr &inMetaDataGroup, Dtk_bool inAddMetadata=DTK_FALSE)
 Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement. More...
 
void AddProperty (const Dtk_PropertiesPtr &inProperty)
 Adds a Dtk_PropertiesPtr to the Dtk_DocElement. More...
 
Dtk_Int32 DtkDynamicType (const int &inId)
 Retrieves the dynamic entity type. More...
 
virtual void dump (FILE *file=stdout)
 
Dtk_ErrorStatus GetAssociatedEntities (Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
 Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr. More...
 
const Dtk_NodePtr GetChild (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_Node - read only -. More...
 
Dtk_ObjectPtr GetDtk_AdvancedFeaturePtr ()
 Retrieves the Dtk_Node as a Dtk_AdvancedFeaturePtr - if exists - Internal Use !!! More...
 
Dtk_AxisSystemPtr GetDtk_AxisSystemPtr ()
 Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -. More...
 
Dtk_BodyPtr GetDtk_BodyPtr ()
 Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -. More...
 
Dtk_CameraPtr GetDtk_CameraPtr ()
 Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -. More...
 
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr ()
 Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -. More...
 
Dtk_ConstraintPtr GetDtk_ConstraintPtr ()
 Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -. More...
 
Dtk_DrawingPtr GetDtk_DrawingPtr ()
 Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -. More...
 
Dtk_FdtPtr GetDtk_FdtPtr ()
 Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -. More...
 
Dtk_FeaturePtr GetDtk_FeaturePtr ()
 Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -. More...
 
Dtk_KinematicPtr GetDtk_KinematicPtr ()
 Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -. More...
 
Dtk_LayerInfosSetPtr GetDtk_LayerInfosSetPtr ()
 Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -. More...
 
Dtk_MeshPtr GetDtk_MeshPtr ()
 Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -. More...
 
Dtk_MetaDataPtr GetDtk_MetaDataPtr ()
 Retrieves the Dtk_Node as a Dtk_FdtAnnotationSetPtr - if exists -. More...
 
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr ()
 Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -. More...
 
Dtk_NodeID GetEntityID () const
 Retrieves the Dtk_Node EntityID - read only -. More...
 
Dtk_ID GetFatherID (Dtk_Size_t inIndex) const
 Retrieves Dtk_DocElement ith FatherID - read only -. More...
 
Dtk_ID GetID () const
 Retrieves the Dtk_DocElement ID - read only -. More...
 
Dtk_InfoPtr GetInfos () const
 Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -. More...
 
Dtk_MaterialPtr GetMaterial () const
 Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -. More...
 
Dtk_MetaDataPtr GetMetaData (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_MetaDataPtr - read only -. More...
 
Dtk_MetaDataGroupPtr GetMetaDataGroup (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_MetaDataGrouplPtr - read only -. More...
 
const Dtk_Node::FullType GetNodeFullType () const
 Retrieves the Node FullType - Primary ans Sub Type - - read only -. More...
 
type_detk GetNodeSubType () const
 Retrieves the Node SubType - if relevant - - read only -. More...
 
NodeDataTypeEnum GetNodeType () const
 Retrieves the Dtk_Node Node Type - read only -. More...
 
Dtk_Size_t GetNumChildren () const
 Retrieves the number of the Dtk_DocElement children - read only -. More...
 
Dtk_Size_t GetNumFathers () const
 GetNumFather. More...
 
Dtk_Size_t GetNumMetaData () const
 Retrieves the number of the Dtk_MetaDataPtr - read only -. More...
 
Dtk_Size_t GetNumMetaDataGroup () const
 Retrieves the number of the Dtk_MetaDataGroupPtr - read only -. More...
 
Dtk_PreviewPtr GetPreview () const
 Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -. More...
 
void GetReadID (Dtk_ID &outReadID) const
 
virtual Dtk_Size_t GetSize () const
 
Dtk_StoredInfoPtr GetStoredInfos () const
 
Dtk_stringName ()
 
const Dtk_stringName () const
 Retrieves the Dtk_DocElement Name - read only -. More...
 
Dtk_bool NodeHasAxis () const
 Return DTK_TRUE if Dtk_Node Type Body contains axis entity. More...
 
Dtk_bool NodeHasCurves () const
 Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity. More...
 
Dtk_bool NodeHasMesh () const
 Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity. More...
 
Dtk_bool NodeHasMeshSurfaces () const
 Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity. More...
 
Dtk_bool NodeHasPoints () const
 Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity. More...
 
Dtk_bool NodeHasSolids () const
 Return DTK_TRUE if Dtk_Node Type Body contains solid entity. More...
 
Dtk_bool NodeHasSurfaces () const
 Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity. More...
 
void ReleasePreview ()
 
Dtk_ErrorStatus ReplaceChildNode (const Dtk_Size_t &inPos, const Dtk_NodePtr &inNewChild)
 Replaces a child Dtk_NodePtr by another one. Also updates father lists. More...
 
 SetAsDeprecated ("Undefined", "No more used") Dtk_FdtAnnotationSetPtr GetDtk_FdtAnnotationSetPtr()
 Retrieves the Dtk_Node as a Dtk_FdtAnnotationSetPtr - if exists -. More...
 
void SetInfos (const Dtk_InfoPtr &inInfos)
 
void SetMaterial (Dtk_MaterialPtr inMaterial)
 
void SetPreview (Dtk_PreviewPtr inPreview)
 
void SetReadID (const Dtk_ID &inNewID)
 
void SetStoredInfos (const Dtk_StoredInfoPtr &inInfos)
 

Static Public Member Functions

static Dtk_NodeDtkDynamicCast (Dtk_Object *s)
 Performs a dynamic cast - doesn't need RTTI -. More...
 
static Dtk_Int32 NodeDataStringToEnumType (const Dtk_string &type)
 
static Dtk_string NodeDataTypeEnumToString (const NodeDataTypeEnum &inEnum)
 

Protected Types

enum  { _typeID = DTK_TYPE_DOC_ELEMENT }
 
enum  { _typeID = DTK_TYPE_NODE }
 

Protected Member Functions

void _AddChild (const Dtk_DocElementPtr &inChild)
 Adds a child Dtk_DocElement to main Element. More...
 
void _copy (const Dtk_Object &s)
 
const Dtk_DocElementPtr _GetChild (const Dtk_Size_t &inPos) const
 Retrieves the ith Dtk_DocElement - read only -. More...
 
void _init ()
 
Dtk_ErrorStatus _ReplaceChild (const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild)
 Replaces a child by another one. Also update father lists. More...
 
void _reset ()
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Friends

class Dtk_Component
 
class Dtk_SmartPtr< Dtk_Node >
 

Detailed Description

This is the Node Class The Dtk_Node object is used to retrieve informations in a Dtk_ComponentPtr object Is typically used as geometry into a Part.

See also
Please use the Dtk_Node class to handle it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
346 { _typeID = DTK_TYPE_NODE };

◆ BodyNodeDataTypeEnum

Enumerator
UnknownType 
HasPoints 
HasCurves 
HasSurfaces 
HasSolids 
HasAxis 
HasMesh 
HasMeshSurfaces 
234  {
235  UnknownType = 0,
236  HasPoints = 1,
237  HasCurves = 2,
238  HasSurfaces = 4,
239  HasSolids = 8,
240  HasAxis = 16,
241  HasMesh = 32,
242  HasMeshSurfaces = 64
243  };

◆ NodeDataTypeEnum

Enumerator
NullType 
BodyType 
MeshType 
AnnotationSetType 
FdtType 
DrawingType 
KinematicsType 
AxisSystemType 
LayerInfosSetType 
ColorInfosSetType 
MetaDataType 
ModelDisplayType 
CameraType 
VirtualType 
ConstraintType 
MaxNodeDataType 
246  {
247  NullType = 0,
248  BodyType, // for 3D
249  MeshType, // for 3D Tesselated
250  AnnotationSetType, // for FdtAnnotationSet -- Obsolete
251  FdtType, // for Fdt
252  DrawingType, // for 2D
253  KinematicsType, // Kinematics
254  AxisSystemType, // AxisPlacement
255  LayerInfosSetType, // LayerInfosSet
256  ColorInfosSetType, // ColorInfosSet
257  MetaDataType, // MetaData
258  ModelDisplayType, // Model Display
259  CameraType, // Camera
260  VirtualType, // just for containing children
261  ConstraintType, // ConstraintType
263  };

Member Function Documentation

◆ _AddChild()

void Dtk_DocElement::_AddChild ( const Dtk_DocElementPtr inChild)
protectedinherited

Adds a child Dtk_DocElement to main Element.

Parameters
inChildThe Dtk_DocElement to be added as a child.

◆ _copy()

void Dtk_Object::_copy ( const Dtk_Object s)
protectedinherited

◆ _GetChild()

const Dtk_DocElementPtr Dtk_DocElement::_GetChild ( const Dtk_Size_t inPos) const
protectedinherited

Retrieves the ith Dtk_DocElement - read only -.

Parameters
inPosChild element index.
Returns
the inPos'th Dtk_DocElement

◆ _init()

void Dtk_Object::_init ( )
protectedinherited

◆ _ReplaceChild()

Dtk_ErrorStatus Dtk_DocElement::_ReplaceChild ( const Dtk_Size_t inPos,
const Dtk_DocElementPtr inNewChild 
)
protectedinherited

Replaces a child by another one. Also update father lists.

Parameters
inPosOld Child element index.
inNewChildThe Dtk_DocElement replacing the old one

Internal use only

Returns
the DtkNoerrror if success.
the dtkErrorOutOfRange if bad inPos parameter.
the dtkErrorNullPointer if inNewChild is NULL.

◆ _reset()

void Dtk_Object::_reset ( )
protectedinherited

◆ AddAssociatedEntities()

void Dtk_Node::AddAssociatedEntities ( const Dtk_tab< Dtk_NodeConnectorPtr > &  inAssociatedEntities)

Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node.

Returns
DtkNoError if success.
Parameters
inAssociatedEntitiesAssociatedEntities to be added.

◆ AddAssociatedEntity()

void Dtk_Node::AddAssociatedEntity ( const Dtk_NodeConnectorPtr inAssociatedEntity)

Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -.

Returns
The Dtk_Node as a Dtk_Kinematic if exists. Null Dtk_Kinematics else.
Remarks
This method is used to retrieve the kinematic info informations - if GetNodeType() method returns KinematicFilterType -.

Adds associated entity - Dtk_NodeConnectorPtr - to the Dtk_Node.

Returns
DtkNoError if success.
Parameters
inAssociatedEntityAssociatedEntity to be added.

◆ AddChild()

void Dtk_Node::AddChild ( const Dtk_NodePtr inChild)

Adds a child Dtk_Node to main Node.

Parameters
inChildThe Dtk_Node to be added as a child.

◆ AddMetaData()

void Dtk_DocElement::AddMetaData ( const Dtk_MetaDataPtr inMetaData)
inherited

Adds a Dtk_MetaDataPtr to the Dtk_DocElement.

Parameters
inMetaDataThe Dtk_MetaDataPtr to be added.

◆ AddMetaDataGroup()

void Dtk_DocElement::AddMetaDataGroup ( const Dtk_MetaDataGroupPtr inMetaDataGroup,
Dtk_bool  inAddMetadata = DTK_FALSE 
)
inherited

Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.

Parameters
inMetaDataGroupThe Dtk_MetaDataGroupPtr to be added.
inAddMetadataIf we also add the metadata of the group to the Dtk_DocElement

◆ AddProperty()

void Dtk_DocElement::AddProperty ( const Dtk_PropertiesPtr inProperty)
inherited

Adds a Dtk_PropertiesPtr to the Dtk_DocElement.

Parameters
inPropertyThe Dtk_PropertiesPtr to be added.

◆ DtkDynamicCast()

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

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

◆ DtkDynamicType()

Dtk_Int32 Dtk_Node::DtkDynamicType ( const int &  inId)
virtual

Retrieves the dynamic entity type.

Reimplemented from Dtk_DocElement.

◆ dump()

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

◆ GetAssociatedEntities()

Dtk_ErrorStatus Dtk_Node::GetAssociatedEntities ( Dtk_tab< Dtk_NodeConnectorPtr > &  outAssociatedEntities)

Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr.

Returns
DtkNoError if success.
Parameters
outAssociatedEntitiesThe associatedEntities to be retrieved.

◆ GetChild()

const Dtk_NodePtr Dtk_Node::GetChild ( const Dtk_Size_t inPos) const

Retrieves the ith Dtk_Node - read only -.

Parameters
inPosChild node index.
Returns
the inPos'th Dtk_Node
386  { return Dtk_NodePtr::DtkDynamicCast( _GetChild(inPos) ); }

◆ GetDtk_AdvancedFeaturePtr()

Dtk_ObjectPtr Dtk_Node::GetDtk_AdvancedFeaturePtr ( )

Retrieves the Dtk_Node as a Dtk_AdvancedFeaturePtr - if exists - Internal Use !!!

Returns
The Dtk_Node as a Dtk_FeaturePtr if exists. Null Dtk_FeaturePtr else.
Remarks

◆ GetDtk_AxisSystemPtr()

Dtk_AxisSystemPtr Dtk_Node::GetDtk_AxisSystemPtr ( )

Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -.

Returns
The Dtk_Node as a Dtk_AxisSystemPtr if exists. Null Dtk_AxisSystemPtr else.
Remarks
This method is used to retrieve the axis placement informations - if GetNodeType() method returns AxisSystemType -.

◆ GetDtk_BodyPtr()

Dtk_BodyPtr Dtk_Node::GetDtk_BodyPtr ( )

Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -.

Returns
The Dtk_Node as a Dtk_BodyPtr if exists. Null Dtk_BodyPtr else.
Remarks
This method is used to retrieve the body
informations - if GetNodeType() method returns BodyType -.

◆ GetDtk_CameraPtr()

Dtk_CameraPtr Dtk_Node::GetDtk_CameraPtr ( )

Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -.

Returns
The Dtk_Node as a Dtk_CameraPtr if exists. Null Dtk_CameraPtr else.
Remarks
This method is used to retrieve the camera entity informations - if GetNodeType() method returns CameraType -.

◆ GetDtk_ColorInfosSetPtr()

Dtk_ColorInfosSetPtr Dtk_Node::GetDtk_ColorInfosSetPtr ( )

Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.

Returns
The Dtk_Node as a Dtk_ColorInfosSetPtr if exists. Null Dtk_ColorInfosSetPtr else.
Remarks
This method is used to retrieve the color infos set informations - if GetNodeType() method returns ColorInfosSetType -.

◆ GetDtk_ConstraintPtr()

Dtk_ConstraintPtr Dtk_Node::GetDtk_ConstraintPtr ( )

Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.

Returns
The Dtk_Node as a Dtk_ConstraintPtr if exists. Null Dtk_ConstraintPtr else.
Remarks
This method is used to retrieve the Constraint entity informations - if GetNodeType() method returns ConstraintType -.

◆ GetDtk_DrawingPtr()

Dtk_DrawingPtr Dtk_Node::GetDtk_DrawingPtr ( )

Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -.

Returns
The Dtk_Node as a Dtk_DrawingPtr if exists. Null Dtk_DrawingPtr else.
Remarks
This method is used to retrieve the drawing
informations - if GetNodeType() method returns DrawingType -.

◆ GetDtk_FdtPtr()

Dtk_FdtPtr Dtk_Node::GetDtk_FdtPtr ( )

Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -.

Returns
The Dtk_Node as a Dtk_FdtPtr if exists. Null Dtk_FdtPtr else.
Remarks
This method is used to retrieve the FDT
informations - if GetNodeType() method returns FdtType -.

◆ GetDtk_FeaturePtr()

Dtk_FeaturePtr Dtk_Node::GetDtk_FeaturePtr ( )

Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.

Returns
The Dtk_Node as a Dtk_FeaturePtr if exists. Null Dtk_FeaturePtr else.
Remarks
This method is used to retrieve the feature
informations - if GetNodeType() method returns Virtual Type or Body Type-.

◆ GetDtk_KinematicPtr()

Dtk_KinematicPtr Dtk_Node::GetDtk_KinematicPtr ( )

Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -.

Returns
The Dtk_Node as a Dtk_KinematicsPtr if exists. Null Dtk_KinematicPtr else.
Remarks
This method is used to retrieve the Kinematics
informations - if GetNodeType() method returns KinematicsType -.

◆ GetDtk_LayerInfosSetPtr()

Dtk_LayerInfosSetPtr Dtk_Node::GetDtk_LayerInfosSetPtr ( )

Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -.

Returns
The Dtk_Node as a Dtk_LayerInfosSetPtr if exists. Null Dtk_LayerInfosSetPtr else.
Remarks
This method is used to retrieve the layer infos set informations - if GetNodeType() method returns LayerInfosSetType -.

◆ GetDtk_MeshPtr()

Dtk_MeshPtr Dtk_Node::GetDtk_MeshPtr ( )

Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.

Returns
The Dtk_Node as a Dtk_meshPtr if exists. Null Dtk_meshPtr else.
Remarks
This method is used to retrieve the mesh
informations - if GetNodeType() method returns MeshType -.

◆ GetDtk_MetaDataPtr()

Dtk_MetaDataPtr Dtk_Node::GetDtk_MetaDataPtr ( )

Retrieves the Dtk_Node as a Dtk_FdtAnnotationSetPtr - if exists -.

Returns
The Dtk_Node as a MetaDataPtr if exists. Null MetaDataPtr else.
Remarks
This method is used to retrieve the MetaData
informations - if GetNodeType() method returns MetaDataType -.

◆ GetDtk_ModelDisplayPtr()

Dtk_ModelDisplayPtr Dtk_Node::GetDtk_ModelDisplayPtr ( )

Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.

Returns
The Dtk_Node as a Dtk_ModelDisplayPtr if exists. Null Dtk_ModelDisplayPtr else.
Remarks
This method is used to retrieve the display model entity (camera capture) informations - if GetNodeType() method returns ModelDisplayType -.

◆ GetEntityID()

Dtk_NodeID Dtk_Node::GetEntityID ( ) const

Retrieves the Dtk_Node EntityID - read only -.

Returns
The Entity ID of Node.

◆ GetFatherID()

Dtk_ID Dtk_DocElement::GetFatherID ( Dtk_Size_t  inIndex) const
inherited

Retrieves Dtk_DocElement ith FatherID - read only -.

Returns
The ith FatherID.

◆ GetID()

Dtk_ID Dtk_DocElement::GetID ( ) const
inherited

Retrieves the Dtk_DocElement ID - read only -.

Returns
The element ID.

◆ GetInfos()

Dtk_InfoPtr Dtk_DocElement::GetInfos ( ) const
inherited

Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.

Returns
The element Dtk_InfoPtr.

◆ GetMaterial()

Dtk_MaterialPtr Dtk_DocElement::GetMaterial ( ) const
inherited

Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.

Returns
The element Dtk_MaterialPtrif if exists .

◆ GetMetaData()

Dtk_MetaDataPtr Dtk_DocElement::GetMetaData ( const Dtk_Size_t inPos) const
inherited

Retrieves the ith Dtk_MetaDataPtr - read only -.

Parameters
inPosMetadata index.
Returns
the inPos'th Dtk_MetaDataPtr

◆ GetMetaDataGroup()

Dtk_MetaDataGroupPtr Dtk_DocElement::GetMetaDataGroup ( const Dtk_Size_t inPos) const
inherited

Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.

Parameters
inPosGroup index.
Returns
the inPos'th Dtk_MetaDataGrouplPtr

◆ GetNodeFullType()

const Dtk_Node::FullType Dtk_Node::GetNodeFullType ( ) const

Retrieves the Node FullType - Primary ans Sub Type - - read only -.

Returns
The Node FullType.

◆ GetNodeSubType()

type_detk Dtk_Node::GetNodeSubType ( ) const

Retrieves the Node SubType - if relevant - - read only -.

Returns
The Node SubType.
Deprecated:
See also
Dtk_Node::GetNodeFullType()

◆ GetNodeType()

NodeDataTypeEnum Dtk_Node::GetNodeType ( ) const

Retrieves the Dtk_Node Node Type - read only -.

Returns
The Node Type.
Deprecated:
See also
Dtk_Node::GetNodeFullType()

◆ GetNumChildren()

Dtk_Size_t Dtk_DocElement::GetNumChildren ( ) const
inherited

Retrieves the number of the Dtk_DocElement children - read only -.

Returns
The Children number.

◆ GetNumFathers()

Dtk_Size_t Dtk_DocElement::GetNumFathers ( ) const
inherited

GetNumFather.

Returns
Number of fathers

◆ GetNumMetaData()

Dtk_Size_t Dtk_DocElement::GetNumMetaData ( ) const
inherited

Retrieves the number of the Dtk_MetaDataPtr - read only -.

Returns
The Metadata number.

◆ GetNumMetaDataGroup()

Dtk_Size_t Dtk_DocElement::GetNumMetaDataGroup ( ) const
inherited

Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.

Returns
The Group number.

◆ GetPreview()

Dtk_PreviewPtr Dtk_DocElement::GetPreview ( ) const
inherited

Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -.

Returns
The element Dtk_PreviewPtr if exists.

◆ GetReadID()

void Dtk_DocElement::GetReadID ( Dtk_ID outReadID) const
inherited

◆ GetSize()

◆ GetStoredInfos()

Dtk_StoredInfoPtr Dtk_Node::GetStoredInfos ( ) const

◆ Name() [1/2]

Dtk_string& Dtk_DocElement::Name ( )
inherited

◆ Name() [2/2]

const Dtk_string& Dtk_DocElement::Name ( ) const
inherited

Retrieves the Dtk_DocElement Name - read only -.

Returns
The Element Name.

◆ NodeDataStringToEnumType()

static Dtk_Int32 Dtk_Node::NodeDataStringToEnumType ( const Dtk_string type)
static
310  {
311  if( type == L"NullType" )
312  return NullType;
313  else if( type == L"BodyType" )
314  return BodyType;
315  else if( type == L"MeshType" )
316  return MeshType;
317  else if( type == L"AnnotationSetType" )
318  return AnnotationSetType;
319  else if( type == L"FdtType" )
320  return FdtType;
321  else if( type == L"DrawingType" )
322  return DrawingType;
323  else if( type == L"KinematicsType" )
324  return KinematicsType;
325  else if( type == L"AxisSystemType" )
326  return AxisSystemType;
327  else if (type == L"LayerInfosSetType")
328  return LayerInfosSetType;
329  else if (type == L"ColorInfosSetType")
330  return ColorInfosSetType;
331  else if( type == L"MetaDataType" )
332  return MetaDataType;
333  else if( type == L"VirtualType" )
334  return VirtualType;
335  else if (type == L"ModelDisplayType")
336  return ModelDisplayType;
337  else if (type == L"CameraType")
338  return CameraType;
339  else if (type == L"ConstraintType")
340  return ConstraintType;
341  else return -1;
342  }

◆ NodeDataTypeEnumToString()

static Dtk_string Dtk_Node::NodeDataTypeEnumToString ( const NodeDataTypeEnum inEnum)
static
287  {
288  switch( inEnum )
289  {
290  case NullType: return L"NullType";
291  case BodyType: return L"BodyType";
292  case MeshType: return L"MeshType";
293  case AnnotationSetType: return L"AnnotationSetType";
294  case FdtType: return L"FdtType";
295  case DrawingType: return L"DrawingType";
296  case KinematicsType: return L"KinematicsType";
297  case AxisSystemType: return L"AxisSystemType";
298  case LayerInfosSetType: return L"LayerInfosSetType";
299  case ColorInfosSetType: return L"ColorInfosSetType";
300  case MetaDataType: return L"MetaDataType";
301  case VirtualType: return L"VirtualType";
302  case ModelDisplayType : return L"ModelDisplayType";
303  case CameraType : return L"CameraType";
304  case ConstraintType: return L"Constraint";
305  default: return L"Unknown";
306  }
307  }

◆ NodeHasAxis()

Dtk_bool Dtk_Node::NodeHasAxis ( ) const

Return DTK_TRUE if Dtk_Node Type Body contains axis entity.

◆ NodeHasCurves()

Dtk_bool Dtk_Node::NodeHasCurves ( ) const

Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.

◆ NodeHasMesh()

Dtk_bool Dtk_Node::NodeHasMesh ( ) const

Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity.

◆ NodeHasMeshSurfaces()

Dtk_bool Dtk_Node::NodeHasMeshSurfaces ( ) const

Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.

◆ NodeHasPoints()

Dtk_bool Dtk_Node::NodeHasPoints ( ) const

Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity.

◆ NodeHasSolids()

Dtk_bool Dtk_Node::NodeHasSolids ( ) const

Return DTK_TRUE if Dtk_Node Type Body contains solid entity.

◆ NodeHasSurfaces()

Dtk_bool Dtk_Node::NodeHasSurfaces ( ) const

Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity.

◆ ReleasePreview()

void Dtk_DocElement::ReleasePreview ( )
inherited

◆ ReplaceChildNode()

Dtk_ErrorStatus Dtk_Node::ReplaceChildNode ( const Dtk_Size_t inPos,
const Dtk_NodePtr inNewChild 
)

Replaces a child Dtk_NodePtr by another one. Also updates father lists.

Parameters
inPosOld Child Dtk_NodePtr element index.
inNewChildThe Dtk_NodePtr replacing the old one

Internal use only

Returns
the DtkNoerrror if success.
the dtkErrorOutOfRange if bad inPos parameter.
the dtkErrorNullPointer if inNewChild is NULL.
396  { return _ReplaceChild( inPos, Dtk_DocElementPtr::DtkDynamicCast(inNewChild) ); }

◆ SetAsDeprecated()

Dtk_Node::SetAsDeprecated ( "Undefined"  ,
"No more used"   
)

Retrieves the Dtk_Node as a Dtk_FdtAnnotationSetPtr - if exists -.

Deprecated:
Returns
The Dtk_Node as a Dtk_FdtAnnotationSetPtr if exists. Null Dtk_FdtAnnotationSetPtr else.
Remarks
This method is used to retrieve the FDT
informations - if GetNodeType() method returns AnnotationSetType -.

◆ SetInfos()

void Dtk_DocElement::SetInfos ( const Dtk_InfoPtr inInfos)
inherited

◆ SetMaterial()

void Dtk_DocElement::SetMaterial ( Dtk_MaterialPtr  inMaterial)
inherited

◆ SetPreview()

void Dtk_DocElement::SetPreview ( Dtk_PreviewPtr  inPreview)
inherited

◆ SetReadID()

void Dtk_DocElement::SetReadID ( const Dtk_ID inNewID)
inherited

◆ SetStoredInfos()

void Dtk_Node::SetStoredInfos ( const Dtk_StoredInfoPtr inInfos)

Friends And Related Function Documentation

◆ Dtk_Component

friend class Dtk_Component
friend

◆ Dtk_SmartPtr< Dtk_Node >

friend class Dtk_SmartPtr< Dtk_Node >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Node::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
Dtk_Node::AnnotationSetType
@ AnnotationSetType
Definition: dtk_maindoc.hpp:250
Dtk_Node::HasMeshSurfaces
@ HasMeshSurfaces
Definition: dtk_maindoc.hpp:242
Dtk_Node::FdtType
@ FdtType
Definition: dtk_maindoc.hpp:251
Dtk_Node::HasAxis
@ HasAxis
Definition: dtk_maindoc.hpp:240
DTK_TYPE_DOC_ELEMENT
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:510
Dtk_Node::HasSurfaces
@ HasSurfaces
Definition: dtk_maindoc.hpp:238
Dtk_Node::HasSolids
@ HasSolids
Definition: dtk_maindoc.hpp:239
Dtk_DocElement::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:104
Dtk_Node::ModelDisplayType
@ ModelDisplayType
Definition: dtk_maindoc.hpp:258
Dtk_Node::KinematicsType
@ KinematicsType
Definition: dtk_maindoc.hpp:253
Dtk_Node::HasCurves
@ HasCurves
Definition: dtk_maindoc.hpp:237
Dtk_Node::BodyType
@ BodyType
Definition: dtk_maindoc.hpp:248
Dtk_DocElement::_GetChild
const Dtk_DocElementPtr _GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_DocElement - read only -.
Dtk_Node::CameraType
@ CameraType
Definition: dtk_maindoc.hpp:259
Dtk_DocElement::_ReplaceChild
Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild)
Replaces a child by another one. Also update father lists.
Dtk_Node::UnknownType
@ UnknownType
Definition: dtk_maindoc.hpp:235
DTK_TYPE_NODE
@ DTK_TYPE_NODE
Definition: define.h:511
Dtk_Node::MaxNodeDataType
@ MaxNodeDataType
Definition: dtk_maindoc.hpp:262
Dtk_Node::HasPoints
@ HasPoints
Definition: dtk_maindoc.hpp:236
Dtk_Node::MetaDataType
@ MetaDataType
Definition: dtk_maindoc.hpp:257
Dtk_Node::NullType
@ NullType
Definition: dtk_maindoc.hpp:247
Dtk_Node::ConstraintType
@ ConstraintType
Definition: dtk_maindoc.hpp:261
Dtk_SmartPtr::DtkDynamicCast
static Dtk_SmartPtr< T > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_Node::LayerInfosSetType
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:255
Dtk_Node::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:346
Dtk_Node::ColorInfosSetType
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:256
Dtk_DocElement::_AddChild
void _AddChild(const Dtk_DocElementPtr &inChild)
Adds a child Dtk_DocElement to main Element.
Dtk_Node::HasMesh
@ HasMesh
Definition: dtk_maindoc.hpp:241
Dtk_Node::VirtualType
@ VirtualType
Definition: dtk_maindoc.hpp:260
Dtk_Node::DrawingType
@ DrawingType
Definition: dtk_maindoc.hpp:252
Dtk_Node::AxisSystemType
@ AxisSystemType
Definition: dtk_maindoc.hpp:254
Dtk_Node::MeshType
@ MeshType
Definition: dtk_maindoc.hpp:249