#include <marker.h>


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 a2dObject * | Clone (CloneOptions options) const |
| This is here so that this class cannot be used directly. | |
| void | SetAxis (a2dCurveAxis *curve) |
| a2dCurveAxis * | GetAxis () const |
| virtual const wxString & | GetMarkerString () |
Static Public Attributes | |
| static a2dPropertyIdCanvasObject * | PROPID_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< a2dCurveAxis > | m_axis |
Markers can draw self value on an axis
Definition at line 175 of file marker.h.
| 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.
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).
| mode | way to update the objects | |
| childbox | size of children boundingbox | |
| clipbox | clip to this | |
| propbox | size of properties boundingbox |
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.