This is the drawing class.
It basically contains a Dtk_View array.
More...
Inheritance diagram for Dtk_Drawing:Public Member Functions | |
| virtual Dtk_ErrorStatus | _Store (void *) |
| Dtk_ErrorStatus | AddOrigin (const Dtk_pnt &origin) |
| Internal use only. More... | |
| Dtk_ErrorStatus | AddView (const Dtk_ViewPtr &inView, const Dtk_pnt &inOrigin) |
| Adds a view into the drawing. More... | |
| Dtk_ErrorStatus | AddView (const Dtk_ViewPtr &inViewtoBeAdded) |
| Adds a view into the drawing. More... | |
| Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
| Retrieves the dynamic entity type. More... | |
| int | DtkDynamicType (const int &inId) |
| virtual void | dump (FILE *file=stdout) |
| Dtk_InfoPtr | get_info () const |
| type_detk | get_type_detk () const |
| const Dtk_ID & | GetID () const |
| Get Internal UniqueID. More... | |
| Dtk_Size_t | GetNumOrigins () const |
| Retrieves the origin points number - read only -. More... | |
| Dtk_Size_t | GetNumViews () const |
| Retrieves the views number - read only -. More... | |
| Dtk_pnt & | GetOrigin (const Dtk_Size_t &inPos) |
| Retrieves the origin Dtk_pnt - get/set -. More... | |
| const Dtk_pnt & | GetOrigin (const Dtk_Size_t &inPos) const |
| Retrieves the ith origin Dtk_pnt - read only -. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_ViewPtr & | GetView (const Dtk_Size_t &inPos) |
| Retrieves the ith Dtk_View - get/set -. More... | |
| const Dtk_ViewPtr & | GetView (const Dtk_Size_t &inPos) const |
| Retrieves the ith Dtk_View - read only -. More... | |
| Dtk_Double64 & | Height () |
| Retrieves the drawing height - get/set -. More... | |
| const Dtk_Double64 & | Height () const |
| Retrieves the drawing height - read only -. More... | |
| Dtk_InfoPtr & | info () |
| virtual void | PrepareTransfo () |
| SetAsDeprecated ("2025.4", "Please remove calls to this function, it will always return 0.") Dtk_Size_t GetNum2dEntities() const | |
| Retrieves the 2D entities number - read only -. More... | |
| SetAsDeprecated ("2025.4", "Please remove calls to this function, it will always return a null object.") const Dtk_2dEntityPtr &Get2dEntity(const Dtk_Size_t &inPos) const | |
| Retrieves the ith 2D entity - read only -. More... | |
| SetAsDeprecated ("2025.4", "Please remove calls to this function, it will always return a null object.") Dtk_2dEntityPtr &Get2dEntity(const Dtk_Size_t &inPos) | |
| Retrieves the 2D entity - get/set -. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
| Applies a transformation matrix to the entity. //! More... | |
| Dtk_Double64 & | Width () |
| Retrieves the drawing width - get/set -. More... | |
| const Dtk_Double64 & | Width () const |
| Retrieves the drawing width - read only -. More... | |
Static Public Member Functions | |
| static Dtk_DrawingPtr | Create () |
| Calls default constructor to allocate a new object. More... | |
| static Dtk_DrawingPtr | Create (const Dtk_Drawing &in) |
| Calls copy constructor to allocate a new object. More... | |
| static Dtk_DrawingPtr | Create (Dtk_Drawing &&in) |
| Calls move constructor to allocate a new object. More... | |
| static Dtk_Drawing * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_ENTITY } |
| enum | { _typeID = DTK_TYPE_DRAWING } |
Protected Member Functions | |
| void | _copy (const Dtk_Entity &s) |
| void | _init () |
| void | _reset () |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the drawing class.
It basically contains a Dtk_View array.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, and Dtk_Point.
| Dtk_ErrorStatus Dtk_Drawing::AddOrigin | ( | const Dtk_pnt & | origin | ) |
Internal use only.
| Dtk_ErrorStatus Dtk_Drawing::AddView | ( | const Dtk_ViewPtr & | inView, |
| const Dtk_pnt & | inOrigin | ||
| ) |
Adds a view into the drawing.
| inView | Dtk_View to be added. |
| inOrigin | Origin of the view in the Dtk_Drawing. |
| Dtk_ErrorStatus Dtk_Drawing::AddView | ( | const Dtk_ViewPtr & | inViewtoBeAdded | ) |
Adds a view into the drawing.
| inViewtoBeAdded | Dtk_View to be added. |
|
static |
Calls default constructor to allocate a new object.
|
static |
Calls copy constructor to allocate a new object.
| in | Object to copy from. |
|
static |
Calls move constructor to allocate a new object.
| in | Object to move from. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
virtualinherited |
Implements Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, and Dtk_AxisSystem.
|
virtualinherited |
|
inherited |
|
virtual |
Implements Dtk_Entity.
|
inherited |
Get Internal UniqueID.
| Dtk_Size_t Dtk_Drawing::GetNumOrigins | ( | ) | const |
Retrieves the origin points number - read only -.
| Dtk_Size_t Dtk_Drawing::GetNumViews | ( | ) | const |
Retrieves the views number - read only -.
| Dtk_pnt& Dtk_Drawing::GetOrigin | ( | const Dtk_Size_t & | inPos | ) |
| const Dtk_pnt& Dtk_Drawing::GetOrigin | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith origin Dtk_pnt - read only -.
| inPos | origin Dtk_pnt index. |
|
virtualinherited |
Reimplemented from Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, and Dtk_Point.
| Dtk_ViewPtr& Dtk_Drawing::GetView | ( | const Dtk_Size_t & | inPos | ) |
Retrieves the ith Dtk_View - get/set -.
| inPos | View index. |
| const Dtk_ViewPtr& Dtk_Drawing::GetView | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Dtk_View - read only -.
| inPos | View index. |
| Dtk_Double64& Dtk_Drawing::Height | ( | ) |
| const Dtk_Double64& Dtk_Drawing::Height | ( | ) | const |
|
inherited |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
| Dtk_Drawing::SetAsDeprecated | ( | "2025.4" | , |
| "Please remove calls to this | function, | ||
| it will always return 0." | |||
| ) | const |
Retrieves the 2D entities number - read only -.
| Dtk_Drawing::SetAsDeprecated | ( | "2025.4" | , |
| "Please remove calls to this | function, | ||
| it will always return a null object." | |||
| ) | const & |
Retrieves the ith 2D entity - read only -.
| inPos | 2D entity index. |
| Dtk_Drawing::SetAsDeprecated | ( | "2025.4" | , |
| "Please remove calls to this | function, | ||
| it will always return a null object." | |||
| ) | const & |
Retrieves the 2D entity - get/set -.
| inPos | 2D entity index. |
|
virtual |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
Implements Dtk_Entity.
| Dtk_Double64& Dtk_Drawing::Width | ( | ) |
| const Dtk_Double64& Dtk_Drawing::Width | ( | ) | const |
|
protected |
|
protectedinherited |