32 #include "wx/canvas/canimage.h"
35 #define __USE_EVENTS 1
37 #define newline wxString("\n")
80 bool IsRecursive() {
return true; }
96 #endif //wxART2D_USE_CVGIO
143 void SetHorzSpace(
double horzSpace ) { m_horzSpace = horzSpace;
SetPending(
true ); }
145 double GetHorzSpace() {
return m_horzSpace; }
147 void SetVertSpace(
double vertSpace ) { m_vertSpace = vertSpace;
SetPending(
true ); }
149 double GetVertSpace() {
return m_vertSpace; }
151 int GetRows() {
return m_rows; }
153 void SetRows(
int rows ) { m_rows = rows;
SetPending(
true ); }
155 int GetColumns() {
return m_columns; }
157 void SetColumns(
int columns ) { m_columns = columns;
SetPending(
true ); }
160 double GetWidth() {
return m_columns * m_horzSpace; }
171 #if wxART2D_USE_CVGIO
175 #endif //wxART2D_USE_CVGIO
223 int imagew = 100,
int imageh = 100 );
254 #if wxART2D_USE_CVGIO
258 #endif //wxART2D_USE_CVGIO
262 wxString m_description;
352 virtual bool LinkReference(
a2dObject* other );
357 virtual void DoAddPending(
a2dIterC& ic );
361 #if wxART2D_USE_CVGIO
365 #endif //wxART2D_USE_CVGIO
407 #if wxART2D_USE_CVGIO
411 #endif //wxART2D_USE_CVGIO
a2dCanvasObject * GetCanvasObject()
virtual void MakeReferencesUnique()
All direct a2dCanvasObject which are part of this one are made unique.
a2dText derived from a2dCanvasObject, holds multiline text
all basic primitives derived from a2dCanvasObject
virtual bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
a2dCanvasObjectReference is a reference to any a2dCanvasObject derived class.
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...
a2dNameReference is a text like object, but next to that it holds a reference
a2dSymbolicReference does not render referenced object.
void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
virtual void RemoveHierarchy()
move childs of childs and members which have hierarchy one level up to this object its child list...
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.
void RemoveHierarchy()
move childs of childs and members which have hierarchy one level up to this object its child list...
virtual void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
double GetWidth()
return total width of array
a2dCanvasObject is the base class for Canvas Objects.
void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
a2dCanvasObjectArrayReference is an array of a reference to any a2dCanvasObject derived class...
bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
virtual void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
Io handler to iterate through a a2dDocument.
a2dBoundingBox DoGetUnTransformedBbox(a2dBboxFlags flags=a2dCANOBJ_BBOX_NON) const
In derived object this should be overriden to calculate the boundingbox of the object without its chi...
a2dCanvasObjectPtr m_object
object to which a reference is held.
a2dText is an abstract base class.
void SetCanvasObject(a2dCanvasObject *object)
set the object that is referenced
a2dImage (will scale/rotate image when needed)
a2dExternalReference is a text like object, but next to that it holds a reference ...
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
a2dCanvasObjectPtr m_object
object to which a reference is hold.
Input and output handler for the XmlSer format.
a2dCanvasObjectPtr m_objectRef
object to which a reference is held.
while iterating a a2dCanvasDocument, this holds the context.
virtual void DoWalker(wxObject *parent, a2dWalkerIOHandler &handler)
iterate over this object and its children
const a2dFont * a2dDEFAULT_CANVASFONT
global a2dFont stock object for default font
void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
virtual bool LinkReference(a2dObject *other)
link a reference in the object to the given value
virtual void DoAddPending(a2dIterC &ic)
called by addPending
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
virtual a2dBoundingBox DoGetUnTransformedBbox(a2dBboxFlags flags=a2dCANOBJ_BBOX_NON) const
In derived object this should be overriden to calculate the boundingbox of the object without its chi...
virtual a2dCanvasObject * PushInto(a2dCanvasObject *parent)
when wanting to traverse hierarchy what level is down here.
a2dLibraryReference is a symbol object, it holds a reference
virtual bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
This template class is for property ids with a known data type.
Walker taking iterative context into account.
CloneOptions
options for cloning
structure to give as parameter to member functions of a2dCanvasObject
virtual void DoWalker(wxObject *parent, a2dWalkerIOHandler &handler)
iterate over this object and its children
double GetHeight()
return total height of array