11 #ifndef __WXCANOBJ3D_H__
12 #define __WXCANOBJ3D_H__
21 #define __USE_EVENTS 1
43 double GetExtrudeDepth() {
return m_depth; }
44 double GetExtrudeAngle() {
return wxRadToDeg( m_angle3d ); }
46 void SetExtrudeDepth(
double depth ) { m_depth = depth;
SetPending(
true ); }
47 void SetExtrudeAngle(
double angle3d ) { m_angle3d =
wxDegToRad( angle3d );
SetPending(
true ); }
49 void SetExtrudeFillFromShape();
50 void SetExtrudeStrokeFromShape();
63 #endif //wxART2D_USE_CVGIO
83 #if defined(WXART2D_USINGDLL)
virtual bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
class to map references to objects stored in XML, in order to make the connection later on...
double wxDegToRad(double deg)
conversion from degrees to radians
Input and output handler for the XmlSer format.
UpdateMode
Various mode flags for Update.
virtual void SetPending(bool pending)
set this object pending for update
OVERLAP
Result of a a2dBoundingBox intersection or hittest.
virtual void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
a2dCanvasObject is the base class for Canvas Objects.
virtual void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
Io handler to iterate through a a2dDocument.
double wxRadToDeg(double rad)
conversion from radians to degrees
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
Input and output handler for the XmlSer format.
while iterating a a2dCanvasDocument, this holds the context.
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
all headers of the canvas module
virtual bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
CloneOptions
options for cloning
structure to give as parameter to member functions of a2dCanvasObject
to make object having a shadow behind it OR to extrude them in 3D
virtual void DoWalker(wxObject *parent, a2dWalkerIOHandler &handler)
iterate over this object and its children