a2dAxisMarker Class Reference
[a2dCanvasObject related objectscomplex canvasobject'scomplex canvasobject's for drawing sets of curves]

For Markers on an Axis. More...

#include <marker.h>

Inheritance diagram for a2dAxisMarker:

Inheritance graph
[legend]
Collaboration diagram for a2dAxisMarker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dAxisMarker (const wxString &format=_T("%f"), a2dCurveAxis *axis=0)
 a2dAxisMarker (const wxString &format, a2dCurveAxis *curve, double atx, double height=0)
 a2dAxisMarker (const wxString &format, a2dCurveAxis *curve, double atx, const a2dFont &font)
 a2dAxisMarker (const a2dAxisMarker &other, CloneOptions options)
virtual a2dObjectClone (CloneOptions options) const
 This is here so that this class cannot be used directly.
void SetAxis (a2dCurveAxis *curve)
a2dCurveAxisGetAxis () const
virtual const wxString & GetMarkerString ()

Static Public Attributes

static a2dPropertyIdCanvasObjectPROPID_axis = NULL

Protected Member Functions

void DoWalker (wxObject *parent, a2dWalkerIOHandler &handler)
 iterate over this object and its children
void DoAddPending (a2dIterC &ic)
 called by addPending
void OnCanvasObjectMouseEvent (a2dCanvasObjectMouseEvent &event)
 default handler for mouse events, sent to the object from the a2dCanvasView.
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 write object specific CVGL data
void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 load object specific CVG data
void DependencyPending (a2dWalkerIOHandler *handler)
 called by to check if this object becomes pending as a result of other objects
bool DoUpdate (UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
 Update derived Object specific things ( mainly boundingbox).

Protected Attributes

a2dSmrtPtr< a2dCurveAxism_axis


Detailed Description

For Markers on an Axis.

Markers can draw self value on an axis

Definition at line 175 of file marker.h.


Member Function Documentation

void a2dAxisMarker::DoWalker ( wxObject *  parent,
a2dWalkerIOHandler handler 
) [protected, virtual]

iterate over this object and its children

This function allows you to extend the functionality of all a2dCanvasObject classes in a a2dCanvasDocument, without adding extra members to these objects.

Default functions are called on the a2dWalkerIOHandler, which redirect the calls to other functions based on this object its classname. On can register classes to a2dWalkerIOHandler or derived classes. This way for each unique object in the document there can be a function in a2dWalkerIOHandler.

Returns:
false if some object did not have a function attached via a2dWalkerIOHandler.
See a2dWalkerIOHandler for more.

Reimplemented from a2dCanvasObject.

Definition at line 377 of file marker.cpp.

void a2dAxisMarker::OnCanvasObjectMouseEvent ( a2dCanvasObjectMouseEvent event  )  [protected]

default handler for mouse events, sent to the object from the a2dCanvasView.

Mouse events are sent to the object when the mouse pointer is hiting the object. The default is used when the object is in edit mode. Else it will detect if the special object tip property named __OBJECTTIP__ is available, and switch it on or off when the mouse eneter or leaves the object.

&& m_flags.m_subEditAsChild )

Reimplemented from a2dCanvasObject.

Definition at line 392 of file marker.cpp.

void a2dAxisMarker::DoLoad ( wxObject *  parent,
a2dIOHandlerXmlSerIn parser,
a2dXmlSer_flag  xmlparts 
) [protected, virtual]

load object specific CVG data

todo ignore until this down here is fully converted.

Reimplemented from a2dBaseMarker.

Definition at line 612 of file marker.cpp.

void a2dAxisMarker::DependencyPending ( a2dWalkerIOHandler handler  )  [protected, virtual]

called by to check if this object becomes pending as a result of other objects

You can Override DependencyPending() to set your object pending, when another object was set pending.

Reimplemented from a2dCanvasObject.

Definition at line 568 of file marker.cpp.

bool a2dAxisMarker::DoUpdate ( UpdateMode  mode,
const a2dBoundingBox childbox,
const a2dBoundingBox clipbox,
const a2dBoundingBox propbox 
) [protected, virtual]

Update derived Object specific things ( mainly boundingbox).

Calculates the boundingbox of the object (exclusif base class child objects but with other nested objects).

Parameters:
mode way to update the objects
childbox size of children boundingbox
clipbox clip to this
propbox size of properties boundingbox
Remarks:
in a derived class this function can also be used to update object specific cache data.

force may or may not have direct influence on the object itself, if this function is called directly for some reason (e.g from derived objects), you must invalidate the boudingbox yourself. GetDrawerBox()->SetValid( false );

Reimplemented from a2dCurveObject.

Definition at line 577 of file marker.cpp.


The documentation for this class was generated from the following files:
a2dAxisMarker Class Reference -- Tue Aug 31 18:11:30 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation