This is the Dtk_OLEObject Class.
The Dtk_OLEObject object is used to store any informations about Object Linking and Embedding items.
More...
Public Types | |
enum | Dtk_OLEObjectViewingAspect { OLE_ASPECT_UNKNOWN = 0, OLE_ASPECT_CONTENT, OLE_ASPECT_ICON } |
Public Member Functions | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
virtual int | DtkDynamicType (const int &inId)=0 |
virtual void | dump (FILE *file=stdout) |
Dtk_ErrorStatus | ExtractPreviewPicture (Dtk_picturePtr &outPreviewPicture) const |
Extract the currently displayed picture from the OLE Object. More... | |
type_detk | get_type_detk () const |
const Dtk_Char8 *const | GetBinaryContent () const |
Returns the OLE Object data size. More... | |
const Dtk_Size_t | GetBinaryContentSize () const |
Returns the OLE Object data. More... | |
Dtk_Oriented2dBBox & | GetPlacement () |
Returns the position and orientation of the OLE Object in space. More... | |
const Dtk_Oriented2dBBox & | GetPlacement () const |
Returns the position and orientation of the OLE Object in space. More... | |
Dtk_Double64 | GetScale () const |
Returns the scale that is applied to the OLE Object. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_OLEObjectViewingAspect | GetViewingAspect () const |
Returns the way the OLE Object should be displayed at screen. More... | |
Dtk_OLEObject & | operator= (const Dtk_OLEObject &inToBeAssigned) |
Assignment Operator. More... | |
void | SetBinaryContent (const Dtk_Char8 *const inNewContent, const Dtk_Size_t inNewContentSize) |
Set the OLE Object data. More... | |
void | SetPlacement (const Dtk_Oriented2dBBox &inNewPlacement) |
Set the position and orientation of the OLE Object in space. More... | |
void | SetScale (const Dtk_Double64 &inNewScale) |
Set the scale that is applied to the OLE Object. More... | |
void | SetViewingAspect (const Dtk_OLEObjectViewingAspect &inNewAspect) |
Set the way the OLE Object should be displayed at screen. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_OLEObjectPtr | Create (const Dtk_Char8 *const binaryContent, const Dtk_Size_t &binaryContentSize, const Dtk_Oriented2dBBox &positioning, const Dtk_OLEObjectViewingAspect viewingAspect, const Dtk_Double64 &scale=1) |
Create a Dtk_OLEObjectPtr. More... | |
static Dtk_OLEObjectPtr | Create (const Dtk_OLEObject &inToBeCopied) |
Copy constructor. More... | |
static Dtk_string | Dtk_OLEObjectViewingAspectToString (const Dtk_OLEObjectViewingAspect &inEnum) |
static Dtk_OLEObject * | DtkDynamicCast (Dtk_Object *o) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OLE_OBJECT } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_OLEObject (const Dtk_Char8 *const binaryContent, const Dtk_Size_t &binaryContentSize, const Dtk_Oriented2dBBox &placement, const Dtk_OLEObjectViewingAspect viewingAspect, const Dtk_Double64 &scale=1) | |
Base Constructor. More... | |
Dtk_OLEObject (const Dtk_OLEObject &o) | |
Copy Constructor. More... | |
~Dtk_OLEObject () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_OLEObject > |
This is the Dtk_OLEObject Class.
The Dtk_OLEObject object is used to store any informations about Object Linking and Embedding items.
|
protected |
Base Constructor.
|
protected |
Copy Constructor.
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedvirtual |
|
static |
Create a Dtk_OLEObjectPtr.
binaryContent | The OLE Object data. |
binaryContentSize | The OLE Object data size. |
positioning | Position and orientation of the OLE Object in space. |
viewingAspect | The way the OLE Object should be displayed at screen. |
scale | The scale that is applied to the OLE Object. |
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, 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, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
Dtk_ErrorStatus Dtk_OLEObject::ExtractPreviewPicture | ( | Dtk_picturePtr & | outPreviewPicture | ) | const |
Extract the currently displayed picture from the OLE Object.
type_detk Dtk_OLEObject::get_type_detk | ( | ) | const |
const Dtk_Char8* const Dtk_OLEObject::GetBinaryContent | ( | ) | const |
Returns the OLE Object data size.
const Dtk_Size_t Dtk_OLEObject::GetBinaryContentSize | ( | ) | const |
Returns the OLE Object data.
Dtk_Oriented2dBBox& Dtk_OLEObject::GetPlacement | ( | ) |
Returns the position and orientation of the OLE Object in space.
const Dtk_Oriented2dBBox& Dtk_OLEObject::GetPlacement | ( | ) | const |
Returns the position and orientation of the OLE Object in space.
Dtk_Double64 Dtk_OLEObject::GetScale | ( | ) | const |
Returns the scale that is applied to the OLE Object.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, 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, Dtk_Point, Dtk_Entity, and Dtk_Info.
Dtk_OLEObjectViewingAspect Dtk_OLEObject::GetViewingAspect | ( | ) | const |
Returns the way the OLE Object should be displayed at screen.
Dtk_OLEObject& Dtk_OLEObject::operator= | ( | const Dtk_OLEObject & | inToBeAssigned | ) |
Assignment Operator.
inToBeAssigned | Object to copy. |
void Dtk_OLEObject::SetBinaryContent | ( | const Dtk_Char8 *const | inNewContent, |
const Dtk_Size_t | inNewContentSize | ||
) |
Set the OLE Object data.
inNewContent | The OLE Object data. |
inNewContentSize | The OLE Object data size. |
void Dtk_OLEObject::SetPlacement | ( | const Dtk_Oriented2dBBox & | inNewPlacement | ) |
Set the position and orientation of the OLE Object in space.
void Dtk_OLEObject::SetScale | ( | const Dtk_Double64 & | inNewScale | ) |
Set the scale that is applied to the OLE Object.
void Dtk_OLEObject::SetViewingAspect | ( | const Dtk_OLEObjectViewingAspect & | inNewAspect | ) |
Set the way the OLE Object should be displayed at screen.
Dtk_ErrorStatus Dtk_OLEObject::Transform | ( | const Dtk_transfo & | inTransfo | ) |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
|
friend |
|
protected |
|
protectedinherited |