15 #ifndef __WXRECTPRIM_H__
16 #define __WXRECTPRIM_H__
57 a2dRectMM(
double x,
double y,
double w,
double h ,
double radius = 0,
double contourwidth = 0 );
81 void SetMin(
double minx,
double miny ) { m_minx = minx; m_miny = miny;
SetPending(
true ); }
84 void SetMax(
double maxx,
double maxy ) { m_maxx = maxx; m_maxy = maxy;
SetPending(
true ); }
99 double GetWidth()
const {
return m_maxx - m_minx; }
125 #if wxART2D_USE_CVGIO
129 #endif //wxART2D_USE_CVGIO
145 virtual
bool DoStartEdit( wxUint16 editmode,
wxEditStyle editstyle );
149 a2dBoundingBox DoGetUnTransformedBbox( a2dBboxFlags flags = a2dCANOBJ_BBOX_NON ) const;
155 double m_contourwidth;
189 DECLARE_EVENT_TABLE()
193 enum a2dWindowMMStyle
198 enum a2dWindowMMState
217 a2dWindowMM(
double x,
double y,
double w,
double h );
245 #if wxART2D_USE_CVGIO
249 #endif //wxART2D_USE_CVGIO
286 DECLARE_EVENT_TABLE()
330 void OnCloseWindow( wxCommandEvent& event );
332 #if wxART2D_USE_CVGIO
336 #endif //wxART2D_USE_CVGIO
344 void SetTitle(
a2dText* textObj );
347 void SetTitle(
const wxString& title );
365 virtual
bool DoStartEdit( wxUint16 editmode,
wxEditStyle editstyle );
386 mutable
double m_titleheight;
389 static
double m_initialTitleHeight;
399 DECLARE_EVENT_TABLE()
439 void OnCloseWindow( wxCommandEvent& event );
441 #if wxART2D_USE_CVGIO
445 #endif //wxART2D_USE_CVGIO
452 void SetTitle(
a2dText* textObj );
455 void SetTitle(
const wxString& title );
461 void SetCanvas( a2dWindowMM* canvas );
471 virtual
bool DoStartEdit( wxUint16 editmode,
wxEditStyle editstyle );
493 mutable
double m_titleheight;
496 static
double m_initialTitleHeight;
virtual bool GeneratePins(a2dPinClass *toConnectTo, a2dConnectTask task, double x, double y, double margin=0)
create pins in derived objects.
virtual bool ProcessCanvasObjectEvent(a2dIterC &ic, a2dHitEvent &hitEvent)
Hit objects will receive the event.
wxPoint2DDouble a2dPoint2D
this to define if coordinate numbers are integer or doubles
void OnHandleEvent(a2dHandleMouseEvent &event)
called if a mouse event occured on a child object, that is a handle
virtual void SetParent(a2dCanvasObject *parent)
set parent object of the pin or some other objects that needs a parent
virtual void Render(a2dIterC &ic, OVERLAP clipparent)
Render this object to the active a2dDrawingPart.
Base class for all types of strokes, understood by a2dDrawer2D classes.
mouse event sent from a2dCanvasObject to itself
a2dConnectTask
flags for searching a connecting a2dpinClass, for the connecting task at hand.
class to map references to objects stored in XML, in order to make the connection later on...
This is a class/type description for a2dPin's.
void SetWidth(double w)
set width of rectangle
virtual bool Update(UpdateMode mode)
Update the state of the object according to its current position etc.
long GetStyle()
Get drawing style for window see a2dWindowMMStyle.
Input and output handler for the XmlSer format.
UpdateMode
Various mode flags for Update.
void SetStyle(long style)
Set drawing style for window see a2dWindowMMStyle.
virtual void SetPending(bool pending)
set this object pending for update
OVERLAP
Result of a a2dBoundingBox intersection or hittest.
The base class for all drawable objects in a a2dCanvasDocument.
a2dSmrtPtr< a2dText > & GetTitle()
get title of window
virtual void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
a2dCanvasObject is the base class for Canvas Objects.
vertex list of line and arc segments.
Io handler to iterate through a a2dDocument.
double GetBorder() const
get the Contour width of the shape
a2dText is an abstract base class.
double GetHeight() const
return height
a2dSmrtPtr< a2dWindowMM > & GetCanvas()
Get canvas object pointer.
virtual a2dCanvasObjectList * GetAsCanvasVpaths(bool transform=true) const
when implemented the object without its children, is converted to
void SetBorder(double width)
set the Contour width of the shape
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
general event sent from a2dHandle to its parent a2dCanvasObject
void SetRadius(double radius)
set corner radius of rectangle
Input and output handler for the XmlSer format.
while iterating a a2dCanvasDocument, this holds the context.
virtual a2dVertexList * GetAsVertexList(bool &returnIsPolygon) const
convert to a polygon.
double GetRadius() const
return radius
virtual void SetParent(a2dCanvasObject *parent)
set parent object of the pin or some other objects that needs a parent
virtual void DoAddPending(a2dIterC &ic)
called by addPending
void SetMax(double maxx, double maxy)
set maximum in x and y
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
double GetWidth() const
return width
void SetMin(double minx, double miny)
set minimum in x and y
virtual bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
void SetHeight(double h)
set height of rectangle
double GetContourWidth() const
get the Contour width of the shape
CloneOptions
options for cloning
void SetContourWidth(double width)
set the Contour width of the shape
structure to give as parameter to member functions of a2dCanvasObject
virtual void DoWalker(wxObject *parent, a2dWalkerIOHandler &handler)
iterate over this object and its children