DATAKIT API  V2025.4
util_ent_dtk.hpp
Go to the documentation of this file.
1 #ifndef _UTIL_ENT_DTK_HPP_
2 #define _UTIL_ENT_DTK_HPP_
3 
9 #include "util/error_dtk.hpp"
11 #include "util/util_ptr_dtk.hpp"
12 #include "util_stl_dtk.hpp"
13 #include "def/define.h"
14 #include "dtk/config.hpp"
15 #include <iosfwd>
16 #include "util/dtk_val.hpp"
17 
18 class Dtk_Entity;
19 class Dtk_material;
20 class Dtk_MetaData;
21 
22 template <class T> class Dtk_SmartPtr;
23 
25 
28  DTK_PT_CROSS, // a cross which looks like a "X"
29  DTK_PT_PLUS, // a cross which looks like a "+"
30  DTK_PT_CONCENTRIC, // an unfilled circle
31  DTK_PT_COINCIDENT, // two unfilled concentric circles
32  DTK_PT_FULLCIRCLE, // a filled circle
33  DTK_PT_FULLSQUARE, // a filled square
34  DTK_PT_STAR, // a star which is the union of a 2D marker CROSS, a 2D marker PLUS and a 2D marker DOT
35  DTK_PT_DOT, // a dot
36  DTK_PT_SMALLDOT, // a small dot whose size is one pixel
37  DTK_PT_BIGFULLCIRCLE, // a big filled circle
38  DTK_PT_BIGFULLSQUARE, // a big filled square
39  DTK_PT_SQUARE, // an unfilled square
40  DTK_PT_UP_TRIANGLE, // a triangle pointing up
41  DTK_PT_DIAMOND // a square rotated by 90 degrees
42 };
43 
48  // ________________________________
50  // _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
52  // ________ _ _ _________ _ _ _____
54  // ________ _ _________ _ _________
56  // ................................
58  // ___ ___ ___ ___ ___ ___ ___ ___
60  // ___ . ___ . ___ . ___ . ___ . __
62  // --'\,-----'\,-----'\,-----'\,---
65 };
66 
67 extern int dtk_AddColorInTable(const Dtk_RGB&);
68 
69 class Dtk_Object;
70 template <class T>
71 class Dtk_SmartPtr;
72 class Dtk_Val;
73 struct Dtk_string_compare;
74 class Dtk_Info;
75 
76 //class Dtk_Connector;
77 //class Dtk_ConnectorPart;
78 
79 //typedef Dtk_SmartPtr<Dtk_Connector> Dtk_ConnectorPtr;
80 //typedef Dtk_SmartPtr<Dtk_ConnectorPart> Dtk_ConnectorPartPtr;
81 //
82 //typedef Dtk_tab<Dtk_ConnectorPtr> Dtk_ConnectorTab;
83 //typedef Dtk_tab<Dtk_ConnectorPartPtr> Dtk_ConnectorPartTab;
84 
85 class Dtk_UUID;
86 class Dtk_pnt;
87 class Dtk_dir;
88 class Dtk_RGB;
89 class Dtk_string;
90 
91 
92 
93 
94 
95 
97 {
98  bool operator()(const Dtk_string& s1, const Dtk_string& s2) const
99  {
100  return s1.cmp(s2) < 0;
101  }
102 };
103 
105 {
106  bool operator()(const Dtk_string& s1, const Dtk_string& s2) const
107  {
108  return s1.icmp(s2) < 0;
109  }
110 };
118 class Dtk_Info : public Dtk_Object
119 {
120 
121 protected:
122  enum { _typeID = DTK_TYPE_INFO };
123  struct Dtk_Handle; // Not defined here
124  Dtk_Handle *_Private; // Handle
126  void _init();
127  void _copy(const Dtk_Info& s);
128  void _reset();
130  Dtk_Info(const Dtk_Info& s);
132  friend class Dtk_SmartPtr<Dtk_Info>;
133  virtual Dtk_Object* Clone() { return new Dtk_Info(*this); }
134 public:
136  {
142  };
143 
144  //downcasting
145  int DtkDynamicType(const Dtk_Int32& inId);
147 
155 
158 
160  Dtk_Val const * FindAttribute(const Dtk_string& name) const; // If not found, returns nullptr.
161  Dtk_ErrorStatus ListAttributes(const Dtk_string& substring, Dtk_tab<Dtk_string>& tab_keys) const;
166 
181  Dtk_ErrorStatus SetColor( const int&R, const int&G, const int&B );// {return SetColorId( dtk_AddColorInTable( Dtk_RGB( R, G, B ) ) ); }
182  Dtk_ErrorStatus SetColor( const Dtk_RGB & inColor );// {return SetColorId( dtk_AddColorInTable( inColor ) ); }
183 
184 
190  Dtk_ErrorStatus SetCurveThickNess(const Dtk_Int32 &inCurveThickNess);
194  Dtk_ErrorStatus SetCurveLineTypeDefinitionId( const Dtk_ID & inLineTypeDefinitionId );
196  Dtk_ErrorStatus SetCurveLineType(const Dtk_Int32 &inCurveLineType);
199  Dtk_ErrorStatus SetInfiniteGeometryFlag(const Dtk_Int32 &inInfiniteGeometryFlag);
200  Dtk_ErrorStatus SetRefEntityFlag( const Dtk_Int32 &inRefEntityFlag );
201  Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag);
206  //Deprecated use AddRenderInfos and AddMaterialInfos methods instead
212 
213 
214  int GetActivationFlag() const;
215  int GetFlexibleFlag() const;
217  int GetDefaultChildIndex() const;
219  int GetUse() const;
220  int GetAddedItemFlag() const;
221  int GetHierarchy() const;
223  int GetFontId() const;
224  int GetFormFlag() const;
225  int GetMatId() const;
226  int GetSubordFlag() const;
227  int GetId() const;
228  int GetViewId() const;
229 
235 
249  Dtk_RGB GetColor() const;
250  int GetColorId() const;
251 
257 
261  int GetLayer() const;
262 
269  int GetBlankedStatus() const;
270 
272  int GetCurveThickNess() const;
273 
278 
282 
286 
290 
294 
297  enum MandatoryFlag GetMandatoryFlag() const;
298 
299 
301  int GetRefEntityFlag() const;
302  Dtk_UUID GetUuid() const;
304 
305  //Deprecated use GetRenderInfos() and GetPhysicalMaterialInfos() methods instead.
307 
312 
317 
321 
325 
328 
329 
334 
340  void SetIsUpToDate( const Dtk_bool isUpToDate );
341 
342 
343  virtual Dtk_Size_t GetSize() const;
344  virtual Dtk_ErrorStatus _Store(void*);
345 };
346 
347 
348 class Dtk_Entity : public Dtk_Object
349 {
350 protected:
351  struct Dtk_Handle; // Not defined here
352  Dtk_Handle *_Private; // Handle
354  void _init();
355  void _copy(const Dtk_Entity& s);
356  void _reset();
357 
358  virtual Dtk_Object* Clone() = 0;
359  friend class Dtk_SmartPtr<Dtk_Entity>;
360 public:
366 
367  virtual ~Dtk_Entity();
370  const Dtk_ID& GetID() const;
371 
372  virtual enum type_detk get_type_detk() const=0;
373 
374  //downcasting
375  int DtkDynamicType(const int& inId);
377 
380  //virtual Dtk_status Transform(const Dtk_transfo& inTransfo)=0;
382 
383  virtual Dtk_ErrorStatus _Store(void*);
384  virtual Dtk_Size_t GetSize() const;
385 
386  virtual void PrepareTransfo ();
387 };
388 
390 
391 class Dtk_LayerInfosSet;
392 class Dtk_ColorInfosSet;
394 class Dtk_AxisSystem;
395 class Dtk_ModelDisplay;
396 class Dtk_Constraint;
405 
406 
407 
408 
414 {
415 protected:
416  struct Dtk_Handle; // Not defined here
417  Dtk_Handle *_Private; // Handle
419 
420  Dtk_LayerFilterInfos(const Dtk_Size_t inNumLayers, Dtk_string inName = L"", Dtk_string inDescription = L"", const Dtk_bool inAreLayersActivatedByDefault = DTK_FALSE);
423  void _Init(const Dtk_Size_t inNumLayers);
424  void _Copy(const Dtk_LayerFilterInfos &s);
425  void _Reset();
426  friend class Dtk_SmartPtr< Dtk_LayerFilterInfos >;
427  friend class Dtk_LayerInfosSet;
428 public:
431 
434 
437 
440  void SelectLayer(const Dtk_Size_t inLayerIndex);
441 
444  void SelectLayers(const Dtk_tab< Dtk_Size_t >& inLayerIndexes );
445 
448  void UnselectLayer(const Dtk_Size_t inLayerIndex);
449 
452  void UnselectLayers(const Dtk_tab< Dtk_Size_t >& inLayerIndexes);
453 
454 
458  Dtk_bool IsLayerSelected(const Dtk_Size_t inLayerIndex ) const;
459 
462  void GetSelectedLayers(Dtk_tab< Dtk_Size_t >& outSelectedLayerIndexes) const;
463 
466  void GetName(Dtk_string& outLayerFilterName) const;
467 
470  void GetDescription(Dtk_string& outLayerFilterDescription) const;
471 };
472 
483 {
484 public:
485 protected:
486  struct Dtk_Handle; // Not defined here
487  Dtk_Handle *_Private; // Handle
490  Dtk_LayerInfosSet(const Dtk_Size_t inNumLayers);
491 
494  virtual Dtk_Object* Clone() { return new Dtk_LayerInfosSet(*this); }
495 
498 private:
499  void _Init(const Dtk_Size_t inNumLayers);
500  void _Copy(const Dtk_LayerInfosSet &s);
501  void _Reset();
502  friend class Dtk_SmartPtr<Dtk_LayerInfosSet>;
503 public:
506 
509 
512 
515  static Dtk_LayerInfosSetPtr Create( const Dtk_Size_t inNumLayers );
516 
523  Dtk_LayerFilterInfosPtr CreateLayerFilterInfos( Dtk_string inName = L"", Dtk_string inDescription = L"", const Dtk_bool inAreLayersSelectedByDefault = DTK_FALSE, const Dtk_bool IsDefaultLayerFilter = DTK_FALSE );
524 
528 
532 
538  Dtk_ErrorStatus SetLayerName(const Dtk_Size_t inIndex, const Dtk_string& inLayerName);
539 
546  Dtk_ErrorStatus GetLayerName( const Dtk_Size_t inIndex, Dtk_string& outLayerName ) const;
547 
554  Dtk_ErrorStatus GetLayerNameById( const Dtk_ID inLayerID, Dtk_string& outLayerName ) const;
555 
560  Dtk_ErrorStatus SetDefaultLayer(const Dtk_Size_t inDefaultLayerIndex);
561 
566  Dtk_ErrorStatus GetDefaultLayer(Dtk_Size_t& outDefaultLayerIndex) const;
567 
572  Dtk_ErrorStatus GetDefaultLayerFilter(Dtk_Size_t& outDefaultLayerFilterIndex) const;
573 
577  Dtk_LayerFilterInfosPtr GetLayerFilterByPos(const Dtk_Size_t inLayerFilterIndex) const;
578 
584  Dtk_ErrorStatus SetLayerID(const Dtk_Size_t inLayerIndex, const Dtk_ID& inLayerID);
585 
591  Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerIndex, Dtk_ID& outLayerID) const;
592 
593 };
594 
595 
601 {
602 public:
603 protected:
604  struct Dtk_Handle; // Not defined here
605  Dtk_Handle *_Private; // Handle
608  Dtk_ColorInfosSet(const Dtk_Size_t inNumColors);
609 
612  virtual Dtk_Object* Clone() { return new Dtk_ColorInfosSet(*this); }
613 
616 private:
617  void _Init(const Dtk_Size_t inNumColors);
618  void _Copy(const Dtk_ColorInfosSet &s);
619  void _Reset();
620  friend class Dtk_SmartPtr<Dtk_ColorInfosSet>;
621 public:
624 
627 
630 
632  static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors);
633 
637 
643  Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string& inColorName,const Dtk_RGB& inColorDef);
644 
645 
651  Dtk_ErrorStatus SetColorName(const Dtk_Size_t inColorPos, const Dtk_string& inColorName);
652 
659  Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string& outColorName) const;
660 
667  Dtk_ErrorStatus GetColorNameById(const Dtk_ID inColorReadId, Dtk_string& outColorName) const;
668 
674 
679  Dtk_ErrorStatus GetDefaultColor(Dtk_Int32& outDefaultColor) const;
680 
686  Dtk_ErrorStatus SetColorID(const Dtk_Size_t inColorPos, const Dtk_ID& inColorReadID);
687 
693  Dtk_ErrorStatus GetColorID(const Dtk_Size_t inColorPos, Dtk_ID& outColorReadID) const;
694 
700  Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB& outColorDef) const;
701 
702 };
703 
704 
705 class Dtk_Preview;
707 
714 class Dtk_Preview: public Dtk_Object
715 {
716 public:
717  //downcasting
718  int DtkDynamicType(const int& inId);
720 
721  //constructors
723  static Dtk_PreviewPtr Create(const Dtk_Preview& in);
725  static Dtk_PreviewPtr Create(const char* inStream,const Dtk_Int32 inSizeStream);
726  char *GetStream();
729  void SetType(preview_type_detk inPreviewType);
730 
731 protected:
734  Dtk_Preview(const char* inStream,const Dtk_Int32 inSizeStream);
735  virtual ~Dtk_Preview();
736  struct Dtk_Handle;
737  Dtk_Handle *_Private;
738  void _Init();
739  void _Copy(const Dtk_Preview& s);
740  void _Reset();
741  friend class Dtk_SmartPtr<Dtk_Preview>;
742 };
743 
744 
753 {
754 public:
755 
758 
759 
767  void SetName(const Dtk_string& in) ;
768 
771  const Dtk_transfo& GetMatrix() const;
772 
777  void SetMatrix(const Dtk_transfo& in) ;
778 
782  int GetIsVisible() const;
786  void SetIsVisible() ;
787 
791  int GetIsHidden() const;
795  void SetIsHidden() ;
796 
804  void SetDefaultStatus(Dtk_bool inDefaultStatus) ;
805 
806 
807 
810 
813  virtual void conv_ptr(Dtk_AxisSystem ** s){*s = this;}
814  int DtkDynamicType(const int& inId);
816 
819 
820 protected:
822  virtual ~Dtk_AxisSystem();
823  struct Dtk_Handle;
824  Dtk_Handle *_Private;
825  void _Init();
826  void _copy(const Dtk_AxisSystem& s);
827  void _reset();
828  inline virtual Dtk_Object* Clone() { return new Dtk_AxisSystem(*this); }
829  friend class Dtk_SmartPtr<Dtk_AxisSystem>;
830 
831 };
837 {
838 protected:
839  struct Dtk_Handle; // Not defined here
840  Dtk_Handle *_Private; // Handle
842 
845 
847 
850  const Dtk_CameraPtr& inCamera,
852  const Dtk_bool inIsActivated);
853 
854  inline virtual Dtk_Object* Clone() { return new Dtk_ModelDisplay(*this); }
855 
858 private:
859  void _Init();
860  void _Copy(const Dtk_ModelDisplay &s);
861  void _Reset();
862  friend class Dtk_SmartPtr<Dtk_ModelDisplay>;
863 
864 public:
866  {
876  };
884  };
885 
888 
891 
894 
901  const Dtk_CameraPtr& inCamera,
903  const Dtk_bool inIsActivated);
904 
907  const Dtk_CameraPtr& GetCamera() const;
908 
912 
916 
919 
922 
924  void SetIsStandardView() const;
925 
928 
931  void SetSectionInformation(const SectionTypeEnum& inSectionType, const Dtk_Int32& inIsLocked = DTK_FALSE, const Dtk_Double64& inThickness=0.0) const;
932 
947  void GetSectionInformation(SectionTypeEnum& outSectionType, Dtk_Int32& outIsLocked, Dtk_Double64& outThickness) const;
948 
951 
953  void GetVisibleLayers( Dtk_tab<Dtk_Int32> &outVisibleLayers )const;
954  void SetVisibleLayers( const Dtk_tab<Dtk_Int32> & inVisibleLayers );
955 
956 };
957 
958 
967 {
968 public:
969 
972 
973 
981 
982 
986  const Dtk_pnt& GetPosition(Dtk_bool & outHasPosition) const;
989  void SetPosition(const Dtk_pnt& in);
990 
991 
994 
997  virtual void conv_ptr(Dtk_ConstraintReference ** s) { *s = this; }
998  int DtkDynamicType(const int& inId);
1000 
1003 
1004 protected:
1007  struct Dtk_Handle;
1008  Dtk_Handle *_Private;
1009  void _Init();
1011  void _Reset();
1012  inline virtual Dtk_Object* Clone() { return new Dtk_ConstraintReference(*this); }
1013  friend class Dtk_SmartPtr<Dtk_ConstraintReference>;
1014 
1015 };
1016 
1017 
1026 {
1027 public:
1029  {
1035  };
1037  {
1038  switch( inEnum )
1039  {
1040  case ValueTypeSame: return L"TypeSame";
1041  case ValueTypeOpposite: return L"TypeOpposite";
1042  case ValueTypeInternal: return L"TypeInternal";
1043  case ValueTypeExternal: return L"TypeExternal";
1044  default:
1045  case ValueTypeUndefined: return L"TypeUndefined";
1046  }
1047  }
1048 
1050  {
1057  };
1059  {
1060  switch( inEnum )
1061  {
1062  case ValueTypeAngle: return L"Angle";
1063  case ValueTypeDistance: return L"Distance";
1064  case ValueTypePosition: return L"Position";
1065  case ValueTypeRotation: return L"Rotation";
1066  case ValueTypeOrientation: return L"Orientation";
1067  default:
1068  case ValueTypeUnknown: return L"TypeUnknown";
1069  }
1070  }
1071 
1073  {
1074  public:
1077 
1078  _ConstraintValue(const ConstraintValueTypeEnum& inValueType, Dtk_Val& inValue, const Dtk_Int32& inEnableLowerLimit, const Dtk_Double64& inLowerLimit, const Dtk_Int32& inEnableUpperLimit, const Dtk_Double64& inUpperLimit);
1079  _ConstraintValue(const ConstraintValueTypeEnum& inValueType, Dtk_Val& inValue);
1080 
1087  private:
1088 
1089  };
1090 
1092  {
1138  TypeWidth
1139  };
1141  {
1142  switch (inEnum)
1143  {
1144  case TypeAlign: return L"TypeAlign";
1145  case TypeAngle: return L"TypeAngle";
1146  case TypeBond: return L"TypeBond";
1147  case TypeCam: return L"TypeCam";
1148  case TypeCenter: return L"TypeCenter";
1149  case TypeConcentric: return L"TypeConcentric";
1150  case TypeCoincidence: return L"TypeCoincidence";
1151  case TypeDistance: return L"TypeDistance";
1152  case TypeFit: return L"TypeFit";
1153  case TypeFix: return L"TypeFix";
1154  case TypeGear: return L"TypeGear";
1155  case TypeHinge: return L"TypeHinge";
1156  case TypeLimit: return L"TypeLimit";
1157  case TypeLinear: return L"TypeLinear";
1158  case TypeLinearCoupler: return L"TypeLinearCoupler";
1159  case TypeLock: return L"TypeLock";
1160  case TypeOrientAngle: return L"TypeOrientAngle";
1161  case TypeParallel: return L"TypeParallel";
1162  case TypePathMate: return L"TypePathMate";
1163  case TypePerpendicular: return L"TypePerpendicular";
1164  case TypeProfileCenter: return L"TypeProfileCenter";
1165  case TypeRackPinion: return L"TypeRackPinion";
1166  case TypeScrew: return L"TypeScrew";
1167  case TypeSlot: return L"TypeSlot";
1168  case TypeSymmetric: return L"TypeSymmetric";
1169  case TypeTangent: return L"TypeTangent";
1170  case TypeTouch: return L"TypeTouch";
1171  case TypeUniversalJoint: return L"TypeUniversalJoint";
1172  case TypeWidth: return L"TypeWidth";
1173  default:
1174  case TypeUnknown: return L"Unknown";
1175  }
1176  }
1177 
1180 
1181 
1183 
1191 
1196 
1200  const _ConstraintValue& GetConstraintValue( const Dtk_Size_t &index ) const;
1201 
1205  Dtk_ErrorStatus GetValue( const ConstraintValueTypeEnum& inValue, Dtk_Val& outValue, Dtk_Int32& outEnableLowerLimit, Dtk_Double64& outLowerLimit, Dtk_Int32& outEnableUpperLimit, Dtk_Double64& outUpperLimit ) const;
1206  Dtk_ErrorStatus GetValue( const ConstraintValueTypeEnum& inValue, Dtk_Val& outValue ) const;
1207 
1212 
1215  void SetValue( const ConstraintValueTypeEnum& inValueType, Dtk_Val& inValue, const Dtk_Int32& inEnableLowerLimit, const Dtk_Double64& inLowerLimit, const Dtk_Int32& inEnableUpperLimit, const Dtk_Double64& inUpperLimit );
1216  void SetValue( const ConstraintValueTypeEnum& inValueType, Dtk_Val& inValue );
1217 
1234 
1235 
1238 
1241  virtual void conv_ptr(Dtk_Constraint ** s) { *s = this; }
1242  int DtkDynamicType(const int& inId);
1244 
1247 
1248 protected:
1250  virtual ~Dtk_Constraint();
1251  struct Dtk_Handle;
1252  Dtk_Handle *_Private;
1253  void _Init();
1254  void _Copy(const Dtk_Constraint& s);
1255  void _Reset();
1256  inline virtual Dtk_Object* Clone() { return new Dtk_Constraint(*this); }
1257  friend class Dtk_SmartPtr<Dtk_Constraint>;
1258 
1259 };
1260 
1261 #endif
DTK_TYPE_COLOR_INFOS_SET
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:509
Dtk_Entity::Dtk_Entity
Dtk_Entity()
Dtk_Constraint::TypeFix
@ TypeFix
Definition: util_ent_dtk.hpp:1112
Dtk_LayerInfosSet::GetNumLayers
Dtk_Size_t GetNumLayers() const
Retrieves the number of layers.
Dtk_ConstraintReference::SetNodeConnector
void SetNodeConnector(const Dtk_NodeConnectorPtr &in)
Set the type of the Constraint .
Dtk_Info::GetFlexibleFlag
int GetFlexibleFlag() const
Dtk_Info::FindAttribute
Dtk_ErrorStatus FindAttribute(const Dtk_string &name, Dtk_Val &val) const
Dtk_ModelDisplay::Create
static Dtk_ModelDisplayPtr Create(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Calls full featured constructor to allocate a new object.
Dtk_ConstraintReference::DtkDynamicCast
static Dtk_ConstraintReference * DtkDynamicCast(Dtk_Object *inObject)
DTK_TYPE_LAYER_INFOS_SET
@ DTK_TYPE_LAYER_INFOS_SET
Definition: define.h:505
Dtk_ModelDisplay::GetVisibleLayers
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Dtk_ModelDisplay.
Dtk_LayerFilterInfos::SelectLayers
void SelectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Selects given layers in the layer filter.
Dtk_ConstraintReference::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1007
Dtk_pair
Definition: util_stl_dtk.hpp:919
Dtk_LayerInfosSet::CreateLayerFilterInfos
Dtk_LayerFilterInfosPtr CreateLayerFilterInfos(Dtk_string inName=L"", Dtk_string inDescription=L"", const Dtk_bool inAreLayersSelectedByDefault=DTK_FALSE, const Dtk_bool IsDefaultLayerFilter=DTK_FALSE)
Create a layer filter.
Dtk_LayerFilterInfos::Dtk_LayerFilterInfos
Dtk_LayerFilterInfos(const Dtk_Size_t inNumLayers, Dtk_string inName=L"", Dtk_string inDescription=L"", const Dtk_bool inAreLayersActivatedByDefault=DTK_FALSE)
Dtk_Info::GetReferenceSet
Dtk_ErrorStatus GetReferenceSet(Dtk_tab< Dtk_string > &outArray, Dtk_Int32 inRemovePrefix=DTK_FALSE) const
Dtk_Entity::get_info
Dtk_InfoPtr get_info() const
Dtk_LayerInfosSetPtr
Dtk_SmartPtr< Dtk_LayerInfosSet > Dtk_LayerInfosSetPtr
Definition: util_ent_dtk.hpp:397
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:691
Dtk_AxisSystem::SetMatrix
void SetMatrix(const Dtk_transfo &in)
Get the Matrix of the AxisSystem.
Dtk_Info::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:123
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_AxisSystem::GetIsVisible
int GetIsVisible() const
Get the visibility status.
Dtk_ColorInfosSet::GetDefaultColor
Dtk_ErrorStatus GetDefaultColor(Dtk_Int32 &outDefaultColor) const
Gets the default color number.
Dtk_Info::GetName
Dtk_string GetName() const
Retrieves the entity name.
Pdfw::inCamera
Dtk_CameraPtr inCamera
Definition: pdfw.hpp:654
Dtk_AxisSystemPtr
Dtk_SmartPtr< Dtk_AxisSystem > Dtk_AxisSystemPtr
Definition: util_ent_dtk.hpp:401
Dtk_Info::GetPhysicalMaterialInfos
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Dtk_Constraint::_ConstraintValue
Definition: util_ent_dtk.hpp:1073
Dtk_Entity::GetID
const Dtk_ID & GetID() const
Get Internal UniqueID.
Dtk_Preview::~Dtk_Preview
virtual ~Dtk_Preview()
Dtk_Info::SetCurveThickNess
Dtk_ErrorStatus SetCurveThickNess(const Dtk_Int32 &inCurveThickNess)
Dtk_ModelDisplay::rendering_mode_wireframe_face_analysis
@ rendering_mode_wireframe_face_analysis
Definition: util_ent_dtk.hpp:872
Dtk_LayerInfosSet::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:486
Dtk_string::cmp
int cmp(const Dtk_WChar_t *s2) const
Dtk_Info::SetFormFlag
Dtk_ErrorStatus SetFormFlag(const Dtk_Int32 &inFormFlag)
Dtk_Info::GetBlankedStatus
int GetBlankedStatus() const
Retrieves the entity Blanked Status.
Dtk_ConstraintReference::Dtk_ConstraintReference
Dtk_ConstraintReference(const Dtk_ConstraintReference &p)
Dtk_Info::GetAddedItemFlag
int GetAddedItemFlag() const
Dtk_Info::SetFlexibleFlag
Dtk_ErrorStatus SetFlexibleFlag(const Dtk_Int32 &inIsFlexible)
Dtk_Info::AddAttribute
Dtk_ErrorStatus AddAttribute(Dtk_string name, Dtk_Val val)
Dtk_ColorInfosSet::GetNumColors
Dtk_Size_t GetNumColors() const
Retrieves the number of colors.
Dtk_Info::GetInfiniteGeometryFlag
int GetInfiniteGeometryFlag() const
Dtk_Constraint::TypeSlot
@ TypeSlot
Definition: util_ent_dtk.hpp:1130
Dtk_Info
This is the generic Info class.
Definition: util_ent_dtk.hpp:119
Dtk_Info::SetName
Dtk_ErrorStatus SetName(Dtk_string inName)
Dtk_Constraint::_ConstraintValue::_ConstraintValue
_ConstraintValue()
Dtk_ConstraintReference::Dtk_ConstraintReference
Dtk_ConstraintReference()
Dtk_Constraint::SetValue
void SetValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue)
Dtk_LayerFilterInfos::DtkDynamicCast
static Dtk_LayerFilterInfos * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_ModelDisplay::GetSectionInformation
void GetSectionInformation(SectionTypeEnum &outSectionType, Dtk_Int32 &outIsLocked, Dtk_Double64 &outThickness) const
Get the type of the Section on the Dtk_Capture.
Dtk_Info::GetPointSymbolType
Dtk_PointType GetPointSymbolType() const
Retrieves the Symbol Type - for point only -.
Dtk_ColorInfosSet::~Dtk_ColorInfosSet
~Dtk_ColorInfosSet()
Destructor.
Dtk_Constraint::GetConstraintValue
const _ConstraintValue & GetConstraintValue(const Dtk_Size_t &index) const
Get the Dtk_Constraint::_ConstraintValue at the specified index.
Dtk_AxisSystem::~Dtk_AxisSystem
virtual ~Dtk_AxisSystem()
Dtk_Info::GetColorId
int GetColorId() const
config.hpp
Dtk_Info::GetMandatoryFlag
enum MandatoryFlag GetMandatoryFlag() const
Retrieves the Mandatory Flag.
Dtk_Info::GetDefaultChildIndex
int GetDefaultChildIndex() const
Dtk_Constraint::TypeLinearCoupler
@ TypeLinearCoupler
Definition: util_ent_dtk.hpp:1117
Dtk_ModelDisplay::GetIsStandardView
Dtk_bool GetIsStandardView() const
Get DTK_TRUE if this Dtk_ModelDisplay is a Standard View , DTK_FALSE if it is a user defined view .
Dtk_LayerInfosSet::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:511
Dtk_LayerFilterInfos::UnselectLayer
void UnselectLayer(const Dtk_Size_t inLayerIndex)
Unselects the given layer in the layer filter.
dtk_AddColorInTable
int dtk_AddColorInTable(const Dtk_RGB &)
Dtk_Constraint::ConstraintOrientationTypeEnum
ConstraintOrientationTypeEnum
Definition: util_ent_dtk.hpp:1029
Dtk_Preview::SetType
void SetType(preview_type_detk inPreviewType)
Dtk_Constraint::TypeWidth
@ TypeWidth
Definition: util_ent_dtk.hpp:1138
Dtk_AxisSystem::Dtk_AxisSystem
Dtk_AxisSystem()
DTK_TYPE_MODEL_DISPLAY
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:487
Dtk_Constraint::TypeAlign
@ TypeAlign
Definition: util_ent_dtk.hpp:1095
Dtk_Constraint::conv_ptr
virtual void conv_ptr(Dtk_Constraint **s)
Definition: util_ent_dtk.hpp:1241
Dtk_AxisSystem::operator=
Dtk_AxisSystem & operator=(const Dtk_AxisSystem &p)
Dtk_Info::AddCustomerDefinedAttribute
Dtk_ErrorStatus AddCustomerDefinedAttribute(Dtk_string name, Dtk_Val val)
Dtk_Constraint::GetValuesTypes
Dtk_tab< ConstraintValueTypeEnum > GetValuesTypes() const
Get all types of values in the Constraint.
Dtk_Info::XYPlane
@ XYPlane
Definition: util_ent_dtk.hpp:138
Dtk_Entity::Dtk_Entity
Dtk_Entity(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_Info::GetCurveThickNessInMM
Dtk_Double64 GetCurveThickNessInMM() const
Retrieves the curve thickness - if exists and relevant -.
Dtk_ColorInfosSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_Info::GetRefEntityFlag
int GetRefEntityFlag() const
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:468
Dtk_string_compare_case_insensitive
Definition: util_ent_dtk.hpp:105
catiav5w::inTransfo
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:622
Dtk_Info::GetPersistentName
Dtk_string GetPersistentName() const
Dtk_LayerFilterInfos::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:418
DTK_CENTERLINE
@ DTK_CENTERLINE
Definition: util_ent_dtk.hpp:55
Dtk_Constraint::Dtk_Constraint
Dtk_Constraint()
Dtk_PreviewPtr
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: util_ent_dtk.hpp:705
Dtk_Constraint::_ConstraintValue::_ValueUpper
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1086
Dtk_Constraint::ValueTypeSame
@ ValueTypeSame
Definition: util_ent_dtk.hpp:1031
Dtk_Constraint::TypeSymmetric
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1132
Dtk_Constraint::_Copy
void _Copy(const Dtk_Constraint &s)
DTK_PT_CROSS
@ DTK_PT_CROSS
Definition: util_ent_dtk.hpp:28
Dtk_Info::SetRenderInfosId
Dtk_ErrorStatus SetRenderInfosId(const Dtk_ID &inRenderId)
Dtk_Info::SetHierarchy
Dtk_ErrorStatus SetHierarchy(const Dtk_Int32 &inHierarchy)
Dtk_LayerFilterInfosPtr
Dtk_SmartPtr< Dtk_LayerFilterInfos > Dtk_LayerFilterInfosPtr
Definition: util_ent_dtk.hpp:400
Dtk_LayerFilterInfos::Dtk_LayerFilterInfos
Dtk_LayerFilterInfos(const Dtk_LayerFilterInfos &s)
Dtk_Info::AddRenderInfos
Dtk_ErrorStatus AddRenderInfos(const Dtk_RenderInfosPtr &inRender)
Dtk_Info::SetConfigurationName
Dtk_ErrorStatus SetConfigurationName(const Dtk_string &inName)
Dtk_Preview::GetStreamSize
Dtk_Int32 GetStreamSize()
Dtk_ConstraintReference::conv_ptr
virtual void conv_ptr(Dtk_ConstraintReference **s)
Definition: util_ent_dtk.hpp:997
Dtk_Info::DtkDynamicCast
static Dtk_Info * DtkDynamicCast(Dtk_Object *s)
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
DTK_PT_DOT
@ DTK_PT_DOT
Definition: util_ent_dtk.hpp:35
Dtk_Info::GetActiveChildren
Dtk_tab< Dtk_Int32 > GetActiveChildren() const
Dtk_ModelDisplay::rendering_mode_shaded_with_visible_edges
@ rendering_mode_shaded_with_visible_edges
Definition: util_ent_dtk.hpp:868
Dtk_ModelDisplay::rendering_mode_wireframe_with_all_edges
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:869
Dtk_Info::GetViewId
int GetViewId() const
DTK_PT_UNSPECIFIED
@ DTK_PT_UNSPECIFIED
Definition: util_ent_dtk.hpp:27
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:714
Dtk_Info::GetColor
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
Dtk_Constraint::TypeBond
@ TypeBond
Definition: util_ent_dtk.hpp:1099
Dtk_LayerInfosSet::SetLayerName
Dtk_ErrorStatus SetLayerName(const Dtk_Size_t inIndex, const Dtk_string &inLayerName)
Sets the layer name giving its index.
Dtk_Info::GetActivationFlag
int GetActivationFlag() const
Dtk_Constraint::ValueTypeInternal
@ ValueTypeInternal
Definition: util_ent_dtk.hpp:1033
DTK_TYPE_AXIS_SYSTEM
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:45
Dtk_ModelDisplay::~Dtk_ModelDisplay
~Dtk_ModelDisplay()
Destructor.
Dtk_LayerInfosSet::~Dtk_LayerInfosSet
~Dtk_LayerInfosSet()
Destructor.
Dtk_Constraint::ConstraintValueTypeEnumToString
static Dtk_string ConstraintValueTypeEnumToString(const ConstraintValueTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1058
DTK_PT_STAR
@ DTK_PT_STAR
Definition: util_ent_dtk.hpp:34
Dtk_AxisSystem::GetName
Dtk_string GetName() const
Get the Name of the AxisSystem.
Dtk_AxisSystem::Dtk_AxisSystem
Dtk_AxisSystem(const Dtk_AxisSystem &p)
Dtk_UUID
Definition: dtk_uuid.hpp:8
Dtk_ConstraintReference::~Dtk_ConstraintReference
virtual ~Dtk_ConstraintReference()
Dtk_Constraint::GetNumberOfConstraintReferences
Dtk_Size_t GetNumberOfConstraintReferences() const
Get the number of Dtk_ConstraintReference in the constraint.
dtk_metadata.hpp
Dtk_ModelDisplay::SetIsStandardView
void SetIsStandardView() const
Set if this Dtk_ModelDisplay is a Standard View other case it is a user defined view.
Dtk_ConstraintReference::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1012
Dtk_Constraint::TypeUnknown
@ TypeUnknown
Definition: util_ent_dtk.hpp:1093
Dtk_LayerInfosSet::Dtk_LayerInfosSet
Dtk_LayerInfosSet(const Dtk_Size_t inNumLayers)
Dtk_Info::Dtk_Info
Dtk_Info()
Dtk_AxisSystem::create
static Dtk_SmartPtr< Dtk_AxisSystem > create()
Calls default constructor to allocate a new object.
Dtk_Info::GetIsUpToDate
Dtk_bool GetIsUpToDate() const
Retrieves up to date state of current object.
Dtk_Constraint::ValueTypeExternal
@ ValueTypeExternal
Definition: util_ent_dtk.hpp:1034
Dtk_Info::SetMetaData
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
DTK_BREAKLINE
@ DTK_BREAKLINE
Definition: util_ent_dtk.hpp:63
dtk_val.hpp
DTK_FALSE
#define DTK_FALSE
Definition: define.h:730
Dtk_Info::ListAllCustomerDefinedAttributesWithVal
Dtk_ErrorStatus ListAllCustomerDefinedAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
Dtk_bool
char Dtk_bool
Definition: define.h:727
Dtk_Info::RemoveAttribute
Dtk_ErrorStatus RemoveAttribute(const Dtk_string &name)
DTK_TYPE_INFO
@ DTK_TYPE_INFO
Definition: define.h:469
catiav5w::inBlankedStatus
const Dtk_string const Dtk_transfo const Dtk_bool inBlankedStatus
Definition: catiav5w.hpp:623
Dtk_AxisSystem::SetName
void SetName(const Dtk_string &in)
Set the Name of the AxisSystem.
Dtk_Info::_reset
void _reset()
Dtk_ConstraintReference::operator=
Dtk_ConstraintReference & operator=(const Dtk_ConstraintReference &p)
DTK_SOLIDLINE
@ DTK_SOLIDLINE
Definition: util_ent_dtk.hpp:49
Dtk_Entity::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:351
Dtk_ModelDisplay::rendering_mode_wireframe_with_only_visible_edges
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:870
Dtk_Info::SetColorId
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
Dtk_Constraint::ValueTypeOrientation
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1056
Dtk_Constraint::SetConstraintType
void SetConstraintType(const ConstraintTypeEnum &in)
Set the type of the Constraint .
Dtk_Info::GetUuid
Dtk_UUID GetUuid() const
Dtk_Info::SetCurveLineTypeDefinitionId
Dtk_ErrorStatus SetCurveLineTypeDefinitionId(const Dtk_ID &inLineTypeDefinitionId)
Set Dtk_LineTypeDefinition of current object via it's id in Dtk_API table.
DTK_NUM_FONT_LINE_TYPES
@ DTK_NUM_FONT_LINE_TYPES
Definition: util_ent_dtk.hpp:64
Dtk_Info::GetCurveThickNess
int GetCurveThickNess() const
Dtk_LayerInfosSet::GetDefaultLayer
Dtk_ErrorStatus GetDefaultLayer(Dtk_Size_t &outDefaultLayerIndex) const
Gets the default layer index.
Dtk_Constraint
This is the Dtk_Constraint class.
Definition: util_ent_dtk.hpp:1026
Dtk_Double64
double Dtk_Double64
Definition: define.h:701
Dtk_Constraint::_ConstraintValue::_ConstraintValue
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue, const Dtk_Int32 &inEnableLowerLimit, const Dtk_Double64 &inLowerLimit, const Dtk_Int32 &inEnableUpperLimit, const Dtk_Double64 &inUpperLimit)
Dtk_string::icmp
int icmp(const Dtk_WChar_t *s2) const
Dtk_ModelDisplay::SetRenderingMode
void SetRenderingMode(RenderingModeEnum inMode) const
Set the rendering mode shaded , shaded with edge , ...
Dtk_ConstraintReference::GetNodeConnector
const Dtk_NodeConnectorPtr & GetNodeConnector() const
Get the Dtk_NodeConnectorPtr of the ConstraintReference .
Dtk_Constraint::GetConstraintType
const ConstraintTypeEnum & GetConstraintType() const
Get the type of the Constraint .
Dtk_LayerFilterInfos::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:436
Dtk_ColorInfosSet::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:612
Dtk_Constraint::DtkDynamicCast
static Dtk_Constraint * DtkDynamicCast(Dtk_Object *inObject)
Dtk_Constraint::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_ModelDisplay::RenderingModeEnum
RenderingModeEnum
Definition: util_ent_dtk.hpp:866
Dtk_Entity::get_type_detk
virtual enum type_detk get_type_detk() const =0
Dtk_LayerFilterInfos::_Copy
void _Copy(const Dtk_LayerFilterInfos &s)
Dtk_Constraint::ValueTypeDistance
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1053
Dtk_Info::SetBlankedStatus
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
Dtk_Info::Dtk_Info
Dtk_Info(const Dtk_Info &s)
Dtk_Constraint::ValueTypeAngle
@ ValueTypeAngle
Definition: util_ent_dtk.hpp:1052
Dtk_Entity::DtkDynamicCast
static Dtk_Entity * DtkDynamicCast(Dtk_Object *s)
Dtk_Info::create
static Dtk_SmartPtr< Dtk_Info > create(Dtk_Info &&in)
Calls move constructor to allocate a new object.
Dtk_AxisSystem::_reset
void _reset()
Dtk_Info::SetInfiniteGeometryFlag
Dtk_ErrorStatus SetInfiniteGeometryFlag(const Dtk_Int32 &inInfiniteGeometryFlag)
util_draw_ptr_dtk.hpp
Dtk_Preview::_Copy
void _Copy(const Dtk_Preview &s)
Dtk_Info::SetAddedItemFlag
Dtk_ErrorStatus SetAddedItemFlag(const Dtk_Int32 &inAddedItem)
Dtk_Constraint::_ConstraintValue::_ConstraintValue
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue)
Dtk_AxisSystem::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:823
Dtk_Val
Definition: dtk_val.hpp:67
preview_type_detk
preview_type_detk
Definition: define.h:634
Dtk_Info::_Material
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:125
Dtk_Info::GetMetaData
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
Dtk_Constraint::ValueTypeRotation
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1055
DTK_PT_UP_TRIANGLE
@ DTK_PT_UP_TRIANGLE
Definition: util_ent_dtk.hpp:40
Dtk_ColorInfosSet::SetDefaultColor
Dtk_ErrorStatus SetDefaultColor(const Dtk_Int32 inDefaultColor)
Sets the default color number.
Dtk_Info::SetCurveLineType
Dtk_ErrorStatus SetCurveLineType(const Dtk_Int32 &inCurveLineType)
Set line type of current object thanks to Dtk_FontLineType enumeration.
Dtk_Info::_Store
virtual Dtk_ErrorStatus _Store(void *)
Dtk_Constraint::GetConstraintReference
const Dtk_ConstraintReferencePtr & GetConstraintReference(const Dtk_Size_t &index) const
Get the Dtk_ConstraintReference at the specified index.
Dtk_Constraint::_ConstraintValue::~_ConstraintValue
~_ConstraintValue()
Dtk_Entity::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_AxisSystem::SetIsVisible
void SetIsVisible()
Set the visibility status.
Dtk_ConstraintReference
This is the Dtk_ConstraintReference class.
Definition: util_ent_dtk.hpp:967
Dtk_Constraint::ConstraintOrientationTypeEnumToString
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1036
Dtk_ModelDisplay::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:841
Dtk_Constraint::_ConstraintValue::_ValueType
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1081
Dtk_ModelDisplay::SectionPlane
@ SectionPlane
Definition: util_ent_dtk.hpp:878
Dtk_ColorInfosSet::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:606
Dtk_AxisSystem::_Init
void _Init()
DTK_PT_COINCIDENT
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:31
Dtk_AxisSystem::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_LayerFilterInfos::_Init
void _Init(const Dtk_Size_t inNumLayers)
Dtk_LayerInfosSet
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:483
Dtk_Constraint::TypeTouch
@ TypeTouch
Definition: util_ent_dtk.hpp:1136
Dtk_ModelDisplay::rendering_mode_wireframe_partially_shade
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:873
Dtk_Info::SetViewId
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_Info::SetPointSymbolType
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
Dtk_ModelDisplay::rendering_mode_unknown
@ rendering_mode_unknown
Definition: util_ent_dtk.hpp:875
Dtk_AxisSystem::IsDefault
Dtk_bool IsDefault() const
Get the default status.
Dtk_ModelDisplay
This is the Dtk_ModelDisplay class.
Definition: util_ent_dtk.hpp:837
DTK_DASHED
@ DTK_DASHED
Definition: util_ent_dtk.hpp:51
Dtk_ModelDisplay::GetRenderingMode
RenderingModeEnum GetRenderingMode() const
Get the rendering mode shaded , shaded with edge , ...
Dtk_Info::SetActiveChildren
Dtk_ErrorStatus SetActiveChildren(const Dtk_tab< Dtk_Int32 > &inIndices)
Dtk_Info::AddCurveLineTypeDefinition
Dtk_ErrorStatus AddCurveLineTypeDefinition(const Dtk_LineTypeDefinitionPtr &inLineTypeDefinition)
Add a Dtk_LineTypeDefinition to Dtk_API and set it to current object.
Dtk_ModelDisplay::rendering_mode_shaded_only
@ rendering_mode_shaded_only
Definition: util_ent_dtk.hpp:867
Dtk_ModelDisplay::Dtk_ModelDisplay
Dtk_ModelDisplay(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Dtk_Preview::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_LayerFilterInfos::IsLayerSelected
Dtk_bool IsLayerSelected(const Dtk_Size_t inLayerIndex) const
Tells if the layer is selected or not giving its index.
Dtk_ModelDisplayPtr
Dtk_SmartPtr< Dtk_ModelDisplay > Dtk_ModelDisplayPtr
Definition: util_ent_dtk.hpp:402
Dtk_ModelDisplay::SectionBox
@ SectionBox
Definition: util_ent_dtk.hpp:881
Dtk_LayerInfosSet::GetLayerID
Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerIndex, Dtk_ID &outLayerID) const
Gets the LayerID giving its index.
Dtk_Constraint::TypeAngle
@ TypeAngle
Definition: util_ent_dtk.hpp:1097
Dtk_ModelDisplay::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:839
Dtk_Constraint::TypePerpendicular
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1126
Dtk_Info::SetHierarchyColorFlag
Dtk_ErrorStatus SetHierarchyColorFlag(const Dtk_Int32 &inHierarchy)
Dtk_Info::SetActivationFlag
Dtk_ErrorStatus SetActivationFlag(const Dtk_Int32 &inActivation)
Dtk_LayerInfosSet::DtkDynamicCast
static Dtk_LayerInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_ConstraintReference::SetPosition
void SetPosition(const Dtk_pnt &in)
Set the Position of the ConstraintReference .
Dtk_Constraint::TypeHinge
@ TypeHinge
Definition: util_ent_dtk.hpp:1114
Dtk_Constraint::TypeConcentric
@ TypeConcentric
Definition: util_ent_dtk.hpp:1104
Dtk_LayerInfosSet::GetNumLayerFilters
Dtk_Size_t GetNumLayerFilters() const
Retrieves the number of layer filters.
Dtk_Info::SetAdditionnalGeometryFlag
Dtk_ErrorStatus SetAdditionnalGeometryFlag(const Dtk_Int32 &inAdditionnalGeom)
DTK_PT_SMALLDOT
@ DTK_PT_SMALLDOT
Definition: util_ent_dtk.hpp:36
Dtk_ModelDisplay::GetClippingEntity
Dtk_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
Dtk_AxisSystem::_copy
void _copy(const Dtk_AxisSystem &s)
Dtk_Constraint::TypeParallel
@ TypeParallel
Definition: util_ent_dtk.hpp:1123
Dtk_ModelDisplay::rendering_mode_static_wireframe
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:871
Dtk_ModelDisplay::SectionUndefined
@ SectionUndefined
Definition: util_ent_dtk.hpp:883
Dtk_LayerInfosSet::Dtk_LayerInfosSet
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
Dtk_Info::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:133
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:689
DTK_DOTTED
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:57
Dtk_ModelDisplay::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:893
Dtk_Info::AddLayer
Dtk_ErrorStatus AddLayer(const Dtk_Int32 &inLayer)
dtk_maindoc_ptr.hpp
Pdfw::inClippingEntity
Dtk_CameraPtr Dtk_EntityPtr inClippingEntity
Definition: pdfw.hpp:655
Dtk_ConstraintReference::_Init
void _Init()
Dtk_Constraint::GetValue
Dtk_ErrorStatus GetValue(const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue) const
Dtk_Info::ListAttributes
Dtk_ErrorStatus ListAttributes(const Dtk_string &substring, Dtk_tab< Dtk_string > &tab_keys) const
Dtk_ModelDisplay::rendering_mode_studio
@ rendering_mode_studio
Definition: util_ent_dtk.hpp:874
Dtk_Constraint::ConstraintTypeEnumToString
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1140
Dtk_Preview::Create
static Dtk_PreviewPtr Create(const Dtk_Preview &in)
Calls copy constructor to allocate a new object.
Dtk_Info::GetUse
int GetUse() const
DTK_PT_CONCENTRIC
@ DTK_PT_CONCENTRIC
Definition: util_ent_dtk.hpp:30
DTK_TYPE_LAYER_FILTER_INFOS
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:506
Dtk_Constraint::ValueTypePosition
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1054
Dtk_Preview
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:715
Dtk_Info::NotMandatory
@ NotMandatory
Definition: util_ent_dtk.hpp:137
Dtk_Info::GetCurveLineTypeDefinition
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
Dtk_Preview::_Init
void _Init()
DTK_PHANTOM
@ DTK_PHANTOM
Definition: util_ent_dtk.hpp:53
DTK_DOTTED_DASHED
@ DTK_DOTTED_DASHED
Definition: util_ent_dtk.hpp:61
Dtk_Constraint::TypeUniversalJoint
@ TypeUniversalJoint
Definition: util_ent_dtk.hpp:1137
Dtk_ColorInfosSet::GetColorDefinition
Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB &outColorDef) const
Gets the ColorID giving its number.
Dtk_LayerFilterInfos::UnselectLayers
void UnselectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Unselects the given layers in the layer filter.
Dtk_Info::SetCurveThickNessInMM
Dtk_ErrorStatus SetCurveThickNessInMM(const Dtk_Double64 inCurveThickNessInMM)
Dtk_Info::GetLayer
int GetLayer() const
Retrieves the entity layer.
Dtk_Info::GetSize
virtual Dtk_Size_t GetSize() const
error_dtk.hpp
Dtk_Info::GetAdditionnalGeometryFlag
int GetAdditionnalGeometryFlag() const
Dtk_Entity::_reset
void _reset()
Dtk_Info::OriginPoint
@ OriginPoint
Definition: util_ent_dtk.hpp:141
Dtk_string_compare_case_insensitive::operator()
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:106
DTK_PT_FULLCIRCLE
@ DTK_PT_FULLCIRCLE
Definition: util_ent_dtk.hpp:32
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_Info::SetId
Dtk_ErrorStatus SetId(const Dtk_Int32 &inId)
Dtk_Constraint::TypeFit
@ TypeFit
Definition: util_ent_dtk.hpp:1110
Dtk_Info::GetRenderInfos
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
Dtk_Info::GetHierarchyColorFlag
int GetHierarchyColorFlag() const
Dtk_Info::SetMandatoryFlag
Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag)
DTK_PT_SQUARE
@ DTK_PT_SQUARE
Definition: util_ent_dtk.hpp:39
Dtk_Constraint::ConstraintValueTypeEnum
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1050
Dtk_Entity::_Store
virtual Dtk_ErrorStatus _Store(void *)
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:353
Dtk_ConstraintReference::GetPosition
const Dtk_pnt & GetPosition(Dtk_bool &outHasPosition) const
Get the Position of the ConstraintReference .
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_LayerInfosSet::GetLayerFilterByPos
Dtk_LayerFilterInfosPtr GetLayerFilterByPos(const Dtk_Size_t inLayerFilterIndex) const
Gets a layer filter giving its index.
Dtk_AxisSystem::DtkDynamicCast
static Dtk_AxisSystem * DtkDynamicCast(Dtk_Object *inObject)
Dtk_Preview::GetType
preview_type_detk GetType()
Dtk_Constraint::TypeCam
@ TypeCam
Definition: util_ent_dtk.hpp:1100
DTK_PT_PLUS
@ DTK_PT_PLUS
Definition: util_ent_dtk.hpp:29
Dtk_Info::GetHierarchy
int GetHierarchy() const
Dtk_Entity::GetSize
virtual Dtk_Size_t GetSize() const
Dtk_Entity::operator=
Dtk_Entity & operator=(const Dtk_Entity &s)
Dtk_Constraint::TypePathMate
@ TypePathMate
Definition: util_ent_dtk.hpp:1124
Dtk_ModelDisplay::SectionParallelePlane
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:880
Dtk_Info::SetMatId
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_Info::SetPersistentName
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
Dtk_ModelDisplay::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:854
Dtk_Entity::_copy
void _copy(const Dtk_Entity &s)
Dtk_ConstraintReference::_Copy
void _Copy(const Dtk_ConstraintReference &s)
Dtk_LayerFilterInfos::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_Info::YZPlane
@ YZPlane
Definition: util_ent_dtk.hpp:139
Dtk_Constraint::GetValue
Dtk_ErrorStatus GetValue(const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue, Dtk_Int32 &outEnableLowerLimit, Dtk_Double64 &outLowerLimit, Dtk_Int32 &outEnableUpperLimit, Dtk_Double64 &outUpperLimit) const
Get a Value of the Constraint .
Dtk_Info::GetProperties
Dtk_ErrorStatus GetProperties(Dtk_tab< Dtk_PropertiesPtr > &outArray) const
Dtk_Info::AddMaterial
Dtk_ErrorStatus AddMaterial(const Dtk_MaterialPtr &inMaterial)
Dtk_ModelDisplay::GetCamera
const Dtk_CameraPtr & GetCamera() const
Retrieves the Dtk_ModelDisplay camera - read only -.
Dtk_ColorInfosSet::GetColorID
Dtk_ErrorStatus GetColorID(const Dtk_Size_t inColorPos, Dtk_ID &outColorReadID) const
Gets the ColorID giving its number.
Dtk_LayerInfosSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_ModelDisplay::SetVisibleLayers
void SetVisibleLayers(const Dtk_tab< Dtk_Int32 > &inVisibleLayers)
Dtk_Info::create
static Dtk_SmartPtr< Dtk_Info > create(const Dtk_Info &in)
Calls copy constructor to allocate a new object.
Dtk_Entity::Clone
virtual Dtk_Object * Clone()=0
dtk_transfo.hpp
Dtk_Info::SetLayer
Dtk_ErrorStatus SetLayer(const Dtk_Int32 &inLayer)
Dtk_Info::GetMaterial
Dtk_MaterialPtr GetMaterial() const
Dtk_pnt
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
Dtk_MaterialPtr
Dtk_SmartPtr< Dtk_material > Dtk_MaterialPtr
Definition: util_ent_dtk.hpp:22
Dtk_ColorInfosSetPtr
Dtk_SmartPtr< Dtk_ColorInfosSet > Dtk_ColorInfosSetPtr
Definition: util_ent_dtk.hpp:399
type_detk
type_detk
Definition: define.h:32
Dtk_Constraint::Dtk_Constraint
Dtk_Constraint(const Dtk_Constraint &p)
Dtk_ConstraintReference::_Reset
void _Reset()
Dtk_Info::SetColor
Dtk_ErrorStatus SetColor(const Dtk_RGB &inColor)
Dtk_Info::GetFormFlag
int GetFormFlag() const
DTK_PT_FULLSQUARE
@ DTK_PT_FULLSQUARE
Definition: util_ent_dtk.hpp:33
Dtk_Info::GetMatId
int GetMatId() const
Dtk_Constraint::ValueTypeOpposite
@ ValueTypeOpposite
Definition: util_ent_dtk.hpp:1032
Dtk_ColorInfosSet::AddColor
Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string &inColorName, const Dtk_RGB &inColorDef)
Add Color definition.
Dtk_LayerInfosSet::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:488
Dtk_LayerInfosSet::SetDefaultLayer
Dtk_ErrorStatus SetDefaultLayer(const Dtk_Size_t inDefaultLayerIndex)
Sets the default layer index.
Dtk_Constraint::GetConstraintReference
const Dtk_tab< Dtk_ConstraintReferencePtr > & GetConstraintReference() const
Get all ConstraintReferences of the Constraint.
Dtk_ModelDisplay::SectionTypeEnum
SectionTypeEnum
Definition: util_ent_dtk.hpp:877
Dtk_FontLineType
Dtk_FontLineType
This is a set of line styles.
Definition: util_ent_dtk.hpp:46
Dtk_LayerFilterInfos
This class is used by Dtk_LayerInfosSet to represent a layer filter : its name, description,...
Definition: util_ent_dtk.hpp:414
util_stl_dtk.hpp
Dtk_AxisSystem::GetMatrix
const Dtk_transfo & GetMatrix() const
Get the Matrix of the AxisSystem.
Dtk_Constraint::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1237
Dtk_Info::ListAllAttributes
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_ConstraintReferencePtr
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:404
Dtk_LayerInfosSet::GetDefaultLayerFilter
Dtk_ErrorStatus GetDefaultLayerFilter(Dtk_Size_t &outDefaultLayerFilterIndex) const
Gets the default layer filter index.
Dtk_ColorInfosSet::Dtk_ColorInfosSet
Dtk_ColorInfosSet(const Dtk_Size_t inNumColors)
Dtk_ModelDisplay::SectionBody
@ SectionBody
Definition: util_ent_dtk.hpp:882
Dtk_Info::SetFontId
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
Dtk_LayerFilterInfos::~Dtk_LayerFilterInfos
~Dtk_LayerFilterInfos()
Dtk_ConstraintReference::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:993
util_ptr_dtk.hpp
Dtk_ColorInfosSet::SetColorName
Dtk_ErrorStatus SetColorName(const Dtk_Size_t inColorPos, const Dtk_string &inColorName)
Sets the Color Name giving its number.
define.h
Dtk_Info::ListAllAttributesWithVal
Dtk_ErrorStatus ListAllAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
Dtk_LayerFilterInfos::GetName
void GetName(Dtk_string &outLayerFilterName) const
Retrieves layer filter name.
Dtk_Constraint::ValueTypeUndefined
@ ValueTypeUndefined
Definition: util_ent_dtk.hpp:1030
Dtk_Entity::PrepareTransfo
virtual void PrepareTransfo()
Dtk_LayerInfosSet::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:494
Dtk_ConstraintReference::Transform
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
Dtk_Constraint::TypeProfileCenter
@ TypeProfileCenter
Definition: util_ent_dtk.hpp:1127
Dtk_Info::SetPhysicalMaterialInfosId
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
DTK_TYPE_CONSTRAINT_REFERENCE
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:611
Dtk_PointType
Dtk_PointType
Definition: util_ent_dtk.hpp:26
Dtk_Constraint::TypeOrientAngle
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1121
DTK_NO_PATTERN
@ DTK_NO_PATTERN
Definition: util_ent_dtk.hpp:47
DTK_LONG_DASHED
@ DTK_LONG_DASHED
Definition: util_ent_dtk.hpp:59
Dtk_Constraint::TypeDistance
@ TypeDistance
Definition: util_ent_dtk.hpp:1108
Dtk_tab< Dtk_string >
Dtk_Info::GetCurveLineType
Dtk_FontLineType GetCurveLineType() const
Retrieves the curve LineType - for curve entities -.
Dtk_Preview::DtkDynamicCast
static Dtk_Preview * DtkDynamicCast(Dtk_Object *s)
Dtk_Info::AddPhysicalMaterialInfos
Dtk_ErrorStatus AddPhysicalMaterialInfos(const Dtk_PhysicalMaterialInfosPtr &inMaterial)
Dtk_Preview::Dtk_Preview
Dtk_Preview()
DTK_PT_BIGFULLCIRCLE
@ DTK_PT_BIGFULLCIRCLE
Definition: util_ent_dtk.hpp:37
Dtk_ConstraintPtr
Dtk_SmartPtr< Dtk_Constraint > Dtk_ConstraintPtr
Definition: util_ent_dtk.hpp:403
Dtk_Info::GetConfigurationName
Dtk_string GetConfigurationName() const
Dtk_Constraint::GetNumberOfConstraintValues
Dtk_Size_t GetNumberOfConstraintValues()
Get the number of Dtk_Constraint::_ConstraintValue in the constraint.
Dtk_LayerFilterInfos::_Reset
void _Reset()
Dtk_ColorInfosSet
This is the Color Info Set class. This is the read color definition Class. It gathers all information...
Definition: util_ent_dtk.hpp:601
Dtk_AxisSystem::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:809
DTK_TYPE_CONSTRAINT
@ DTK_TYPE_CONSTRAINT
Definition: define.h:610
Dtk_ModelDisplay::IsActivated
Dtk_bool IsActivated() const
Tells if the Dtk_ModelDisplay is activated or not - read only -.
Dtk_Constraint::_ConstraintValue::_ValueLower
Dtk_Double64 _ValueLower
Definition: util_ent_dtk.hpp:1085
Dtk_Info::DtkDynamicType
int DtkDynamicType(const Dtk_Int32 &inId)
Dtk_Info::SetIsUpToDate
void SetIsUpToDate(const Dtk_bool isUpToDate)
Set if current object is up to date or not.
DTK_PT_BIGFULLSQUARE
@ DTK_PT_BIGFULLSQUARE
Definition: util_ent_dtk.hpp:38
Dtk_Constraint::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1256
Dtk_Info::MandatoryFlag
MandatoryFlag
Definition: util_ent_dtk.hpp:136
Dtk_Constraint::_Init
void _Init()
Dtk_Entity::Transform
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_ColorInfosSet::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:604
Dtk_Constraint::~Dtk_Constraint
virtual ~Dtk_Constraint()
Dtk_Info::ZXPlane
@ ZXPlane
Definition: util_ent_dtk.hpp:140
Dtk_ColorInfosSet::Dtk_ColorInfosSet
Dtk_ColorInfosSet(const Dtk_ColorInfosSet &s)
Dtk_Info::GetBuildingInfosIds
Dtk_tab< Dtk_Int32 > GetBuildingInfosIds() const
Dtk_ColorInfosSet::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:629
Dtk_Info::SetBuildingInfosIds
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
Dtk_Constraint::TypeCoincidence
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1106
Dtk_ColorInfosSet::GetColorName
Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string &outColorName) const
Gets the Color Name giving its number.
Dtk_LayerInfosSet::SetLayerID
Dtk_ErrorStatus SetLayerID(const Dtk_Size_t inLayerIndex, const Dtk_ID &inLayerID)
Sets the LayerID giving its index.
Dtk_Info::GetlayerList
Dtk_tab< Dtk_Int32 > GetlayerList() const
Retrieves the layers in which the entity is assigned.
Dtk_ModelDisplay::SectionPlaneList
@ SectionPlaneList
Definition: util_ent_dtk.hpp:879
Dtk_string_compare::operator()
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:98
Dtk_Info::SetRefEntityFlag
Dtk_ErrorStatus SetRefEntityFlag(const Dtk_Int32 &inRefEntityFlag)
Dtk_ColorInfosSet::SetColorID
Dtk_ErrorStatus SetColorID(const Dtk_Size_t inColorPos, const Dtk_ID &inColorReadID)
Sets the ColorID giving its number.
Dtk_Constraint::SetValue
void SetValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue, const Dtk_Int32 &inEnableLowerLimit, const Dtk_Double64 &inLowerLimit, const Dtk_Int32 &inEnableUpperLimit, const Dtk_Double64 &inUpperLimit)
Set a Value of the Constraint .
Dtk_Object
Definition: dtk_object.hpp:8
Dtk_Constraint::_Reset
void _Reset()
Dtk_Constraint::Create
static Dtk_SmartPtr< Dtk_Constraint > Create()
Calls default constructor to allocate a new object.
Dtk_ColorInfosSet::DtkDynamicCast
static Dtk_ColorInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_AxisSystem::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:828
Dtk_Info::GetPhysicalMaterialInfosId
Dtk_ID GetPhysicalMaterialInfosId() const
Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
Dtk_Constraint::TypeLimit
@ TypeLimit
Definition: util_ent_dtk.hpp:1115
Dtk_ModelDisplay::Dtk_ModelDisplay
Dtk_ModelDisplay()
DTK_PT_DIAMOND
@ DTK_PT_DIAMOND
Definition: util_ent_dtk.hpp:41
Dtk_ModelDisplay::Transform
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
Dtk_Constraint::ValueTypeUnknown
@ ValueTypeUnknown
Definition: util_ent_dtk.hpp:1051
Dtk_ConstraintReference::Create
static Dtk_SmartPtr< Dtk_ConstraintReference > Create()
Calls default constructor to allocate a new object.
Dtk_LayerFilterInfos::SelectLayer
void SelectLayer(const Dtk_Size_t inLayerIndex)
Selects a given layer in the layer filter.
Dtk_Info::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:122
Dtk_ConstraintReference::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_Info::GetCurveLineTypeDefinitionId
Dtk_ID GetCurveLineTypeDefinitionId() const
Retrieves the Id of Dtk_LineTypeDefinition of the entity in The Dtk_API table.
Dtk_AxisSystem::conv_ptr
virtual void conv_ptr(Dtk_AxisSystem **s)
Definition: util_ent_dtk.hpp:813
Dtk_MetaData
This is the Dtk_MetaData Class. The Dtk_MetaDataPtr object is used to store any additional informatio...
Definition: dtk_metadata.hpp:23
Dtk_Info::GetRenderInfosId
Dtk_ID GetRenderInfosId() const
Retrieves the Id of RenderInfos of the entity in The Dtk_API table.
Dtk_Constraint::_ConstraintValue::_EnableLower
Dtk_Int32 _EnableLower
Definition: util_ent_dtk.hpp:1083
Dtk_LayerInfosSet::Create
static Dtk_LayerInfosSetPtr Create(const Dtk_Size_t inNumLayers)
Calls a constructor to allocate a new object.
Dtk_Constraint::AddConstraintReference
void AddConstraintReference(const Dtk_ConstraintReferencePtr &in)
Add a ConstraintReference to this Constraint .
Dtk_Entity::~Dtk_Entity
virtual ~Dtk_Entity()
Dtk_ColorInfosSet::GetColorNameById
Dtk_ErrorStatus GetColorNameById(const Dtk_ID inColorReadId, Dtk_string &outColorName) const
Gets the Color Name giving the ID found iby infos->GetColorID().
Dtk_ModelDisplay::SetSectionInformation
void SetSectionInformation(const SectionTypeEnum &inSectionType, const Dtk_Int32 &inIsLocked=DTK_FALSE, const Dtk_Double64 &inThickness=0.0) const
Set the type of the Section on the Dtk_Capture.
Dtk_Info::SetDefaultChildIndex
Dtk_ErrorStatus SetDefaultChildIndex(const Dtk_Int32 &inIndex)
Dtk_Info::SetUuid
Dtk_ErrorStatus SetUuid(const Dtk_UUID &inUuid)
Dtk_LayerFilterInfos::GetSelectedLayers
void GetSelectedLayers(Dtk_tab< Dtk_Size_t > &outSelectedLayerIndexes) const
Retrieves all the selected layers into the layer filter.
Dtk_Info::GetId
int GetId() const
Dtk_Preview::GetStream
char * GetStream()
Dtk_Constraint::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1251
Dtk_Constraint::TypeTangent
@ TypeTangent
Definition: util_ent_dtk.hpp:1134
Dtk_ColorInfosSet::Create
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Calls a constructor to allocate a new object.
dtk_rgb.hpp
Dtk_Constraint::TypeScrew
@ TypeScrew
Definition: util_ent_dtk.hpp:1129
Dtk_Info::_copy
void _copy(const Dtk_Info &s)
Dtk_Entity::operator=
Dtk_Entity & operator=(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_Info::GetFontId
int GetFontId() const
Dtk_LayerInfosSet::GetLayerNameById
Dtk_ErrorStatus GetLayerNameById(const Dtk_ID inLayerID, Dtk_string &outLayerName) const
Gets the LayerName giving the ID found by infos->GetLayer().
Dtk_Info::SetUse
Dtk_ErrorStatus SetUse(const Dtk_Int32 &inUse)
Dtk_RGB
Definition: dtk_rgb.hpp:7
Dtk_Preview::_Reset
void _Reset()
Dtk_Info::SetColor
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
Dtk_Preview::Dtk_Preview
Dtk_Preview(const char *inStream, const Dtk_Int32 inSizeStream)
Dtk_Info::create
static Dtk_SmartPtr< Dtk_Info > create()
Calls default constructor to allocate a new object.
Dtk_AxisSystem::Transform
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
Dtk_Constraint::TypeGear
@ TypeGear
Definition: util_ent_dtk.hpp:1113
Dtk_LayerFilterInfos::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:416
Dtk_Preview::_Private
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:736
Dtk_ModelDisplay::DtkDynamicCast
static Dtk_ModelDisplay * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_Info::~Dtk_Info
~Dtk_Info()
Dtk_Info::GetSubordFlag
int GetSubordFlag() const
Dtk_dir
This is a mathematical direction class.
Definition: dtk_dir.hpp:15
Dtk_ModelDisplay::Dtk_ModelDisplay
Dtk_ModelDisplay(const Dtk_ModelDisplay &s)
Dtk_Constraint::operator=
Dtk_Constraint & operator=(const Dtk_Constraint &p)
Dtk_Entity::Dtk_Entity
Dtk_Entity(const Dtk_Entity &s)
Dtk_Info::SetSubordFlag
Dtk_ErrorStatus SetSubordFlag(const Dtk_Int32 &inSubordFlag)
Dtk_string_compare
Definition: util_ent_dtk.hpp:97
Dtk_Constraint::_ConstraintValue::_EnableUpper
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1084
Dtk_Preview::Create
static Dtk_PreviewPtr Create(const char *inStream, const Dtk_Int32 inSizeStream)
Calls full featured constructor to allocate a new object.
Dtk_AxisSystem::SetIsHidden
void SetIsHidden()
Set the hidden status.
Dtk_Constraint::TypeLinear
@ TypeLinear
Definition: util_ent_dtk.hpp:1116
Dtk_Constraint::Dtk_Constraint
Dtk_Constraint(const ConstraintTypeEnum &inType)
Dtk_Constraint::TypeLock
@ TypeLock
Definition: util_ent_dtk.hpp:1119
Dtk_LayerFilterInfos::GetDescription
void GetDescription(Dtk_string &outLayerFilterDescription) const
Retrieves layer filter description.
Dtk_Info::FindAttribute
Dtk_Val const * FindAttribute(const Dtk_string &name) const
Dtk_Constraint::TypeRackPinion
@ TypeRackPinion
Definition: util_ent_dtk.hpp:1128
Dtk_LayerInfosSet::GetLayerName
Dtk_ErrorStatus GetLayerName(const Dtk_Size_t inIndex, Dtk_string &outLayerName) const
Gets the LayerName giving its index.
dtk_object.hpp
Dtk_Constraint::_ConstraintValue::_Value
Dtk_Val _Value
Definition: util_ent_dtk.hpp:1082
Dtk_Entity::_init
void _init()
Dtk_AxisSystem::GetIsHidden
int GetIsHidden() const
Get the hidden status.
Dtk_AxisSystem
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:753
Dtk_Constraint::TypeCenter
@ TypeCenter
Definition: util_ent_dtk.hpp:1102
Dtk_Constraint::Transform
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
Dtk_AxisSystem::SetDefaultStatus
void SetDefaultStatus(Dtk_bool inDefaultStatus)
Set the default status.
Dtk_Info::_init
void _init()
DTK_NOEXCEPT
#define DTK_NOEXCEPT
Definition: config.hpp:30
Dtk_Constraint::ConstraintTypeEnum
ConstraintTypeEnum
Definition: util_ent_dtk.hpp:1092
Dtk_Entity::info
Dtk_InfoPtr & info()
Dtk_Entity
Definition: util_ent_dtk.hpp:349
Dtk_ModelDisplay::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.