This is the Dtk_CompositeEntity class. More...
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
void | AddAdditionnalGeometries (const Dtk_tab< Dtk_EntityPtr > &inAdditionnalGeometries) |
Adds some additionnal geometries to the Dtk_2dEntity. More... | |
void | AddAdditionnalGeometry (const Dtk_EntityPtr &inAdditionnalGeometry) |
Adds an additionnal geometry to the Dtk_2dEntity. More... | |
void | AddAdditionnalTexts (Dtk_CompositeText inAddtionnalTexts) |
Adds some additionnal texts to the Dtk_2dEntity. More... | |
void | AddEntities (const Dtk_tab< Dtk_EntityPtr > &inEltArray) |
Adds an array of Dtk_EntityPtr. More... | |
Dtk_ErrorStatus | AddEntity (const Dtk_EntityPtr &inElt) |
Adds a Dtk_EntityPtr to the Dtk_CompositeEntity. More... | |
Dtk_ErrorStatus | AddPicture (const Dtk_picturePtr &inElt) |
Adds a Dtk_picturePtr to the Dtk_CompositeEntity For that, it will check if the Dtk_picturePtr is not NULL. More... | |
void | AddPictures (const Dtk_tab< Dtk_picturePtr > &inEltArray) |
Adds an array of Dtk_EntityPtr. Calls Dtk_CompositeEntity::AddPicture for each elements. More... | |
void | Clear () |
Resets all sub entities. 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_tab< Dtk_EntityPtr > & | GetAdditionnalGeometries () const |
Retrieves the additionnal geometries of the Dtk_2dEntity. More... | |
const Dtk_CompositeText & | GetAdditionnalTexts () const |
Retrieves the additionnal texts of the Dtk_2dEntity. More... | |
void | GetAllEntitiesByType (Dtk_tab< Dtk_2dEntityPtr > &out2dEntities, Dtk_tab< Dtk_EntityPtr > &outGeometricalEntities, Dtk_tab< Dtk_picturePtr > &outPictures) const |
Dtk_EntityPtr | GetEntity (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_EntityPtr. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_Size_t | GetNumEntities () const |
Retrieves the number of Dtk_EntityPtr in Dtk_CompositeEntity. More... | |
Dtk_Size_t | GetNumPictures () const |
Retrieves the number of Dtk_picturePtr in Dtk_CompositeEntity. More... | |
Dtk_picturePtr | GetPicture (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_picturePtr. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_InfoPtr & | info () |
virtual std::ostream & | operator<< (std::ostream &o) const |
virtual void | PrepareTransfo () |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_CompositeEntityPtr | Create () |
Base constructor. More... | |
static Dtk_CompositeEntityPtr | Create (const Dtk_CompositeEntity &inToBeCopied) |
Copy constructor. More... | |
static Dtk_CompositeEntityPtr | Create (Dtk_CompositeEntity &&inToBeMoved) |
Copy constructor. More... | |
static Dtk_CompositeEntity * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_2D_ENTITY } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_COMPOSITE_ENTITY } |
Protected Member Functions | |
void | _Copy (const Dtk_2dEntity &s) |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_CompositeEntity () | |
Dtk_CompositeEntity (const Dtk_CompositeEntity &s) | |
Dtk_CompositeEntity (Dtk_CompositeEntity &&s) DTK_NOEXCEPT | |
~Dtk_CompositeEntity () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_CompositeEntity > |
std::ostream & | operator<< (std::ostream &o, const Dtk_CompositeEntity &d) |
This is the Dtk_CompositeEntity class.
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
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.
|
inherited |
Adds some additionnal geometries to the Dtk_2dEntity.
inAdditionnalGeometries | The geometries to be added |
|
inherited |
Adds an additionnal geometry to the Dtk_2dEntity.
inAdditionnalGeometry | The geometry to be added |
|
inherited |
Adds some additionnal texts to the Dtk_2dEntity.
inAddtionnalTexts | The texts to be added |
void Dtk_CompositeEntity::AddEntities | ( | const Dtk_tab< Dtk_EntityPtr > & | inEltArray | ) |
Adds an array of Dtk_EntityPtr.
Calls Dtk_CompositeEntity::AddEntity for each elements.
inEltArray | Array of Dtk_EntityPtr to be added. |
Dtk_ErrorStatus Dtk_CompositeEntity::AddEntity | ( | const Dtk_EntityPtr & | inElt | ) |
Adds a Dtk_EntityPtr to the Dtk_CompositeEntity.
For that, it will check if the Dtk_EntityPtr is not NULL and if it has a handled type.
The handled types are Dtk_CurvePtr / Dtk_PointPtr / Dtk_2dEntityPtr / Dtk_HatchingPtr.
inElt | The Dtk_EntityPtr to be added. |
Dtk_ErrorStatus Dtk_CompositeEntity::AddPicture | ( | const Dtk_picturePtr & | inElt | ) |
Adds a Dtk_picturePtr to the Dtk_CompositeEntity For that, it will check if the Dtk_picturePtr is not NULL.
inElt | The Dtk_picturePtr to be added. |
void Dtk_CompositeEntity::AddPictures | ( | const Dtk_tab< Dtk_picturePtr > & | inEltArray | ) |
Adds an array of Dtk_EntityPtr. Calls Dtk_CompositeEntity::AddPicture for each elements.
inEltArray | Array of Dtk_picturePtr to be added. |
void Dtk_CompositeEntity::Clear | ( | ) |
Resets all sub entities.
|
protectedvirtual |
Implements Dtk_2dEntity.
|
static |
Base constructor.
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
Copy constructor.
inToBeMoved | Object to copy. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
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_2dEntity.
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
void Dtk_CompositeEntity::GetAllEntitiesByType | ( | Dtk_tab< Dtk_2dEntityPtr > & | out2dEntities, |
Dtk_tab< Dtk_EntityPtr > & | outGeometricalEntities, | ||
Dtk_tab< Dtk_picturePtr > & | outPictures | ||
) | const |
Dtk_EntityPtr Dtk_CompositeEntity::GetEntity | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Dtk_EntityPtr.
inPos | Dtk_EntityPtr index. |
|
inherited |
Get Internal UniqueID.
Dtk_Size_t Dtk_CompositeEntity::GetNumEntities | ( | ) | const |
Retrieves the number of Dtk_EntityPtr in Dtk_CompositeEntity.
Dtk_Size_t Dtk_CompositeEntity::GetNumPictures | ( | ) | const |
Retrieves the number of Dtk_picturePtr in Dtk_CompositeEntity.
Dtk_picturePtr Dtk_CompositeEntity::GetPicture | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Dtk_picturePtr.
inPos | Dtk_picturePtr 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.
|
inherited |
|
virtualinherited |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_2dEntity.
|
friend |
|
friend |
|
protected |
|
protectedinherited |