12 #ifndef __WXPLOTBOX_H__
13 #define __WXPLOTBOX_H__
36 a2dPlot(
double x = 0,
double y = 0 );
43 void SetTitle(
const wxString& title );
46 void SetTitleTextDc(
a2dText* title );
52 void SetXLabel(
const wxString& xlabel,
const wxColour& color = wxNullColour );
55 void SetXLabelTextDc(
a2dText* xLabelTextDc );
58 void SetYLabel(
const wxString& ylabel,
const wxColour& color = wxNullColour )
60 SetY1Label( ylabel, color );
65 SetY1LabelTextDc( yLabelTextDc );
69 void SetY1Label(
const wxString& ylabel,
const wxColour& color = wxNullColour );
72 void SetY1LabelTextDc(
a2dText* yLabelTextDc );
75 void SetY2Label(
const wxString& ylabel,
const wxColour& color = wxNullColour );
78 void SetY2LabelTextDc(
a2dText* yLabelTextDc );
90 void SetPadding(
double leftPadding,
double rightPadding,
double topPadding,
double bottomPadding );
92 DECLARE_DYNAMIC_CLASS(
a2dPlot )
100 #endif //wxART2D_USE_CVGIO
108 void SetPosYLabel(
a2dText* yLabelTextDc,
double x,
double y,
double tHeight,
bool left );
136 #if defined(WXART2D_USINGDLL)
159 void SetFont(
const a2dFont& font ) { m_font = font; SetPending(
true );}
163 { m_linespace = linespace; SetPending(
true ); }
172 DECLARE_EVENT_TABLE()
178 void OnChar( wxKeyEvent& event );
190 #if wxART2D_USE_CVGIO
194 #endif //wxART2D_USE_CVGIO
198 a2dBoundingBox DoGetUnTransformedBbox( a2dBboxFlags flags = a2dCANOBJ_BBOX_NON )
const;
all basic primitives derived from a2dCanvasObject
mouse event sent from a2dCanvasObject to itself
void SetAutoPlace(bool autoPlace)
if true text objects title xlabel and ylabel will be set in position automatically ...
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...
class to map references to objects stored in XML, in order to make the connection later on...
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
double GetLineSpacing() const
Get Space in world coordinates between two lines.
Input and output handler for the XmlSer format.
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.
double m_linespace
space between the lines
For Showing Marker position of Markers on a Curve.
plot a group of curves on a given area in world coordinates.
a2dCanvasObject is the base class for Canvas Objects.
a2dFont m_font
legend font
simple curve group with just one a2dCurvesArea in use
Io handler to iterate through a a2dDocument.
double GetLineHeight() const
Height in world coordinates of one line.
double m_bottomPadding
padding.
a2dText is an abstract base class.
double m_topPadding
padding.
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
Special object group to plot a2dCurve Objects but also any other a2dCanvasObject. ...
Input and output handler for the XmlSer format.
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
while iterating a a2dCanvasDocument, this holds the context.
void SetYLabel(const wxString &ylabel, const wxColour &color=wxNullColour)
set Y label on axis, empty string removes it
legend for a group of curves.
const a2dFont * a2dDEFAULT_CANVASFONT
global a2dFont stock object for default font
void SetAutoYAxesNames(bool autoYNames)
if true text ylabel will be set according curves area name
double m_leftPadding
padding.
void SetYLabelTextDc(a2dText *yLabelTextDc)
set Y label on axis as text object, NULL removes it
void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
double m_rightPadding
padding.
bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
A pointer class, that automatically calls SmrtPtrOwn/SmrtPtrRelease.
CloneOptions
options for cloning
void SetLineSpacing(double linespace)
Set Space in world coordinates between two lines.
structure to give as parameter to member functions of a2dCanvasObject