DATAKIT API  V2025.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 
20 class Dtk_mesh;
22 class Dtk_feat;
24 class Dtk_Kinematic;
26 
27 
29 {
30  V5ReaderModule = 0, // CatiaV5
31  VdaReaderModule = 1, // VdaFS
32  InvReaderModule = 2, // Inventor
33  V4ReaderModule = 3, // CatiaV4
34  UgReaderModule = 4, // Unigraphics NX
35  XmtReaderModule = 5, // Parasolid using parasolid kernel
36  SwReaderModule = 6, // Solidworks
37  SeReaderModule = 7, // Solidedge
38  IgesReaderModule = 8, // Iges
39  StepReaderModule = 9, // Step
40  PsReaderModule = 10, // Parasolid via datakit
41  ProeReaderModule = 11, // Pro/Engineer - Creo Parametric
42  SatReaderModule = 12, // Internal Use Only
43  JtReaderModule = 13, // Jt
44  CgrReaderModule = 14, // Cgr
45  CaddsReaderModule = 15, // Cadds
46  AcisReaderModule = 16, // Acis
47  ProCeraReaderModule = 17,// ProCera dental format
48  CerconReaderModule = 18, // Cercon dental format
49  CerecReaderModule = 19, // Cerec Sirona dental format
50  DcmReaderModule = 20, // Dcm 3Shape dental format
51  _3dXmlReaderModule = 21, // Internal Use Only
52  XmlReaderModule = 22, // Internal Use Only
53  V6ReaderModule = 23, // 3DEXPERIENCE CatiaV6
54  DxfReaderModule = 24, // Dxf
55  PlmXmlReaderModule = 25, // PlmXml
56  Lava3mReaderModule = 26, // Lava 3M dental format
57  U3dReaderModule = 27, // Internal Use Only
58  PdfReaderModule = 28, // Internal Use Only
59  RnXmlReaderModule = 29, // Internal Use Only
60  _3dmReaderModule = 30, // Rhino
61  DwgReaderModule = 31, // Dwg
62  ObjReaderModule = 32, // Obj
63  IfcReaderModule = 33, // Ifc
64  BRepOccReaderModule = 34,// Brep Open Cascade
65  RevitReaderModule = 35, // Revit
66  CreoviewReaderModule = 36,// Creo View
67  StlReaderModule = 37, // Stl
68  FbxReaderModule = 38, // Fbx
69  CgmReaderModule = 39, // Computer Graphics Metafile
70  SdnfReaderModule = 40, // Computer Graphics Metafile
71  ArtReaderModule = 41, // Art
72  SmgReaderModule = 42, // Smg
73  PrcReaderModule = 43, // Prc
74  F3dReaderModule = 44, // F3d
75  DstvReaderModule = 45, // DSTV
76  GltfReaderModule = 46, // Gltf
77  NavisReaderModule = 47, // Navis
78  QifReaderModule = 48, // QIF
79  DwgDtkReaderModule = 49, // Dwg via datakit
80  Zw3dReaderModule = 50, // Zw3d
81 
84 };
85 
88 
89 
90 class Dtk_MainDoc;
91 
92 
101 {
102 protected:
103 
105  struct Dtk_Handle; // Not defined here
106  Dtk_Handle *_Private; // Handle
107 protected:
108  void _Init();
109  void _Reset();
110  void _Copy(const Dtk_Node&s);
111 
113  Dtk_DocElement(const Dtk_ID& inID, Dtk_string inName);
114 
116  virtual ~Dtk_DocElement();
117 
118 
121  void _AddChild(const Dtk_DocElementPtr& inChild);
122 
126  const Dtk_DocElementPtr _GetChild(const Dtk_Size_t& inPos) const;
127 
135  Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t& inPos, const Dtk_DocElementPtr& inNewChild);
136 
137  friend class Dtk_SmartPtr<Dtk_DocElement>;
138  friend class Dtk_MainDoc;
139 
140 public:
142  Dtk_Int32 DtkDynamicType(const int& inId);
143 
146 
150 
153  const Dtk_string& Name() const;
155 
158  Dtk_ID GetID() const;
159 
163 
167 
168  void GetReadID(Dtk_ID& outReadID) const;
169  void SetReadID(const Dtk_ID & inNewID);
170 
171 
175  void SetInfos(const Dtk_InfoPtr& inInfos);
176 
180  void SetMaterial(Dtk_MaterialPtr inMaterial);
181 
182 
186  void SetPreview(Dtk_PreviewPtr inPreview);
188 
189 
192  void AddMetaData(const Dtk_MetaDataPtr& inMetaData);
193 
197  void AddMetaDataGroup(const Dtk_MetaDataGroupPtr& inMetaDataGroup, Dtk_bool inAddMetadata = DTK_FALSE);
198 
201  void AddProperty(const Dtk_PropertiesPtr & inProperty);
202 
207 
212 
216 
220 };
221 
229 class Dtk_Node : public Dtk_DocElement
230 {
231 public:
232 
234  {
236  HasPoints = 1,
237  HasCurves = 2,
239  HasSolids = 8,
240  HasAxis = 16,
241  HasMesh = 32,
242  HasMeshSurfaces = 64
243  };
244 
246  {
247  NullType = 0,
248  BodyType, // for 3D
249  MeshType, // for 3D Tesselated
250  AnnotationSetType, // for FdtAnnotationSet -- Obsolete
251  FdtType, // for Fdt
252  DrawingType, // for 2D
253  KinematicsType, // Kinematics
254  AxisSystemType, // AxisPlacement
255  LayerInfosSetType, // LayerInfosSet
256  ColorInfosSetType, // ColorInfosSet
257  MetaDataType, // MetaData
258  ModelDisplayType, // Model Display
259  CameraType, // Camera
260  VirtualType, // just for containing children
261  ConstraintType, // ConstraintType
263  };
268  class FullType
269  {
270  public:
271  friend class Dtk_Node;
272  private:
274  NodeDataTypeEnum _PrimaryType;
276  type_detk _SubType;
277  public:
278  FullType( const NodeDataTypeEnum inPrimaryType, const type_detk inSubType ) : _PrimaryType(inPrimaryType), _SubType(inSubType) {}
280  FullType() : _PrimaryType(NullType), _SubType(DTK_TYPE_UNKNOWN) {}
281  inline NodeDataTypeEnum PrimaryType() const {return _PrimaryType;}
282  inline type_detk SubType() const {return _SubType;}
283  };
284 
285 
287  {
288  switch( inEnum )
289  {
290  case NullType: return L"NullType";
291  case BodyType: return L"BodyType";
292  case MeshType: return L"MeshType";
293  case AnnotationSetType: return L"AnnotationSetType";
294  case FdtType: return L"FdtType";
295  case DrawingType: return L"DrawingType";
296  case KinematicsType: return L"KinematicsType";
297  case AxisSystemType: return L"AxisSystemType";
298  case LayerInfosSetType: return L"LayerInfosSetType";
299  case ColorInfosSetType: return L"ColorInfosSetType";
300  case MetaDataType: return L"MetaDataType";
301  case VirtualType: return L"VirtualType";
302  case ModelDisplayType : return L"ModelDisplayType";
303  case CameraType : return L"CameraType";
304  case ConstraintType: return L"Constraint";
305  default: return L"Unknown";
306  }
307  }
308 
309  static inline Dtk_Int32 NodeDataStringToEnumType( const Dtk_string &type )
310  {
311  if( type == L"NullType" )
312  return NullType;
313  else if( type == L"BodyType" )
314  return BodyType;
315  else if( type == L"MeshType" )
316  return MeshType;
317  else if( type == L"AnnotationSetType" )
318  return AnnotationSetType;
319  else if( type == L"FdtType" )
320  return FdtType;
321  else if( type == L"DrawingType" )
322  return DrawingType;
323  else if( type == L"KinematicsType" )
324  return KinematicsType;
325  else if( type == L"AxisSystemType" )
326  return AxisSystemType;
327  else if (type == L"LayerInfosSetType")
328  return LayerInfosSetType;
329  else if (type == L"ColorInfosSetType")
330  return ColorInfosSetType;
331  else if( type == L"MetaDataType" )
332  return MetaDataType;
333  else if( type == L"VirtualType" )
334  return VirtualType;
335  else if (type == L"ModelDisplayType")
336  return ModelDisplayType;
337  else if (type == L"CameraType")
338  return CameraType;
339  else if (type == L"ConstraintType")
340  return ConstraintType;
341  else return -1;
342  }
343 
344 protected:
345 
346  enum { _typeID = DTK_TYPE_NODE };
347  struct Dtk_Handle; // Not defined here
348  Dtk_Handle *_Private; // Handle
349  friend class Dtk_Component;
350 private:
351  void _Init();
352  void _Reset();
353  void _Copy(const Dtk_Node&s);
354 
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 
366 
367  friend class Dtk_SmartPtr<Dtk_Node>;
368 
369 public:
371  Dtk_Int32 DtkDynamicType(const int& inId);
372 
375 
378  inline void AddChild(const Dtk_NodePtr& inChild)
380 
384  inline const Dtk_NodePtr GetChild(const Dtk_Size_t& inPos) const
385  { return Dtk_NodePtr::DtkDynamicCast( _GetChild(inPos) ); }
386 
394  inline Dtk_ErrorStatus ReplaceChildNode(const Dtk_Size_t& inPos, const Dtk_NodePtr& inNewChild)
395  { return _ReplaceChild( inPos, Dtk_DocElementPtr::DtkDynamicCast(inNewChild) ); }
396 
401  //SetAsDeprecated("Undefined", "Use GetNodeFullType")
403 
408  //SetAsDeprecated("Undefined", "Use GetNodeFullType")
410 
414 
429 
430 
436 
442 
452 
453 
459 
460 
466 
472 
478 
484 
490 
496 
502 
508 
514 
519  //Dtk_KinematicsPtr GetDtk_KinematicPtr();
520 
524  void AddAssociatedEntity ( const Dtk_NodeConnectorPtr& inAssociatedEntity );
525 
529  void AddAssociatedEntities ( const Dtk_tab< Dtk_NodeConnectorPtr >& inAssociatedEntities );
530 
535 
536  //Internal Use
538  void SetStoredInfos(const Dtk_StoredInfoPtr& inInfos);
539 
543 };
545 
554 {
555 public:
557  {
565  };
567  {
572 
573  };
574 
576  {
577  switch( inEnum )
578  {
579  case ComponentMissing: return L"ComponentMissing";
580  case ComponentFound: return L"ComponentFound";
581  case ComponentInternal: return L"ComponentInternal";
582  case ComponentPhantom: return L"ComponentPhantom";
583  case ComponentAdditionnalReference: return L"ComponentAdditionnalReference";
584  case ComponentAssemblyGeometry: return L"ComponentAssemblyGeometry";
585  case ComponentWithUnavailableReader: return L"ComponentWithUnavailableReader";
586 
587  default: return L"Unknown";
588  }
589  }
590 
592  {
593  switch( inEnum )
594  {
595  case CatalogComponentType: return L"CatalogComponentType";
596  case VirtualComponentType: return L"VirtualComponentType";
597  case InstanceComponentType: return L"InstanceComponentType";
598  case PrototypeComponentType: return L"PrototypeComponentType";
599 
600  default: return L"Unknown";
601  }
602  }
603 
604  static inline Dtk_Int32 ComponentTypeStringToInt( const Dtk_string &name )
605  {
606  Dtk_Int32 result = -1;
607 
608  if( name.len() > 0 )
609  {
610  if( name == L"CatalogComponentType" )
611  result = CatalogComponentType;
612  else if( name == L"VirtualComponentType" )
613  result = VirtualComponentType;
614  else if( name == L"InstanceComponentType" )
615  result = InstanceComponentType;
616  else if( name == L"PrototypeComponentType" )
617  result = PrototypeComponentType;
618  }
619 
620  return result;
621  }
622 
623 protected:
625  struct Dtk_Handle; // Not defined here
626  Dtk_Handle *_Private; // Handle
627  friend class Dtk_MainDoc;
628  friend class Dtk_API;
631 private:
632  void _Init();
633  void _Reset();
634  void _Copy(const Dtk_Component&s);
635 
638  Dtk_Component( const Dtk_ComponentID& inID,
639  const ComponentTypeEnum& inComponentType,
640  const ComponentAvailabilityEnum& inComponentAvailability,
641  const Dtk_Int32& inAdditionnalReferenceFlag,
642  Dtk_string inComponentName,
643  Dtk_string inComponentFullPath,
644  Dtk_string inComponentInstanceName,
645  const Dtk_transfo& inTransformationMatrix,
646  const DtkReaderType& inAssociatedModule,
647  Dtk_string inComponentOriginalName);
648 
651  friend class Dtk_SmartPtr<Dtk_Component>;
652 
653  void _CheckGlobalDataSet();
654  void _CheckFdtDataSet();
655 public:
656 
658  Dtk_Int32 DtkDynamicType(const int& inId);
659 
662 
663  //InternalUse
665 
666 
669  inline void AddChild(const Dtk_ComponentPtr& inChild)
671 
675  inline const Dtk_ComponentPtr GetChild(const Dtk_Size_t& inPos) const
676  { return Dtk_ComponentPtr::DtkDynamicCast( _GetChild(inPos) ); }
677 
685  inline Dtk_ErrorStatus ReplaceChildComponent(const Dtk_Size_t& inPos, const Dtk_ComponentPtr& inNewChild)
686  { return _ReplaceChild( inPos, Dtk_DocElementPtr::DtkDynamicCast(inNewChild) ); }
687 
691 
695 
698  const Dtk_string& FullPathName() const;
699 
702  const Dtk_string& OriginalPathName() const;
703 
707 
710  const Dtk_string& InstanceName() const;
711 
715 
718 
721 
724 
727 
732 
738  Dtk_NodePtr CreateBodyNode( Dtk_string inName, const Dtk_ID& inBodyID, const Dtk_Int32 inBodyFlag , const type_detk inSubType = DTK_TYPE_BODY);
739 
745  Dtk_string inName,
746  const Dtk_ID& inMeshID,
747  const Dtk_Int32 inMeshFlag,
748  const type_detk inSubType = DTK_TYPE_MESH );
749 
755  Dtk_string inName,
756  const Dtk_ID& inFdtID, const type_detk inSubType = DTK_TYPE_FDT);
757 
763  Dtk_string inName,
764  const Dtk_ID& inKinematicID);
765 
770  Dtk_NodePtr CreateDrawingNode( Dtk_string inName, const Dtk_ID& inDrawingID);
771 
776  Dtk_NodePtr CreateMetaDataNode( Dtk_string inName, const Dtk_ID& inMetaDataID, const type_detk inSubType = DTK_TYPE_METADATA);
777 
782  Dtk_NodePtr CreateConstraintNode( Dtk_string inName, const Dtk_ID& inConstraintID, const type_detk inSubType = DTK_TYPE_CONSTRAINT);
783 
788  Dtk_NodePtr CreateAxisSystemNode( Dtk_string inName, const Dtk_ID& inAxisSystemID, const type_detk inSubType = DTK_TYPE_AXIS_SYSTEM);
789 
794  Dtk_NodePtr CreateLayerInfosSetNode( Dtk_string inName, const Dtk_ID& inLayerInfosSetID);
795 
800  Dtk_NodePtr CreateColorInfosSetNode( Dtk_string inName, const Dtk_ID& inColorInfosSetID);
801 
806  Dtk_NodePtr CreateModelDisplayNode( Dtk_string inName, const Dtk_ID& inDisplayModelID, const type_detk inSubType = DTK_TYPE_NO_SUBTYPE );
807 
812  Dtk_NodePtr CreateCameraNode( Dtk_string inName, const Dtk_ID& inCameraID);
813 
817  Dtk_NodePtr GetNodeByID( const Dtk_NodeID& inNodeID ) const;
818 
822  Dtk_NodePtr GetFatherNode(const Dtk_NodePtr& inNode) const;
823 
830  SetAsDeprecated("2022.1", "Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.")
833 
835  const Dtk_string & GetFileVersion()const;
836  void SetFileVersion(const Dtk_string & inFileVersion);
837 
840  void SetCurrentLayer(Dtk_Int32 inCurrentLayer);
841 
843  void GetVisibleLayers(Dtk_tab<Dtk_Int32> &outVisibleLayers)const;
844  void SetVisibleLayers(const Dtk_tab<Dtk_Int32> & inVisibleLayers);
845 
847  void GetSelectableLayers(Dtk_tab<Dtk_Int32> &outSelectableLayers)const;
848  void SetSelectableLayers(const Dtk_tab<Dtk_Int32> & inSelectableLayers);
849 
851  DtkErrorStatus GetSiblingName(Dtk_string &outSiblingName)const;
852  DtkErrorStatus SetSiblingName(const Dtk_string & inSiblingName);
853 
854 
858 
860  void SetSelectionDataSet( const Dtk_SelectionDataSetPtr& inSelectionDataSet);
861 
865 
866 
870 
876 
882 
886 
890 
894 
898 };
900 
908 class Dtk_MainDoc : public Dtk_Object
909 {
910  friend class Dtk_MainDocWrapper;
911 public:
912  struct Dtk_Handle; // Not defined here
913 protected:
915  Dtk_Handle *_Private; // Handle
916  friend class Dtk_API;
919 private:
920  void _Init();
921  void _Reset();
922  void _Copy(const Dtk_MainDoc&s);
923 
925  Dtk_MainDoc();
927  ~Dtk_MainDoc();
928 
929  void _AddComponentIntoPool(Dtk_ComponentPtr& outElt);
930 
931  friend class Dtk_SmartPtr<Dtk_MainDoc>;
932 public:
933 
936 
938  Dtk_Int32 DtkDynamicType(const int& inId);
939 
942 
945  void SetRootComponent(const Dtk_ComponentPtr& inRootComponent);
946 
950 
959 
967  const Dtk_ComponentPtr& inPrototype,
969  const Dtk_transfo& inTransformationMatrix);
970 
980  Dtk_string inComponentFullPath,
981  Dtk_string inComponentName,
982  const DtkReaderType& inAssociatedModule,
983  const Dtk_Component::ComponentAvailabilityEnum& inAvailability,
984  const int inAdditionnalReferenceFlag = 0,
985  Dtk_string inOriginalName=Dtk_string());
986 
993  Dtk_string inComponentName,
994  const DtkReaderType& inAssociatedModule,
995  Dtk_string inComponentFullPath,
996  const Dtk_Component::ComponentAvailabilityEnum& inAvailability);
997 
1006  Dtk_string inComponentFullPath,
1007  Dtk_string inComponentName,
1009  const Dtk_transfo& inTransformationMatrix,
1010  const DtkReaderType& inAssociatedModule = UnknownModule,
1012  Dtk_string inOriginalName = Dtk_string());
1013 
1014 
1015 
1019  Dtk_ComponentPtr GetComponentByID( const Dtk_ComponentID& inComponentID ) const;
1020 
1026 
1031 
1035 
1039 
1043 
1045  void SetMultiModelFlag(Dtk_bool inMultiModelFlag);
1046 
1052 
1057 
1062 
1063 };
1064 
1071 {
1072 public:
1075  {
1076  Unknown = 0,
1077  //Placement Reasons
1078  VerticallyAligned, //the pointing entity is bound to the the position of pointed one, so that they stay vertically aligned
1079  HorizontallyAligned, //the pointing entity is bound to the the position of pointed one, so that they stay horizontally aligned
1080  StackedLeft, //the pointing entity is bound to the the position of pointed one, so that it is kept to the left
1081  StackedRight, //the pointing entity is bound to the the position of pointed one, so that it is kept to the right
1082  StackedAbove, //the pointing entity is bound to the the position of pointed one, so that it is kept above
1083  StackedBelow, //the pointing entity is bound to the the position of pointed one, so that it is kept below
1084  PositionallyFixed, //the pointing entity positon is constrained by the pointed one
1085  OrientationallyFixed, //the pointing entity direction is constrained by the pointed one
1086  ForceHidden, //the pointed entity is forced to be hidden
1087  ForceVisible, //the pointed entity is forced to be visible
1088  ForceClipped, //the pointed entity is forced to be clipped by light section view
1089  KeepOnlyFdt, //keep only pmi
1090 
1091  //Category used to qualify links from the 1st Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1092  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1097 
1098  //Category used to qualify links from the 2nd Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1099  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1104 
1105  //Category used to qualify links from the 3rd Dtk_ReferenceBlockPtr - [PT] / [SL] / [PL] -
1106  //These links can apply to a reference into Dtk_ReferenceBlockPtr - 3 1st references handled - or to the common datum - the whole Dtk_ReferenceBlockPtr
1111 
1112  //General Associations
1124 
1126 
1127  };
1128  static inline Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum& inEnum)
1129  {
1130  switch( inEnum )
1131  {
1132  case VerticallyAligned: return L"VerticallyAligned";
1133  case HorizontallyAligned: return L"HorizontallyAligned";
1134  case StackedLeft: return L"StackedLeft";
1135  case StackedRight: return L"StackedRight";
1136  case StackedAbove: return L"StackedAbove";
1137  case StackedBelow: return L"StackedBelow";
1138  case PositionallyFixed: return L"PositionallyFixed";
1139  case OrientationallyFixed: return L"OrientationallyFixed";
1140  case ForceHidden: return L"ForceHidden";
1141  case ForceVisible: return L"ForceVisible";
1142  case ForceClipped: return L"ForceClipped";
1143  case KeepOnlyFdt: return L"KeepOnlyFdt";
1144 
1145  case AssociatedGeometry: return L"AssociatedGeometry";
1146  case AssociatedFeature: return L"AssociatedFeature";
1147  case SubPMI: return L"SubPMI";
1148  case DefaultAnnotationLink: return L"DefaultAnnotationLink";
1149  case HighlightedGeometry: return L"HighlightedGeometry";
1150  case Support: return L"Support";
1151  case AssociatedAxisSystem: return L"AssociatedAxisSystem";
1152  case AssociatedXDirection: return L"AssociatedXDirection";
1153  case AssociatedYDirection: return L"AssociatedYDirection";
1154  case AssociatedZDirection: return L"AssociatedZDirection";
1155  case AssociatedCenterPoint: return L"AssociatedCenterPoint";
1156 
1157  case Context: return L"Context";
1158 
1159  case FirstRefBlockSituation_Common: return L"FirstRefBlockSituation_Common";
1160  case FirstRefBlockSituation_1: return L"FirstRefBlockSituation_1";
1161  case FirstRefBlockSituation_2: return L"FirstRefBlockSituation_2";
1162  case FirstRefBlockSituation_3: return L"FirstRefBlockSituation_3";
1163 
1164  case SecondRefBlockSituation_Common: return L"SecondRefBlockSituation_Common";
1165  case SecondRefBlockSituation_1: return L"SecondRefBlockSituation_1";
1166  case SecondRefBlockSituation_2: return L"SecondRefBlockSituation_2";
1167  case SecondRefBlockSituation_3: return L"SecondRefBlockSituation_3";
1168 
1169  case ThirdRefBlockSituation_Common: return L"ThirdRefBlockSituation_Common";
1170  case ThirdRefBlockSituation_1: return L"ThirdRefBlockSituation_1";
1171  case ThirdRefBlockSituation_2: return L"ThirdRefBlockSituation_2";
1172  case ThirdRefBlockSituation_3: return L"ThirdRefBlockSituation_3";
1173 
1174  default: return L"Unknown";
1175  }
1176  }
1177 
1180  {
1181  UnknownCategory = 0,
1182  PlacementCategory, //General Placement Category gathering all Placement Reasons
1185 
1189  };
1191  {
1192  switch( inEnum )
1193  {
1194  case PlacementCategory: return L"PlacementCategory";
1195  case GeneralAssociationCategory: return L"GeneralAssociationCategory";
1196  case VisibilityCategory: return L"VisibilityCategory";
1197  case FirstRefBlockSituationCategory: return L"FirstRefBlockSituationCategory";
1198  case SecondRefBlockSituationCategory: return L"SecondRefBlockSituationCategory";
1199  case ThirdRefBlockSituationCategory: return L"ThirdRefBlockSituationCategory";
1200  default: return L"UnknownCategory";
1201  }
1202  }
1203 
1205  {
1206  private:
1207  Dtk_ID _SubEntityID; // optional: Set of IDs (in case the connector links to a geometric entity (construction)
1208  type_detk _SubEntityType; // optional: The list of entities types
1209  public:
1210  inline SubEntity( ) : _SubEntityID(0), _SubEntityType(DTK_TYPE_UNKNOWN){}
1211  inline SubEntity( const Dtk_ID inSubEntityID, const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
1212  inline SubEntity( const SubEntity& inTobeCopied ) : _SubEntityID(inTobeCopied._SubEntityID), _SubEntityType(inTobeCopied._SubEntityType){}
1213  inline ~SubEntity() {}
1214 
1215  inline Dtk_ID GetSubEntityId() const {return _SubEntityID;}
1216  inline type_detk GetSubEntityType() const {return _SubEntityType;}
1217  friend Dtk_bool operator==(const SubEntity&, const SubEntity&);
1218 
1219  };
1220 
1221 protected:
1222  struct Dtk_Handle; // Not defined here
1223  Dtk_Handle *_Private; // Handle
1224 
1225  enum
1226  {
1228  };
1229 
1232 
1235 
1238 
1239  inline virtual Dtk_Object* Clone() { return new Dtk_NodeConnector(*this); }
1240 
1241 protected:
1242  void _Init();
1243  void _Reset();
1244  void _Copy(const Dtk_NodeConnector &s);
1245  friend class Dtk_SmartPtr<Dtk_NodeConnector>;
1246 public:
1247  friend class Dtk_Node;
1250 
1253 
1256 
1259 
1262 
1266  void SetAssociatedComponentID (const Dtk_ID &inComponentID);
1267 
1270  void GetAssociatedPathComponentID(Dtk_tab<Dtk_ID>& outAssociatedPathComponentID) const ;
1272  void SetAssociatedPathComponentID (const Dtk_tab<Dtk_ID> &inPathComponentID);
1276 
1278  Dtk_ID GetNodeId() const ;
1280  void SetNodeId(const Dtk_ID &inNodeId);
1281 
1282 
1285 
1291  Dtk_ErrorStatus GetSubEntities(Dtk_tab <Dtk_ID>& outEntitiesIDs, Dtk_tab <type_detk> & outEntitiesTypes) const;
1292 
1298  Dtk_ErrorStatus SetSubEntities(const Dtk_tab <Dtk_ID> &inEntitiesIDs, const Dtk_tab <type_detk> & inEntitiesTypes);
1299 
1304 
1309 
1314 
1319 
1323 
1326  void SetPointingEntityType( const Dtk_Node::FullType inPointingEntityType );
1327 
1330  void SetPointedEntityType( const type_detk inPointedEntityType);
1331 
1335 
1338  void SetReasonLink( const ReasonLinkEnum inReasonLink );
1339 
1344 
1345 };
1346 
1347 
1349 
1350 
1351 #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:278
Dtk_Node::AnnotationSetType
@ AnnotationSetType
Definition: dtk_maindoc.hpp:250
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_NodeConnector::ReasonLinkEnum
ReasonLinkEnum
Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
Definition: dtk_maindoc.hpp:1075
Dtk_Component::CreateCameraNode
Dtk_NodePtr CreateCameraNode(Dtk_string inName, const Dtk_ID &inCameraID)
Create a Camera Dtk_NodePtr from a Camera.
Dtk_NodeConnector::SetPointingEntityType
void SetPointingEntityType(const Dtk_Node::FullType inPointingEntityType)
Sets the pointing entity Type.
Dtk_NodeConnector::KeepOnlyFdt
@ KeepOnlyFdt
Definition: dtk_maindoc.hpp:1089
dtk_global_data_set_ptr.hpp
CaddsReaderModule
@ CaddsReaderModule
Definition: dtk_maindoc.hpp:45
Dtk_MainDoc::GetComponentByID
Dtk_ComponentPtr GetComponentByID(const Dtk_ComponentID &inComponentID) const
Retrieves a Dtk_ComponentPtr giving its ID.
RnXmlReaderModule
@ RnXmlReaderModule
Definition: dtk_maindoc.hpp:59
Dtk_Component::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
Dtk_NodeConnector::_Reset
void _Reset()
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:691
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_Node::HasMeshSurfaces
@ HasMeshSurfaces
Definition: dtk_maindoc.hpp:242
CerconReaderModule
@ CerconReaderModule
Definition: dtk_maindoc.hpp:48
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:1071
Dtk_DocElement::GetFatherID
Dtk_ID GetFatherID(Dtk_Size_t inIndex) const
Retrieves Dtk_DocElement ith FatherID - read only -.
PlmXmlReaderModule
@ PlmXmlReaderModule
Definition: dtk_maindoc.hpp:55
NavisReaderModule
@ NavisReaderModule
Definition: dtk_maindoc.hpp:77
DTK_TYPE_UNKNOWN
@ DTK_TYPE_UNKNOWN
Definition: define.h:37
Dtk_Component::CreateMeshNode
Dtk_NodePtr CreateMeshNode(Dtk_string inName, const Dtk_ID &inMeshID, const Dtk_Int32 inMeshFlag, const type_detk inSubType=DTK_TYPE_MESH)
Create a Mesh Dtk_NodePtr from a Mesh ID.
Dtk_Component::GetChild
const Dtk_ComponentPtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_ComponentPtr - read only -.
Definition: dtk_maindoc.hpp:675
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:1118
Dtk_DocElement::~Dtk_DocElement
virtual ~Dtk_DocElement()
Destructor.
Dtk_Node::FdtType
@ FdtType
Definition: dtk_maindoc.hpp:251
Dtk_Node::FullType::~FullType
~FullType()
Definition: dtk_maindoc.hpp:279
Dtk_NodeConnector::SubEntity::SubEntity
SubEntity(const SubEntity &inTobeCopied)
Definition: dtk_maindoc.hpp:1212
DTK_TYPE_MESH
@ DTK_TYPE_MESH
Definition: define.h:479
Dtk_Component::CatalogComponentType
@ CatalogComponentType
Definition: dtk_maindoc.hpp:570
_3dmReaderModule
@ _3dmReaderModule
Definition: dtk_maindoc.hpp:60
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:234
Dtk_Node::HasAxis
@ HasAxis
Definition: dtk_maindoc.hpp:240
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:669
DTK_TYPE_NODE_CONNECTOR
@ DTK_TYPE_NODE_CONNECTOR
Definition: define.h:485
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_Component::CreateLayerInfosSetNode
Dtk_NodePtr CreateLayerInfosSetNode(Dtk_string inName, const Dtk_ID &inLayerInfosSetID)
Create a LayerInfosSet Dtk_NodePtr from a LayerInfosSetPtr.
Dtk_DocElement::_Reset
void _Reset()
Dtk_NodeConnector::VerticallyAligned
@ VerticallyAligned
Definition: dtk_maindoc.hpp:1078
Dtk_NodeConnector::ThirdRefBlockSituation_1
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1108
Dtk_Component::GetVisibleLayers
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Component.
DTK_TYPE_DOC_ELEMENT
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:512
Dtk_Node::HasSurfaces
@ HasSurfaces
Definition: dtk_maindoc.hpp:238
Dtk_DocElement::GetNumFathers
Dtk_Size_t GetNumFathers() const
GetNumFather.
Dtk_Component::CreateConstraintNode
Dtk_NodePtr CreateConstraintNode(Dtk_string inName, const Dtk_ID &inConstraintID, const type_detk inSubType=DTK_TYPE_CONSTRAINT)
Create a Constraint Dtk_NodePtr from a Dtk_ConstraintPtr.
Dtk_Component::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:624
PsReaderModule
@ PsReaderModule
Definition: dtk_maindoc.hpp:40
Dtk_Component::SetOverrideSets
DtkErrorStatus SetOverrideSets(const Dtk_tab< Dtk_OverrideSetPtr > &inOverrideSets)
Set array of Override sets in a prototype component.
Dtk_Node::FullType::PrimaryType
NodeDataTypeEnum PrimaryType() const
Definition: dtk_maindoc.hpp:281
Dtk_Component::CreateAxisSystemNode
Dtk_NodePtr CreateAxisSystemNode(Dtk_string inName, const Dtk_ID &inAxisSystemID, const type_detk inSubType=DTK_TYPE_AXIS_SYSTEM)
Create a AxisSystem Dtk_NodePtr from a AxisSystemPtr.
Dtk_NodeConnector::StackedBelow
@ StackedBelow
Definition: dtk_maindoc.hpp:1083
Dtk_NodeConnector::ForceHidden
@ ForceHidden
Definition: dtk_maindoc.hpp:1086
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_DocElement::_Private
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:105
Dtk_NodeConnector::ThirdRefBlockSituation_Common
@ ThirdRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1107
Dtk_Component::GetCurrentLayer
Dtk_Int32 GetCurrentLayer() const
Current layer for Component.
Dtk_Node::HasSolids
@ HasSolids
Definition: dtk_maindoc.hpp:239
Dtk_Component::GetActivatedChildrenInCatalog
Dtk_tab< Dtk_Int32 > GetActivatedChildrenInCatalog() const
Return Activated Children Index or empty array if Component isn't a catalog.
Dtk_NodeConnector::AssociatedYDirection
@ AssociatedYDirection
Definition: dtk_maindoc.hpp:1121
Dtk_Component::CreateModelDisplayNode
Dtk_NodePtr CreateModelDisplayNode(Dtk_string inName, const Dtk_ID &inDisplayModelID, const type_detk inSubType=DTK_TYPE_NO_SUBTYPE)
Create a ModelDisplay Dtk_NodePtr from a DisplayModel.
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:49
Dtk_NodeConnector::Dtk_NodeConnector
Dtk_NodeConnector(const Dtk_NodeConnector &in)
Copy constructor.
Dtk_MainDoc::_Private
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:915
Dtk_NodeConnector::FirstRefBlockSituation_3
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1096
Dtk_Node::NodeDataTypeEnum
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:246
PrcReaderModule
@ PrcReaderModule
Definition: dtk_maindoc.hpp:73
V5ReaderModule
@ V5ReaderModule
Definition: dtk_maindoc.hpp:30
Dtk_DocElement::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:104
Dtk_API::Dtk_Component
friend class Dtk_Component
Definition: dtk_api.hpp:136
Dtk_Component::CreateKinematicsNode
Dtk_NodePtr CreateKinematicsNode(Dtk_string inName, const Dtk_ID &inKinematicID)
Create a Kinematic Dtk_NodePtr from a Dtk_KinematicPtr.
Dtk_Node::ModelDisplayType
@ ModelDisplayType
Definition: dtk_maindoc.hpp:258
Dtk_KinematicPtr
Dtk_SmartPtr< Dtk_Kinematic > Dtk_KinematicPtr
Definition: dtk_maindoc.hpp:24
SatReaderModule
@ SatReaderModule
Definition: dtk_maindoc.hpp:42
Dtk_DocElement::_Copy
void _Copy(const Dtk_Node &s)
Dtk_NodeConnector::_Private
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:1222
Dtk_NodeConnector::AssociatedAxisSystem
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1119
Zw3dReaderModule
@ Zw3dReaderModule
Definition: dtk_maindoc.hpp:80
Dtk_Node::_Private
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:347
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_NodeConnector::StackedAbove
@ StackedAbove
Definition: dtk_maindoc.hpp:1082
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:714
Dtk_NodeConnector::SubEntity
Definition: dtk_maindoc.hpp:1205
Dtk_MainDoc::SetMultiModelFlag
void SetMultiModelFlag(Dtk_bool inMultiModelFlag)
Set flag to indicate that document contains several independant models.
Dtk_MainDoc::_ReleaseComponents
void _ReleaseComponents()
Dtk_Component::IsAdditionnalReference
Dtk_bool IsAdditionnalReference() const
Return DTK_TRUE if Dtk_Component is Additionnal Reference.
Dtk_Node::KinematicsType
@ KinematicsType
Definition: dtk_maindoc.hpp:253
Dtk_Component::SetSiblingName
DtkErrorStatus SetSiblingName(const Dtk_string &inSiblingName)
XmlReaderModule
@ XmlReaderModule
Definition: dtk_maindoc.hpp:52
DTK_TYPE_AXIS_SYSTEM
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:45
Dtk_Node::FullType::SubType
type_detk SubType() const
Definition: dtk_maindoc.hpp:282
Dtk_Node::FullType::FullType
FullType()
Definition: dtk_maindoc.hpp:280
Dtk_DocElement::DtkDynamicCast
static Dtk_DocElement * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_Component::CreateColorInfosSetNode
Dtk_NodePtr CreateColorInfosSetNode(Dtk_string inName, const Dtk_ID &inColorInfosSetID)
Create a ColorInfosSet Dtk_NodePtr from a ColorInfosSetPtr.
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:1182
Dtk_NodeConnector::SecondRefBlockSituationCategory
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1187
Dtk_NodeConnector::SecondRefBlockSituation_2
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1102
dtk_metadata.hpp
Dtk_Component::CreateDrawingNode
Dtk_NodePtr CreateDrawingNode(Dtk_string inName, const Dtk_ID &inDrawingID)
Create a Drawing Dtk_NodePtr from a Dtk_DrawingPtr.
Dtk_DocElement::ReleasePreview
void ReleasePreview()
Dtk_NodeID
Dtk_ID Dtk_NodeID
Definition: dtk_maindoc.hpp:87
UnknownModule
@ UnknownModule
Definition: dtk_maindoc.hpp:82
Dtk_Node::HasCurves
@ HasCurves
Definition: dtk_maindoc.hpp:237
Dtk_Node::BodyType
@ BodyType
Definition: dtk_maindoc.hpp:248
Dtk_DocElement::_GetChild
const Dtk_DocElementPtr _GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_DocElement - read only -.
Dtk_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:259
F3dReaderModule
@ F3dReaderModule
Definition: dtk_maindoc.hpp:74
DTK_FALSE
#define DTK_FALSE
Definition: define.h:730
StlReaderModule
@ StlReaderModule
Definition: dtk_maindoc.hpp:67
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:727
ProCeraReaderModule
@ ProCeraReaderModule
Definition: dtk_maindoc.hpp:47
Dtk_DocElement::_ReplaceChild
Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild)
Replaces a child by another one. Also update father lists.
Dtk_NodeConnector::Clone
virtual Dtk_Object * Clone()
Definition: dtk_maindoc.hpp:1239
AcisReaderModule
@ AcisReaderModule
Definition: dtk_maindoc.hpp:46
Dtk_API::_Init
void _Init()
Dtk_Component::ComponentAvailability
const ComponentAvailabilityEnum ComponentAvailability() const
Give Dtk_Component availability - read only -.
Dtk_Component::SetVisibleLayers
void SetVisibleLayers(const Dtk_tab< Dtk_Int32 > &inVisibleLayers)
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:685
DtkReaderType
DtkReaderType
Definition: dtk_maindoc.hpp:29
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:909
Dtk_Component::ComponentAvailabilityEnum
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:557
Dtk_NodeConnector::ThirdRefBlockSituation_3
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1110
SwReaderModule
@ SwReaderModule
Definition: dtk_maindoc.hpp:36
Dtk_Component::VirtualComponentType
@ VirtualComponentType
Definition: dtk_maindoc.hpp:571
Dtk_Node::GetChild
const Dtk_NodePtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_Node - read only -.
Definition: dtk_maindoc.hpp:384
Dtk_Double64
double Dtk_Double64
Definition: define.h:701
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_Node::UnknownType
@ UnknownType
Definition: dtk_maindoc.hpp:235
Dtk_MainDoc::IsMultiModel
Dtk_bool IsMultiModel() const
Indicate that document contains several independant models.
Dtk_Component::GetOverrideSets
DtkErrorStatus GetOverrideSets(Dtk_tab< Dtk_OverrideSetPtr > &outOverrideSet) const
Give array of Override sets in a prototype component
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:485
Dtk_Component::SetSelectionDataSet
void SetSelectionDataSet(const Dtk_SelectionDataSetPtr &inSelectionDataSet)
Attach SelectionDataSet infos to the Dtk_Component - through the Dtk_GlobalDataSetPtr -.
Dtk_Component::InstanceComponentType
@ InstanceComponentType
Definition: dtk_maindoc.hpp:568
Dtk_Component::GetDefaultChildInCatalog
Dtk_Int32 GetDefaultChildInCatalog() const
Return Default Child Index or -1 if Component isn't a catalog.
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:513
CgrReaderModule
@ CgrReaderModule
Definition: dtk_maindoc.hpp:44
Dtk_Component::CreateVirtualNode
Dtk_NodePtr CreateVirtualNode(Dtk_string inName, const type_detk inSubType=DTK_TYPE_NO_SUBTYPE)
Create a Virtual Dtk_NodePtr.
Dtk_NodeConnector::_Init
void _Init()
ObjReaderModule
@ ObjReaderModule
Definition: dtk_maindoc.hpp:62
QifReaderModule
@ QifReaderModule
Definition: dtk_maindoc.hpp:78
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:1113
Dtk_Node::GetNodeFullType
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
dtk_pnt.hpp
Dtk_Component::SetCurrentLayer
void SetCurrentLayer(Dtk_Int32 inCurrentLayer)
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_Component::ComponentFound
@ ComponentFound
Definition: dtk_maindoc.hpp:559
Dtk_DocElement::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
DxfReaderModule
@ DxfReaderModule
Definition: dtk_maindoc.hpp:54
Dtk_Component::ComponentAssemblyGeometry
@ ComponentAssemblyGeometry
Definition: dtk_maindoc.hpp:563
Dtk_Component::GetConceptionUnitScale
Dtk_ErrorStatus GetConceptionUnitScale(Dtk_Double64 &outUnitScale) const
Get the Original Units for documents - geometrical data are given in MM (Scale to MM) /!
Dtk_NodeConnector::~Dtk_NodeConnector
~Dtk_NodeConnector()
Destructor.
U3dReaderModule
@ U3dReaderModule
Definition: dtk_maindoc.hpp:57
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_Component::GetFileVersion
const Dtk_string & GetFileVersion() const
Get File Version.
Dtk_NodeConnector::Create
static Dtk_NodeConnectorPtr Create()
Calls default constructor to allocate a new object.
Dtk_Component::IsAssembly
Dtk_bool IsAssembly() const
Return DTK_TRUE if Dtk_Component is an assembly.
IgesReaderModule
@ IgesReaderModule
Definition: dtk_maindoc.hpp:38
Dtk_NodeConnector::ReasonCategoryEnum
ReasonCategoryEnum
Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
Definition: dtk_maindoc.hpp:1180
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:1123
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:51
Dtk_Node::MaxNodeDataType
@ MaxNodeDataType
Definition: dtk_maindoc.hpp:262
Dtk_Node::HasPoints
@ HasPoints
Definition: dtk_maindoc.hpp:236
Dtk_Component::ComponentAdditionnalReference
@ ComponentAdditionnalReference
Definition: dtk_maindoc.hpp:562
Dtk_NodeConnector::StackedRight
@ StackedRight
Definition: dtk_maindoc.hpp:1081
DTK_TYPE_METADATA
@ DTK_TYPE_METADATA
Definition: define.h:518
V6ReaderModule
@ V6ReaderModule
Definition: dtk_maindoc.hpp:53
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.
Dtk_Component::DevalidateNode
Dtk_ErrorStatus DevalidateNode(const Dtk_NodeID &inNodeID)
Devalidates Component into MainDoc.
SeReaderModule
@ SeReaderModule
Definition: dtk_maindoc.hpp:37
Dtk_Component::AddOverrideSet
DtkErrorStatus AddOverrideSet(const Dtk_OverrideSetPtr &inOverrideSet)
Add Override set to a prototype component
Dtk_FeaturePtr
Dtk_SmartPtr< Dtk_feat > Dtk_FeaturePtr
Definition: dtk_maindoc.hpp:22
Dtk_Component::TransformationMatrix
const Dtk_transfo & TransformationMatrix() const
Retrieves the Dtk_Component TransformationMatrix - read only -.
Dtk_API::_Reset
void _Reset()
Dtk_MeshPtr
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:20
Dtk_Component::ComponentWithUnavailableReader
@ ComponentWithUnavailableReader
Definition: dtk_maindoc.hpp:564
DcmReaderModule
@ DcmReaderModule
Definition: dtk_maindoc.hpp:50
MaxReaderModules
@ MaxReaderModules
Definition: dtk_maindoc.hpp:83
Dtk_Component::SetFileVersion
void SetFileVersion(const Dtk_string &inFileVersion)
util_ent_dtk.hpp
Dtk_Node
This is the Node Class.
Definition: dtk_maindoc.hpp:230
Dtk_Node::GetStoredInfos
Dtk_StoredInfoPtr GetStoredInfos() const
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:1109
DTK_TYPE_BODY
@ DTK_TYPE_BODY
Definition: define.h:492
RevitReaderModule
@ RevitReaderModule
Definition: dtk_maindoc.hpp:65
Dtk_NodeConnector::ReasonLinkEnumToString
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1128
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:689
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:269
ArtReaderModule
@ ArtReaderModule
Definition: dtk_maindoc.hpp:71
Dtk_Component::ComponentAvailabilityEnumToString
static Dtk_string ComponentAvailabilityEnumToString(const ComponentAvailabilityEnum &inEnum)
Definition: dtk_maindoc.hpp:575
Dtk_Node::MetaDataType
@ MetaDataType
Definition: dtk_maindoc.hpp:257
dtk_maindoc_ptr.hpp
Dtk_Node::NullType
@ NullType
Definition: dtk_maindoc.hpp:247
Dtk_NodeConnector::Context
@ Context
Definition: dtk_maindoc.hpp:1125
Dtk_Node::GetDtk_ConstraintPtr
Dtk_ConstraintPtr GetDtk_ConstraintPtr()
Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.
V4ReaderModule
@ V4ReaderModule
Definition: dtk_maindoc.hpp:33
Dtk_Component::ComponentTypeEnum
ComponentTypeEnum
Definition: dtk_maindoc.hpp:567
Dtk_Component::GetSiblingName
DtkErrorStatus GetSiblingName(Dtk_string &outSiblingName) const
SiblingName for Component.
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:591
Dtk_Node::ConstraintType
@ ConstraintType
Definition: dtk_maindoc.hpp:261
Dtk_DocElement::GetInfos
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
Dtk_Component::CreateFdtNode
Dtk_NodePtr CreateFdtNode(Dtk_string inName, const Dtk_ID &inFdtID, const type_detk inSubType=DTK_TYPE_FDT)
Create a Fdt Dtk_NodePtr from a Dtk_FdtPtr ID.
Dtk_NodeConnector::ForceClipped
@ ForceClipped
Definition: dtk_maindoc.hpp:1088
StepReaderModule
@ StepReaderModule
Definition: dtk_maindoc.hpp:39
Dtk_DocElement::SetMaterial
void SetMaterial(Dtk_MaterialPtr inMaterial)
DstvReaderModule
@ DstvReaderModule
Definition: dtk_maindoc.hpp:75
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:1079
Dtk_Node::AddChild
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:378
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:70
Dtk_NodeConnector::FirstRefBlockSituationCategory
@ FirstRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1186
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:435
Dtk_NodeConnector::ThirdRefBlockSituationCategory
@ ThirdRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1188
Dtk_Node::LayerInfosSetType
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:255
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_Component::GetAssociatedModuleType
const DtkReaderType & GetAssociatedModuleType() const
Retrieves the Dtk_Component AssociatedModuleType - read only -.
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:560
Dtk_NodeConnector::ReasonCategoryEnumToString
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1190
VdaReaderModule
@ VdaReaderModule
Definition: dtk_maindoc.hpp:31
Dtk_Component::CreateMetaDataNode
Dtk_NodePtr CreateMetaDataNode(Dtk_string inName, const Dtk_ID &inMetaDataID, const type_detk inSubType=DTK_TYPE_METADATA)
Create a MetaData Dtk_NodePtr from a Dtk_MetaDataPtr.
Dtk_Node::NodeHasCurves
Dtk_bool NodeHasCurves() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.
Dtk_Component::CreateBodyNode
Dtk_NodePtr CreateBodyNode(Dtk_string inName, const Dtk_ID &inBodyID, const Dtk_Int32 inBodyFlag, const type_detk inSubType=DTK_TYPE_BODY)
Create a Body Dtk_NodePtr from a body ID.
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:511
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:22
Dtk_Component::InstanceName
const Dtk_string & InstanceName() const
Retrieves the Dtk_Component InstanceName - read only -.
type_detk
type_detk
Definition: define.h:32
Dtk_Component::ComponentPhantom
@ ComponentPhantom
Definition: dtk_maindoc.hpp:561
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:1087
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_Component::SetConceptionUnitScale
void SetConceptionUnitScale(Dtk_Double64 inUnitScale)
Dtk_DocElement::GetMaterial
Dtk_MaterialPtr GetMaterial() const
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
Dtk_Component::GetNumOverrideSets
Dtk_Size_t GetNumOverrideSets() const
Give number of Override sets in a prototype component
Dtk_Component::FullPathName
const Dtk_string & FullPathName() const
Retrieves the Dtk_Component FullPathName - read only -.
Dtk_NodeConnector::PositionallyFixed
@ PositionallyFixed
Definition: dtk_maindoc.hpp:1084
Dtk_Component::GetFatherNode
Dtk_NodePtr GetFatherNode(const Dtk_NodePtr &inNode) const
Retrieves the father Dtk_NodePtr of the given Dtk_NodePtr.
Dtk_NodeConnector::get_type_detk
type_detk get_type_detk() const
Definition: dtk_maindoc.hpp:1261
util_stl_dtk.hpp
Dtk_NodeConnector::HighlightedGeometry
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1117
Dtk_DocElement::SetReadID
void SetReadID(const Dtk_ID &inNewID)
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:394
Dtk_Node::_typeID
@ _typeID
Definition: dtk_maindoc.hpp:346
Dtk_Component::GetSelectableLayers
void GetSelectableLayers(Dtk_tab< Dtk_Int32 > &outSelectableLayers) const
Selectable layer for Component.
Dtk_NodeConnector::SubEntity::SubEntity
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1211
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:286
Dtk_Node::GetDtk_MeshPtr
Dtk_MeshPtr GetDtk_MeshPtr()
Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.
util_ptr_dtk.hpp
Dtk_Component::SetAsDeprecated
SetAsDeprecated("2022.1", "Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.") Dtk_Double64 GetConceptionUnitScale() const
Get the Original Units for documents.
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:514
Dtk_Component::SetComponentAvailability
Dtk_ErrorStatus SetComponentAvailability(const ComponentAvailabilityEnum &inComponentAvailability)
Dtk_NodeConnector::SubEntity::SubEntity
SubEntity()
Definition: dtk_maindoc.hpp:1210
Dtk_NodeConnector::VisibilityCategory
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1184
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:309
Dtk_tab< Dtk_NodeConnectorPtr >
Dtk_Component::GetNodeByID
Dtk_NodePtr GetNodeByID(const Dtk_NodeID &inNodeID) const
Retrieves a Dtk_NodePtr from the Dtk_Component NodesPool giving his Id.
DwgDtkReaderModule
@ DwgDtkReaderModule
Definition: dtk_maindoc.hpp:79
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_TYPE_CONSTRAINT
@ DTK_TYPE_CONSTRAINT
Definition: define.h:610
Dtk_DocElement::GetReadID
void GetReadID(Dtk_ID &outReadID) const
Dtk_NodeConnector::DefaultAnnotationLink
@ DefaultAnnotationLink
Definition: dtk_maindoc.hpp:1116
Dtk_Component::GetGlobalDataSet
const Dtk_GlobalDataSetPtr GetGlobalDataSet() const
Retrieve the Dtk_GlobalDataSetPtr attached to the Dtk_Component - get only -.
CgmReaderModule
@ CgmReaderModule
Definition: dtk_maindoc.hpp:69
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:68
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:1100
SmgReaderModule
@ SmgReaderModule
Definition: dtk_maindoc.hpp:72
Dtk_NodeConnector::SecondRefBlockSituation_3
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1103
IfcReaderModule
@ IfcReaderModule
Definition: dtk_maindoc.hpp:63
DTK_TYPE_NO_SUBTYPE
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:543
Dtk_Component::GetBoundingBox
Dtk_ErrorStatus GetBoundingBox(Dtk_pnt &outMin, Dtk_pnt &outMax)
Get BoundingBox on Prototype Component if it can be read in original file.
Dtk_NodeConnector::GeneralAssociationCategory
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1183
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:569
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:1093
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:101
Dtk_Node::ColorInfosSetType
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:256
XmtReaderModule
@ XmtReaderModule
Definition: dtk_maindoc.hpp:35
Dtk_DocElement::GetNumMetaDataGroup
Dtk_Size_t GetNumMetaDataGroup() const
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
Dtk_Component::ComponentMissing
@ ComponentMissing
Definition: dtk_maindoc.hpp:558
Dtk_string::len
int len() const
Retrieve the length of the Dtk_string.
Dtk_NodeConnector::FirstRefBlockSituation_1
@ FirstRefBlockSituation_1
Definition: dtk_maindoc.hpp:1094
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:554
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:32
Dtk_Component::GetNumNodes
Dtk_Size_t GetNumNodes() const
Give number of Nodes in the Component (useful if you want to handle progress bar).
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:86
Dtk_NodeConnector::SubEntity::GetSubEntityType
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1216
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:43
Dtk_NodeConnector::AssociatedZDirection
@ AssociatedZDirection
Definition: dtk_maindoc.hpp:1122
Dtk_NodeConnector::StackedLeft
@ StackedLeft
Definition: dtk_maindoc.hpp:1080
Dtk_Component::OriginalPathName
const Dtk_string & OriginalPathName() const
Retrieves the Dtk_Component OriginalPathName (read in file) - read only -.
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.
Dtk_Node::HasMesh
@ HasMesh
Definition: dtk_maindoc.hpp:241
Dtk_Component::SetSelectableLayers
void SetSelectableLayers(const Dtk_tab< Dtk_Int32 > &inSelectableLayers)
catiav5w::inInstanceName
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:621
CreoviewReaderModule
@ CreoviewReaderModule
Definition: dtk_maindoc.hpp:66
Dtk_Component::_ReleaseVolatileData
void _ReleaseVolatileData()
Dtk_Node::VirtualType
@ VirtualType
Definition: dtk_maindoc.hpp:260
PdfReaderModule
@ PdfReaderModule
Definition: dtk_maindoc.hpp:58
Dtk_NodeConnector::AssociatedXDirection
@ AssociatedXDirection
Definition: dtk_maindoc.hpp:1120
Dtk_DocElement::_Init
void _Init()
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:252
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:76
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:1085
Dtk_DocElement::Name
Dtk_string & Name()
Dtk_NodeConnector::SecondRefBlockSituation_1
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1101
Dtk_Component::GetConnectorsPointingToThisComponent
Dtk_ErrorStatus GetConnectorsPointingToThisComponent(Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
Retrieves the connectors pointing on this component.
Dtk_Component::Dtk_MainDoc
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:627
Dtk_Node::AxisSystemType
@ AxisSystemType
Definition: dtk_maindoc.hpp:254
Dtk_Node::DtkDynamicType
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
Dtk_NodeConnector::FirstRefBlockSituation_2
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1095
Dtk_NodeConnector::SubEntity::~SubEntity
~SubEntity()
Definition: dtk_maindoc.hpp:1213
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:1115
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:1114
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:604
BRepOccReaderModule
@ BRepOccReaderModule
Definition: dtk_maindoc.hpp:64
Dtk_Node::MeshType
@ MeshType
Definition: dtk_maindoc.hpp:249
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:41
Dtk_Component::_Private
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:625
UgReaderModule
@ UgReaderModule
Definition: dtk_maindoc.hpp:34
Lava3mReaderModule
@ Lava3mReaderModule
Definition: dtk_maindoc.hpp:56
DwgReaderModule
@ DwgReaderModule
Definition: dtk_maindoc.hpp:61
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:1215
Dtk_MainDoc::RootComponent
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.