This is the Node Class. 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_MetaDataPtr - 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_string & | Name () | 
| const Dtk_string & | Name () 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... | |
| 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_Node * | DtkDynamicCast (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... | |
| const Dtk_DocElementPtr | _GetChild (const Dtk_Size_t &inPos) const | 
| Retrieves the ith Dtk_DocElement - read only -.  More... | |
| Dtk_ErrorStatus | _ReplaceChild (const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild) | 
| Replaces a child by another one. Also update father lists.  More... | |
Protected Attributes | |
| Dtk_Handle * | _Private | 
| unsigned long | count_ | 
This is the Node Class.
The Dtk_Node is used to retrieve information from a Dtk_Component. It is typically used as geometry into a Part.
      
  | 
  protectedinherited | 
Adds a child Dtk_DocElement to main Element.
| inChild | The Dtk_DocElement to be added as a child. | 
      
  | 
  protectedinherited | 
Retrieves the ith Dtk_DocElement - read only -.
| inPos | Child element index. | 
      
  | 
  protectedinherited | 
Replaces a child by another one. Also update father lists.
| inPos | Old Child element index. | 
| inNewChild | The Dtk_DocElement replacing the old one | 
Internal use only
| void Dtk_Node::AddAssociatedEntities | ( | const Dtk_tab< Dtk_NodeConnectorPtr > & | inAssociatedEntities | ) | 
Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node.
| inAssociatedEntities | AssociatedEntities to be added. | 
| void Dtk_Node::AddAssociatedEntity | ( | const Dtk_NodeConnectorPtr & | inAssociatedEntity | ) | 
Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -.
Adds associated entity - Dtk_NodeConnectorPtr - to the Dtk_Node.
| inAssociatedEntity | AssociatedEntity to be added. | 
| void Dtk_Node::AddChild | ( | const Dtk_NodePtr & | inChild | ) | 
      
  | 
  inherited | 
Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
| inMetaData | The Dtk_MetaDataPtr to be added. | 
      
  | 
  inherited | 
Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.
| inMetaDataGroup | The Dtk_MetaDataGroupPtr to be added. | 
| inAddMetadata | If we also add the metadata of the group to the Dtk_DocElement | 
      
  | 
  inherited | 
Adds a Dtk_PropertiesPtr to the Dtk_DocElement.
| inProperty | The Dtk_PropertiesPtr to be added. | 
      
  | 
  static | 
Performs a dynamic cast - doesn't need RTTI -.
      
  | 
  virtual | 
Retrieves the dynamic entity type.
Reimplemented from Dtk_DocElement.
      
  | 
  virtualinherited | 
| Dtk_ErrorStatus Dtk_Node::GetAssociatedEntities | ( | Dtk_tab< Dtk_NodeConnectorPtr > & | outAssociatedEntities | ) | 
Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr.
| outAssociatedEntities | The associatedEntities to be retrieved. | 
| const Dtk_NodePtr Dtk_Node::GetChild | ( | const Dtk_Size_t & | inPos | ) | const | 
| Dtk_ObjectPtr Dtk_Node::GetDtk_AdvancedFeaturePtr | ( | ) | 
| Dtk_AxisSystemPtr Dtk_Node::GetDtk_AxisSystemPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -.
| Dtk_BodyPtr Dtk_Node::GetDtk_BodyPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -.
| Dtk_CameraPtr Dtk_Node::GetDtk_CameraPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -.
| Dtk_ColorInfosSetPtr Dtk_Node::GetDtk_ColorInfosSetPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
| Dtk_ConstraintPtr Dtk_Node::GetDtk_ConstraintPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.
| Dtk_DrawingPtr Dtk_Node::GetDtk_DrawingPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -.
| Dtk_FdtPtr Dtk_Node::GetDtk_FdtPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -.
| Dtk_FeaturePtr Dtk_Node::GetDtk_FeaturePtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
| Dtk_KinematicPtr Dtk_Node::GetDtk_KinematicPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -.
| Dtk_LayerInfosSetPtr Dtk_Node::GetDtk_LayerInfosSetPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -.
| Dtk_MeshPtr Dtk_Node::GetDtk_MeshPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.
| Dtk_MetaDataPtr Dtk_Node::GetDtk_MetaDataPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_MetaDataPtr - if exists -.
| Dtk_ModelDisplayPtr Dtk_Node::GetDtk_ModelDisplayPtr | ( | ) | 
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
| Dtk_NodeID Dtk_Node::GetEntityID | ( | ) | const | 
Retrieves the Dtk_Node EntityID - read only -.
      
  | 
  inherited | 
Retrieves Dtk_DocElement ith FatherID - read only -.
      
  | 
  inherited | 
Retrieves the Dtk_DocElement ID - read only -.
      
  | 
  inherited | 
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
      
  | 
  inherited | 
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
      
  | 
  inherited | 
Retrieves the ith Dtk_MetaDataPtr - read only -.
| inPos | Metadata index. | 
      
  | 
  inherited | 
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
| inPos | Group index. | 
| const Dtk_Node::FullType Dtk_Node::GetNodeFullType | ( | ) | const | 
| type_detk Dtk_Node::GetNodeSubType | ( | ) | const | 
Retrieves the Node SubType - if relevant - - read only -.
| NodeDataTypeEnum Dtk_Node::GetNodeType | ( | ) | const | 
Retrieves the Dtk_Node Node Type - read only -.
      
  | 
  inherited | 
Retrieves the number of the Dtk_DocElement children - read only -.
      
  | 
  inherited | 
GetNumFather.
      
  | 
  inherited | 
Retrieves the number of the Dtk_MetaDataPtr - read only -.
      
  | 
  inherited | 
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
      
  | 
  inherited | 
Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -.
      
  | 
  inherited | 
      
  | 
  virtualinherited | 
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
| Dtk_StoredInfoPtr Dtk_Node::GetStoredInfos | ( | ) | const | 
      
  | 
  inherited | 
      
  | 
  inherited | 
Retrieves the Dtk_DocElement Name - read only -.
      
  | 
  static | 
      
  | 
  static | 
| Dtk_bool Dtk_Node::NodeHasAxis | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body contains axis entity.
| Dtk_bool Dtk_Node::NodeHasCurves | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.
| Dtk_bool Dtk_Node::NodeHasMesh | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity.
| Dtk_bool Dtk_Node::NodeHasMeshSurfaces | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.
| Dtk_bool Dtk_Node::NodeHasPoints | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity.
| Dtk_bool Dtk_Node::NodeHasSolids | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body contains solid entity.
| Dtk_bool Dtk_Node::NodeHasSurfaces | ( | ) | const | 
Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity.
      
  | 
  inherited | 
| 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.
| inPos | Old Child Dtk_NodePtr element index. | 
| inNewChild | The Dtk_NodePtr replacing the old one | 
Internal use only
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
      
  | 
  inherited | 
| void Dtk_Node::SetStoredInfos | ( | const Dtk_StoredInfoPtr & | inInfos | ) | 
      
  | 
  protected | 
      
  | 
  protectedinherited |