DATAKIT SDK  V2026.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 
8 #include "util/error_dtk.hpp"
10 #include "util/util_ptr_dtk.hpp"
11 #include "util/util_stl_dtk.hpp"
12 #include "def/define.h"
13 #include "util/dtk_val.hpp"
14 #include "util/dtk/span.hpp"
15 #include <iosfwd>
16 #include <memory>
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 
44 //! \enum Dtk_FontLineType
45 //! \brief This is a set of line styles
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 
77 class Dtk_UUID;
78 class Dtk_pnt;
79 class Dtk_dir;
80 class Dtk_RGB;
81 class Dtk_string;
82 
83 
85 {
86  bool operator()(const Dtk_string& s1, const Dtk_string& s2) const
87  {
88  return s1.cmp(s2) < 0;
89  }
90 };
91 
93 {
94  bool operator()(const Dtk_string& s1, const Dtk_string& s2) const
95  {
96  return s1.icmp(s2) < 0;
97  }
98 };
99 //! \ingroup base_types
100 //! \class Dtk_Info
101 //! \brief This is the generic Info class.
102 //!
103 //! This class provides informations about Color/Layer/BlankedStatus/Name etc...
104 //! This class also provides additionnal information specific to the owning entity
105 //! \SmartPtr{Dtk_InfoPtr}
106 class Dtk_Info : public Dtk_Object
107 {
108 
109 protected:
110  enum { _typeID = DTK_TYPE_INFO };
111  struct Dtk_Handle; // Not defined here
112  std::unique_ptr<Dtk_Handle> _Private; // Handle
115  Dtk_Info(const Dtk_Info& s);
117  friend class Dtk_SmartPtr<Dtk_Info>;
118  virtual Dtk_Object* Clone() { return new Dtk_Info(*this); }
119 public:
121  {
127  };
128 
129  //downcasting
130  int DtkDynamicType(const Dtk_Int32& inId);
132 
133  //! \CreateCopy{in}
135  //! \deprecated use Create instead
136  SetAsDeprecated( "2026.4", "Use Create instead." )
137  static Dtk_SmartPtr<Dtk_Info> create( const Dtk_Info& in );
138  //! \CreateBase
140  //! \deprecated use Create instead
141  SetAsDeprecated( "2026.4", "Use Create instead." )
142  static Dtk_SmartPtr<Dtk_Info> create();
144 
147 
149  Dtk_Val const * FindAttribute(const Dtk_string& name) const; // If not found, returns nullptr.
150  Dtk_ErrorStatus ListAttributes(const Dtk_string& substring, Dtk_tab<Dtk_string>& tab_keys) const;
155 
170  Dtk_ErrorStatus SetColor( const int&R, const int&G, const int&B );// {return SetColorId( dtk_AddColorInTable( Dtk_RGB( R, G, B ) ) ); }
171  Dtk_ErrorStatus SetColor( const Dtk_RGB & inColor );// {return SetColorId( dtk_AddColorInTable( inColor ) ); }
172 
173 
178  Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus);
179  //!\deprecated use SetCurveThickNessInMM() methods instead
180  SetAsDeprecated( "2020.1", "use SetCurveThickNessInMM() methods instead." )
181  Dtk_ErrorStatus SetCurveThickNess(const Dtk_Int32 &inCurveThickNess);
183  //! \brief Add a Dtk_LineTypeDefinition to Dtk_API and set it to current object.
185  //! \brief Set Dtk_LineTypeDefinition of current object via it's id in Dtk_API table.
186  Dtk_ErrorStatus SetCurveLineTypeDefinitionId( const Dtk_ID & inLineTypeDefinitionId );
187  //! \brief Set line type of current object thanks to Dtk_FontLineType enumeration.
188  Dtk_ErrorStatus SetCurveLineType(const Dtk_Int32 &inCurveLineType);
191  Dtk_ErrorStatus SetInfiniteGeometryFlag(const Dtk_Int32 &inInfiniteGeometryFlag);
192  Dtk_ErrorStatus SetRefEntityFlag( const Dtk_Int32 &inRefEntityFlag );
193  Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag);
198 
199  //!\deprecated use AddRenderInfos and AddMaterialInfos methods instead
200  SetAsDeprecated( "2026.3", "use AddRenderInfos and AddMaterialInfos methods instead." )
201  Dtk_ErrorStatus AddMaterial( const Dtk_MaterialPtr &inMaterial );
202 
208 
209 
210  int GetActivationFlag() const;
211  int GetFlexibleFlag() const;
213  int GetDefaultChildIndex() const;
215  int GetUse() const;
216  int GetAddedItemFlag() const;
217  int GetHierarchy() const;
219  int GetFontId() const;
220  int GetFormFlag() const;
221  int GetMatId() const;
222  int GetSubordFlag() const;
223  int GetId() const;
224  int GetViewId() const;
225 
226  //! \brief Retrieves the layers in which the entity is assigned.
227  //! \return The list of layer numbers.
228  //! \remark The list can be empty.
229  //! \sa AddLayer(const Dtk_Int32 & inLayer);
231 
232  //! \brief Retrieves the entity color as Dtk_RGBA values.
233  //! \return the Dtk_RGBA value is succeeds. Dtk_RGB(-1,-1,-1) otherwise - no color found for example -.
234  //!
235  //! \b Sample:
236  //! \code
237  //! //Get Dtk_InfoPtr class
238  //! Dtk_InfoPtr infos = inNode->GetInfos(); //inNode is a Dtk_Node in this sample
239  //! Dtk_RGB MyColor = infos->GetColor(); //returned RGB is (-1,-1,-1,-1)
240  //! infos->SetColor( Dtk_RGB( 128, 50, 255, 255 ) ); //Red=128 / Green=50 / Blue=255 / Alpha = 255
241  //! MyColor = infos->GetColor(); // no RGB is (128,50,255,255)
242  //! \endcode
243  //! \sa SetColor(const Dtk_RGB & inColor)
244  //! \sa SetColor(const int&R,const int&G,const int&B)
245  Dtk_RGB GetColor() const;
246  //!\brief Retrieves the entity color index in Dtk_API color table.
247  //! \return the color index
248  int GetColorId() const;
249 
250  //! \brief Retrieves the entity name.
251  //! \return the name if succeeds, empty string otherwise.
252  //! \sa SetName( const Dtk_string &inName )
254  //!\brief Retrieves the entity persistent name.
255  //!\return the persistent name if succeeds, empty string otherwise.
257 
258  //! \brief Retrieves the entity layer.
259  //! \return The layer ID if succeed or -1 otherwise - If Undefined or no layer set -.
260  //! \sa SetLayer(const Dtk_Int32 & inLayer);
261  int GetLayer() const;
262 
263  //! \brief Retrieves the entity Blanked Status.
264  //! \return -1 If Undefined - or no blanked status set - .
265  //! \return 0 If Visible.
266  //! \return 1 If Invisible
267  //! \return 2 If Construction Geometry
268  //! \sa SetBlankedStatus(const int &inBlankedStatus)
269  int GetBlankedStatus() const;
270 
271 
272  //! \brief Retrieves if all wireframe is displayed with same width
273  //! \return The curve width in millimeter if succeeds, 0.0 otherwise.
274  //! \sa SetDisplayLineWidth( const Dtk_Double64 inDisplayLineWidth )
276 
277  //! \deprecated Use GetCurveThickNessInMM() const method instead.
278  SetAsDeprecated( "2020.1", "use GetCurveThickNessInMM() methods instead." )
279  int GetCurveThickNess() const;
280 
281  //! \brief Retrieves the curve thickness - if exists and relevant -.
282  //! \return The curve thickness in millimeters if succeeds, -1.0 otherwise.
283  //! \sa SetCurveThickNessInMM( const Dtk_Double64 inCurveThickNessInMM )
285 
286  //! \brief Retrieves the curve LineType - for curve entities -
287  //! \return The curve LineType - Dtk_FontLineType::DTK_SOLIDLINE if not type set -.
289 
290  //! \brief Retrieves the definition of the curve LineType - for curve entities -
291  //! \return null pointer if not set.
293 
294  //! \brief Retrieves the Id of Dtk_LineTypeDefinition of the entity in The Dtk_API table.
295  //! \return The id or 0 if None.
297 
298  //! \brief Retrieves the Symbol Type - for point only -.
299  //! \return The Symbol Type - Dtk_PointType::DTK_PT_UNSPECIFIED if no type set -.
301 
302  //! \brief Retrieves the Mandatory Flag
303  //! \return Mandatory flag
304  enum MandatoryFlag GetMandatoryFlag() const;
305 
306  //!\brief Retrieves the Flag for Infinite Geometry
307  //! \return 1 if infinite geometr, 0 otherwise.
309  //! \brief Retrieves the Flag for Reference Entity (Reference planes , axis, point
310  //! \return 1 if reference entity, 0 otherwise.
311  int GetRefEntityFlag() const;
312  //! \brief Retrieves the entity UniqueID if any.
313  Dtk_UUID GetUuid() const;
315 
316  //!\deprecated use GetRenderInfos and GetPhysicalMaterialInfos methods instead
317  SetAsDeprecated( "2026.3", "use GetRenderInfos and GetPhysicalMaterialInfos methods instead." )
318  Dtk_MaterialPtr GetMaterial() const;
319 
320  //! \brief Retrieves the entity RenderInfos of the entity.
321  //! \return the Dtk_RenderInfosPtr or NULL if None.
322  //! \sa GetRenderInfos()
324 
325  //! \brief Retrieves the Id of RenderInfos of the entity in The Dtk_API table.
326  //! \return the id or 0 if None.
327  //! \sa GetRenderInfosId()
329 
330  //! \brief Retrieves the entity MaterialInfos.
331  //! \return the Dtk_MaterialInfosPtr if succeeds or NULL otherwise.
333 
334  //! \brief Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
335  //! \return the id or 0 if None.
337 
338  //! \brief Retrieves the OccurrenceData flag.
339  //! \return true if the instance references a modified version of the prototype.
340  bool GetOccurrenceDataFlag() const;
341 
344 
345 
346  //! \deprecated Use GetMetaData() const method instead.
347  SetAsDeprecated( "2026.2", "use GetMetaData() methods instead." )
348  Dtk_ErrorStatus GetProperties(Dtk_tab<Dtk_PropertiesPtr>& outArray) const;
352 
353  //! \brief Retrieves up to date state of current object.
354  //! \return -1 if unknown, DTK_TRUE if object is up to date, DTK_FALSE if not up to date. Default is unknown.
356  //! \brief Set if current object is up to date or not.
357  //! \param isUpToDate DTK_TRUE if object is up to date, DTK_FALSE if not. Anything else will set state to unknown.
358  void SetIsUpToDate( const Dtk_bool isUpToDate );
359 
360 
361  virtual Dtk_Size_t GetSize() const;
362  virtual Dtk_ErrorStatus _Store(void*);
363 };
364 
365 
366 class Dtk_Entity : public Dtk_Object
367 {
368 protected:
369  struct Dtk_Handle; // Not defined here
370  std::unique_ptr<Dtk_Handle> _Private; // Handle
372 
373  virtual Dtk_Object* Clone() = 0;
374  friend class Dtk_SmartPtr<Dtk_Entity>;
375 public:
381 
382  virtual ~Dtk_Entity();
383  //! \brief Get Internal UniqueID
384  //! \return InternalID
385  const Dtk_ID& GetID() const;
386 
387  virtual enum type_detk get_type_detk() const=0;
388 
389  //downcasting
390  int DtkDynamicType(const int& inId);
392 
395  //virtual Dtk_status Transform(const Dtk_transfo& inTransfo)=0;
396  virtual Dtk_ErrorStatus Transform(const Dtk_transfo& inTransfo)=0;
397 
398  virtual Dtk_ErrorStatus _Store(void*);
399  virtual Dtk_Size_t GetSize() const;
400 
401  virtual void PrepareTransfo ();
402 };
403 
404 /////////////////////////////////////////
405 
406 class Dtk_LayerInfosSet;
407 class Dtk_ColorInfosSet;
409 class Dtk_AxisSystem;
410 class Dtk_ModelDisplay;
411 class Dtk_Constraint;
420 
421 
422 
423 
424 //! \class Dtk_LayerFilterInfos
425 //! \brief This class is used by Dtk_LayerInfosSet to represent a layer filter : its name, description, and selected layers of the set it is contained in.
426 //! \remark The layer indexes used by Dtk_LayerFilterInfos are those of the Dtk_LayerInfosSet it is contained in.
427 //! \see Dtk_LayerInfosSet::CreateLayerFilterInfos
429 {
430 protected:
431  struct Dtk_Handle; // Not defined here
432  std::unique_ptr<Dtk_Handle> _Private; // Handle
434 
435  Dtk_LayerFilterInfos(const Dtk_Size_t inNumLayers, Dtk_string inName = L"", Dtk_string inDescription = L"", const Dtk_bool inAreLayersActivatedByDefault = DTK_FALSE);
436 
437  //! \CopyConstructor{s}
440  inline virtual Dtk_Object* Clone() { return new Dtk_LayerFilterInfos(*this); }
441 
442  friend class Dtk_LayerInfosSet;
443 private:
444  friend class Dtk_SmartPtr< Dtk_LayerFilterInfos >;
445 public:
446  //! \DtkDynamicType
448 
449  //! \DtkDynamicCast
451 
452  //! \return The type of the entity type - DTK_TYPE_LAYER_FILTER_INFOS -
454 
455  //! \brief Selects a given layer in the layer filter.
456  //! \param inLayerIndex the layer index to be selected.
457  //! \return dtkNoError if the layer has been selected
458  //! \return dtkErrorOutOfRange if the index is out of layer set range.
460 
461  //! \brief Selects given layers in the layer filter.
462  //! \param inLayerIndexes An array of layer indexes to be selected.
463  //! \return dtkNoError if all the desired layers has been selected.
464  //! \return dtkErrorOutOfRange if one of the indices is out of layer set range. Valid indices will still be processed.
466 
467  //! \brief Unselects the given layer in the layer filter.
468  //! \param inLayerIndex the layer index to be unselected.
469  //! \return dtkNoError if the layer has been unselected.
470  //! \return dtkErrorOutOfRange if the index is out of layer set range.
472 
473  //! \brief Unselects the given layers in the layer filter.
474  //! \param inLayerIndexes An array of layer indexes to be unselected.
475  //! \return dtkNoError if all the desired layers has been unselected.
476  //! \return dtkErrorOutOfRange if one of the indices is out of layer set range. Valid indices will still be processed.
478 
479 
480  //! \brief Tells if the layer is selected or not giving its index.
481  //! \param inLayerIndex the layer index in Dtk_LayerInfosSet layers.
482  //! \return DTK_FALSE if layer is not selected, DTK_TRUE otherwise.
483  Dtk_bool IsLayerSelected(const Dtk_Size_t inLayerIndex ) const;
484 
485  //! \brief Retrieves all the selected layers into the layer filter.
486  //! \param outSelectedLayers the selected layer indexes.
487  void GetSelectedLayers(Dtk_tab< Dtk_Size_t >& outSelectedLayerIndexes) const;
488 
489  //! \brief Retrieves layer filter name.
490  //! \param outLayerFilterName the layer filter name.
491  void GetName(Dtk_string& outLayerFilterName) const;
492 
493  //! \brief Retrieves layer filter description.
494  //! \param outLayerFilterDescription the layer filter description.
495  void GetDescription(Dtk_string& outLayerFilterDescription) const;
496 };
497 
498 //! \class Dtk_LayerInfosSet
499 //! \brief This class represents a set of layer information, such as their name and identifier, as well as a list of layer filters. \n
500 //! \details The set allows to extend the definition of legacy layers, that previously were only represented by an identifier. It lists all layers used in a given context (Dtk_Component), and allows to assign a name to each of them.\n
501 //! \details It also allows to define one of the layer as being the default one (note that this can be the same concept as the current one, depending on the format).\n
502 //! \details Creation of layer filters are also done through this set, representing a group of specific layers. \n
503 //! \details One of the filter can be defined as being the default one, similarly to individual layer.
504 //! \see Dtk_LayerFilterInfos for more information about layer filters.
505 //! \see \ref attribsample_layerinfoset for a sample on how to use it.
506 //! \SmartPtr{Dtk_LayerInfosSetPtr}
508 {
509 public:
510 
511  struct Layer
512  {
513  enum class Status
514  {
515  Visible = 1,//Describes the layer elements visibility : if set, the elements in the layer are visible, otherwise they are invisible.
516  Selectable = 2,//Describes the layer elements selectability: if set, the elements in the layer are selectable, otherwise they aren't.
517  };
518 
519  protected:
524 
525  public:
526 
527  Layer() : m_Name(), m_ID( static_cast< Dtk_ID >( -1 ) ), m_FatherID( static_cast< Dtk_ID >( -1 ) ), m_Status( 0 )
528  {
529  FlagAs( Status::Visible );
530  FlagAs( Status::Selectable );
531  }
532  Layer( Dtk_ID id, Dtk_string name = Dtk_string(), Dtk_ID fatherID = static_cast< Dtk_ID >( -1 ) ) : m_Name( std::move( name ) ), m_ID( id ), m_FatherID( fatherID ), m_Status( 0 )
533  {
534  FlagAs( Status::Visible );
535  FlagAs( Status::Selectable );
536  }
537  Dtk_string const& GetName() const { return m_Name; };
538  Dtk_ID GetID() const { return m_ID; };
539  Dtk_ID GetFatherID() const { return m_FatherID; };
540  bool IsFlaggedAs( Status in ) const { return m_Status & 1 << static_cast< Dtk_UShort16 >( in ); }
541  void FlagAs( Status in ) { m_Status |= 1 << static_cast< Dtk_UShort16 >( in ); }
542  void Unflag( Status in ) { m_Status &= ~( 1 << static_cast< Dtk_UShort16 >( in ) ); }
543 
544  friend class Dtk_LayerInfosSet;
545 
546  };
547 
548 protected:
549  struct Dtk_Handle; // Not defined here
550  std::unique_ptr<Dtk_Handle> _Private; // Handle
552 
556 
557  virtual Dtk_Object* Clone() { return new Dtk_LayerInfosSet( *this ); }
558 
559  //! \BaseDestructor
561 private:
562  friend class Dtk_SmartPtr<Dtk_LayerInfosSet>;
563 public:
564  //! \DtkDynamicType
566 
567  //! \DtkDynamicCast
569 
570  //! \return The type of the entity type - DTK_TYPE_LAYER_INFOS_SET -
572 
573  //! \brief Calls a constructor to allocate a new object.
574  //! \param[in] inNumLayers the number of desired layers.
575  //! \details The desired number of layer will be added in the set using AddLayer( Layer ). Layers identifier will be set as their index in the set.
576  //! \deprecated
577  SetAsDeprecated( "2026.2", "Use Create then Dtk_LayerInfoSet::AddLayers instead." )
578  static Dtk_LayerInfosSetPtr Create( const Dtk_Size_t inNumLayers );
579 
580  //! \CreateBase
582  //! \\CreateCopy{in}
584 
585  //! \brief Creates a layer filter.
586  //! \param[in] inName the layer filter name - Empty name by default -.
587  //! \param[in] inDescription the layer filter description - Empty name by default -.
588  //! \param[in] inAreLayersActivatedByDefault The default value of the layer selection. DTK_TRUE means that all layers are selected. DTK_FALSE means that no layer is selected - DTK_FALSE by default -.
589  //! \param[in] IsDefaultLayerFilter Tells if the new layer filter is the default one - DTK_FALSE by default -.
590  //! \return the newly created layer filter.
591  //! \remark The newly created layer filter is automatically stored into the Dtk_LayerInfosSet.
592  Dtk_LayerFilterInfosPtr CreateLayerFilterInfos( Dtk_string inName = L"", Dtk_string inDescription = L"", const Dtk_bool inAreLayersSelectedByDefault = DTK_FALSE, const Dtk_bool IsDefaultLayerFilter = DTK_FALSE );
593 
594  //! \brief Retrieves the number of layers.
595  //! \return the number of layers.
596  Dtk_Size_t GetNumLayers() const;
597 
598  //! \brief Retrieves the number of layer filters.
599  //! \return the number of layer filters.
600  Dtk_Size_t GetNumLayerFilters() const;
601 
602  //! \brief Sets the layer name giving its index.
603  //! \param[in] inIndex the layer index.
604  //! \param[in] inLayerName the layer name.
605  //! \return dtkNoError if success.
606  //! \return dtkErrorOutOfRange if bad layer index.
607  //! \deprecated
608  SetAsDeprecated( "2026.2", "Use AddLayer instead." )
609  Dtk_ErrorStatus SetLayerName(const Dtk_Size_t inIndex, const Dtk_string& inLayerName);
610 
611  //! \brief Gets the LayerName giving its index.
612  //! \param[in] inLayerPos the layer index.
613  //! \param[out] outLayerName the layer name or empty string if any error.
614  //! \return dtkNoError if success.
615  //! \return dtkErrorOutOfRange if bad layer index.
616  //! \return dtkErrorNullPointer if no layer name.
617  //! \deprecated
618  SetAsDeprecated( "2026.2", "Use GetLayers instead." )
619  Dtk_ErrorStatus GetLayerName( const Dtk_Size_t inIndex, Dtk_string& outLayerName ) const;
620 
621  //! \brief Gets the LayerName giving the ID found by infos->GetLayer().
622  //! \param[in] inLayerID the layer ID.
623  //! \param[out] outLayerName the layer name or empty string if any error.
624  //! \return dtkNoError if success.
625  //! \return dtkErrorOutOfRange if bad layer ID.
626  //! \return dtkErrorNullPointer if no layer name.
627  //! \deprecated
628  SetAsDeprecated( "2026.2", "Use GetLayerByID instead." )
629  Dtk_ErrorStatus GetLayerNameById( const Dtk_ID inLayerID, Dtk_string& outLayerName ) const;
630 
631  //! \brief Sets the default layer index.
632  //! \param inDefaultLayer the layer index.
633  //! \return dtkNoError if success.
634  //! \return dtkErrorOutOfRange if bad layer index.
635  //! \deprecated
636  SetAsDeprecated( "2026.2", "Use SetCurrentLayer instead." )
637  Dtk_ErrorStatus SetDefaultLayer(const Dtk_Size_t inDefaultLayerIndex);
638 
639  //! \brief Sets the current layer index.
640  //! \param inCurrentLayerIndex the layer index.
641  //! \return dtkNoError if success.
642  //! \return dtkErrorOutOfRange if bad layer index.
643  Dtk_ErrorStatus SetCurrentLayer(const Dtk_Size_t inCurrentLayerIndex);
644 
645  //! \brief Gets the default layer index.
646  //! \param outDefaultLayer the layer index or -1 if any error.
647  //! \return dtkNoError if success.
648  //! \return dtkErrorOutOfRange if no current layer.
649  //! \deprecated
650  SetAsDeprecated( "2026.2", "Use GetCurrentLayer instead.")
651  Dtk_ErrorStatus GetDefaultLayer(Dtk_Size_t& outDefaultLayerIndex) const;
652 
653  //! \brief Gets the current layer index.
654  //! \param outCurrentLayerIndex the layer index or -1 if any error.
655  //! \return dtkNoError if success.
656  //! \return dtkErrorOutOfRange if no current layer.
657  Dtk_ErrorStatus GetCurrentLayer(Dtk_Size_t& outCurrentLayerIndex) const;
658 
659  //! \brief Gets the default layer filter index.
660  //! \param outDefaultLayerFilterIndex the layer filter index or -1 if any error.
661  //! \return dtkNoError if success.
662  //! \return dtkErrorOutOfRange if no default layer filter.
663  Dtk_ErrorStatus GetDefaultLayerFilter(Dtk_Size_t& outDefaultLayerFilterIndex) const;
664 
665  //! \brief Gets a layer filter giving its index.
666  //! \param inLayerFilterIndex the layer filter index.
667  //! \return the asked layer filter if success or a NULL Dtk_LayerFilterInfosPtr if any error.
668  Dtk_LayerFilterInfosPtr GetLayerFilterByPos(const Dtk_Size_t inLayerFilterIndex) const;
669 
670  //! \brief Sets the LayerID giving its index.
671  //! \param[in] inLayerPos the layer index.
672  //! \param[in] inLayerID the layer id.
673  //! \return dtkNoError if success.
674  //! \return dtkErrorOutOfRange if bad layer index.
675  //! \deprecated
676  SetAsDeprecated( "2026.2", "Use GetLayers instead." )
677  Dtk_ErrorStatus SetLayerID(const Dtk_Size_t inLayerIndex, const Dtk_ID& inLayerID);
678 
679  //! \brief Gets the LayerID giving its index.
680  //! \param[in] inLayerPos the layer index.
681  //! \param[out] outLayerID the layer id or inLayerPos if not given.
682  //! \return dtkNoError if success.
683  //! \return dtkErrorOutOfRange if bad layer index.
684  //! \deprecated
685  SetAsDeprecated( "2026.2", "Use GetLayers instead.")
686  Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerIndex, Dtk_ID& outLayerID) const;
687 
688  //! \brief Adds a layer in the set.
689  //! \param[in] inLayer the layer to be added.
690  //! \details The Dtk_LayerInfoSet expects layer being added to have an initialized identifier ( with a value different from static_cast< Dtk_ID >( -1 ) ).
691  //! If the layer identifier is uninitialized, this function will set the identifier as being the layer index in the layer set.
692  //! \return dtkNoError if success.
694 
695  //! \brief Retrieves a layer in the set using its identifier.
696  //! \param[in] inLayerID the layer identifier.
697  //! \param[out] out the layer with the provided identifier if found.
698  //! \return dtkNoError if success.
699  //! \return dtkErrorOutOfRange if layer identifier was not found in the set.
700  Dtk_ErrorStatus GetLayerByID( Dtk_ID inLayerID, Layer& out );
701 
702  //! \brief Retrieves layers in the set as a dtk::Span.
703  //! \return the layers in the set as a dtk::Span.
704  dtk::Span<Layer const> GetLayers() const;
705 
706  //! \brief Retrieves the identifiers of layers in the set that are flagged a certain way.
707  //! \param[in] inStatus the flag to check to retrieve layers identifiers.
708  //! \return the identifiers of layers in the set that are flagged a certain way.
709  Dtk_tab< Dtk_ID > GetLayersFlaggedAs( Dtk_LayerInfosSet::Layer::Status inStatus ) const;
710 
711  friend class Dtk_LayerFilterInfos;
712 };
713 
714 
715 //! \class Dtk_ColorInfosSet
716 //! \brief This is the Color Info Set class. This is the read color definition Class.\n
717 //! It gathers all information about colors in the component.
718 //! \SmartPtr{Dtk_ColorInfosSetPtr}
720 {
721 public:
722 protected:
723  struct Dtk_Handle; // Not defined here
724  std::unique_ptr<Dtk_Handle> _Private; // Handle
726 
727  Dtk_ColorInfosSet(const Dtk_Size_t inNumColors);
728  //! \sa Create(const Dtk_ColorInfosSet &)
731  virtual Dtk_Object* Clone() { return new Dtk_ColorInfosSet(*this); }
732 
733  //! \BaseDestructor
735 private:
736  friend class Dtk_SmartPtr<Dtk_ColorInfosSet>;
737 public:
738  //! \DtkDynamicType
740 
741  //! \DtkDynamicCast
743 
744  //! \return The type of the entity type - DTK_TYPE_COLOR_INFOS_SET -
746 
747  //! \brief Calls a constructor to allocate a new object.
748  static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors);
749  //! \\CreateCopy{in}
751 
752  //! \brief Retrieves the number of colors.
753  //! \return the number of colors.
755 
756  //! \brief Add Color definition.
757  //! \param inColorReadId the color number.
758  //! \param inColorName the color name.
759  //! \param inColorDef the color RGB definition.
760  //! \return dtkNoError if success.
761  Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string& inColorName,const Dtk_RGB& inColorDef);
762 
763 
764  //! \brief Sets the Color Name giving its number.
765  //! \param inColorPos the color number.
766  //! \param inColorName the color name.
767  //! \return dtkNoError if success.
768  //! \return dtkErrorOutOfRange if bad color number.
769  Dtk_ErrorStatus SetColorName(const Dtk_Size_t inColorPos, const Dtk_string& inColorName);
770 
771  //! \brief Gets the Color Name giving its number.
772  //! \param inColorPos the color number.
773  //! \param inColorName the color name or empty string if any error.
774  //! \return dtkNoError if success.
775  //! \return dtkErrorOutOfRange if bad color number.
776  //! \return dtkErrorNullPointer if no color name.
777  Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string& outColorName) const;
778 
779  //! \brief Gets the Color Name giving the ID found iby infos->GetColorID().
780  //! \param inColorReadId the color ID.
781  //! \param outColorName the color name or empty string if any error.
782  //! \return dtkNoError if success.
783  //! \return dtkErrorOutOfRange if bad color ID.
784  //! \return dtkErrorNullPointer if no color name.
785  Dtk_ErrorStatus GetColorNameById(const Dtk_ID inColorReadId, Dtk_string& outColorName) const;
786 
787  //! \brief Sets the default color number.
788  //! \param inDefaultColor the color number.
789  //! \return dtkNoError if success.
790  //! \return dtkErrorOutOfRange if bad color number.
792 
793  //! \brief Gets the default color number.
794  //! \param outDefaultColor the color number or -1 if any error.
795  //! \return dtkNoError if success.
796  //! \return dtkErrorOutOfRange if no default color.
797  Dtk_ErrorStatus GetDefaultColor(Dtk_Int32& outDefaultColor) const;
798 
799  //! \brief Sets the ColorID giving its number.
800  //! \param inColorPos the color number.
801  //! \param inColorReadID the color id.
802  //! \return dtkNoError if success.
803  //! \return dtkErrorOutOfRange if bad color number.
804  Dtk_ErrorStatus SetColorID(const Dtk_Size_t inColorPos, const Dtk_ID& inColorReadID);
805 
806  //! \brief Gets the ColorID giving its number.
807  //! \param inColorPos the color number.
808  //! \param outColorReadID the color id
809  //! \return dtkNoError if success.
810  //! \return dtkErrorOutOfRange if bad color number.
811  Dtk_ErrorStatus GetColorID(const Dtk_Size_t inColorPos, Dtk_ID& outColorReadID) const;
812 
813  //! \brief Gets the ColorID giving its number.
814  //! \param inColorPos the color number.
815  //! \param outColorDef the color id
816  //! \return dtkNoError if success.
817  //! \return dtkErrorOutOfRange if bad color number.
818  Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB& outColorDef) const;
819 
820 };
821 
822 
823 class Dtk_Preview;
825 
826 //! \ingroup base_types
827 //! \class Dtk_Preview
828 //! \brief This is the Dtk_Preview class.
829 //! \brief A Dtk_Preview contains Stream representing picture data
830 //! This class lets you use Dtk_Preview.
831 //! \SmartPtr{Dtk_PreviewPtr}
832 class Dtk_Preview: public Dtk_Object
833 {
834 public:
835  //downcasting
836  int DtkDynamicType(const int& inId);
838 
839  //constructors
840  //! \CreateCopy{in}
841  static Dtk_PreviewPtr Create(const Dtk_Preview& in);
842  //! \brief Calls full featured constructor to allocate a new object.
843  static Dtk_PreviewPtr Create(const char* inStream,const Dtk_Int32 inSizeStream);
844  char *GetStream() const;
847  void SetType(preview_type_detk inPreviewType);
848 
849 protected:
851  Dtk_Preview( Dtk_Preview const& in );
853 
854  //! \sa Create(const char*,const Dtk_Int32 )
855  Dtk_Preview(const char* inStream,const Dtk_Int32 inSizeStream);
856  virtual ~Dtk_Preview();
857  struct Dtk_Handle;
858  std::unique_ptr<Dtk_Handle> _Private;
859  friend class Dtk_SmartPtr<Dtk_Preview>;
860 };
861 
862 
863 //! \ingroup base_types
864 //! \class Dtk_AxisSystem
865 //! \brief This is the Dtk_AxisSystem class.
866 //! \brief A Dtk_AxisSystem contains the AxisSystem definition which is defined by its name, status and a matrix
867 //!
868 //! This class lets you use Dtk_AxisSystem.
869 //! \SmartPtr{Dtk_AxisSystemPtr}
871 {
872 protected:
873  struct Dtk_Handle;
874  std::unique_ptr<Dtk_Handle> _Private;
875 
877  //! \sa Create(const Dtk_AxisSystem &)
879  virtual ~Dtk_AxisSystem();
880  inline virtual Dtk_Object* Clone(){ return new Dtk_AxisSystem( *this ); }
881  friend class Dtk_SmartPtr<Dtk_AxisSystem>;
882 
883 public:
884  //! \return The type of the entity type - DTK_TYPE_AXIS_SYSTEM -
886  {
887  return DTK_TYPE_AXIS_SYSTEM;
888  }
889 
890  //! \CreateBase
892  ////! \deprecated Use Create instead.
893  SetAsDeprecated( "2026.4", "Use Create instead" )
894  static Dtk_SmartPtr<Dtk_AxisSystem> create();
895 
896  int DtkDynamicType( const int& inId );
898 
899  //! \brief Get the Name of the AxisSystem.
900  //! \return the Name of this AxisSystem .
901  //!
903  //! \brief Set the Name of the AxisSystem.
904  //! \return the Name of this AxisSystem .
905  //!
906  void SetName(const Dtk_string& in) ;
907 
908  //! \brief Get the Matrix of the AxisSystem.
909  //! \return the Matrix of this AxisSystem .
910  const Dtk_transfo& GetMatrix() const;
911 
912  //! \brief Get the Matrix of the AxisSystem.
913  //! \param[in] in : Matrix of the AxisSystem
914  //! \return the Matrix of this AxisSystem .
915  //!
916  void SetMatrix(const Dtk_transfo& in) ;
917 
918  //! \brief Get the visibility status.
919  //! \return DTK_TRUE if it is visible .
920  //!
921  int GetIsVisible() const;
922  //! \brief Set the visibility status.
923  //! \return DTK_TRUE if it is visible .
924  //!
925  void SetIsVisible() ;
926 
927  //! \brief Get the hidden status.
928  //! \return DTK_TRUE if it is hidden .
929  //!
930  int GetIsHidden() const;
931  //! \brief Set the hidden status.
932  //! \return DTK_TRUE if it is hidden .
933  //!
934  void SetIsHidden() ;
935 
936  //! \brief Get the default status.
937  //! \return DTK_TRUE if it is Default Axis .
938  //!
939  Dtk_bool IsDefault() const;
940  //! \brief Set the default status.
941  //! \return DTK_TRUE if it is hidden .
942  //!
943  void SetDefaultStatus(Dtk_bool inDefaultStatus) ;
944 
945  //! \Transform{inTransfo}
946  Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo);
947 };
948 
949 //! \ingroup base_types
950 //! \class Dtk_ModelDisplay
951 //! \brief This is the Dtk_ModelDisplay class.
952 //! \SmartPtr{Dtk_ModelDisplayPtr}
954 {
955 protected:
956  struct Dtk_Handle; // Not defined here
957  std::unique_ptr<Dtk_Handle> _Private; // Handle
959 
960  //! \sa Create()
962  //! \sa Create(const Dtk_ModelDisplay &)
965 
966  //! \sa Create(const Dtk_CameraPtr& , const Dtk_EntityPtr&, const Dtk_bool)
968  const Dtk_CameraPtr& inCamera,
970  const Dtk_bool inIsActivated);
971 
972  inline virtual Dtk_Object* Clone() { return new Dtk_ModelDisplay(*this); }
973 
974  //! \BaseDestructor
975  virtual ~Dtk_ModelDisplay();
976 private:
977  friend class Dtk_SmartPtr<Dtk_ModelDisplay>;
978 
979 public:
981  {
982  rendering_mode_shaded_only=0,
990  rendering_mode_unknown
991  };
993  SectionPlane = 0,
998  SectionUndefined
999  };
1000 
1001  //! \DtkDynamicType
1003 
1004  //! \DtkDynamicCast
1006 
1007  //! \return The type of the entity type - DTK_TYPE_MODEL_DISPLAY -
1009 
1010  //! \brief Calls full featured constructor to allocate a new object.
1011  //! \param inCamera The included Dtk_Camera.
1012  //! \param inClipping The included clipping entity.
1013  //! \param inIsActivated Tells if the Capture is activated or not.
1014  //! \return The created Dtk_ModelDisplayPtr
1016  const Dtk_CameraPtr& inCamera,
1018  const Dtk_bool inIsActivated);
1019  //! \\CreateCopy{in}
1021 
1022  //! \brief Retrieves the Dtk_ModelDisplay camera - read only -.
1023  //! \return The camera.
1024  const Dtk_CameraPtr& GetCamera() const;
1025 
1026  //! \brief Retrieves the Dtk_ModelDisplay clipping entity - read only -.
1027  //! \return The clipping entity.
1029 
1030  //! \brief Tells if the Dtk_ModelDisplay is activated or not - read only -.
1031  //! \return DTK_TRUE if capture is visible when opening the document (several can be activated ) DTK_FALSE else.
1033 
1034  //! \brief Set the rendering mode shaded , shaded with edge , ...
1036 
1037  //! \brief Get the rendering mode shaded , shaded with edge , ...
1039 
1040  //! \brief Set if this Dtk_ModelDisplay is a Standard View other case it is a user defined view
1041  void SetIsStandardView() const;
1042 
1043  //! \brief Get DTK_TRUE if this Dtk_ModelDisplay is a Standard View , DTK_FALSE if it is a user defined view .
1045 
1046  //! \brief Set the type of the section on the Dtk_ModelDisplay.
1047  //! \param inSectionType the section type.
1048  //! \param inIsLocked if section distance is locked.
1049  //! \param inThickness in case of a SectionParallelePlane, define the distance between the two parallel plane.
1050  void SetSectionInformation(const SectionTypeEnum& inSectionType, const Dtk_Int32& inIsLocked = DTK_FALSE, const Dtk_Double64& inThickness=0.0) const;
1051 
1052  //! \brief Get the type of the Section on the Dtk_Capture.
1053  //! \brief
1054  //! \brief SectionPlane : clipping by one plane , GetClippingEntity() return a Dtk_PlaneSurfacePtr .
1055  //! \image html SectionPlane.png
1056  //! \brief
1057  //! \brief SectionParallelePlane : clipping by two plane ,first one , GetClippingEntity() return a Dtk_PlaneSurfacePtr ,and the second is defined by a thickness from this plane.
1058  //! \image html SectionParallelePlane.png
1059  //! \brief
1060  //! \brief SectionBox : clipping by a box defined by six planes , GetClippingEntity() return a Dtk_BodyPtr with six plane surface.
1061  //! \image html SectionBox.png
1062  //! \brief
1063  //! \brief SectionBox : clipping by a Dtk_BodyPtr , GetClippingEntity() return a Dtk_BodyPtr .
1064  //! \image html SectionBody.png
1065  //! \param outSectionType the section type , outIsLocked if Section distance is locked and outThickness for SectionParallelePlane.
1066  void GetSectionInformation(SectionTypeEnum& outSectionType, Dtk_Int32& outIsLocked, Dtk_Double64& outThickness) const;
1067 
1068  //! \Transform{inTransfo}
1070 
1071  //! \brief Visible layer for Dtk_ModelDisplay
1072  void GetVisibleLayers( Dtk_tab<Dtk_Int32> &outVisibleLayers )const;
1073  void SetVisibleLayers( const Dtk_tab<Dtk_Int32> & inVisibleLayers );
1074 
1075 };
1076 
1077 
1078 //! \ingroup base_types
1079 //! \class Dtk_ConstraintReference
1080 //! \brief This is the Dtk_ConstraintReference class.
1081 //! \brief A Dtk_ConstraintReference contains the AxisSystem definition which defines by its Name, statut and the Matrix
1082 //!
1083 //! This class lets you use Dtk_ConstraintReference.
1084 //! \SmartPtr{Dtk_ConstraintReferencePtr}
1086 {
1087 protected:
1089  //! \sa Create( const Dtk_ConstraintReference &)
1092  struct Dtk_Handle;
1093  std::unique_ptr<Dtk_Handle> _Private;
1094  inline virtual Dtk_Object* Clone(){ return new Dtk_ConstraintReference( *this ); }
1095  friend class Dtk_SmartPtr<Dtk_ConstraintReference>;
1096 
1097 public:
1098 
1099  //! \brief Get the Dtk_NodeConnectorPtr of the ConstraintReference .
1100  //! \return the Dtk_NodeConnectorPtr of this ConstraintReference .
1101  //!
1103  //! \brief Set the type of the Constraint .
1104  //!
1106 
1107 
1108  //! \brief Get the Position of the ConstraintReference .
1109  //! \return the Position of this ConstraintReference .
1110  //!
1111  const Dtk_pnt& GetPosition(Dtk_bool & outHasPosition) const;
1112  //! \brief Set the Position of the ConstraintReference .
1113  //!
1114  void SetPosition(const Dtk_pnt& in);
1115 
1116 
1117  //! \return The type of the entity type - DTK_TYPE_CONSTRAINT_REFERENCE -
1119 
1120  //! \CreateBase
1122  //! \\CreateCopy{in}
1124  int DtkDynamicType(const int& inId);
1126 
1127  //! \Transform{inTransfo}
1129 };
1130 
1131 
1132 //! \ingroup base_types
1133 //! \class Dtk_Constraint
1134 //! \brief This is the Dtk_Constraint class.
1135 //! \brief A Dtk_Constraint contains the AxisSystem definition which defines by its Name, statut and the Matrix
1136 //!
1137 //! This class lets you use Dtk_Constraint.
1138 //! \SmartPtr{Dtk_ConstraintPtr}
1140 {
1141 protected:
1143  //! \sa Create( const Dtk_Constraint &)
1146  virtual ~Dtk_Constraint();
1147  struct Dtk_Handle;
1148  std::unique_ptr<Dtk_Handle> _Private;
1149  inline virtual Dtk_Object* Clone(){ return new Dtk_Constraint( *this ); }
1150  friend class Dtk_SmartPtr<Dtk_Constraint>;
1151 
1152 public:
1153 
1154  //! \return The type of the entity type - DTK_TYPE_CONSTRAINT -
1156 
1157  //! \CreateBase
1159  //! \\CreateCopy{in}
1161  int DtkDynamicType(const int& inId);
1163 
1165  {
1166  ValueTypeUndefined = 0,
1171  };
1173  {
1174  switch( inEnum )
1175  {
1176  case ValueTypeSame: return L"TypeSame";
1177  case ValueTypeOpposite: return L"TypeOpposite";
1178  case ValueTypeInternal: return L"TypeInternal";
1179  case ValueTypeExternal: return L"TypeExternal";
1180  default:
1181  case ValueTypeUndefined: return L"TypeUndefined";
1182  }
1183  }
1184 
1186  {
1187  ValueTypeUnknown = 0,
1193  };
1195  {
1196  switch( inEnum )
1197  {
1198  case ValueTypeAngle: return L"Angle";
1199  case ValueTypeDistance: return L"Distance";
1200  case ValueTypePosition: return L"Position";
1201  case ValueTypeRotation: return L"Rotation";
1202  case ValueTypeOrientation: return L"Orientation";
1203  default:
1204  case ValueTypeUnknown: return L"TypeUnknown";
1205  }
1206  }
1207 
1209  {
1210  public:
1213 
1214  _ConstraintValue(const ConstraintValueTypeEnum& inValueType, Dtk_Val inValue, const Dtk_Int32& inEnableLowerLimit, const Dtk_Double64& inLowerLimit, const Dtk_Int32& inEnableUpperLimit, const Dtk_Double64& inUpperLimit);
1215  _ConstraintValue(const ConstraintValueTypeEnum& inValueType, Dtk_Val inValue);
1216 
1223  private:
1224 
1225  };
1226 
1228  {
1229  TypeUnknown = 0,
1230  //! \image html align.png
1232  //! \image html angle.png
1234  //! \image html bond.png
1237  //! \image html center.png
1239  //! \image html concentric.png
1241  //! \image html coincidence.png
1243  //! \image html distance.png
1245  //! \image html fit.png
1247  //! \image html fix.png
1254  //! \image html lock.png
1256  //! \image html orientangle.png
1258  //! \image html parallel.png
1261  //! \image html perpendicular.png
1267  //! \image html symmetric.png
1269  //! \image html tangent.png
1271  //! \image html touch.png
1274  TypeWidth
1275  };
1277  {
1278  switch (inEnum)
1279  {
1280  case TypeAlign: return L"TypeAlign";
1281  case TypeAngle: return L"TypeAngle";
1282  case TypeBond: return L"TypeBond";
1283  case TypeCam: return L"TypeCam";
1284  case TypeCenter: return L"TypeCenter";
1285  case TypeConcentric: return L"TypeConcentric";
1286  case TypeCoincidence: return L"TypeCoincidence";
1287  case TypeDistance: return L"TypeDistance";
1288  case TypeFit: return L"TypeFit";
1289  case TypeFix: return L"TypeFix";
1290  case TypeGear: return L"TypeGear";
1291  case TypeHinge: return L"TypeHinge";
1292  case TypeLimit: return L"TypeLimit";
1293  case TypeLinear: return L"TypeLinear";
1294  case TypeLinearCoupler: return L"TypeLinearCoupler";
1295  case TypeLock: return L"TypeLock";
1296  case TypeOrientAngle: return L"TypeOrientAngle";
1297  case TypeParallel: return L"TypeParallel";
1298  case TypePathMate: return L"TypePathMate";
1299  case TypePerpendicular: return L"TypePerpendicular";
1300  case TypeProfileCenter: return L"TypeProfileCenter";
1301  case TypeRackPinion: return L"TypeRackPinion";
1302  case TypeScrew: return L"TypeScrew";
1303  case TypeSlot: return L"TypeSlot";
1304  case TypeSymmetric: return L"TypeSymmetric";
1305  case TypeTangent: return L"TypeTangent";
1306  case TypeTouch: return L"TypeTouch";
1307  case TypeUniversalJoint: return L"TypeUniversalJoint";
1308  case TypeWidth: return L"TypeWidth";
1309  default:
1310  case TypeUnknown: return L"Unknown";
1311  }
1312  }
1313 
1314  //! \brief Get the type of the Constraint .
1315  //! \return the type of this Constraint .
1317  //! \brief Set the type of the Constraint .
1319 
1320  //! \brief Get the number of Dtk_Constraint::_ConstraintValue in the constraint.
1321  //! \return The number of Dtk_Constraint::_ConstraintValue in the constraint.
1322  //!
1324 
1325  //! \brief Get the Dtk_Constraint::_ConstraintValue at the specified index.
1326  //! \return A Dtk_Constraint::_ConstraintValue.
1327  //!
1328  const _ConstraintValue& GetConstraintValue( const Dtk_Size_t &index ) const;
1329 
1330  //! \brief Get a Value of the Constraint .
1331  //! \return a Value of this Constraint .
1332  Dtk_ErrorStatus GetValue( const ConstraintValueTypeEnum& inValue, Dtk_Val& outValue, Dtk_Int32& outEnableLowerLimit, Dtk_Double64& outLowerLimit, Dtk_Int32& outEnableUpperLimit, Dtk_Double64& outUpperLimit ) const;
1333  Dtk_ErrorStatus GetValue( const ConstraintValueTypeEnum& inValue, Dtk_Val& outValue ) const;
1334 
1335  //! \brief Get all types of values in the Constraint.
1336  //! \return All types of values contained in the Constraint.
1338 
1339  //! \brief Set a Value of the Constraint .
1340  void SetValue( const ConstraintValueTypeEnum& inValueType, Dtk_Val inValue, const Dtk_Int32& inEnableLowerLimit, const Dtk_Double64& inLowerLimit, const Dtk_Int32& inEnableUpperLimit, const Dtk_Double64& inUpperLimit );
1341  void SetValue( const ConstraintValueTypeEnum& inValueType, Dtk_Val inValue );
1342 
1343  //! \brief Get the number of Dtk_ConstraintReference in the constraint.
1344  //! \return The number of Dtk_ConstraintReference in the constraint.
1346 
1347  //! \brief Get the Dtk_ConstraintReference at the specified index.
1348  //! \param The index to retrieve the Dtk_ConstraintReference from.
1349  //! \return A Dtk_ConstraintReference.
1351 
1352  //! \brief Get all ConstraintReferences of the Constraint.
1353  //! \return A tab with all the ConstraintReferences of this Constraint.
1355 
1356  //! \brief Add a ConstraintReference to this Constraint .
1358 
1359 
1360  //! \Transform{inTransfo}
1362 
1363 };
1364 
1365 #endif
DTK_TYPE_COLOR_INFOS_SET
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:498
Dtk_Entity::Dtk_Entity
Dtk_Entity()
Dtk_Constraint::TypeFix
@ TypeFix
Definition: util_ent_dtk.hpp:1248
Dtk_ConstraintReference::SetNodeConnector
void SetNodeConnector(const Dtk_NodeConnectorPtr &in)
Set the type of the Constraint .
Dtk_Info::Create
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
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:494
Dtk_ModelDisplay::GetVisibleLayers
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Dtk_ModelDisplay.
Dtk_ModelDisplay::Create
static Dtk_ModelDisplayPtr Create(const Dtk_ModelDisplay &in)
\CreateCopy{in}
Dtk_pair
Definition: util_stl_dtk.hpp:921
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_Preview::GetStreamSize
Dtk_Int32 GetStreamSize() const
Dtk_Entity::get_info
Dtk_InfoPtr get_info() const
Dtk_LayerInfosSetPtr
Dtk_SmartPtr< Dtk_LayerInfosSet > Dtk_LayerInfosSetPtr
Definition: util_ent_dtk.hpp:412
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:688
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
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:655
Dtk_AxisSystemPtr
Dtk_SmartPtr< Dtk_AxisSystem > Dtk_AxisSystemPtr
Definition: util_ent_dtk.hpp:416
Dtk_Info::GetPhysicalMaterialInfos
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Dtk_Constraint::_ConstraintValue
Definition: util_ent_dtk.hpp:1209
Dtk_Entity::GetID
const Dtk_ID & GetID() const
Get Internal UniqueID.
Dtk_Preview::~Dtk_Preview
virtual ~Dtk_Preview()
Dtk_ModelDisplay::rendering_mode_wireframe_face_analysis
@ rendering_mode_wireframe_face_analysis
Definition: util_ent_dtk.hpp:987
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_LayerInfosSet::~Dtk_LayerInfosSet
virtual ~Dtk_LayerInfosSet()
Destructor.
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
Retrieves the Flag for Infinite Geometry.
Dtk_Constraint::TypeSlot
@ TypeSlot
Definition: util_ent_dtk.hpp:1266
Dtk_Info
This is the generic Info class.
Definition: util_ent_dtk.hpp:107
catiav5w::AddMaterial
Dtk_ErrorStatus AddMaterial(const Material &inMaterial, MaterialId &outMaterialId)
Add a Material in a CATPart context.
Dtk_Info::SetName
Dtk_ErrorStatus SetName(Dtk_string inName)
Dtk_Constraint::_ConstraintValue::_ConstraintValue
_ConstraintValue()
Dtk_ConstraintReference::Dtk_ConstraintReference
Dtk_ConstraintReference()
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_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
Retrieves the entity color index in Dtk_API color table.
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:1253
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_Info::GetDisplayLineWidth
Dtk_Double64 GetDisplayLineWidth() const
Retrieves if all wireframe is displayed with same width.
Dtk_LayerInfosSet::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:571
Dtk_ColorInfosSet::Create
static Dtk_ColorInfosSetPtr Create(const Dtk_ColorInfosSet &in)
\CreateCopy{in}
dtk_AddColorInTable
int dtk_AddColorInTable(const Dtk_RGB &)
Dtk_Constraint::ConstraintOrientationTypeEnum
ConstraintOrientationTypeEnum
Definition: util_ent_dtk.hpp:1165
Dtk_Info::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:111
Dtk_Preview::SetType
void SetType(preview_type_detk inPreviewType)
Dtk_AxisSystem::Dtk_AxisSystem
Dtk_AxisSystem()
Dtk_LayerFilterInfos::~Dtk_LayerFilterInfos
virtual ~Dtk_LayerFilterInfos()
DTK_TYPE_MODEL_DISPLAY
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:476
Dtk_Constraint::TypeAlign
@ TypeAlign
Definition: util_ent_dtk.hpp:1231
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:123
Dtk_Entity::Dtk_Entity
Dtk_Entity(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_LayerInfosSet::Layer
Definition: util_ent_dtk.hpp:512
Dtk_Info::GetCurveThickNessInMM
Dtk_Double64 GetCurveThickNessInMM() const
Retrieves the curve thickness - if exists and relevant -.
Dtk_LayerInfosSet::Layer::m_Name
Dtk_string m_Name
Definition: util_ent_dtk.hpp:520
Dtk_ColorInfosSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_Info::GetRefEntityFlag
int GetRefEntityFlag() const
Retrieves the Flag for Reference Entity (Reference planes , axis, point.
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:457
Dtk_string_compare_case_insensitive
Definition: util_ent_dtk.hpp:93
Dtk_LayerInfosSet::Dtk_LayerInfosSet
Dtk_LayerInfosSet(Dtk_LayerInfosSet &&s) DTK_NOEXCEPT
Dtk_LayerInfosSet::Layer::m_Status
Dtk_UShort16 m_Status
Definition: util_ent_dtk.hpp:523
Dtk_Info::GetPersistentName
Dtk_string GetPersistentName() const
Retrieves the entity persistent name.
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:823
Dtk_Constraint::_ConstraintValue::_ValueUpper
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1222
Dtk_Constraint::ValueTypeSame
@ ValueTypeSame
Definition: util_ent_dtk.hpp:1167
Dtk_Constraint::TypeSymmetric
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1268
Dtk_Constraint::SetValue
void SetValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val inValue)
DTK_PT_CROSS
@ DTK_PT_CROSS
Definition: util_ent_dtk.hpp:28
Dtk_Info::SetRenderInfosId
Dtk_ErrorStatus SetRenderInfosId(const Dtk_ID &inRenderId)
Dtk_LayerFilterInfos::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:440
Dtk_Info::SetHierarchy
Dtk_ErrorStatus SetHierarchy(const Dtk_Int32 &inHierarchy)
Dtk_LayerFilterInfosPtr
Dtk_SmartPtr< Dtk_LayerFilterInfos > Dtk_LayerFilterInfosPtr
Definition: util_ent_dtk.hpp:415
Dtk_LayerFilterInfos::Dtk_LayerFilterInfos
Dtk_LayerFilterInfos(const Dtk_LayerFilterInfos &s)
Copy constructor.
Dtk_Info::AddRenderInfos
Dtk_ErrorStatus AddRenderInfos(const Dtk_RenderInfosPtr &inRender)
Dtk_Info::SetConfigurationName
Dtk_ErrorStatus SetConfigurationName(const Dtk_string &inName)
Dtk_Info::DtkDynamicCast
static Dtk_Info * DtkDynamicCast(Dtk_Object *s)
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
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:983
Dtk_ModelDisplay::rendering_mode_wireframe_with_all_edges
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:984
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:711
Dtk_Info::GetColor
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
Dtk_Constraint::TypeBond
@ TypeBond
Definition: util_ent_dtk.hpp:1235
Dtk_Info::GetActivationFlag
int GetActivationFlag() const
Dtk_Constraint::ValueTypeInternal
@ ValueTypeInternal
Definition: util_ent_dtk.hpp:1169
DTK_TYPE_AXIS_SYSTEM
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:34
Dtk_Constraint::ConstraintValueTypeEnumToString
static Dtk_string ConstraintValueTypeEnumToString(const ConstraintValueTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1194
DTK_PT_STAR
@ DTK_PT_STAR
Definition: util_ent_dtk.hpp:34
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_Info::Dtk_Info
Dtk_Info()
Dtk_Info::GetIsUpToDate
Dtk_bool GetIsUpToDate() const
Retrieves up to date state of current object.
Dtk_Constraint::ValueTypeExternal
@ ValueTypeExternal
Definition: util_ent_dtk.hpp:1170
Dtk_UShort16
uint16_t Dtk_UShort16
Definition: define.h:690
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:727
Dtk_Info::ListAllCustomerDefinedAttributesWithVal
Dtk_ErrorStatus ListAllCustomerDefinedAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
Dtk_bool
char Dtk_bool
Definition: define.h:724
Dtk_Info::RemoveAttribute
Dtk_ErrorStatus RemoveAttribute(const Dtk_string &name)
DTK_TYPE_INFO
@ DTK_TYPE_INFO
Definition: define.h:458
Dtk_LayerFilterInfos::SelectLayers
Dtk_ErrorStatus SelectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Selects given layers in the layer filter.
Dtk_Constraint::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:1147
DTK_SOLIDLINE
@ DTK_SOLIDLINE
Definition: util_ent_dtk.hpp:49
Dtk_ModelDisplay::rendering_mode_wireframe_with_only_visible_edges
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:985
Dtk_Info::SetColorId
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
Dtk_Constraint::ValueTypeOrientation
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1192
Dtk_Constraint::SetConstraintType
void SetConstraintType(const ConstraintTypeEnum &in)
Set the type of the Constraint .
Dtk_Info::GetUuid
Dtk_UUID GetUuid() const
Retrieves the entity UniqueID if any.
Dtk_ColorInfosSet::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:723
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_Constraint
This is the Dtk_Constraint class.
Definition: util_ent_dtk.hpp:1140
Dtk_Double64
double Dtk_Double64
Definition: define.h:698
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:453
Dtk_ColorInfosSet::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:731
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:981
Dtk_Constraint::ValueTypeDistance
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1189
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:1188
Dtk_Entity::DtkDynamicCast
static Dtk_Entity * DtkDynamicCast(Dtk_Object *s)
Dtk_Info::SetInfiniteGeometryFlag
Dtk_ErrorStatus SetInfiniteGeometryFlag(const Dtk_Int32 &inInfiniteGeometryFlag)
util_draw_ptr_dtk.hpp
Dtk_LayerFilterInfos::SelectLayer
Dtk_ErrorStatus SelectLayer(const Dtk_Size_t inLayerIndex)
Selects a given layer in the layer filter.
Dtk_Constraint::Create
static Dtk_SmartPtr< Dtk_Constraint > Create(const Dtk_Constraint &in)
\CreateCopy{in}
Dtk_Info::SetAddedItemFlag
Dtk_ErrorStatus SetAddedItemFlag(const Dtk_Int32 &inAddedItem)
Dtk_Val
Definition: dtk_val.hpp:67
preview_type_detk
preview_type_detk
Definition: define.h:631
Dtk_Info::_Material
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:113
Dtk_Info::GetMetaData
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
Dtk_ConstraintReference::Create
static Dtk_ConstraintReferencePtr Create(const Dtk_ConstraintReference &in)
\CreateCopy{in}
Dtk_Constraint::ValueTypeRotation
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1191
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()
Definition: util_ent_dtk.hpp:1212
Dtk_Entity::DtkDynamicType
int DtkDynamicType(const int &inId)
Dtk_ConstraintReference
This is the Dtk_ConstraintReference class.
Definition: util_ent_dtk.hpp:1086
Dtk_Constraint::ConstraintOrientationTypeEnumToString
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1172
Dtk_Constraint::_ConstraintValue::_ValueType
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1217
DTK_PT_COINCIDENT
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:31
Dtk_LayerInfosSet
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:508
Dtk_ColorInfosSet::~Dtk_ColorInfosSet
virtual ~Dtk_ColorInfosSet()
Destructor.
Dtk_Constraint::TypeTouch
@ TypeTouch
Definition: util_ent_dtk.hpp:1272
Dtk_ModelDisplay::rendering_mode_wireframe_partially_shade
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:988
Dtk_Info::SetViewId
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_Info::SetDisplayLineWidth
Dtk_ErrorStatus SetDisplayLineWidth(const Dtk_Double64 &inDisplayLineWidth)
Dtk_Info::SetPointSymbolType
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
Dtk_ColorInfosSet::Dtk_ColorInfosSet
Dtk_ColorInfosSet(Dtk_ColorInfosSet &&s) DTK_NOEXCEPT
Dtk_ModelDisplay
This is the Dtk_ModelDisplay class.
Definition: util_ent_dtk.hpp:954
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_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:417
Dtk_ModelDisplay::SectionBox
@ SectionBox
Definition: util_ent_dtk.hpp:996
Dtk_Constraint::TypeAngle
@ TypeAngle
Definition: util_ent_dtk.hpp:1233
Dtk_Constraint::TypePerpendicular
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1262
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:1250
Dtk_Constraint::TypeConcentric
@ TypeConcentric
Definition: util_ent_dtk.hpp:1240
Dtk_LayerInfosSet::Layer::Status
Status
Definition: util_ent_dtk.hpp:514
Dtk_Info::SetAdditionnalGeometryFlag
Dtk_ErrorStatus SetAdditionnalGeometryFlag(const Dtk_Int32 &inAdditionnalGeom)
DTK_PT_SMALLDOT
@ DTK_PT_SMALLDOT
Definition: util_ent_dtk.hpp:36
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_ModelDisplay::GetClippingEntity
Dtk_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
Dtk_AxisSystem::Create
static Dtk_SmartPtr< Dtk_AxisSystem > Create()
Calls default constructor to allocate a new object.
Dtk_Constraint::TypeParallel
@ TypeParallel
Definition: util_ent_dtk.hpp:1259
Dtk_ModelDisplay::rendering_mode_static_wireframe
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:986
Dtk_LayerInfosSet::Dtk_LayerInfosSet
Dtk_LayerInfosSet()
Dtk_LayerInfosSet::Dtk_LayerInfosSet
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
Dtk_LayerInfosSet::Layer::Unflag
void Unflag(Status in)
Definition: util_ent_dtk.hpp:542
Dtk_Info::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:118
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:686
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:1008
Dtk_Info::AddLayer
Dtk_ErrorStatus AddLayer(const Dtk_Int32 &inLayer)
dtk_maindoc_ptr.hpp
Pdfw::inClippingEntity
Dtk_CameraPtr Dtk_EntityPtr inClippingEntity
Definition: pdfw.hpp:656
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:989
Dtk_Constraint::ConstraintTypeEnumToString
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1276
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_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_TYPE_LAYER_FILTER_INFOS
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:495
Dtk_LayerFilterInfos::UnselectLayers
Dtk_ErrorStatus UnselectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Unselects the given layers in the layer filter.
Dtk_Constraint::ValueTypePosition
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1190
Dtk_Preview
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:833
Dtk_Info::NotMandatory
@ NotMandatory
Definition: util_ent_dtk.hpp:122
Dtk_Info::GetCurveLineTypeDefinition
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
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:1273
Dtk_ColorInfosSet::GetColorDefinition
Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB &outColorDef) const
Gets the ColorID giving its number.
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_Info::OriginPoint
@ OriginPoint
Definition: util_ent_dtk.hpp:126
Dtk_string_compare_case_insensitive::operator()
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:94
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:1246
Dtk_Info::GetRenderInfos
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
Dtk_LayerInfosSet::SetAsDeprecated
SetAsDeprecated("2026.2", "Use Create then Dtk_LayerInfoSet::AddLayers instead.") static Dtk_LayerInfosSetPtr Create(const Dtk_Size_t inNumLayers)
Calls a constructor to allocate a new object.
Dtk_Info::GetHierarchyColorFlag
int GetHierarchyColorFlag() const
Dtk_Info::SetMandatoryFlag
Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag)
Dtk_LayerFilterInfos::UnselectLayer
Dtk_ErrorStatus UnselectLayer(const Dtk_Size_t inLayerIndex)
Unselects the given layer in the layer filter.
DTK_PT_SQUARE
@ DTK_PT_SQUARE
Definition: util_ent_dtk.hpp:39
Dtk_Constraint::ConstraintValueTypeEnum
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1186
Dtk_Entity::_Store
virtual Dtk_ErrorStatus _Store(void *)
Dtk_ConstraintReference::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:1092
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_Constraint::Dtk_Constraint
Dtk_Constraint(Dtk_Constraint &&p) DTK_NOEXCEPT
Dtk_Constraint::TypeCam
@ TypeCam
Definition: util_ent_dtk.hpp:1236
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:1260
Dtk_ModelDisplay::SectionParallelePlane
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:995
Dtk_Info::SetMatId
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_Info::SetPersistentName
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
Dtk_LayerFilterInfos::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_Info::YZPlane
@ YZPlane
Definition: util_ent_dtk.hpp:124
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_ModelDisplay::Dtk_ModelDisplay
Dtk_ModelDisplay(const Dtk_ModelDisplay &)
Dtk_ModelDisplay::GetCamera
const Dtk_CameraPtr & GetCamera() const
Retrieves the Dtk_ModelDisplay camera - read only -.
Dtk_Info::SetOccurrenceDataFlag
Dtk_ErrorStatus SetOccurrenceDataFlag()
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_transfo.hpp
Dtk_Info::SetLayer
Dtk_ErrorStatus SetLayer(const Dtk_Int32 &inLayer)
Dtk_LayerInfosSet::Layer::IsFlaggedAs
bool IsFlaggedAs(Status in) const
Definition: util_ent_dtk.hpp:540
Dtk_pnt
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
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:414
type_detk
type_detk
Definition: define.h:21
Dtk_Preview::Dtk_Preview
Dtk_Preview(Dtk_Preview &&in) DTK_NOEXCEPT
Dtk_Constraint::Dtk_Constraint
Dtk_Constraint(const Dtk_Constraint &p)
Dtk_Info::GetFormFlag
int GetFormFlag() const
Dtk_ModelDisplay::Dtk_ModelDisplay
Dtk_ModelDisplay(Dtk_ModelDisplay &&) DTK_NOEXCEPT
Dtk_ModelDisplay::~Dtk_ModelDisplay
virtual ~Dtk_ModelDisplay()
Destructor.
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:1168
Dtk_ColorInfosSet::AddColor
Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string &inColorName, const Dtk_RGB &inColorDef)
Add Color definition.
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:992
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:429
util_stl_dtk.hpp
dtk
Definition: span.hpp:10
Dtk_Constraint::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1155
Dtk_Info::ListAllAttributes
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_LayerInfosSet::Layer::GetID
Dtk_ID GetID() const
Definition: util_ent_dtk.hpp:538
Dtk_ConstraintReferencePtr
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:419
Dtk_ColorInfosSet::Dtk_ColorInfosSet
Dtk_ColorInfosSet(const Dtk_Size_t inNumColors)
Dtk_ModelDisplay::SectionBody
@ SectionBody
Definition: util_ent_dtk.hpp:997
Dtk_ModelDisplay::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:956
Dtk_Info::SetFontId
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
Dtk_ConstraintReference::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1118
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_Entity::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:369
Dtk_LayerFilterInfos::GetName
void GetName(Dtk_string &outLayerFilterName) const
Retrieves layer filter name.
Dtk_Entity::PrepareTransfo
virtual void PrepareTransfo()
Dtk_LayerInfosSet::Clone
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:557
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:1263
Dtk_Info::SetPhysicalMaterialInfosId
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
DTK_TYPE_CONSTRAINT_REFERENCE
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:600
Dtk_PointType
Dtk_PointType
Definition: util_ent_dtk.hpp:26
Dtk_Constraint::TypeOrientAngle
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1257
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:1244
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_LayerInfosSet::Layer::GetFatherID
Dtk_ID GetFatherID() const
Definition: util_ent_dtk.hpp:539
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:418
Dtk_LayerInfosSet::Layer::FlagAs
void FlagAs(Status in)
Definition: util_ent_dtk.hpp:541
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_ColorInfosSet
This is the Color Info Set class. This is the read color definition Class. It gathers all information...
Definition: util_ent_dtk.hpp:720
Dtk_AxisSystem::get_type_detk
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:885
DTK_TYPE_CONSTRAINT
@ DTK_TYPE_CONSTRAINT
Definition: define.h:599
Dtk_Preview::Dtk_Preview
Dtk_Preview(Dtk_Preview const &in)
Dtk_ModelDisplay::IsActivated
Dtk_bool IsActivated() const
Tells if the Dtk_ModelDisplay is activated or not - read only -.
Dtk_AxisSystem::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:873
Dtk_Constraint::_ConstraintValue::_ValueLower
Dtk_Double64 _ValueLower
Definition: util_ent_dtk.hpp:1221
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_LayerInfosSet::Layer::m_FatherID
Dtk_ID m_FatherID
Definition: util_ent_dtk.hpp:522
Dtk_Info::GetOccurrenceDataFlag
bool GetOccurrenceDataFlag() const
Retrieves the OccurrenceData flag.
Dtk_Info::MandatoryFlag
MandatoryFlag
Definition: util_ent_dtk.hpp:121
Dtk_Preview::GetStream
char * GetStream() const
Dtk_Entity::Transform
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_Constraint::~Dtk_Constraint
virtual ~Dtk_Constraint()
Dtk_Info::ZXPlane
@ ZXPlane
Definition: util_ent_dtk.hpp:125
Dtk_Info::SetAsDeprecated
SetAsDeprecated("2026.4", "Use Create instead.") static Dtk_SmartPtr< Dtk_Info > create(const Dtk_Info &in)
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:745
Dtk_Info::SetBuildingInfosIds
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
Dtk_Constraint::TypeCoincidence
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1242
Dtk_ColorInfosSet::GetColorName
Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string &outColorName) const
Gets the Color Name giving its number.
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:994
Dtk_string_compare::operator()
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:86
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_Object
Definition: dtk_object.hpp:8
Dtk_Constraint::Create
static Dtk_SmartPtr< Dtk_Constraint > Create()
Calls default constructor to allocate a new object.
Dtk_LayerInfosSet::Layer::Layer
Layer(Dtk_ID id, Dtk_string name=Dtk_string(), Dtk_ID fatherID=static_cast< Dtk_ID >(-1))
Definition: util_ent_dtk.hpp:532
Dtk_ColorInfosSet::DtkDynamicCast
static Dtk_ColorInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
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:1251
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_ConstraintReference::Create
static Dtk_SmartPtr< Dtk_ConstraintReference > Create()
Calls default constructor to allocate a new object.
Dtk_Info::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:110
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_MetaData
This is the Dtk_MetaData Class. The Dtk_MetaDataPtr object is used to store any additional informatio...
Definition: dtk_metadata.hpp:24
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:1219
Dtk_Constraint::AddConstraintReference
void AddConstraintReference(const Dtk_ConstraintReferencePtr &in)
Add a ConstraintReference to this Constraint .
Dtk_Entity::~Dtk_Entity
virtual ~Dtk_Entity()
Dtk_Constraint::_ConstraintValue::_ConstraintValue
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val inValue)
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_LayerInfosSet::Layer::Layer
Layer()
Definition: util_ent_dtk.hpp:527
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_ModelDisplay.
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_Constraint::TypeTangent
@ TypeTangent
Definition: util_ent_dtk.hpp:1270
Dtk_ColorInfosSet::Create
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Calls a constructor to allocate a new object.
Dtk_Constraint::TypeScrew
@ TypeScrew
Definition: util_ent_dtk.hpp:1265
Dtk_Entity::operator=
Dtk_Entity & operator=(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_Info::GetFontId
int GetFontId() const
Dtk_Info::SetUse
Dtk_ErrorStatus SetUse(const Dtk_Int32 &inUse)
Dtk_RGB
Definition: dtk_rgb.hpp:8
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)
span.hpp
Dtk_Constraint::TypeGear
@ TypeGear
Definition: util_ent_dtk.hpp:1249
Dtk_ModelDisplay::DtkDynamicCast
static Dtk_ModelDisplay * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_Preview::GetType
preview_type_detk GetType() const
Dtk_Info::GetSubordFlag
int GetSubordFlag() const
Dtk_LayerInfosSet::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:549
Dtk_LayerFilterInfos::_Private
std::unique_ptr< Dtk_Handle > _Private
Definition: util_ent_dtk.hpp:431
Dtk_dir
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
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:85
Dtk_LayerInfosSet::Layer::m_ID
Dtk_ID m_ID
Definition: util_ent_dtk.hpp:521
Dtk_Constraint::_ConstraintValue::_EnableUpper
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1220
Dtk_LayerInfosSet::Layer::GetName
Dtk_string const & GetName() const
Definition: util_ent_dtk.hpp:537
Dtk_Preview::Create
static Dtk_PreviewPtr Create(const char *inStream, const Dtk_Int32 inSizeStream)
Calls full featured constructor to allocate a new object.
Dtk_Constraint::TypeLinear
@ TypeLinear
Definition: util_ent_dtk.hpp:1252
Dtk_Constraint::TypeLock
@ TypeLock
Definition: util_ent_dtk.hpp:1255
Dtk_LayerFilterInfos::GetDescription
void GetDescription(Dtk_string &outLayerFilterDescription) const
Retrieves layer filter description.
Dtk_Constraint::TypeRackPinion
@ TypeRackPinion
Definition: util_ent_dtk.hpp:1264
dtk_object.hpp
Dtk_Constraint::_ConstraintValue::_Value
Dtk_Val _Value
Definition: util_ent_dtk.hpp:1218
Dtk_Info::Create
static Dtk_SmartPtr< Dtk_Info > Create(const Dtk_Info &in)
Calls copy constructor to allocate a new object.
Dtk_AxisSystem
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:871
Dtk_AxisSystem::SetAsDeprecated
SetAsDeprecated("2026.4", "Use Create instead") static Dtk_SmartPtr< Dtk_AxisSystem > create()
Dtk_Constraint::TypeCenter
@ TypeCenter
Definition: util_ent_dtk.hpp:1238
Dtk_Constraint::Transform
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
DTK_NOEXCEPT
#define DTK_NOEXCEPT
Definition: config.hpp:20
Dtk_Constraint::ConstraintTypeEnum
ConstraintTypeEnum
Definition: util_ent_dtk.hpp:1228
Dtk_Entity::info
Dtk_InfoPtr & info()
Dtk_Entity
Definition: util_ent_dtk.hpp:367
Dtk_ModelDisplay::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.