a2dExternalReference Class Reference
[a2dCanvasObject related objects]

a2dExternalReference is a text like object, but next to that it holds a reference More...

#include <recur.h>

Inheritance diagram for a2dExternalReference:

Inheritance graph
[legend]
Collaboration diagram for a2dExternalReference:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dExternalReference (double x, double y, a2dCanvasObject *obj=0, const wxString &text=wxT(""), double angle=0, const a2dFont &font=*a2dDEFAULT_CANVASFONT)
 a2dExternalReference (const a2dExternalReference &other, CloneOptions options)
a2dCanvasObjectGetCanvasObject ()
void SetCanvasObject (a2dCanvasObject *object)
 set the object that is referenced
virtual a2dObjectClone (CloneOptions options) const
 Clone this object and return a pointer to the new object.

Protected Member Functions

void DoWalker (wxObject *parent, a2dWalkerIOHandler &handler)
 iterate over this object and its children

Protected Attributes

a2dCanvasObjectPtr m_object
 object to which a reference is held.


Detailed Description

a2dExternalReference is a text like object, but next to that it holds a reference

to a a2dCanvasObject. The referenced object is not a child, and is not part the boundingbox. This object can be used to implement libraries and overviews.

Definition at line 282 of file recur.h.


Member Function Documentation

a2dCanvasObject * a2dExternalReference::GetCanvasObject (  ) 

Returns:
the object that is referenced

Definition at line 669 of file recur.cpp.

void a2dExternalReference::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 664 of file recur.cpp.


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