DATAKIT SDK  V2026.4
dtk_maindoc.hpp
Go to the documentation of this file.
1 #ifndef __UTIL_DTK_DOCUMENT_HPP__
2 #define __UTIL_DTK_DOCUMENT_HPP__
3 
4 #include "def/define.h"
11 #include "util/dtk_maindoc_ptr.hpp"
13 #include "util/error_dtk.hpp"
15 #include "util/util_ent_dtk.hpp"
16 #include "util/util_ptr_dtk.hpp"
17 #include "util/util_stl_dtk.hpp"
19 #include <memory>
20 
21 class Dtk_mesh;
23 class Dtk_feat;
25 class Dtk_Kinematic;
27 
28 
30 {
31  V5ReaderModule = 0, // CatiaV5
32  VdaReaderModule = 1, // VdaFS
33  InvReaderModule = 2, // Inventor
34  V4ReaderModule = 3, // CatiaV4
35  UgReaderModule = 4, // Unigraphics NX
36  XmtReaderModule = 5, // Parasolid using parasolid kernel
37  SwReaderModule = 6, // Solidworks
38  SeReaderModule = 7, // Solidedge
39  IgesReaderModule = 8, // Iges
40  StepReaderModule = 9, // Step
41  PsReaderModule = 10, // Parasolid via datakit
42  ProeReaderModule = 11, // Pro/Engineer - Creo Parametric
43  SatReaderModule = 12, // Internal Use Only
44  JtReaderModule = 13, // Jt
45  CgrReaderModule = 14, // Cgr
46  CaddsReaderModule = 15, // Cadds
47  AcisReaderModule = 16, // Acis
48  ProCeraReaderModule = 17,// ProCera dental format
49  CerconReaderModule = 18, // Cercon dental format
50  CerecReaderModule = 19, // Cerec Sirona dental format
51  DcmReaderModule = 20, // Dcm 3Shape dental format
52  _3dXmlReaderModule = 21, // Internal Use Only
53  XmlReaderModule = 22, // Internal Use Only
54  V6ReaderModule = 23, // 3DEXPERIENCE CatiaV6
55  DxfReaderModule = 24, // Dxf
56  PlmXmlReaderModule = 25, // PlmXml
57  Lava3mReaderModule = 26, // Lava 3M dental format
58  U3dReaderModule = 27, // Internal Use Only
59  PdfReaderModule = 28, // Internal Use Only
60  RnXmlReaderModule = 29, // Internal Use Only
61  _3dmReaderModule = 30, // Rhino
62  DwgReaderModule = 31, // Dwg
63  ObjReaderModule = 32, // Obj
64  IfcReaderModule = 33, // Ifc
65  BRepOccReaderModule = 34,// Brep Open Cascade
66  RevitReaderModule = 35, // Revit
67  CreoviewReaderModule = 36,// Creo View
68  StlReaderModule = 37, // Stl
69  FbxReaderModule = 38, // Fbx
70  CgmReaderModule = 39, // Computer Graphics Metafile
71  SdnfReaderModule = 40, // Computer Graphics Metafile
72  ArtReaderModule = 41, // Art
73  SmgReaderModule = 42, // Smg
74  PrcReaderModule = 43, // Prc
75  F3dReaderModule = 44, // F3d
76  DstvReaderModule = 45, // DSTV
77  GltfReaderModule = 46, // Gltf
78  NavisReaderModule = 47, // Navis
79  QifReaderModule = 48, // QIF
80  DwgDtkReaderModule = 49, // Dwg via datakit
81  Zw3dReaderModule = 50, // Zw3d
82  UsdReaderModule = 51, // USD
83 
86 };
87 
90 
91 
92 class Dtk_MainDoc;
93 
94 
95 /////////////////////////////////////////////////////////////////////////////
96 //! \ingroup DtkAPIGroup
97 //! \class Dtk_DocElement
98 //! \brief This is the Main Doc Element Class
99 //! The Dtk_DocElement object is common parent class of the Dtk_Node and the Dtk_Component classes
100 //! It typically used as geometry into a Part.
101 //! \SmartPtr{Dtk_DocElementPtr}
103 {
104 protected:
105 
107  struct Dtk_Handle; // Not defined here
108  std::unique_ptr<Dtk_Handle> _Private; // Handle
109 protected:
110 
111  //! \internal
112  Dtk_DocElement(const Dtk_ID& inID, Dtk_string inName);
113 
114  //! \BaseDestructor
115  virtual ~Dtk_DocElement();
116 
117 
118  //! \brief Adds a child Dtk_DocElement to main Element.
119  //! \param inChild The Dtk_DocElement to be added as a child.
120  void _AddChild(const Dtk_DocElementPtr& inChild);
121 
122  //! \brief Retrieves the ith Dtk_DocElement - read only -
123  //! \param inPos Child element index.
124  //! \return the inPos'th Dtk_DocElement
125  const Dtk_DocElementPtr _GetChild(const Dtk_Size_t& inPos) const;
126 
127  //! \brief Replaces a child by another one. Also update father lists.
128  //! \param inPos Old Child element index.
129  //! \param inNewChild The Dtk_DocElement replacing the old one
130  //! \DtkInternal
131  //! \return the DtkNoerrror if success.
132  //! \return the dtkErrorOutOfRange if bad inPos parameter.
133  //! \return the dtkErrorNullPointer if inNewChild is NULL.
134  Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t& inPos, const Dtk_DocElementPtr& inNewChild);
135 
136  friend class Dtk_SmartPtr<Dtk_DocElement>;
137  friend class Dtk_MainDoc;
138 
139 public:
140  //! \DtkDynamicType
141  Dtk_Int32 DtkDynamicType(const int& inId);
142 
143  //! \DtkDynamicCast
145 
146  //! \brief Retrieves the number of the Dtk_DocElement children - read only -
147  //! \return The Children number.
149 
150  //! \brief Retrieves the Dtk_DocElement Name - read only -
151  //! \return The Element Name.
152  const Dtk_string& Name() const;
154 
155  //! \brief Retrieves the Dtk_DocElement ID - read only -
156  //! \return The element ID.
157  Dtk_ID GetID() const;
158 
159  //! \brief Retrieves Dtk_DocElement ith FatherID - read only -
160  //! \return The ith FatherID.
162 
163  //! \brief GetNumFather
164  //! \return Number of fathers
166 
167  void GetReadID(Dtk_ID& outReadID) const;
168  void SetReadID(const Dtk_ID & inNewID);
169 
170 
171  //! \brief Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -
172  //! \return The element Dtk_InfoPtr.
174  void SetInfos(const Dtk_InfoPtr& inInfos);
175 
176 
177  //! \brief Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -
178  //! \return The element Dtk_MaterialPtrif if exists
179  //!\deprecated use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead
180  SetAsDeprecated( "2026.3", "use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead." )
181  Dtk_MaterialPtr GetMaterial() const;
182  //!\deprecated use GetInfos()->AddRenderInfos and GetInfos()->AddMaterialInfos methods instead
183  SetAsDeprecated( "2026.3", "use GetInfos()->AddRenderInfos and GetInfos()->AddMaterialInfos methods instead." )
184  void SetMaterial(Dtk_MaterialPtr inMaterial);
185 
186 
187  //! \brief Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -
188  //! \return The element Dtk_PreviewPtr if exists.
190  void SetPreview(Dtk_PreviewPtr inPreview);
192 
193 
194  //! \brief Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
195  //! \param inMetaData The Dtk_MetaDataPtr to be added.
196  void AddMetaData(const Dtk_MetaDataPtr& inMetaData);
197 
198  //! \brief Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.
199  //! \param inMetaDataGroup The Dtk_MetaDataGroupPtr to be added.
200  //! \param inAddMetadata If we also add the metadata of the group to the Dtk_DocElement
201  void AddMetaDataGroup(const Dtk_MetaDataGroupPtr& inMetaDataGroup, Dtk_bool inAddMetadata = DTK_FALSE);
202 
203  //! \brief Adds a Dtk_PropertiesPtr to the Dtk_DocElement.
204  //! \param inProperty The Dtk_PropertiesPtr to be added.
205  void AddProperty(const Dtk_PropertiesPtr & inProperty);
206 
207  //! \brief Retrieves the ith Dtk_MetaDataPtr - read only -
208  //! \param inPos Metadata index.
209  //! \return the inPos'th Dtk_MetaDataPtr
211 
212  //! \brief Retrieves the ith Dtk_MetaDataGrouplPtr - read only -
213  //! \param inPos Group index.
214  //! \return the inPos'th Dtk_MetaDataGrouplPtr
216 
217  //! \brief Retrieves the number of the Dtk_MetaDataPtr - read only -
218  //! \return The Metadata number.
220 
221  //! \brief Retrieves the number of the Dtk_MetaDataGroupPtr - read only -
222  //! \return The Group number.
224 };
225 
226 /////////////////////////////////////////////////////////////////////////////
227 //! \ingroup DtkAPIGroup
228 //! \class Dtk_Node
229 //! \brief This is the Node Class
230 //! \brief The Dtk_Node is used to retrieve information from a Dtk_Component.
231 //! \details It is typically used as geometry into a Part.
232 //! \SmartPtr{Dtk_NodePtr}
233 class Dtk_Node : public Dtk_DocElement
234 {
235 public:
236 
238  {
239  UnknownType = 0,
240  HasPoints = 1,
241  HasCurves = 2,
242  HasSurfaces = 4,
243  HasSolids = 8,
244  HasAxis = 16,
245  HasMesh = 32,
246  HasMeshSurfaces = 64
247  };
248 
250  {
251  NullType = 0,
252  BodyType, // for 3D
253  MeshType, // for 3D Tesselated
254  AnnotationSetType, // for FdtAnnotationSet -- Obsolete
255  FdtType, // for Fdt
256  DrawingType, // for 2D
257  KinematicsType, // Kinematics
258  AxisSystemType, // AxisPlacement
259  LayerInfosSetType, // LayerInfosSet
260  ColorInfosSetType, // ColorInfosSet
261  MetaDataType, // MetaData
262  ModelDisplayType, // Model Display
263  CameraType, // Camera
264  VirtualType, // just for containing children
265  ConstraintType, // ConstraintType
266  MaxNodeDataType
267  };
268  //! \ingroup DtkAPIGroup
269  //! \class Dtk_Node::FullType
270  //! \brief This is the Node FullType Class
271  //! The Dtk_Node::FullType object is used to retrieve the full informations about Dtk_Node Type - Primary and SubType -
272  class FullType
273  {
274  public:
275  friend class Dtk_Node;
276  private:
277  //! \brief Primary Node Type
278  NodeDataTypeEnum _PrimaryType;
279  //! \brief SubType - if relevant -
280  type_detk _SubType;
281  public:
282  FullType( const NodeDataTypeEnum inPrimaryType, const type_detk inSubType ) : _PrimaryType(inPrimaryType), _SubType(inSubType) {}
284  FullType() : _PrimaryType(NullType), _SubType(DTK_TYPE_UNKNOWN) {}
285  inline NodeDataTypeEnum PrimaryType() const {return _PrimaryType;}
286  inline type_detk SubType() const {return _SubType;}
287  };
288 
289 
291  {
292  switch( inEnum )
293  {
294  case NullType: return L"NullType";
295  case BodyType: return L"BodyType";
296  case MeshType: return L"MeshType";
297  case AnnotationSetType: return L"AnnotationSetType";
298  case FdtType: return L"FdtType";
299  case DrawingType: return L"DrawingType";
300  case KinematicsType: return L"KinematicsType";
301  case AxisSystemType: return L"AxisSystemType";
302  case LayerInfosSetType: return L"LayerInfosSetType";
303  case ColorInfosSetType: return L"ColorInfosSetType";
304  case MetaDataType: return L"MetaDataType";
305  case VirtualType: return L"VirtualType";
306  case ModelDisplayType : return L"ModelDisplayType";
307  case CameraType : return L"CameraType";
308  case ConstraintType: return L"Constraint";
309  default: return L"Unknown";
310  }
311  }
312 
314  {
315  if( type == L"NullType" )
316  return NullType;
317  else if( type == L"BodyType" )
318  return BodyType;
319  else if( type == L"MeshType" )
320  return MeshType;
321  else if( type == L"AnnotationSetType" )
322  return AnnotationSetType;
323  else if( type == L"FdtType" )
324  return FdtType;
325  else if( type == L"DrawingType" )
326  return DrawingType;
327  else if( type == L"KinematicsType" )
328  return KinematicsType;
329  else if( type == L"AxisSystemType" )
330  return AxisSystemType;
331  else if (type == L"LayerInfosSetType")
332  return LayerInfosSetType;
333  else if (type == L"ColorInfosSetType")
334  return ColorInfosSetType;
335  else if( type == L"MetaDataType" )
336  return MetaDataType;
337  else if( type == L"VirtualType" )
338  return VirtualType;
339  else if (type == L"ModelDisplayType")
340  return ModelDisplayType;
341  else if (type == L"CameraType")
342  return CameraType;
343  else if (type == L"ConstraintType")
344  return ConstraintType;
345  else return -1;
346  }
347 
348 protected:
349 
350  enum { _typeID = DTK_TYPE_NODE };
351  struct Dtk_Handle; // Not defined here
352  std::unique_ptr<Dtk_Handle> _Private; // Handle
353  friend class Dtk_Component;
354 private:
355  //! \sa Dtk_Component::CreateVirtualNode( const Dtk_string& )
356  //! \sa Dtk_Component::CreateMeshNode(const Dtk_string&, const Dtk_ID&);
357  //! \sa Dtk_Component::CreateBodyNode(const Dtk_string&, const Dtk_ID&);
358  //! \sa Dtk_Component::CreateKinematicsNode(const Dtk_string&, const Dtk_KinematicsPtr&);
359  //! \sa Dtk_Component::CreateDrawingNode(const Dtk_string&, const Dtk_DrawingPtr&);
360  Dtk_Node(const Dtk_NodeID& inID,
361  const Dtk_ComponentID inOwningComponentId,
362  Dtk_string inName, const NodeDataTypeEnum& inDataNodeType, const Dtk_ID inEntityID, const Dtk_Int32 inBodyFlag = UnknownType, const type_detk inSubType = DTK_TYPE_NO_SUBTYPE);
363 
364  Dtk_Node( const Dtk_Node& ) = delete;
365  Dtk_Node& operator=( const Dtk_Node& ) = delete;
366  Dtk_Node( Dtk_Node&& ) = delete;
367  Dtk_Node& operator=( Dtk_Node&& ) = delete;
368  //! \BaseDestructor
370 
371  friend class Dtk_SmartPtr<Dtk_Node>;
372 
373 public:
374  //! \DtkDynamicType
375  Dtk_Int32 DtkDynamicType(const int& inId);
376 
377  //! \DtkDynamicCast
379 
380  //! \brief Adds a child Dtk_Node to main Node.
381  //! \param inChild The Dtk_Node to be added as a child.
382  inline void AddChild(const Dtk_NodePtr& inChild)
384 
385  //! \brief Retrieves the ith Dtk_Node - read only -
386  //! \param inPos Child node index.
387  //! \return the inPos'th Dtk_Node
388  inline const Dtk_NodePtr GetChild(const Dtk_Size_t& inPos) const
389  { return Dtk_NodePtr::DtkDynamicCast( _GetChild(inPos) ); }
390 
391  //! \brief Replaces a child Dtk_NodePtr by another one. Also updates father lists.
392  //! \param inPos Old Child Dtk_NodePtr element index.
393  //! \param inNewChild The Dtk_NodePtr replacing the old one
394  //! \DtkInternal
395  //! \return the DtkNoerrror if success.
396  //! \return the dtkErrorOutOfRange if bad inPos parameter.
397  //! \return the dtkErrorNullPointer if inNewChild is NULL.
398  inline Dtk_ErrorStatus ReplaceChildNode(const Dtk_Size_t& inPos, const Dtk_NodePtr& inNewChild)
399  { return _ReplaceChild( inPos, Dtk_DocElementPtr::DtkDynamicCast(inNewChild) ); }
400 
401  //! \brief Retrieves the Dtk_Node Node Type - read only -
402  //! \return The Node Type.
403  //! \deprecated
404  //! \sa Dtk_Node::GetNodeFullType()
405  //SetAsDeprecated("Undefined", "Use GetNodeFullType")
407 
408  //! \brief Retrieves the Node SubType - if relevant - - read only -
409  //! \return The Node SubType.
410  //! \deprecated
411  //! \sa Dtk_Node::GetNodeFullType()
412  //SetAsDeprecated("Undefined", "Use GetNodeFullType")
414 
415  //! \brief Retrieves the Node FullType - Primary ans Sub Type - - read only -
416  //! \return The Node FullType.
418 
419  //! \brief Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity
421  //! \brief Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity
423  //! \brief Return DTK_TRUE if Dtk_Node Type Body contains solid entity
425  //! \brief Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity
427  //! \brief Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity
429  //! \brief Return DTK_TRUE if Dtk_Node Type Body contains axis entity
431  //! \brief Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity
433 
434 
435  //! \brief Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -
436  //! \return The Dtk_Node as a Dtk_BodyPtr if exists. Null Dtk_BodyPtr else.
437  //! \remark This method is used to retrieve the body
438  //! informations - if GetNodeType() method returns BodyType -.
440 
441  //! \brief Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -
442  //! \return The Dtk_Node as a Dtk_meshPtr if exists. Null Dtk_meshPtr else.
443  //! \remark This method is used to retrieve the mesh
444  //! informations - if GetNodeType() method returns MeshType -.
446 
447  //! \brief Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -
448  //! \return The Dtk_Node as a Dtk_FeaturePtr if exists. Null Dtk_FeaturePtr else.
449  //! \remark This method is used to retrieve the feature
450  //! informations - if GetNodeType() method returns Virtual Type or Body Type-.
452  //! \brief Retrieves the Dtk_Node as a Dtk_AdvancedFeaturePtr - if exists - Internal Use !!!
453  //! \return The Dtk_Node as a Dtk_FeaturePtr if exists. Null Dtk_FeaturePtr else.
454  //! \remark
456 
457 
458  //! \brief Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -
459  //! \return The Dtk_Node as a Dtk_FdtPtr if exists. Null Dtk_FdtPtr else.
460  //! \remark This method is used to retrieve the FDT
461  //! informations - if GetNodeType() method returns FdtType -.
463 
464 
465  //! \brief Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -
466  //! \return The Dtk_Node as a Dtk_KinematicsPtr if exists. Null Dtk_KinematicPtr else.
467  //! \remark This method is used to retrieve the Kinematics
468  //! informations - if GetNodeType() method returns KinematicsType -.
470 
471  //! \brief Retrieves the Dtk_Node as a Dtk_MetaDataPtr - if exists -
472  //! \return The Dtk_Node as a MetaDataPtr if exists. Null MetaDataPtr else.
473  //! \remark This method is used to retrieve the MetaData
474  //! informations - if GetNodeType() method returns MetaDataType -.
476 
477  //! \brief Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -
478  //! \return The Dtk_Node as a Dtk_DrawingPtr if exists. Null Dtk_DrawingPtr else.
479  //! \remark This method is used to retrieve the drawing
480  //! informations - if GetNodeType() method returns DrawingType -.
482 
483  //! \brief Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -
484  //! \return The Dtk_Node as a Dtk_AxisSystemPtr if exists. Null Dtk_AxisSystemPtr else.
485  //! \remark This method is used to retrieve the axis placement
486  //! informations - if GetNodeType() method returns AxisSystemType -.
488 
489  //! \brief Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -
490  //! \return The Dtk_Node as a Dtk_LayerInfosSetPtr if exists. Null Dtk_LayerInfosSetPtr else.
491  //! \remark This method is used to retrieve the layer infos set
492  //! informations - if GetNodeType() method returns LayerInfosSetType -.
494 
495  //! \brief Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -
496  //! \return The Dtk_Node as a Dtk_ColorInfosSetPtr if exists. Null Dtk_ColorInfosSetPtr else.
497  //! \remark This method is used to retrieve the color infos set
498  //! informations - if GetNodeType() method returns ColorInfosSetType -.
500 
501  //! \brief Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -
502  //! \return The Dtk_Node as a Dtk_ModelDisplayPtr if exists. Null Dtk_ModelDisplayPtr else.
503  //! \remark This method is used to retrieve the display model entity (camera capture)
504  //! informations - if GetNodeType() method returns ModelDisplayType -.
506 
507  //! \brief Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -
508  //! \return The Dtk_Node as a Dtk_CameraPtr if exists. Null Dtk_CameraPtr else.
509  //! \remark This method is used to retrieve the camera entity
510  //! informations - if GetNodeType() method returns CameraType -.
512 
513  //! \brief Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -
514  //! \return The Dtk_Node as a Dtk_ConstraintPtr if exists. Null Dtk_ConstraintPtr else.
515  //! \remark This method is used to retrieve the Constraint entity
516  //! informations - if GetNodeType() method returns ConstraintType -.
518 
519  //! \brief Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -
520  //! \return The Dtk_Node as a Dtk_Kinematic if exists. Null Dtk_Kinematics else.
521  //! \remark This method is used to retrieve the kinematic info
522  //! informations - if GetNodeType() method returns KinematicFilterType -.
523  //Dtk_KinematicsPtr GetDtk_KinematicPtr();
524 
525  //! \brief Adds associated entity - Dtk_NodeConnectorPtr - to the Dtk_Node.
526  //! \return DtkNoError if success.
527  //! \param inAssociatedEntity AssociatedEntity to be added.
528  void AddAssociatedEntity ( const Dtk_NodeConnectorPtr& inAssociatedEntity );
529 
530  //! \brief Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node.
531  //! \return DtkNoError if success.
532  //! \param inAssociatedEntities AssociatedEntities to be added.
533  void AddAssociatedEntities ( const Dtk_tab< Dtk_NodeConnectorPtr >& inAssociatedEntities );
534 
535  //! \brief Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr.
536  //! \return DtkNoError if success.
537  //! \param outAssociatedEntities The associatedEntities to be retrieved.
539 
540  //Internal Use
542  void SetStoredInfos(const Dtk_StoredInfoPtr& inInfos);
543 
544  //! \brief Retrieves the Dtk_Node EntityID - read only -
545  //! \return The Entity ID of Node.
547 };
548 /////////////////////////////////////////////////////////////////////////////
549 
550 /////////////////////////////////////////////////////////////////////////////
551 //! \ingroup DtkAPIGroup
552 //! \class Dtk_Component
553 //! \brief This is the Component Class.\n
554 //! The Dtk_ComponentPtr object is used as element into an assembly tree.\n
555 //! Is typically used as a Part into an Assembly Tree.\n
556 //! \SmartPtr{Dtk_ComponentPtr}
558 {
559 public:
561  {
562  ComponentMissing = 0x1,
563  ComponentFound = 0x2,
564  ComponentInternal = 0x4,
565  ComponentPhantom = 0x8,
566  ComponentAdditionnalReference = 0x10,
567  ComponentAssemblyGeometry = 0x20,
568  ComponentWithUnavailableReader = 0x40,
569  ComponentNotRequired = 0x80
570  };
572  {
573  InstanceComponentType = 0,
576  VirtualComponentType
577 
578  };
579 
581  {
582  switch( inEnum )
583  {
584  case ComponentMissing: return L"ComponentMissing";
585  case ComponentFound: return L"ComponentFound";
586  case ComponentInternal: return L"ComponentInternal";
587  case ComponentPhantom: return L"ComponentPhantom";
588  case ComponentAdditionnalReference: return L"ComponentAdditionnalReference";
589  case ComponentAssemblyGeometry: return L"ComponentAssemblyGeometry";
590  case ComponentWithUnavailableReader: return L"ComponentWithUnavailableReader";
591  case ComponentNotRequired: return L"ComponentNotRequired";
592  default: return L"Unknown";
593  }
594  }
595 
597  {
598  switch( inEnum )
599  {
600  case CatalogComponentType: return L"CatalogComponentType";
601  case VirtualComponentType: return L"VirtualComponentType";
602  case InstanceComponentType: return L"InstanceComponentType";
603  case PrototypeComponentType: return L"PrototypeComponentType";
604 
605  default: return L"Unknown";
606  }
607  }
608 
610  {
611  Dtk_Int32 result = -1;
612 
613  if( name.len() > 0 )
614  {
615  if( name == L"CatalogComponentType" )
616  result = CatalogComponentType;
617  else if( name == L"VirtualComponentType" )
618  result = VirtualComponentType;
619  else if( name == L"InstanceComponentType" )
620  result = InstanceComponentType;
621  else if( name == L"PrototypeComponentType" )
622  result = PrototypeComponentType;
623  }
624 
625  return result;
626  }
627 
628 protected:
630  struct Dtk_Handle; // Not defined here
631  std::unique_ptr<Dtk_Handle> _Private; // Handle
632  friend class Dtk_MainDoc;
633  friend class Dtk_API;
636 private:
637  //! \sa Dtk_MainDoc::CreatePhysicalDtk_Component()
638  //! \sa Dtk_MainDoc::CreateVirtualDtk_Component()
639  Dtk_Component( const Dtk_ComponentID& inID,
640  const ComponentTypeEnum& inComponentType,
641  const ComponentAvailabilityEnum& inComponentAvailability,
642  const Dtk_Int32& inAdditionnalReferenceFlag,
643  Dtk_string inComponentName,
644  Dtk_string inComponentFullPath,
645  Dtk_string inComponentInstanceName,
646  const Dtk_transfo& inTransformationMatrix,
647  const DtkReaderType& inAssociatedModule,
648  Dtk_string inComponentOriginalName);
649 
650  //! \BaseDestructor
652  friend class Dtk_SmartPtr<Dtk_Component>;
653 
654  void _CheckGlobalDataSet();
655  void _CheckFdtDataSet();
656 public:
657 
658  //! \DtkDynamicType
659  Dtk_Int32 DtkDynamicType(const int& inId);
660 
661  //! \DtkDynamicCast
663 
664  //InternalUse
667 
668 
669  //! \brief Adds a child Dtk_Component to main Component.
670  //! \param inChild The Dtk_Component to be added as a child.
671  inline void AddChild(const Dtk_ComponentPtr& inChild)
673 
674  //! \brief Retrieves the ith Dtk_ComponentPtr - read only -
675  //! \param inPos Child component index.
676  //! \return the inPos'th Dtk_ComponentPtr
677  inline const Dtk_ComponentPtr GetChild(const Dtk_Size_t& inPos) const
678  { return Dtk_ComponentPtr::DtkDynamicCast( _GetChild(inPos) ); }
679 
680  //! \brief Replaces a child Dtk_ComponentPtr by another one. Also updates father lists.
681  //! \param inPos Old Child Dtk_ComponentPtr element index.
682  //! \param inNewChild The Dtk_ComponentPtr replacing the old one
683  //! \DtkInternal
684  //! \return the DtkNoerrror if success.
685  //! \return the dtkErrorOutOfRange if bad inPos parameter.
686  //! \return the dtkErrorNullPointer if inNewChild is NULL.
687  inline Dtk_ErrorStatus ReplaceChildComponent(const Dtk_Size_t& inPos, const Dtk_ComponentPtr& inNewChild)
688  { return _ReplaceChild( inPos, Dtk_DocElementPtr::DtkDynamicCast(inNewChild) ); }
689 
690  //! \brief Retrieves the Dtk_Component Type - read only -
691  //! \return The component Type.
693 
694  //! \brief Gives Dtk_Component availability - read only -
695  //! \deprecated "Use Use Dtk_Component::IsAvailabilityFlaggedAs method instead.")
696  //! \return The component availability.
697  SetAsDeprecated( "2026.3", "Use Dtk_Component::IsAvailabilityFlaggedAs method instead." )
698  const ComponentAvailabilityEnum ComponentAvailability() const;
699 
700  //! \brief Check Dtk_Component availability - read only -
701  //! Each Dtk_Component can have several status (ex : AdditionnalReference and Missing)
702  //! \return DTK_TRUE if inStatusToCheck is activated on this component.
703  bool IsAvailabilityFlaggedAs( Dtk_Component::ComponentAvailabilityEnum inStatusToCheck ) const;
704 
705 
706  //! \brief Retrieves the Dtk_Component FullPathName - read only -
707  //! \return The component FullPathName.
708  const Dtk_string& FullPathName() const;
709 
710  //! \brief Retrieves the Dtk_Component OriginalPathName (read in file) - read only -
711  //! \return The component OriginalPathName.
712  const Dtk_string& OriginalPathName() const;
713 
714  //! \brief Retrieves the Dtk_Component TransformationMatrix - read only -
715  //! \return The component TransformationMatrix.
716  const Dtk_transfo& TransformationMatrix() const;
717 
718  //! \brief Retrieves the Dtk_Component InstanceName - read only -
719  //! \return The component InstanceName.
720  const Dtk_string& InstanceName() const;
721 
722  //! \brief Retrieves the Dtk_Component AssociatedModuleType - read only -
723  //! \return The component AssociatedModuleType.
724  const DtkReaderType& GetAssociatedModuleType() const;
725 
726  //! \brief Returns DTK_TRUE if Dtk_Component is an assembly.
727  Dtk_bool IsAssembly() const;
728 
729  //! \brief Returns DTK_TRUE if Dtk_Component is Additionnal Reference.
730  Dtk_bool IsAdditionnalReference() const;
731 
732  //! \brief Returns Default Child Index or -1 if Component isn't a catalog
733  Dtk_Int32 GetDefaultChildInCatalog() const;
734 
735  //! \brief Returns Activated Children Index or empty array if Component isn't a catalog
736  Dtk_tab<Dtk_Int32> GetActivatedChildrenInCatalog() const;
737 
738  //! \brief Creates a Virtual Dtk_NodePtr
739  //! \param inName Node name.
740  //! \return the constructed Dtk_NodePtr.
741  Dtk_NodePtr CreateVirtualNode( Dtk_string inName, const type_detk inSubType = DTK_TYPE_NO_SUBTYPE );
742 
743  //! \brief Creates a Body Dtk_NodePtr from a body ID.
744  //! \param inName Node name.
745  //! \param inBodyID Body Id.
746  //! \param inBodyFlag Body Info : Wire,Solid, MeshSurface and/or Surface.
747  //! \return the constructed Dtk_NodePtr.
748  Dtk_NodePtr CreateBodyNode( Dtk_string inName, const Dtk_ID& inBodyID, const Dtk_Int32 inBodyFlag , const type_detk inSubType = DTK_TYPE_BODY);
749 
750  //! \brief Creates a Mesh Dtk_NodePtr from a Mesh ID.
751  //! \param inName Node name.
752  //! \param inMeshID Mesh Id.
753  //! \return the constructed Dtk_NodePtr.
754  Dtk_NodePtr CreateMeshNode(
755  Dtk_string inName,
756  const Dtk_ID& inMeshID,
757  const Dtk_Int32 inMeshFlag,
758  const type_detk inSubType = DTK_TYPE_MESH );
759 
760  //! \brief Creates a Fdt Dtk_NodePtr from a Dtk_FdtPtr ID.
761  //! \param inName Node name.
762  //! \param inFdtID Dtk_FdtPtr ID.
763  //! \return the constructed Dtk_NodePtr.
764  Dtk_NodePtr CreateFdtNode(
765  Dtk_string inName,
766  const Dtk_ID& inFdtID, const type_detk inSubType = DTK_TYPE_FDT);
767 
768  //! \brief Creates a Kinematic Dtk_NodePtr from a Dtk_KinematicPtr.
769  //! \param inName Node name.
770  //! \param inKinematicData Dtk_KinematicPtr data.
771  //! \return the constructed Dtk_NodePtr.
772  Dtk_NodePtr CreateKinematicsNode(
773  Dtk_string inName,
774  const Dtk_ID& inKinematicID);
775 
776  //! \brief Creates a Drawing Dtk_NodePtr from a Dtk_DrawingPtr.
777  //! \param inName Node name.
778  //! \param inDrawingID Dtk_DrawingPtr ID.
779  //! \return the constructed Dtk_NodePtr.
780  Dtk_NodePtr CreateDrawingNode( Dtk_string inName, const Dtk_ID& inDrawingID);
781 
782  //! \brief Creates a MetaData Dtk_NodePtr from a Dtk_MetaDataPtr.
783  //! \param inName Node name.
784  //! \param inMetaDataID Dtk_MetaDataPtr ID.
785  //! \return the constructed Dtk_NodePtr.
786  Dtk_NodePtr CreateMetaDataNode( Dtk_string inName, const Dtk_ID& inMetaDataID, const type_detk inSubType = DTK_TYPE_METADATA);
787 
788  //! \brief Creates a Constraint Dtk_NodePtr from a Dtk_ConstraintPtr.
789  //! \param inName Node name.
790  //! \param inConstraintID Dtk_ConstraintPtr ID.
791  //! \return the constructed Dtk_NodePtr.
792  Dtk_NodePtr CreateConstraintNode( Dtk_string inName, const Dtk_ID& inConstraintID, const type_detk inSubType = DTK_TYPE_CONSTRAINT);
793 
794  //! \brief Creates a AxisSystem Dtk_NodePtr from a AxisSystemPtr.
795  //! \param inName Node name.
796  //! \param inAxisSystemID AxisPlacementPtr ID.
797  //! \return the constructed Dtk_NodePtr.
798  Dtk_NodePtr CreateAxisSystemNode( Dtk_string inName, const Dtk_ID& inAxisSystemID, const type_detk inSubType = DTK_TYPE_AXIS_SYSTEM);
799 
800  //! \brief Creates a LayerInfosSet Dtk_NodePtr from a LayerInfosSetPtr.
801  //! \param inName Node name.
802  //! \param inLayerInfosSetID LayerInfosSetPtr ID.
803  //! \return the constructed Dtk_NodePtr.
804  Dtk_NodePtr CreateLayerInfosSetNode( Dtk_string inName, const Dtk_ID& inLayerInfosSetID);
805 
806  //! \brief Creates a ColorInfosSet Dtk_NodePtr from a ColorInfosSetPtr.
807  //! \param inName Node name.
808  //! \param inColorInfosSetID ColorInfosSetPtr ID.
809  //! \return the constructed Dtk_NodePtr.
810  Dtk_NodePtr CreateColorInfosSetNode( Dtk_string inName, const Dtk_ID& inColorInfosSetID);
811 
812  //! \brief Creates a ModelDisplay Dtk_NodePtr from a DisplayModel.
813  //! \param inName Node name.
814  //! \param inModelDisplayID DisplayModel ID.
815  //! \return the constructed Dtk_NodePtr.
816  Dtk_NodePtr CreateModelDisplayNode( Dtk_string inName, const Dtk_ID& inDisplayModelID, const type_detk inSubType = DTK_TYPE_NO_SUBTYPE );
817 
818  //! \brief Creates a Camera Dtk_NodePtr from a Camera.
819  //! \param inName Node name.
820  //! \param inCameraID Camera ID.
821  //! \return the constructed Dtk_NodePtr.
822  Dtk_NodePtr CreateCameraNode( Dtk_string inName, const Dtk_ID& inCameraID);
823 
824  //! \brief Retrieves a Dtk_NodePtr from the Dtk_Component NodesPool giving his Id.
825  //! \param inNodeID Wanted Dtk_NodePtr Id.
826  //! \return The wanted Dtk_NodePtr.
827  Dtk_NodePtr GetNodeByID( const Dtk_NodeID& inNodeID ) const;
828 
829  //! \brief Retrieves the father Dtk_NodePtr of the given Dtk_NodePtr.
830  //! \param inNode The Dtk_NodePtr from which we want the father.
831  //! \return The wanted Dtk_NodePtr.
832  Dtk_NodePtr GetFatherNode(const Dtk_NodePtr& inNode) const;
833 
834  //! \brief Get the Original Units for documents - geometrical data are given in MM (Scale to MM)
835  //! \param [out] outUnitScale : Unit Scale (1.0 for MM)
836  //! \return dtkNoError if unit is correctly read.
837  //! \return dtkWarningDefaultValue if unit was not read and default value is used (1.0).
838  //! \return dtkErrorFileNotExist if the component is flagged as missing (file not found).
839  Dtk_ErrorStatus GetConceptionUnitScale(Dtk_Double64 &outUnitScale)const;
840 
841  void SetConceptionUnitScale(Dtk_Double64 inUnitScale);
842 
843  //! \brief Gets File Version
844  const Dtk_string & GetFileVersion()const;
845  void SetFileVersion(const Dtk_string & inFileVersion);
846 
847  //! \brief Current layer for Component
848  SetAsDeprecated( "2026.2", "Use Dtk_LayerInfoSet::GetCurrentLayer instead")
849  Dtk_Int32 GetCurrentLayer() const;
850  SetAsDeprecated( "2026.2", "Use Dtk_LayerInfoSet::SetCurrentLayer instead")
851  void SetCurrentLayer(Dtk_Int32 inCurrentLayer);
852 
853  //! \brief Visible layer for Component
854  SetAsDeprecated( "2026.2", "Use GetLayerInfosSet() then Dtk_LayerInfosSet::GetLayersFlaggedAs( Dtk_LayerInfosSet::Layer::Status::Visible ) instead")
855  void GetVisibleLayers(Dtk_tab<Dtk_Int32> &outVisibleLayers)const;
856  SetAsDeprecated( "2026.2", "Use Dtk_LayerInfosSet::AddLayer instead" )
857  void SetVisibleLayers(const Dtk_tab<Dtk_Int32> & inVisibleLayers);
858 
859  //! \brief Selectable layer for Component
860  SetAsDeprecated( "2026.2", "Use GetLayerInfosSet() then Dtk_LayerInfosSet::GetLayersFlaggedAs( Dtk_LayerInfosSet::Layer::Status::Selectable ) instead")
861  void GetSelectableLayers(Dtk_tab<Dtk_Int32> &outSelectableLayers)const;
862  SetAsDeprecated( "2026.2", "Use Dtk_LayerInfosSet::AddLayer instead" )
863  void SetSelectableLayers(const Dtk_tab<Dtk_Int32> & inSelectableLayers);
864 
865  //! \brief Retrieves the Dtk_LayerInfosSet of this component
866  //! \remark Dtk_API::ReadComponent has to be called for the layer set to be available.
867  //! \return The Dtk_LayerInfosSet of this component.
868  Dtk_LayerInfosSetPtr GetLayerInfosSet() const;
869 
870  //! \brief SiblingName for Component
871  DtkErrorStatus GetSiblingName(Dtk_string &outSiblingName)const;
872  DtkErrorStatus SetSiblingName(const Dtk_string & inSiblingName);
873 
874 
875  //! \brief Gives number of Nodes in the Component (useful if you want to handle progress bar).
876  //! \return number of Nodes.
877  Dtk_Size_t GetNumNodes() const;
878 
879  //! \brief Attaches SelectionDataSet infos to the Dtk_Component - through the Dtk_GlobalDataSetPtr -.
880  void SetSelectionDataSet( const Dtk_SelectionDataSetPtr& inSelectionDataSet);
881 
882  //! \brief Retrieves the Dtk_GlobalDataSetPtr attached to the Dtk_Component - get only -.
883  //! \return The attached Dtk_GlobalDataSetPtr - can be null -
884  const Dtk_GlobalDataSetPtr GetGlobalDataSet() const;
885 
886 
887  //! \brief Retrieves the connectors pointing on this component.
888  //! \return The pointing connectors.
889  Dtk_ErrorStatus GetConnectorsPointingToThisComponent(Dtk_tab<Dtk_NodeConnectorPtr> &outConnectedEntities);
890 
891  //! \brief Devalidates Component into MainDoc.
892  //! \param inNodeID The NodeID to devalidate.
893  //! \return DtkNoError if success.
894  //! \remark Internal Use only.
895  Dtk_ErrorStatus DevalidateNode( const Dtk_NodeID& inNodeID );
896 
897  //! \brief Gets BoundingBox on Prototype Component if it can be read in original file
898  //! \param [out] outMin Resulting minimum coordinates
899  //! \param [out] outMax Resulting maximum coordinates
900  //! \return DtkNoError if success.
901  Dtk_ErrorStatus GetBoundingBox( Dtk_pnt& outMin, Dtk_pnt& outMax ) const;
902 
903  //! \brief Adds Override set to a prototype component
904  //! \return dtkNoError if ok.
905  DtkErrorStatus AddOverrideSet(const Dtk_OverrideSetPtr& inOverrideSet);
906 
907  //! \brief Gives number of Override sets in a prototype component
908  //! \return Override sets.
909  Dtk_Size_t GetNumOverrideSets() const;
910 
911  //! \brief Gives array of Override sets in a prototype component
912  //! \return dtkNoError if ok.
913  DtkErrorStatus GetOverrideSets(Dtk_tab<Dtk_OverrideSetPtr>& outOverrideSet) const;
914 
915  //! \brief Sets array of Override sets in a prototype component
916  //! \return dtkNoError if ok.
917  DtkErrorStatus SetOverrideSets(const Dtk_tab<Dtk_OverrideSetPtr>& inOverrideSets);
918 };
919 /////////////////////////////////////////////////////////////////////////////
920 
921 /////////////////////////////////////////////////////////////////////////////
922 //! \ingroup DtkAPIGroup
923 //! \class Dtk_MainDoc
924 //! \brief This is the Document Class.\n
925 //! The Dtk_MainDocPtr object is used as root element produced by a translation.\n
926 //! It contains the root Dtk_ComponentPtr.
927 //! \SmartPtr{Dtk_MainDocPtr}
928 class Dtk_MainDoc : public Dtk_Object
929 {
930  friend class Dtk_MainDocWrapper;
931 public:
932  struct Dtk_Handle; // Not defined here
933 protected:
935  std::unique_ptr<Dtk_Handle> _Private; // Handle
936  friend class Dtk_API;
939 private:
940  //! \sa Create
941  Dtk_MainDoc();
942  //! \BaseDestructor
943  ~Dtk_MainDoc();
944 
945  void _AddComponentIntoPool(Dtk_ComponentPtr& outElt);
946 
947  friend class Dtk_SmartPtr<Dtk_MainDoc>;
948 public:
949 
950  //! \CreateBase
952 
953  //! \DtkDynamicType
954  Dtk_Int32 DtkDynamicType(const int& inId);
955 
956  //! \DtkDynamicCast
958 
959  //! \brief Set the root Dtk_ComponentPtr.
960  //! \param inRootComponent The root Ccomponent
961  void SetRootComponent(const Dtk_ComponentPtr& inRootComponent);
962 
963  //! \brief Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.
964  //! \return The root Dtk_ComponentPtr.
966 
967  //! \brief Creates a physical Dtk_ComponentPtr.
968  //! \param inComponentType Component type - Part or Assembly -.
969  //! \param inComponentFullPath Component full path.
970  //! \param inComponentName Component name.
971  //! \param inInstanceName Instance name.
972  //! \param inTransformationMatrix Transformation matrix.
973  //! \param inAssociatedModule Associated module - Unknown by default -.
974  //! \return the constructed Dtk_ComponentPtr.
975 
976  //! \brief Creates an Instance Dtk_ComponentPtr.
977  //! \param inPrototype The Prototype Dtk_ComponentPtr used to create instance.
978  //! \param inInstanceName Instance name.
979  //! \param inTransformationMatrix Transformation matrix.
980  //! \return the constructed InstanceDtk_ComponentPtr.
981  //! \remark The Prototype is automatically linked to the instance.
983  const Dtk_ComponentPtr& inPrototype,
984  Dtk_string inInstanceName,
985  const Dtk_transfo& inTransformationMatrix);
986 
987  //! \brief Creates a Prototype Dtk_ComponentPtr.
988  //! This type handles Assemblies and part components.
989  //! \param inComponentFullPath Component full path.
990  //! \param inComponentName Component name.
991  //! \param inAssociatedModule Associated module - Unknown by default -.
992  //! \param inAvailability : Is component found/missing or internal
993  //! \param inAdditionnalReferenceFlag : Is component an additionnal reference ( not part of assembly) or not
994  //! \return the constructed Prototype Dtk_ComponentPtr.
996  Dtk_string inComponentFullPath,
997  Dtk_string inComponentName,
998  const DtkReaderType& inAssociatedModule,
999  const Dtk_Component::ComponentAvailabilityEnum& inAvailability,
1000  const int inAdditionnalReferenceFlag = 0,
1001  Dtk_string inOriginalName=Dtk_string());
1002 
1003  //! \brief Creates a virtual Dtk_ComponentPtr.
1004  //! \param inComponentName Component name.
1005  //! \param inAssociatedModule Associated module - Unknown by default -.
1006  //! \return the constructed Dtk_ComponentPtr.
1007  //! \remark A virtual Dtk_ComponentPtr hasn't any full path.
1009  Dtk_string inComponentName,
1010  const DtkReaderType& inAssociatedModule,
1011  Dtk_string inComponentFullPath,
1012  const Dtk_Component::ComponentAvailabilityEnum& inAvailability);
1013 
1014  //! \brief Creates a Catalog Dtk_ComponentPtr.
1015  //! \param inComponentFullPath Component full path.
1016  //! \param inComponentName Component name.
1017  //! \param inInstanceName Instance name.
1018  //! \param inTransformationMatrix Transformation matrix.
1019  //! \param inAssociatedModule Associated module - Unknown by default -.
1020  //! \return the constructed Dtk_ComponentPtr.
1022  Dtk_string inComponentFullPath,
1023  Dtk_string inComponentName,
1024  Dtk_string inInstanceName,
1025  const Dtk_transfo& inTransformationMatrix,
1026  const DtkReaderType& inAssociatedModule = UnknownModule,
1028  Dtk_string inOriginalName = Dtk_string());
1029 
1030 
1031 
1032  //! \brief Retrieves a Dtk_ComponentPtr giving its ID.
1033  //! \param inComponentID The component ID
1034  //! \return The wanted Dtk_ComponentPtr.
1035  Dtk_ComponentPtr GetComponentByID( const Dtk_ComponentID& inComponentID ) const;
1036 
1037  //! \brief Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
1038  //! \param inComponent The component from which we want the father.
1039  //! \param inIndex index of father wanted.
1040  //! \return The wanted Dtk_ComponentPtr.
1042 
1043  //! \brief Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
1044  //! \param inComponent The component from which we want the number of fathers.
1045  //! \return The number of father.
1047 
1048  //! \brief Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
1049  //! \return number of Components.
1051 
1052  //! \brief Give number of InstanceComponents in the Dtk_MainDoc
1053  //! \return number of Instance Components.
1055 
1056  //! \brief Indicate that document contains several independant models
1057  //! \return DTK_TRUE if the MainDoc represent a multi model document.
1059 
1060  //! \brief Set flag to indicate that document contains several independant models
1061  void SetMultiModelFlag(Dtk_bool inMultiModelFlag);
1062 
1063  //! \brief Devalidates Component into MainDoc.
1064  //! \param inComponentID The ComponentID to devalidate.
1065  //! \return DtkNoError if success.
1066  //! \remark Internal Use only.
1068 
1069  //! \brief return list of missing files into MainDoc.
1070  //! \param outFileList : list of missing files
1071  //! \return DtkNoError if success.
1073 
1074  //! \brief return list of additional reference files into MainDoc.
1075  //! \param outFileList : list of additionnal reference files
1076  //! \return DtkNoError if success.
1078 
1079 };
1080 
1081 /////////////////////////////////////////////////////////////////////////////
1082 //! \ingroup DtkAPIGroup
1083 //! \class Dtk_NodeConnector
1084 //! \brief This is the Dtk_NodeConnector Class.\n
1085 //! \SmartPtr{Dtk_NodeConnectorPtr}
1087 {
1088 public:
1089  //! \brief Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
1091  {
1092  Unknown = 0,
1093  //Placement Reasons
1094  VerticallyAligned, //the pointing entity is bound to the the position of pointed one, so that they stay vertically aligned
1095  HorizontallyAligned, //the pointing entity is bound to the the position of pointed one, so that they stay horizontally aligned
1096  StackedLeft, //the pointing entity is bound to the the position of pointed one, so that it is kept to the left
1097  StackedRight, //the pointing entity is bound to the the position of pointed one, so that it is kept to the right
1098  StackedAbove, //the pointing entity is bound to the the position of pointed one, so that it is kept above
1099  StackedBelow, //the pointing entity is bound to the the position of pointed one, so that it is kept below
1100  PositionallyFixed, //the pointing entity positon is constrained by the pointed one
1101  OrientationallyFixed, //the pointing entity direction is constrained by the pointed one
1102  ForceHidden, //the pointed entity is forced to be hidden
1103  ForceVisible, //the pointed entity is forced to be visible
1104  ForceColor, //the pointed entity is forced to change color
1105  ForceRender, //the pointed entity is forced to change render info
1106  ForceClipped, //the pointed entity is forced to be clipped by light section view
1107  KeepOnlyFdt, //keep only pmi
1108 
1109  //Category used to qualify links from the 1st Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1110  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1115 
1116  //Category used to qualify links from the 2nd Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1117  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1122 
1123  //Category used to qualify links from the 3rd Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1124  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1129 
1130  //General Associations
1142 
1144 
1145  };
1147  {
1148  switch( inEnum )
1149  {
1150  case VerticallyAligned: return L"VerticallyAligned";
1151  case HorizontallyAligned: return L"HorizontallyAligned";
1152  case StackedLeft: return L"StackedLeft";
1153  case StackedRight: return L"StackedRight";
1154  case StackedAbove: return L"StackedAbove";
1155  case StackedBelow: return L"StackedBelow";
1156  case PositionallyFixed: return L"PositionallyFixed";
1157  case OrientationallyFixed: return L"OrientationallyFixed";
1158  case ForceHidden: return L"ForceHidden";
1159  case ForceVisible: return L"ForceVisible";
1160  case ForceClipped: return L"ForceClipped";
1161  case KeepOnlyFdt: return L"KeepOnlyFdt";
1162  case ForceColor: return L"ForceColor";
1163  case ForceRender: return L"ForceRender";
1164 
1165  case AssociatedGeometry: return L"AssociatedGeometry";
1166  case AssociatedFeature: return L"AssociatedFeature";
1167  case SubPMI: return L"SubPMI";
1168  case DefaultAnnotationLink: return L"DefaultAnnotationLink";
1169  case HighlightedGeometry: return L"HighlightedGeometry";
1170  case Support: return L"Support";
1171  case AssociatedAxisSystem: return L"AssociatedAxisSystem";
1172  case AssociatedXDirection: return L"AssociatedXDirection";
1173  case AssociatedYDirection: return L"AssociatedYDirection";
1174  case AssociatedZDirection: return L"AssociatedZDirection";
1175  case AssociatedCenterPoint: return L"AssociatedCenterPoint";
1176 
1177  case Context: return L"Context";
1178 
1179  case FirstRefBlockSituation_Common: return L"FirstRefBlockSituation_Common";
1180  case FirstRefBlockSituation_1: return L"FirstRefBlockSituation_1";
1181  case FirstRefBlockSituation_2: return L"FirstRefBlockSituation_2";
1182  case FirstRefBlockSituation_3: return L"FirstRefBlockSituation_3";
1183 
1184  case SecondRefBlockSituation_Common: return L"SecondRefBlockSituation_Common";
1185  case SecondRefBlockSituation_1: return L"SecondRefBlockSituation_1";
1186  case SecondRefBlockSituation_2: return L"SecondRefBlockSituation_2";
1187  case SecondRefBlockSituation_3: return L"SecondRefBlockSituation_3";
1188 
1189  case ThirdRefBlockSituation_Common: return L"ThirdRefBlockSituation_Common";
1190  case ThirdRefBlockSituation_1: return L"ThirdRefBlockSituation_1";
1191  case ThirdRefBlockSituation_2: return L"ThirdRefBlockSituation_2";
1192  case ThirdRefBlockSituation_3: return L"ThirdRefBlockSituation_3";
1193 
1194  default: return L"Unknown";
1195  }
1196  }
1197 
1198  //! \brief Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
1200  {
1201  UnknownCategory = 0,
1202  PlacementCategory, //General Placement Category gathering all Placement Reasons
1206 
1210  };
1212  {
1213  switch( inEnum )
1214  {
1215  case PlacementCategory: return L"PlacementCategory";
1216  case GeneralAssociationCategory: return L"GeneralAssociationCategory";
1217  case VisibilityCategory: return L"VisibilityCategory";
1218  case AppearanceCategory: return L"AppearanceCategory";
1219  case FirstRefBlockSituationCategory: return L"FirstRefBlockSituationCategory";
1220  case SecondRefBlockSituationCategory: return L"SecondRefBlockSituationCategory";
1221  case ThirdRefBlockSituationCategory: return L"ThirdRefBlockSituationCategory";
1222  default: return L"UnknownCategory";
1223  }
1224  }
1225 
1227  {
1228  private:
1229  Dtk_ID _SubEntityID; // optional: Set of IDs (in case the connector links to a geometric entity (construction)
1230  type_detk _SubEntityType; // optional: The list of entities types
1231  public:
1232  inline SubEntity( ) : _SubEntityID(0), _SubEntityType(DTK_TYPE_UNKNOWN){}
1233  inline SubEntity( const Dtk_ID inSubEntityID, const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
1234  inline ~SubEntity() {}
1235 
1236  inline Dtk_ID GetSubEntityId() const {return _SubEntityID;}
1237  inline type_detk GetSubEntityType() const {return _SubEntityType;}
1238  friend Dtk_bool operator==(const SubEntity&, const SubEntity&);
1239 
1240  };
1241 
1242 protected:
1243  struct Dtk_Handle; // Not defined here
1244  std::unique_ptr<Dtk_Handle> _Private; // Handle
1245 
1246  enum
1247  {
1249  };
1250 
1251  //! \BaseConstructor
1253  //! \sa Create(const Dtk_NodeConnector &in)
1256  //! \BaseDestructor
1258 
1259  inline virtual Dtk_Object* Clone() { return new Dtk_NodeConnector(*this); }
1260 
1261 protected:
1262  friend class Dtk_SmartPtr<Dtk_NodeConnector>;
1263 public:
1264  friend class Dtk_Node;
1265  //! \DtkDynamicType
1267 
1268  //! \DtkDynamicCast
1270 
1271  //! \CreateBase
1273 
1274  //! \CreateCopy{in}
1276 
1277  //! \return The type of the entity type - DTK_TYPE_FDT -
1279 
1280  //! \brief Returns the Component ID referenced by the connector
1282  //! \brief Sets the component ID
1283  void SetAssociatedComponentID (const Dtk_ID &inComponentID);
1284 
1285  //! \brief Returns the Path Component ID referenced by the connector from Root to Target
1287  void GetAssociatedPathComponentID(Dtk_tab<Dtk_ID>& outAssociatedPathComponentID) const ;
1288  //! \brief Sets the Path Component ID from Root to Target
1289  void SetAssociatedPathComponentID (const Dtk_tab<Dtk_ID> &inPathComponentID);
1290  //! \brief Checks if the Path Component ID exist into Dtk_MainDocPtr
1291  //! \brief Returns true if path connector exists else returns false
1293 
1294  //! \brief Returns the Node id referenced by the connector
1295  Dtk_ID GetNodeId() const ;
1296  //! \brief Sets the Node id
1297  void SetNodeId(const Dtk_ID &inNodeId);
1298 
1299 
1300  //! \brief Returns the number of the geometric entities
1302 
1303  //! \brief Retrieves The connected SubEntities - IDs and types -
1304  //! \param outEntitiesIDs SubEntities Ids
1305  //! \param outEntitiesTypes SubEntities types
1306  //! \remark Sizes of the 2 arrays are equal
1307  //! \return DtkNoError if no error.
1308  Dtk_ErrorStatus GetSubEntities(Dtk_tab <Dtk_ID>& outEntitiesIDs, Dtk_tab <type_detk> & outEntitiesTypes) const;
1309 
1310  //! \brief Returns the set of Additional Entities defined by their IDs and Types
1311  //! \param inEntitiesIDs SubEntities Ids
1312  //! \param inEntitiesTypes SubEntities types
1313  //! \remark The size of the 2 arrays must be equal
1314  //! \return DtkNoError if no error.
1315  Dtk_ErrorStatus SetSubEntities(const Dtk_tab <Dtk_ID> &inEntitiesIDs, const Dtk_tab <type_detk> & inEntitiesTypes);
1316 
1317  //! \brief Sets of SubEntities - defined by their IDs and Types -
1318  //! \param inSubEntities SubEntities array
1319  //! \return DtkNoError if no error.
1321 
1322  //! \brief Add a set of SubEntities - defined by their IDs and Types - to the SubEntities list
1323  //! \param inSubEntities SubEntities array
1324  //! \return DtkNoError if no error.
1326 
1327  //! \brief Add a SubEntity - defined by their IDs and Types - to the SubEntities list
1328  //! \param inSubEntity SubEntity
1329  //! \return DtkNoError if no error.
1331 
1332  //! \brief Retrieves the SubEntities array - defined by their IDs and Types -
1333  //! \param outSubEntities The resulting SubEntities array
1334  //! \return DtkNoError if no error.
1336 
1337  //! \brief Retrieves the pointing entity FullType. Should be the FullType of the Dtk_Node containing the Dtk_NodeConnector
1338  //! \return The pointing entity FullType.
1340 
1341  //! \brief Sets the pointing entity Type.
1342  //! \param inPointingEntityType The pointing entity Type.
1343  void SetPointingEntityType( const Dtk_Node::FullType inPointingEntityType );
1344 
1345  //! \brief Sets the pointed entity Type.
1346  //! \param inPointedEntityType The pointed entity Type.
1347  void SetPointedEntityType( const type_detk inPointedEntityType);
1348 
1349  //! \brief Retrieves the pointed entity Type.
1350  //! \return The pointed entity Type.
1352 
1353  //! \brief Sets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
1354  //! \param inReasonLink The Reason Link
1355  void SetReasonLink( const ReasonLinkEnum inReasonLink );
1356 
1357  //! \brief Gets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
1358  //! \param outReasonCategory The Reason Category - processed from the ReasonLink -
1359  //! \return The Reason Link.
1361 
1362  //! \brief Set the Color Id for ForceColor connectors
1363  //! \param inColorId The Color Id
1364  void SetColorId( Dtk_ID inColorId) ;
1365 
1366  //! \brief Retrieves the Color Id for ForceColor connectors
1367  //! \return The Color Id ( > 0 if exists, 0 otherwise).
1369 
1370  //! \brief Set the Render Id for ForceRender connectors
1371  //! \param inRenderId The Render Id
1372  void SetRenderId( Dtk_ID inRenderId );
1373 
1374  //! \brief Retrieves the Render Id for ForceRender connectors
1375  //! \return The Render Id ( > 0 if exists, 0 otherwise).
1377 };
1378 
1379 
1380 /////////////////////////////////////////////////////////////////////////////
1381 
1382 
1383 #endif
Dtk_NodeConnector::SetNodeId
void SetNodeId(const Dtk_ID &inNodeId)
Sets the Node id.
Dtk_Node::FullType::FullType
FullType(const NodeDataTypeEnum inPrimaryType, const type_detk inSubType)
Definition: dtk_maindoc.hpp:282
Dtk_Node::AnnotationSetType
@ AnnotationSetType
Definition: dtk_maindoc.hpp:254
Dtk_feat
Generic Feature All metric data in feature classes are given in MM All angular data are given in degr...
Definition: str_feat_dtk.hpp:6859
Dtk_Component::SetComponentAvailability
Dtk_ErrorStatus SetComponentAvailability(ComponentAvailabilityEnum inComponentAvailability)
Dtk_NodeConnector::ReasonLinkEnum
ReasonLinkEnum
Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
Definition: dtk_maindoc.hpp:1091
Dtk_NodeConnector::SetPointingEntityType
void SetPointingEntityType(const Dtk_Node::FullType inPointingEntityType)
Sets the pointing entity Type.
Dtk_NodeConnector::KeepOnlyFdt
@ KeepOnlyFdt
Definition: dtk_maindoc.hpp:1107
dtk_global_data_set_ptr.hpp
CaddsReaderModule
@ CaddsReaderModule
Definition: dtk_maindoc.hpp:46
Dtk_MainDoc::GetComponentByID
Dtk_ComponentPtr GetComponentByID(const Dtk_ComponentID &inComponentID) const
Retrieves a Dtk_ComponentPtr giving its ID.
RnXmlReaderModule
@ RnXmlReaderModule
Definition: dtk_maindoc.hpp:60
Dtk_Component::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
UsdReaderModule
@ UsdReaderModule
Definition: dtk_maindoc.hpp:82
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:688
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
CerconReaderModule
@ CerconReaderModule
Definition: dtk_maindoc.hpp:49
Dtk_NodeConnector::SetPointedEntityType
void SetPointedEntityType(const type_detk inPointedEntityType)
Sets the pointed entity Type.
Dtk_NodeConnector
This is the Dtk_NodeConnector Class. .
Definition: dtk_maindoc.hpp:1087
Dtk_DocElement::GetFatherID
Dtk_ID GetFatherID(Dtk_Size_t inIndex) const
Retrieves Dtk_DocElement ith FatherID - read only -.
PlmXmlReaderModule
@ PlmXmlReaderModule
Definition: dtk_maindoc.hpp:56
NavisReaderModule
@ NavisReaderModule
Definition: dtk_maindoc.hpp:78
DTK_TYPE_UNKNOWN
@ DTK_TYPE_UNKNOWN
Definition: define.h:26
Dtk_Component::GetChild
const Dtk_ComponentPtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_ComponentPtr - read only -.
Definition: dtk_maindoc.hpp:677
Dtk_Node::GetDtk_ModelDisplayPtr
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr()
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
Dtk_NodeConnector::Support
@ Support
Definition: dtk_maindoc.hpp:1136
Dtk_DocElement::~Dtk_DocElement
virtual ~Dtk_DocElement()
Destructor.
Dtk_Node::FdtType
@ FdtType
Definition: dtk_maindoc.hpp:255
Dtk_Node::FullType::~FullType
~FullType()
Definition: dtk_maindoc.hpp:283
DTK_TYPE_MESH
@ DTK_TYPE_MESH
Definition: define.h:468
Dtk_Component::CatalogComponentType
@ CatalogComponentType
Definition: dtk_maindoc.hpp:575
_3dmReaderModule
@ _3dmReaderModule
Definition: dtk_maindoc.hpp:61
Dtk_Node::GetDtk_KinematicPtr
Dtk_KinematicPtr GetDtk_KinematicPtr()
Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -.
Dtk_Node::BodyNodeDataTypeEnum
BodyNodeDataTypeEnum
Definition: dtk_maindoc.hpp:238
Dtk_NodeConnector::GetSubEntities
Dtk_ErrorStatus GetSubEntities(Dtk_tab< Dtk_ID > &outEntitiesIDs, Dtk_tab< type_detk > &outEntitiesTypes) const
Retrieves The connected SubEntities - IDs and types -.
Dtk_Component::AddChild
void AddChild(const Dtk_ComponentPtr &inChild)
Adds a child Dtk_Component to main Component.
Definition: dtk_maindoc.hpp:671
DTK_TYPE_NODE_CONNECTOR
@ DTK_TYPE_NODE_CONNECTOR
Definition: define.h:474
Dtk_MainDoc::GetFatherComponent
Dtk_ComponentPtr GetFatherComponent(const Dtk_ComponentPtr &inComponent, Dtk_Size_t inIndex) const
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
Dtk_NodeConnector::Create
static Dtk_NodeConnectorPtr Create(const Dtk_NodeConnector &in)
Calls copy constructor to allocate a new object.
Dtk_DocElement::Dtk_DocElement
Dtk_DocElement(const Dtk_ID &inID, Dtk_string inName)
Dtk_Node::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:351
Dtk_NodeConnector::VerticallyAligned
@ VerticallyAligned
Definition: dtk_maindoc.hpp:1094
Dtk_NodeConnector::ThirdRefBlockSituation_1
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1126
DTK_TYPE_DOC_ELEMENT
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:501
Dtk_DocElement::GetNumFathers
Dtk_Size_t GetNumFathers() const
GetNumFather.
PsReaderModule
@ PsReaderModule
Definition: dtk_maindoc.hpp:41
Dtk_NodeConnector::GetColorId
Dtk_Int32 GetColorId() const
Retrieves the Color Id for ForceColor connectors.
Dtk_Node::FullType::PrimaryType
NodeDataTypeEnum PrimaryType() const
Definition: dtk_maindoc.hpp:285
Dtk_NodeConnector::ForceColor
@ ForceColor
Definition: dtk_maindoc.hpp:1104
Dtk_NodeConnector::StackedBelow
@ StackedBelow
Definition: dtk_maindoc.hpp:1099
Dtk_NodeConnector::ForceHidden
@ ForceHidden
Definition: dtk_maindoc.hpp:1102
Dtk_Node::NodeHasSolids
Dtk_bool NodeHasSolids() const
Return DTK_TRUE if Dtk_Node Type Body contains solid entity.
Dtk_Node::NodeHasPoints
Dtk_bool NodeHasPoints() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity.
Dtk_NodeConnector::ThirdRefBlockSituation_Common
@ ThirdRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1125
Dtk_NodeConnector::AssociatedYDirection
@ AssociatedYDirection
Definition: dtk_maindoc.hpp:1139
Dtk_DocElement::GetMetaData
Dtk_MetaDataPtr GetMetaData(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataPtr - read only -.
CerecReaderModule
@ CerecReaderModule
Definition: dtk_maindoc.hpp:50
Dtk_NodeConnector::SetRenderId
void SetRenderId(Dtk_ID inRenderId)
Set the Render Id for ForceRender connectors.
Dtk_NodeConnector::FirstRefBlockSituation_3
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1114
Dtk_Node::NodeDataTypeEnum
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:250
PrcReaderModule
@ PrcReaderModule
Definition: dtk_maindoc.hpp:74
V5ReaderModule
@ V5ReaderModule
Definition: dtk_maindoc.hpp:31
Dtk_DocElement::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:106
Dtk_API::Dtk_Component
friend class Dtk_Component
Definition: dtk_api.hpp:135
Dtk_Node::ModelDisplayType
@ ModelDisplayType
Definition: dtk_maindoc.hpp:262
Dtk_KinematicPtr
Dtk_SmartPtr< Dtk_Kinematic > Dtk_KinematicPtr
Definition: dtk_maindoc.hpp:25
SatReaderModule
@ SatReaderModule
Definition: dtk_maindoc.hpp:43
Dtk_NodeConnector::AssociatedAxisSystem
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1137
Zw3dReaderModule
@ Zw3dReaderModule
Definition: dtk_maindoc.hpp:81
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_NodeConnector::StackedAbove
@ StackedAbove
Definition: dtk_maindoc.hpp:1098
Dtk_Node::NodeHasMeshSurfaces
Dtk_bool NodeHasMeshSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:711
Dtk_NodeConnector::SubEntity
Definition: dtk_maindoc.hpp:1227
Dtk_MainDoc::SetMultiModelFlag
void SetMultiModelFlag(Dtk_bool inMultiModelFlag)
Set flag to indicate that document contains several independant models.
Dtk_MainDoc::_ReleaseComponents
void _ReleaseComponents()
Dtk_Node::KinematicsType
@ KinematicsType
Definition: dtk_maindoc.hpp:257
XmlReaderModule
@ XmlReaderModule
Definition: dtk_maindoc.hpp:53
DTK_TYPE_AXIS_SYSTEM
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:34
Dtk_Node::FullType::SubType
type_detk SubType() const
Definition: dtk_maindoc.hpp:286
Dtk_Node::FullType::FullType
FullType()
Definition: dtk_maindoc.hpp:284
Dtk_DocElement::DtkDynamicCast
static Dtk_DocElement * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_DocElement::AddProperty
void AddProperty(const Dtk_PropertiesPtr &inProperty)
Adds a Dtk_PropertiesPtr to the Dtk_DocElement.
Dtk_DocElement::AddMetaDataGroup
void AddMetaDataGroup(const Dtk_MetaDataGroupPtr &inMetaDataGroup, Dtk_bool inAddMetadata=DTK_FALSE)
Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.
Dtk_Node::NodeHasAxis
Dtk_bool NodeHasAxis() const
Return DTK_TRUE if Dtk_Node Type Body contains axis entity.
Dtk_NodeConnector::PlacementCategory
@ PlacementCategory
Definition: dtk_maindoc.hpp:1202
Dtk_NodeConnector::SecondRefBlockSituationCategory
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1208
Dtk_NodeConnector::SecondRefBlockSituation_2
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1120
dtk_metadata.hpp
Dtk_DocElement::ReleasePreview
void ReleasePreview()
Dtk_NodeID
Dtk_ID Dtk_NodeID
Definition: dtk_maindoc.hpp:89
UnknownModule
@ UnknownModule
Definition: dtk_maindoc.hpp:84
Dtk_Node::BodyType
@ BodyType
Definition: dtk_maindoc.hpp:252
Dtk_NodeConnector::AppearanceCategory
@ AppearanceCategory
Definition: dtk_maindoc.hpp:1205
Dtk_DocElement::_GetChild
const Dtk_DocElementPtr _GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_DocElement - read only -.
Dtk_NodeConnector::GetPointingEntityType
Dtk_Node::FullType GetPointingEntityType() const
Retrieves the pointing entity FullType. Should be the FullType of the Dtk_Node containing the Dtk_Nod...
Dtk_Node::CameraType
@ CameraType
Definition: dtk_maindoc.hpp:263
F3dReaderModule
@ F3dReaderModule
Definition: dtk_maindoc.hpp:75
DTK_FALSE
#define DTK_FALSE
Definition: define.h:727
StlReaderModule
@ StlReaderModule
Definition: dtk_maindoc.hpp:68
Dtk_Node::GetDtk_CameraPtr
Dtk_CameraPtr GetDtk_CameraPtr()
Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -.
Dtk_bool
char Dtk_bool
Definition: define.h:724
ProCeraReaderModule
@ ProCeraReaderModule
Definition: dtk_maindoc.hpp:48
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.
AcisReaderModule
@ AcisReaderModule
Definition: dtk_maindoc.hpp:47
Dtk_MainDoc::DevalidateComponent
Dtk_ErrorStatus DevalidateComponent(const Dtk_ComponentID &inComponentID)
Devalidates Component into MainDoc.
Dtk_Component::ReplaceChildComponent
Dtk_ErrorStatus ReplaceChildComponent(const Dtk_Size_t &inPos, const Dtk_ComponentPtr &inNewChild)
Replaces a child Dtk_ComponentPtr by another one. Also updates father lists.
Definition: dtk_maindoc.hpp:687
DtkReaderType
DtkReaderType
Definition: dtk_maindoc.hpp:30
Dtk_NodeConnector::SetColorId
void SetColorId(Dtk_ID inColorId)
Set the Color Id for ForceColor connectors.
Dtk_Node::GetDtk_AxisSystemPtr
Dtk_AxisSystemPtr GetDtk_AxisSystemPtr()
Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -.
Dtk_MainDoc
This is the Document Class. The Dtk_MainDocPtr object is used as root element produced by a translati...
Definition: dtk_maindoc.hpp:929
Dtk_Component::ComponentAvailabilityEnum
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:561
Dtk_NodeConnector::ThirdRefBlockSituation_3
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1128
SwReaderModule
@ SwReaderModule
Definition: dtk_maindoc.hpp:37
Dtk_Node::GetChild
const Dtk_NodePtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_Node - read only -.
Definition: dtk_maindoc.hpp:388
Dtk_Double64
double Dtk_Double64
Definition: define.h:698
Dtk_MainDoc::CreatePrototypeDtk_Component
Dtk_ComponentPtr CreatePrototypeDtk_Component(Dtk_string inComponentFullPath, Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability, const int inAdditionnalReferenceFlag=0, Dtk_string inOriginalName=Dtk_string())
Creates a Prototype Dtk_ComponentPtr. This type handles Assemblies and part components.
Dtk_NodeConnector::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:1243
Dtk_MainDoc::IsMultiModel
Dtk_bool IsMultiModel() const
Indicate that document contains several independant models.
Dtk_Node::GetDtk_LayerInfosSetPtr
Dtk_LayerInfosSetPtr GetDtk_LayerInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -.
Dtk_mesh
This is a high level mesh class.
Definition: util_mesh_dtk.hpp:694
Dtk_Node::GetAssociatedEntities
Dtk_ErrorStatus GetAssociatedEntities(Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr.
Dtk_Kinematic
Dtk_Kinematic represents a kinematic.
Definition: util_kinematics_dtk.hpp:1828
util_draw_ptr_dtk.hpp
DTK_TYPE_NODE
@ DTK_TYPE_NODE
Definition: define.h:502
Dtk_NodeConnector::Dtk_NodeConnector
Dtk_NodeConnector(const Dtk_NodeConnector &)
CgrReaderModule
@ CgrReaderModule
Definition: dtk_maindoc.hpp:45
Dtk_DocElement::Dtk_MainDoc
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:137
ObjReaderModule
@ ObjReaderModule
Definition: dtk_maindoc.hpp:63
QifReaderModule
@ QifReaderModule
Definition: dtk_maindoc.hpp:79
Dtk_NodeConnector::CheckAssociatedPathComponentID
Dtk_Int32 CheckAssociatedPathComponentID(const Dtk_MainDocPtr &inMainDocPtr)
Checks if the Path Component ID exist into Dtk_MainDocPtr.
Dtk_DocElement::SetInfos
void SetInfos(const Dtk_InfoPtr &inInfos)
Dtk_Node::GetNodeType
NodeDataTypeEnum GetNodeType() const
Retrieves the Dtk_Node Node Type - read only -.
Dtk_Node::GetDtk_DrawingPtr
Dtk_DrawingPtr GetDtk_DrawingPtr()
Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -.
Dtk_Component::ComponentType
const ComponentTypeEnum & ComponentType() const
Retrieves the Dtk_Component Type - read only -.
Dtk_NodeConnector::AssociatedGeometry
@ AssociatedGeometry
Definition: dtk_maindoc.hpp:1131
Dtk_Node::GetNodeFullType
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
dtk_pnt.hpp
Dtk_MainDoc::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:935
Dtk_LayerInfosSet
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:508
util_topology_ptr_dtk.hpp
Dtk_Node::AddAssociatedEntities
void AddAssociatedEntities(const Dtk_tab< Dtk_NodeConnectorPtr > &inAssociatedEntities)
Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node.
Dtk_NodeConnector::GetSubEntitiesNb
Dtk_Size_t GetSubEntitiesNb() const
Returns the number of the geometric entities.
Dtk_DocElement::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
DxfReaderModule
@ DxfReaderModule
Definition: dtk_maindoc.hpp:55
Dtk_Component::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:630
Dtk_NodeConnector::~Dtk_NodeConnector
~Dtk_NodeConnector()
Destructor.
U3dReaderModule
@ U3dReaderModule
Definition: dtk_maindoc.hpp:58
Dtk_DocElement::Name
const Dtk_string & Name() const
Retrieves the Dtk_DocElement Name - read only -.
Dtk_NodeConnector::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_NodeConnector::Create
static Dtk_NodeConnectorPtr Create()
Calls default constructor to allocate a new object.
IgesReaderModule
@ IgesReaderModule
Definition: dtk_maindoc.hpp:39
Dtk_NodeConnector::ReasonCategoryEnum
ReasonCategoryEnum
Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
Definition: dtk_maindoc.hpp:1200
Dtk_MainDoc::CreateCatalogDtk_Component
Dtk_ComponentPtr CreateCatalogDtk_Component(Dtk_string inComponentFullPath, Dtk_string inComponentName, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix, const DtkReaderType &inAssociatedModule=UnknownModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability=Dtk_Component::ComponentInternal, Dtk_string inOriginalName=Dtk_string())
Creates a Catalog Dtk_ComponentPtr.
Dtk_NodeConnector::AssociatedCenterPoint
@ AssociatedCenterPoint
Definition: dtk_maindoc.hpp:1141
Dtk_NodeConnector::AddSubEntity
Dtk_ErrorStatus AddSubEntity(const SubEntity &inSubEntity)
Add a SubEntity - defined by their IDs and Types - to the SubEntities list.
dtk_override_ptr.hpp
_3dXmlReaderModule
@ _3dXmlReaderModule
Definition: dtk_maindoc.hpp:52
Dtk_DocElement::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:107
Dtk_NodeConnector::StackedRight
@ StackedRight
Definition: dtk_maindoc.hpp:1097
DTK_TYPE_METADATA
@ DTK_TYPE_METADATA
Definition: define.h:507
V6ReaderModule
@ V6ReaderModule
Definition: dtk_maindoc.hpp:54
Dtk_NodeConnector::SetSubEntities
Dtk_ErrorStatus SetSubEntities(const Dtk_tab< Dtk_ID > &inEntitiesIDs, const Dtk_tab< type_detk > &inEntitiesTypes)
Returns the set of Additional Entities defined by their IDs and Types.
SeReaderModule
@ SeReaderModule
Definition: dtk_maindoc.hpp:38
Dtk_FeaturePtr
Dtk_SmartPtr< Dtk_feat > Dtk_FeaturePtr
Definition: dtk_maindoc.hpp:23
Dtk_MeshPtr
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:21
DcmReaderModule
@ DcmReaderModule
Definition: dtk_maindoc.hpp:51
MaxReaderModules
@ MaxReaderModules
Definition: dtk_maindoc.hpp:85
util_ent_dtk.hpp
Dtk_Node
This is the Node Class.
Definition: dtk_maindoc.hpp:234
Dtk_NodeConnector::Dtk_NodeConnector
Dtk_NodeConnector(Dtk_NodeConnector &&s) DTK_NOEXCEPT
Dtk_Node::GetStoredInfos
Dtk_StoredInfoPtr GetStoredInfos() const
Dtk_Component::SetAsDeprecated
SetAsDeprecated("2026.3", "Use Dtk_Component::IsAvailabilityFlaggedAs method instead.") const ComponentAvailabilityEnum ComponentAvailability() const
Gives Dtk_Component availability - read only -.
Dtk_DocElement::AddMetaData
void AddMetaData(const Dtk_MetaDataPtr &inMetaData)
Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
Dtk_NodeConnector::ThirdRefBlockSituation_2
@ ThirdRefBlockSituation_2
Definition: dtk_maindoc.hpp:1127
DTK_TYPE_BODY
@ DTK_TYPE_BODY
Definition: define.h:481
RevitReaderModule
@ RevitReaderModule
Definition: dtk_maindoc.hpp:66
Dtk_NodeConnector::ReasonLinkEnumToString
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1146
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:686
Dtk_Node::FullType
This is the Node FullType Class The Dtk_Node::FullType object is used to retrieve the full informatio...
Definition: dtk_maindoc.hpp:273
ArtReaderModule
@ ArtReaderModule
Definition: dtk_maindoc.hpp:72
Dtk_Component::ComponentAvailabilityEnumToString
static Dtk_string ComponentAvailabilityEnumToString(const ComponentAvailabilityEnum &inEnum)
Definition: dtk_maindoc.hpp:580
Dtk_Node::MetaDataType
@ MetaDataType
Definition: dtk_maindoc.hpp:261
dtk_maindoc_ptr.hpp
Dtk_Node::NullType
@ NullType
Definition: dtk_maindoc.hpp:251
Dtk_NodeConnector::ForceRender
@ ForceRender
Definition: dtk_maindoc.hpp:1105
Dtk_NodeConnector::Context
@ Context
Definition: dtk_maindoc.hpp:1143
Dtk_Node::GetDtk_ConstraintPtr
Dtk_ConstraintPtr GetDtk_ConstraintPtr()
Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.
V4ReaderModule
@ V4ReaderModule
Definition: dtk_maindoc.hpp:34
Dtk_Component::ComponentTypeEnum
ComponentTypeEnum
Definition: dtk_maindoc.hpp:572
Dtk_MainDoc::CreateInstanceDtk_Component
Dtk_ComponentPtr CreateInstanceDtk_Component(const Dtk_ComponentPtr &inPrototype, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix)
Creates a physical Dtk_ComponentPtr.
Dtk_Component::ComponentTypeEnumToString
static Dtk_string ComponentTypeEnumToString(const ComponentTypeEnum &inEnum)
Definition: dtk_maindoc.hpp:596
Dtk_Node::ConstraintType
@ ConstraintType
Definition: dtk_maindoc.hpp:265
Dtk_DocElement::GetInfos
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
Dtk_NodeConnector::ForceClipped
@ ForceClipped
Definition: dtk_maindoc.hpp:1106
StepReaderModule
@ StepReaderModule
Definition: dtk_maindoc.hpp:40
DstvReaderModule
@ DstvReaderModule
Definition: dtk_maindoc.hpp:76
Dtk_SmartPtr::DtkDynamicCast
static Dtk_SmartPtr< T > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_Node::DtkDynamicCast
static Dtk_Node * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_NodeConnector::GetAssociatedComponentID
Dtk_ID GetAssociatedComponentID() const
Returns the Component ID referenced by the connector.
error_dtk.hpp
Dtk_NodeConnector::HorizontallyAligned
@ HorizontallyAligned
Definition: dtk_maindoc.hpp:1095
Dtk_Node::AddChild
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:382
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_DocElement::GetNumChildren
Dtk_Size_t GetNumChildren() const
Retrieves the number of the Dtk_DocElement children - read only -.
Dtk_Node::SetStoredInfos
void SetStoredInfos(const Dtk_StoredInfoPtr &inInfos)
SdnfReaderModule
@ SdnfReaderModule
Definition: dtk_maindoc.hpp:71
Dtk_NodeConnector::FirstRefBlockSituationCategory
@ FirstRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1207
Dtk_NodeConnector::GetPointedEntityType
type_detk GetPointedEntityType() const
Retrieves the pointed entity Type.
Dtk_NodeConnector::GetAssociatedPathComponentID
void GetAssociatedPathComponentID(Dtk_tab< Dtk_ID > &outAssociatedPathComponentID) const
DTK_TYPE_FDT
@ DTK_TYPE_FDT
Definition: define.h:424
Dtk_NodeConnector::ThirdRefBlockSituationCategory
@ ThirdRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1209
Dtk_Node::LayerInfosSetType
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:259
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_Node::AddAssociatedEntity
void AddAssociatedEntity(const Dtk_NodeConnectorPtr &inAssociatedEntity)
Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -.
Dtk_NodeConnector::SetReasonLink
void SetReasonLink(const ReasonLinkEnum inReasonLink)
Sets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
Dtk_Component::ComponentInternal
@ ComponentInternal
Definition: dtk_maindoc.hpp:564
Dtk_NodeConnector::ReasonCategoryEnumToString
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1211
VdaReaderModule
@ VdaReaderModule
Definition: dtk_maindoc.hpp:32
Dtk_Node::NodeHasCurves
Dtk_bool NodeHasCurves() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.
Dtk_DocElement::GetID
Dtk_ID GetID() const
Retrieves the Dtk_DocElement ID - read only -.
Dtk_Node::GetDtk_MetaDataPtr
Dtk_MetaDataPtr GetDtk_MetaDataPtr()
Retrieves the Dtk_Node as a Dtk_MetaDataPtr - if exists -.
DTK_TYPE_DOCUMENT
@ DTK_TYPE_DOCUMENT
Definition: define.h:500
Dtk_DocElement::SetPreview
void SetPreview(Dtk_PreviewPtr inPreview)
Dtk_NodeConnector::Dtk_NodeConnector
Dtk_NodeConnector()
Default constructor.
Dtk_MainDoc::SetRootComponent
void SetRootComponent(const Dtk_ComponentPtr &inRootComponent)
Set the root Dtk_ComponentPtr.
Dtk_NodeConnector::SetAssociatedComponentID
void SetAssociatedComponentID(const Dtk_ID &inComponentID)
Sets the component ID.
dtk_transfo.hpp
Dtk_pnt
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
type_detk
type_detk
Definition: define.h:21
Dtk_DocElement::GetMetaDataGroup
Dtk_MetaDataGroupPtr GetMetaDataGroup(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
Dtk_NodeConnector::ForceVisible
@ ForceVisible
Definition: dtk_maindoc.hpp:1103
Dtk_MainDoc::GetNumComponents
Dtk_Size_t GetNumComponents() const
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
Dtk_NodeConnector::PositionallyFixed
@ PositionallyFixed
Definition: dtk_maindoc.hpp:1100
Dtk_NodeConnector::get_type_detk
type_detk get_type_detk() const
Definition: dtk_maindoc.hpp:1278
util_stl_dtk.hpp
Dtk_NodeConnector::HighlightedGeometry
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1135
Dtk_DocElement::SetReadID
void SetReadID(const Dtk_ID &inNewID)
Dtk_Component::AddComponentAvailability
Dtk_ErrorStatus AddComponentAvailability(ComponentAvailabilityEnum inComponentAvailability)
Dtk_Node::ReplaceChildNode
Dtk_ErrorStatus ReplaceChildNode(const Dtk_Size_t &inPos, const Dtk_NodePtr &inNewChild)
Replaces a child Dtk_NodePtr by another one. Also updates father lists.
Definition: dtk_maindoc.hpp:398
Dtk_NodeConnector::SubEntity::SubEntity
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1233
Dtk_NodeConnector::SetSubEntities
Dtk_ErrorStatus SetSubEntities(const Dtk_tab< SubEntity > &inSubEntities)
Sets of SubEntities - defined by their IDs and Types -.
Dtk_Node::NodeDataTypeEnumToString
static Dtk_string NodeDataTypeEnumToString(const NodeDataTypeEnum &inEnum)
Definition: dtk_maindoc.hpp:290
Dtk_Node::GetDtk_MeshPtr
Dtk_MeshPtr GetDtk_MeshPtr()
Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.
util_ptr_dtk.hpp
define.h
Dtk_MainDoc::_ReleaseNodeConnectors
void _ReleaseNodeConnectors()
Dtk_Component::DtkDynamicCast
static Dtk_Component * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
DTK_TYPE_COMPONENT
@ DTK_TYPE_COMPONENT
Definition: define.h:503
Dtk_NodeConnector::GetRenderId
Dtk_ID GetRenderId() const
Retrieves the Render Id for ForceRender connectors.
Dtk_NodeConnector::SubEntity::SubEntity
SubEntity()
Definition: dtk_maindoc.hpp:1232
Dtk_NodeConnector::VisibilityCategory
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1204
Dtk_MainDoc::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
Dtk_Node::NodeDataStringToEnumType
static Dtk_Int32 NodeDataStringToEnumType(const Dtk_string &type)
Definition: dtk_maindoc.hpp:313
Dtk_tab< Dtk_NodeConnectorPtr >
DwgDtkReaderModule
@ DwgDtkReaderModule
Definition: dtk_maindoc.hpp:80
Dtk_Node::GetDtk_AdvancedFeaturePtr
Dtk_ObjectPtr GetDtk_AdvancedFeaturePtr()
Retrieves the Dtk_Node as a Dtk_AdvancedFeaturePtr - if exists - Internal Use !!!
Dtk_Node::GetDtk_FdtPtr
Dtk_FdtPtr GetDtk_FdtPtr()
Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -.
Dtk_DocElement::GetNumMetaData
Dtk_Size_t GetNumMetaData() const
Retrieves the number of the Dtk_MetaDataPtr - read only -.
Dtk_DocElement::SetAsDeprecated
SetAsDeprecated("2026.3", "use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead.") Dtk_MaterialPtr GetMaterial() const
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
DTK_TYPE_CONSTRAINT
@ DTK_TYPE_CONSTRAINT
Definition: define.h:599
Dtk_DocElement::GetReadID
void GetReadID(Dtk_ID &outReadID) const
Dtk_NodeConnector::DefaultAnnotationLink
@ DefaultAnnotationLink
Definition: dtk_maindoc.hpp:1134
CgmReaderModule
@ CgmReaderModule
Definition: dtk_maindoc.hpp:70
Dtk_NodeConnector::GetReasonLink
Dtk_NodeConnector::ReasonLinkEnum GetReasonLink(ReasonCategoryEnum &outReasonCategory) const
Gets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
FbxReaderModule
@ FbxReaderModule
Definition: dtk_maindoc.hpp:69
Dtk_NodeConnector::GetNodeId
Dtk_ID GetNodeId() const
Returns the Node id referenced by the connector.
Dtk_MainDoc::DtkDynamicCast
static Dtk_MainDoc * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_NodeConnector::SecondRefBlockSituation_Common
@ SecondRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1118
SmgReaderModule
@ SmgReaderModule
Definition: dtk_maindoc.hpp:73
Dtk_NodeConnector::SecondRefBlockSituation_3
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1121
IfcReaderModule
@ IfcReaderModule
Definition: dtk_maindoc.hpp:64
DTK_TYPE_NO_SUBTYPE
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:532
Dtk_NodeConnector::GeneralAssociationCategory
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1203
Dtk_Node::GetDtk_ColorInfosSetPtr
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
Dtk_Component::PrototypeComponentType
@ PrototypeComponentType
Definition: dtk_maindoc.hpp:574
Dtk_Node::GetDtk_FeaturePtr
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
Dtk_NodeConnector::FirstRefBlockSituation_Common
@ FirstRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1111
Dtk_DocElement
This is the Main Doc Element Class The Dtk_DocElement object is common parent class of the Dtk_Node a...
Definition: dtk_maindoc.hpp:103
Dtk_Node::ColorInfosSetType
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:260
XmtReaderModule
@ XmtReaderModule
Definition: dtk_maindoc.hpp:36
Dtk_DocElement::GetNumMetaDataGroup
Dtk_Size_t GetNumMetaDataGroup() const
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
Dtk_string::len
int len() const
Retrieve the length of the Dtk_string.
Dtk_NodeConnector::FirstRefBlockSituation_1
@ FirstRefBlockSituation_1
Definition: dtk_maindoc.hpp:1112
Dtk_Object
Definition: dtk_object.hpp:8
Dtk_Component
This is the Component Class. The Dtk_ComponentPtr object is used as element into an assembly tree....
Definition: dtk_maindoc.hpp:558
Dtk_NodeConnector::SetAssociatedPathComponentID
void SetAssociatedPathComponentID(const Dtk_tab< Dtk_ID > &inPathComponentID)
Sets the Path Component ID from Root to Target.
Dtk_DocElement::_AddChild
void _AddChild(const Dtk_DocElementPtr &inChild)
Adds a child Dtk_DocElement to main Element.
dtk_string.hpp
InvReaderModule
@ InvReaderModule
Definition: dtk_maindoc.hpp:33
Dtk_NodeConnector::SubEntity::operator==
friend Dtk_bool operator==(const SubEntity &, const SubEntity &)
Dtk_MainDoc::Create
static Dtk_MainDocPtr Create()
Calls default constructor to allocate a new object.
Dtk_ComponentID
Dtk_ID Dtk_ComponentID
Definition: dtk_maindoc.hpp:88
Dtk_NodeConnector::SubEntity::GetSubEntityType
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1237
Dtk_MainDoc::GetNumFatherComponent
Dtk_Size_t GetNumFatherComponent(const Dtk_ComponentPtr &inComponent)
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
JtReaderModule
@ JtReaderModule
Definition: dtk_maindoc.hpp:44
Dtk_NodeConnector::AssociatedZDirection
@ AssociatedZDirection
Definition: dtk_maindoc.hpp:1140
Dtk_NodeConnector::StackedLeft
@ StackedLeft
Definition: dtk_maindoc.hpp:1096
Dtk_MainDoc::CreateVirtualDtk_Component
Dtk_ComponentPtr CreateVirtualDtk_Component(Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, Dtk_string inComponentFullPath, const Dtk_Component::ComponentAvailabilityEnum &inAvailability)
Creates a virtual Dtk_ComponentPtr.
CreoviewReaderModule
@ CreoviewReaderModule
Definition: dtk_maindoc.hpp:67
Dtk_Component::_ReleaseVolatileData
void _ReleaseVolatileData()
Dtk_Node::VirtualType
@ VirtualType
Definition: dtk_maindoc.hpp:264
PdfReaderModule
@ PdfReaderModule
Definition: dtk_maindoc.hpp:59
Dtk_NodeConnector::AssociatedXDirection
@ AssociatedXDirection
Definition: dtk_maindoc.hpp:1138
Dtk_NodeConnector::GetSubEntities
Dtk_ErrorStatus GetSubEntities(Dtk_tab< SubEntity > &outSubEntities) const
Retrieves the SubEntities array - defined by their IDs and Types -.
Dtk_Node::DrawingType
@ DrawingType
Definition: dtk_maindoc.hpp:256
Dtk_Node::GetEntityID
Dtk_NodeID GetEntityID() const
Retrieves the Dtk_Node EntityID - read only -.
Dtk_Node::NodeHasSurfaces
Dtk_bool NodeHasSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity.
GltfReaderModule
@ GltfReaderModule
Definition: dtk_maindoc.hpp:77
Dtk_Node::NodeHasMesh
Dtk_bool NodeHasMesh() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity.
Dtk_NodeConnector::OrientationallyFixed
@ OrientationallyFixed
Definition: dtk_maindoc.hpp:1101
Dtk_DocElement::Name
Dtk_string & Name()
Dtk_NodeConnector::SecondRefBlockSituation_1
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1119
Dtk_Node::AxisSystemType
@ AxisSystemType
Definition: dtk_maindoc.hpp:258
Dtk_Node::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
Dtk_NodeConnector::FirstRefBlockSituation_2
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1113
Dtk_NodeConnector::SubEntity::~SubEntity
~SubEntity()
Definition: dtk_maindoc.hpp:1234
Dtk_NodeConnector::AddSubEntities
Dtk_ErrorStatus AddSubEntities(const Dtk_tab< SubEntity > &inSubEntities)
Add a set of SubEntities - defined by their IDs and Types - to the SubEntities list.
Dtk_Node::GetNodeSubType
type_detk GetNodeSubType() const
Retrieves the Node SubType - if relevant - - read only -.
Dtk_NodeConnector::SubPMI
@ SubPMI
Definition: dtk_maindoc.hpp:1133
Dtk_NodeConnector::DtkDynamicCast
static Dtk_NodeConnector * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_NodeConnector::AssociatedFeature
@ AssociatedFeature
Definition: dtk_maindoc.hpp:1132
Dtk_MainDoc::GetNumInstances
Dtk_Int32 GetNumInstances() const
Give number of InstanceComponents in the Dtk_MainDoc.
Dtk_DocElement::GetPreview
Dtk_PreviewPtr GetPreview() const
Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -.
Dtk_Component::ComponentTypeStringToInt
static Dtk_Int32 ComponentTypeStringToInt(const Dtk_string &name)
Definition: dtk_maindoc.hpp:609
BRepOccReaderModule
@ BRepOccReaderModule
Definition: dtk_maindoc.hpp:65
Dtk_Node::MeshType
@ MeshType
Definition: dtk_maindoc.hpp:253
Dtk_Node::GetDtk_BodyPtr
Dtk_BodyPtr GetDtk_BodyPtr()
Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -.
dtk_object.hpp
Dtk_MainDoc::GetAdditionalReferenceList
Dtk_ErrorStatus GetAdditionalReferenceList(Dtk_tab< Dtk_string > &outFileList) const
return list of additional reference files into MainDoc.
Dtk_API
Definition: dtk_api.hpp:75
Dtk_MainDoc::GetMissingComponentList
Dtk_ErrorStatus GetMissingComponentList(Dtk_tab< Dtk_string > &outFileList) const
return list of missing files into MainDoc.
ProeReaderModule
@ ProeReaderModule
Definition: dtk_maindoc.hpp:42
UgReaderModule
@ UgReaderModule
Definition: dtk_maindoc.hpp:35
DTK_NOEXCEPT
#define DTK_NOEXCEPT
Definition: config.hpp:20
Lava3mReaderModule
@ Lava3mReaderModule
Definition: dtk_maindoc.hpp:57
Dtk_Object::operator=
Dtk_Object & operator=(const Dtk_Object &s)
DwgReaderModule
@ DwgReaderModule
Definition: dtk_maindoc.hpp:62
Dtk_NodeConnector::GetAssociatedPathComponentID
const Dtk_tab< Dtk_ID > & GetAssociatedPathComponentID() const
Returns the Path Component ID referenced by the connector from Root to Target.
Dtk_Component::_ReleaseNodes
void _ReleaseNodes()
Dtk_NodeConnector::SubEntity::GetSubEntityId
Dtk_ID GetSubEntityId() const
Definition: dtk_maindoc.hpp:1236
Dtk_MainDoc::RootComponent
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.