This is the view class. More...
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
Dtk_ErrorStatus | Add2dEntities (const Dtk_tab< Dtk_2dEntityPtr > &in2DEntitiesArray) |
Adds an array of 2D entities to the view. More... | |
Dtk_ErrorStatus | Add2dEntity (const Dtk_2dEntityPtr &in2DEntity) |
Adds a 2D entity to the view. More... | |
Dtk_ErrorStatus | Add2dGeometricalEntity (const Dtk_EntityPtr &inGeomElt) const |
Adds a drawing geometrical entity to the view. More... | |
Dtk_ErrorStatus | AddBodies (Dtk_tab< Dtk_BodyPtr > inBodyArray) |
Adds an array of bodies displayed in the view. More... | |
Dtk_ErrorStatus | AddBody (const Dtk_BodyPtr &inBody) |
Adds a Body displayed in the view. More... | |
Dtk_ErrorStatus | AddEntities (const Dtk_tab< Dtk_EntityPtr > &inEntitiesArray) |
Adds an array of 2D entities, Dtk_Hatching, curve and point to the view ( other type are not supported ) More... | |
Dtk_ErrorStatus | AddEntity (const Dtk_EntityPtr &inEnt) |
Adds an entity, Dtk_Hatching, curve and point to the view ( other type are not supported ) More... | |
Dtk_ErrorStatus | AddOLEObject (const Dtk_OLEObjectPtr &inOLEObject) |
Adds a Dtk_OLEObjectPtr to the view. More... | |
Dtk_ErrorStatus | AddOLEObjects (const Dtk_tab< Dtk_OLEObjectPtr > &inOleObjects) |
Adds an array of Dtk_OLEObjectPtr to the view. More... | |
Dtk_ErrorStatus | AddPicture (const Dtk_picturePtr &inPicture) |
Adds a picture to the view. More... | |
Dtk_ErrorStatus | AddPictures (const Dtk_tab< Dtk_picturePtr > &inPicturesArray) |
Adds an array of pictures to the view. More... | |
Dtk_Double64 & | Angle () |
Retrieves the Dtk_View angle - get/set-. More... | |
const Dtk_Double64 & | Angle () const |
Retrieves the Dtk_View angle - read only -. 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_2dEntityPtr | Get2dEntity (const Dtk_Size_t &inPos) const |
Retrieves the ith 2D entity. More... | |
Dtk_EntityPtr | Get2dGeometricalEntity (const Dtk_Size_t &inPos) const |
Retrieves the ith geometrical entity. More... | |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
Dtk_BodyPtr | GetBody (const Dtk_Size_t &inPos) const |
Retrieves the ith Body. More... | |
Dtk_PlaneSurfacePtr | GetClipping (const Dtk_Size_t &inPos) const |
const Dtk_CompositeEntityPtr & | GetClippingBoundary () const |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_Size_t | GetNum2dEntities () const |
Retrieves the 2D entities number - read only -. More... | |
Dtk_Size_t | GetNum2dGeometricalEntity () const |
Retrieves the number of geometrical entity to the view. More... | |
Dtk_Size_t | GetNumBodies () const |
Retrieves the bodies number to be dispalyed- read only -. More... | |
Dtk_Size_t | GetNumOLEObjects () const |
Retrieves the number of OLE Objects in the Dtk_View. More... | |
Dtk_Size_t | GetNumPictures () const |
Retrieves the pictures number - read only -. More... | |
Dtk_OLEObjectPtr | GetOLEObject (const Dtk_Size_t &inIndex) const |
Retrieves the OLE Object at index. More... | |
Dtk_picturePtr | GetPicture (const Dtk_Size_t &inPos) const |
Retrieves the ith Picture. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_ViewDisplayPtr | GetViewDisplay () |
GetDisplayMode for 3D entity. More... | |
Dtk_InfoPtr & | info () |
Dtk_2dEntityPtr | operator[] (const Dtk_Size_t &inPos) const |
Retrieves the ith 2D entity. More... | |
virtual void | PrepareTransfo () |
Dtk_Double64 & | Scale () |
Retrieves the Dtk_View scale - get/set-. More... | |
const Dtk_Double64 & | Scale () const |
Retrieves the Dtk_View scale - read only -. More... | |
void | SetClippingBoundary (const Dtk_CompositeEntityPtr &inBoundary) const |
Sets the clipping boundary informations. More... | |
Dtk_ErrorStatus | SetClippingPlane (const Dtk_Size_t &inPos, const Dtk_pnt &inLocation, const Dtk_dir &inRefAxis, const Dtk_dir &inNormalAxis) |
Sets the ith clipping plane informations. More... | |
void | SetViewDisplay (Dtk_ViewDisplayPtr inDisplay) |
SetDisplayMode for 3D entity to be displayed. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Dtk_transfo & | TransformationMatrix () |
Retrieves the Dtk_View transformation matrix - get/set-. More... | |
const Dtk_transfo & | TransformationMatrix () const |
Retrieves the Dtk_View transformation matrix - read only -. More... | |
Static Public Member Functions | |
static Dtk_ViewPtr | Create () |
Base constructor. More... | |
static Dtk_ViewPtr | Create (const Dtk_View &inToBeCopied) |
Copy constructor. More... | |
static Dtk_ViewPtr | Create (Dtk_View &&inToBeMoved) |
\MoveConstructor{inToBeMoved} More... | |
static Dtk_View * | 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_VIEW } |
Protected Member Functions | |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_View () | |
Dtk_View (const Dtk_View &s) | |
Dtk_View (Dtk_View &&s) DTK_NOEXCEPT | |
~Dtk_View () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_View > |
std::ostream & | operator<< (std::ostream &o, const Dtk_View &d) |
This is the view class.
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
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.
Dtk_ErrorStatus Dtk_View::Add2dEntities | ( | const Dtk_tab< Dtk_2dEntityPtr > & | in2DEntitiesArray | ) |
Adds an array of 2D entities to the view.
in2DEntitiesArray | Array of 2D entities to be added. |
Dtk_ErrorStatus Dtk_View::Add2dEntity | ( | const Dtk_2dEntityPtr & | in2DEntity | ) |
Adds a 2D entity to the view.
in2DEntity | 2D entity to be added. |
Dtk_ErrorStatus Dtk_View::Add2dGeometricalEntity | ( | const Dtk_EntityPtr & | inGeomElt | ) | const |
Dtk_ErrorStatus Dtk_View::AddBodies | ( | Dtk_tab< Dtk_BodyPtr > | inBodyArray | ) |
Adds an array of bodies displayed in the view.
inBodyArray | Array of bodies to be displayed. |
Dtk_ErrorStatus Dtk_View::AddBody | ( | const Dtk_BodyPtr & | inBody | ) |
Adds a Body displayed in the view.
inBody | Body to be displayed. |
Dtk_ErrorStatus Dtk_View::AddEntities | ( | const Dtk_tab< Dtk_EntityPtr > & | inEntitiesArray | ) |
Adds an array of 2D entities, Dtk_Hatching, curve and point to the view ( other type are not supported )
inEntitiesArray | Array of entities to be added. |
Dtk_ErrorStatus Dtk_View::AddEntity | ( | const Dtk_EntityPtr & | inEnt | ) |
Adds an entity, Dtk_Hatching, curve and point to the view ( other type are not supported )
inEnt | Entity to be added. |
Dtk_ErrorStatus Dtk_View::AddOLEObject | ( | const Dtk_OLEObjectPtr & | inOLEObject | ) |
Adds a Dtk_OLEObjectPtr to the view.
inOLEObject | Dtk_OLEObjectPtr to be added. |
Dtk_ErrorStatus Dtk_View::AddOLEObjects | ( | const Dtk_tab< Dtk_OLEObjectPtr > & | inOleObjects | ) |
Adds an array of Dtk_OLEObjectPtr to the view.
inOleObjects | Array of Dtk_OLEObjectPtr to be added. |
Dtk_ErrorStatus Dtk_View::AddPicture | ( | const Dtk_picturePtr & | inPicture | ) |
Adds a picture to the view.
inPicture | Picture to be added. |
Dtk_ErrorStatus Dtk_View::AddPictures | ( | const Dtk_tab< Dtk_picturePtr > & | inPicturesArray | ) |
Adds an array of pictures to the view.
inPicturesArray | Array of pictures to be added. |
Dtk_Double64& Dtk_View::Angle | ( | ) |
const Dtk_Double64& Dtk_View::Angle | ( | ) | const |
|
protectedvirtual |
Implements Dtk_Entity.
|
static |
Base constructor.
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
\MoveConstructor{inToBeMoved}
|
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 |
Dtk_2dEntityPtr Dtk_View::Get2dEntity | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith 2D entity.
inPos | 2D entity index. |
Dtk_EntityPtr Dtk_View::Get2dGeometricalEntity | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith geometrical entity.
inPos | geometrical entity index. |
|
inherited |
|
virtual |
Implements Dtk_Entity.
Dtk_BodyPtr Dtk_View::GetBody | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Body.
inPos | Body index. |
Dtk_PlaneSurfacePtr Dtk_View::GetClipping | ( | const Dtk_Size_t & | inPos | ) | const |
inPos | clipping plane index. |
const Dtk_CompositeEntityPtr& Dtk_View::GetClippingBoundary | ( | ) | const |
|
inherited |
Get Internal UniqueID.
Dtk_Size_t Dtk_View::GetNum2dEntities | ( | ) | const |
Retrieves the 2D entities number - read only -.
Dtk_Size_t Dtk_View::GetNum2dGeometricalEntity | ( | ) | const |
Retrieves the number of geometrical entity to the view.
Dtk_Size_t Dtk_View::GetNumBodies | ( | ) | const |
Retrieves the bodies number to be dispalyed- read only -.
Dtk_Size_t Dtk_View::GetNumOLEObjects | ( | ) | const |
Retrieves the number of OLE Objects in the Dtk_View.
Dtk_Size_t Dtk_View::GetNumPictures | ( | ) | const |
Retrieves the pictures number - read only -.
Dtk_OLEObjectPtr Dtk_View::GetOLEObject | ( | const Dtk_Size_t & | inIndex | ) | const |
Retrieves the OLE Object at index.
Dtk_picturePtr Dtk_View::GetPicture | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Picture.
inPos | Picture 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_ViewDisplayPtr Dtk_View::GetViewDisplay | ( | ) |
GetDisplayMode for 3D entity.
|
inherited |
Dtk_2dEntityPtr Dtk_View::operator[] | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith 2D entity.
inPos | 2D entity index. |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
Dtk_Double64& Dtk_View::Scale | ( | ) |
const Dtk_Double64& Dtk_View::Scale | ( | ) | const |
void Dtk_View::SetClippingBoundary | ( | const Dtk_CompositeEntityPtr & | inBoundary | ) | const |
Sets the clipping boundary informations.
Dtk_ErrorStatus Dtk_View::SetClippingPlane | ( | const Dtk_Size_t & | inPos, |
const Dtk_pnt & | inLocation, | ||
const Dtk_dir & | inRefAxis, | ||
const Dtk_dir & | inNormalAxis | ||
) |
Sets the ith clipping plane informations.
inPos | The clipping plane index. |
inLocation | The clipping plane location. |
inRefAxis | The clipping plane reference axis. |
inNormalAxis | The clipping plane normal axis. |
void Dtk_View::SetViewDisplay | ( | Dtk_ViewDisplayPtr | inDisplay | ) |
SetDisplayMode for 3D entity to be displayed.
inDisplay | Body index. |
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_Entity.
Dtk_transfo& Dtk_View::TransformationMatrix | ( | ) |
Retrieves the Dtk_View transformation matrix - get/set-.
const Dtk_transfo& Dtk_View::TransformationMatrix | ( | ) | const |
Retrieves the Dtk_View transformation matrix - read only -.
|
friend |
|
friend |
|
protected |
|
protectedinherited |