47 virtual void SetTicFormat(
const wxString& format ) { m_format = format; }
50 virtual wxString GetTicText(
double dTicValue )
const;
67 #if defined(WXART2D_USINGDLL)
82 void SetTicFormat(
const wxString& format );
84 virtual wxString GetTicText(
double dTicValue );
86 virtual bool CanRender() {
return FALSE; }
94 #if defined(WXART2D_USINGDLL)
113 void SetBoundaries(
double min,
double max );
121 void SetTicBoundaries(
double min,
double max );
123 double GetTicMin(
void )
const {
return m_ticmin;}
125 double GetTicMax(
void )
const {
return m_ticmax;}
157 void SetLength(
double length );
181 double GetTic()
const {
return ( m_tic == 0 ) ? ( m_max - m_min ) / 10 : m_tic; }
183 double GetTicStart()
const;
188 double GetTicHeight()
const {
return ( m_ticheight == 0 ) ? m_length / 100 : m_ticheight; }
206 void SetTicStroke(
const a2dStroke& stroke );
209 void SetTicTextStroke(
const a2dStroke& stroke );
215 void SetAxisStroke(
const a2dStroke& stroke );
220 void SetUnitsStroke(
const a2dStroke& stroke );
224 const wxString& GetUnits()
const {
return m_units; }
226 void SetInvertTic(
bool inverttic );
228 void SetAutoSizedTic(
bool autosized ) {
if ( m_autosizedtic != autosized ) { m_autosizedtic = autosized;
SetPending(
true ); } }
230 virtual void AddLevel(
const wxString& levelName,
double val,
a2dCanvasObject*
object );
234 bool GetLevelValue(
const wxString& levelName,
double& val );
238 double ConvertWorld2Axis(
double RelativeWorldValue );
240 double ConvertAxis2World(
double AxisValue );
253 bool HasLevelMarkers() const;
255 a2dBoundingBox DoGetUnTransformedBbox( a2dBboxFlags flags = a2dCANOBJ_BBOX_NON ) const;
256 void DoUpdateViewDependentObjects(
a2dIterC& ic );
258 #if wxART2D_USE_CVGIO
262 #endif //wxART2D_USE_CVGIO
321 wxString m_commonTicFormat;
332 #if defined(WXART2D_USINGDLL)
357 #if wxART2D_USE_CVGIO
361 #endif //wxART2D_USE_CVGIO
381 virtual ~a2dCurveAxisArea();
383 a2dCurveAxisArea(
const a2dCurveAxisArea& other, CloneOptions options,
a2dRefMap* refs );
392 void SetLength(
double length );
395 double GetLength() {
return m_length; }
397 DECLARE_CLASS( a2dCurveAxisArea )
403 a2dBoundingBox DoGetUnTransformedBbox( a2dBboxFlags flags = a2dCANOBJ_BBOX_NON ) const;
double GetPosition() const
get position of axis ( zero is default )
double m_max
maximum on axis (internal boundaries)
Base class for all types of strokes, understood by a2dDrawer2D classes.
void SetUnits(const wxString &units)
Set units for this axis.
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
void SetCommonTicFormat(const wxString &format)
Set how common tic text is formated/displayed for all (Y-axes).
class to map references to objects stored in XML, in order to make the connection later on...
double m_ticmin
tic scale minimum on axis
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
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.
double GetTic() const
get distance of tic lines in X/Y (curve coords)
double m_length
length in parent world coordinates
double m_ticmax
tic scale maximum on axis
void SetTicTextHeight(double height)
height of tics text set to font
base class for axis in a2dCanvasXYDisplayGroup
virtual void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
void SetSideTic(bool sidetic)
tics display on side of drawing
a2dCanvasObject is the base class for Canvas Objects.
double GetBoundaryMin() const
get minimum
void SetTic(double d)
distance of tic lines in X/Y (curve coords)
double m_position
position of axis
virtual void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
a2dCurveObject for objects needing to know its parent a2dCurvesArea.
bool IsYAxis() const
return true is this axis is Yaxis
base class for axis in a2dCanvasXYDisplayGroup
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.
bool m_yaxis
is this an Y axis
bool m_showtics
if true tics are displayed
void SetTicHeight(double height)
height of tic lines
double GetLength() const
get length in world coordinates.
while iterating a a2dCanvasDocument, this holds the context.
void SetShowTics(bool showtics)
show tics
double GetBoundaryMax() const
get maximum
void SetFontTic(const a2dFont &font)
Font for tics.
void SetPosition(double position)
set position of axis ( zero is default )
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
double GetAxisMax() const
get real maximum
double m_min
minimum on axis (internal boundaries)
a2dTicFormatter * GetFormatter()
Get current tic formatter.
void SetTicFormat(const wxString &format)
Set how tic text is formated/displayed.
a2dStrokeStyle
stroke styles for a2dStroke
CloneOptions
options for cloning
double GetAxisMin() const
get real minimum
double GetTicTextHeight() const
return size of font