#include <canprop.h>


Public Member Functions | |
| a2dCanvasObjectPtrProperty (const a2dPropertyIdCanvasObject *id, a2dCanvasObject *object, bool visible=false, bool render=false) | |
| a2dCanvasObjectPtrProperty (const a2dCanvasObjectPtrProperty &other, a2dObject::CloneOptions options) | |
| a2dNamedProperty * | Clone (a2dObject::CloneOptions options) const |
| Virtual copy constructor. | |
| virtual void | Assign (const a2dNamedProperty &other) |
| Virtual assignment operator. | |
| void | SetObject (wxObject *object) |
| to set the a2dCanvasObject* | |
| a2dCanvasObject * | GetCanvasObject () const |
| virtual a2dObject * | GetRefObject () const |
| to get the a2dCanvasObject* | |
| virtual a2dObject * | GetRefObjectNA () const |
| when a2dProperty, return its value else return NULL | |
| virtual void | SetVisible (bool visible) |
| the object is visible or not. | |
| virtual bool | GetVisible () const |
| return true if the object is visible. | |
| void | SetCanRender (bool render) |
| if object can be rendered or not. | |
| bool | GetCanRender () const |
| return true if the object can be rendered. | |
| void | SetPreRender (bool prerender) |
| is set true, the object within this property will be rendered before its parent a2dCanvasObject | |
| bool | GetPreRender () const |
| returns the current prerender setting. | |
| void | SetSelectedOnly (bool selectedonly) |
| is set true, the object will only be rendered, if the owning object is selected | |
| bool | GetSelectedOnly () const |
| returns the current only selected setting. | |
| a2dCanvasObject * | GetValue () const |
| Get property value. | |
| void | SetValue (a2dCanvasObject *newvalue) |
| Set property value. | |
| a2dCanvasObjectPtr * | GetValuePtr () |
| a2dCanvasObjectPtr & | GetValueRef () |
| const a2dCanvasObjectPtr * | GetValuePtr () const |
| const a2dCanvasObjectPtr & | GetValueRef () const |
Static Public Member Functions | |
| static a2dCanvasObjectPtrProperty * | CreatePropertyFromString (const a2dPropertyIdCanvasObject *id, const wxString &value) |
Protected Member Functions | |
| void | DoWalker (wxObject *parent, a2dWalkerIOHandler &handler) |
| virtual void | DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite) |
| Save settings. | |
| virtual void | DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts) |
| Load settings. | |
Protected Attributes | |
| bool | m_prerender |
| bool | m_selectedonly |
| bool | m_visible |
| see SetVisible() | |
| bool | m_render |
| in case of a grahics application, should this property be rendered. | |
| wxUint32 | m_resolveid |
| when loading a document, this is used to resolve references to objects | |
| a2dCanvasObjectPtr | m_object |
| object held by this property. | |
Definition at line 192 of file canprop.h.
| virtual void a2dCanvasObjectPtrProperty::SetVisible | ( | bool | visible | ) | [inline, virtual] |
| void a2dCanvasObjectPtrProperty::SetCanRender | ( | bool | render | ) | [inline] |
if object can be rendered or not.
some properties have a reference to a a2dCanvasObject, but only to store it, not to render it as part of the object.
| void a2dCanvasObjectPtrProperty::SetPreRender | ( | bool | prerender | ) | [inline] |
is set true, the object within this property will be rendered before its parent a2dCanvasObject
| prerender | if true render m_object before its parent a2dCanvasObject, default false. |
| void a2dCanvasObjectPtrProperty::SetSelectedOnly | ( | bool | selectedonly | ) | [inline] |
| a2dCanvasObjectPtrProperty * a2dCanvasObjectPtrProperty::CreatePropertyFromString | ( | const a2dPropertyIdCanvasObject * | id, | |
| const wxString & | value | |||
| ) | [static] |
Construct a new property object from a string If this is not appropriate, this may return NULL
Definition at line 636 of file canprop.cpp.
bool a2dCanvasObjectPtrProperty::m_prerender [protected] |
bool a2dCanvasObjectPtrProperty::m_selectedonly [protected] |