#include <afmatrix.h>


Public Member Functions | |
| a2dPoint2DProperty () | |
| constructor | |
| a2dPoint2DProperty (const a2dPropertyIdPoint2D *id, const a2dPoint2D &value, int index=0, bool afterinversion=false) | |
| constructor | |
| a2dPoint2DProperty (const a2dPoint2DProperty *ori) | |
| constructor | |
| a2dPoint2DProperty (const a2dPoint2DProperty &other) | |
| constructor | |
| virtual | ~a2dPoint2DProperty () |
| destructor | |
| a2dNamedProperty * | Clone (a2dObject::CloneOptions options) const |
| clone | |
| virtual void | Assign (const a2dNamedProperty &other) |
| Virtual assignment operator. | |
| void | SetValue (double x, double y, int index=0, bool afterinversion=false) |
| set the property information to this | |
| void | SetValue (const a2dPoint2D &P, int index=0, bool afterinversion=false) |
| set the property information to this | |
| a2dPoint2D & | GetValue () |
| get the point | |
| const a2dPoint2D & | GetValue () const |
| a2dPoint2D * | GetValuePtr () |
| get the point its address | |
| wxInt32 | GetIndex () |
| get property setting for m_index | |
| bool | GetAfterinversion () |
| get property setting for m_afterinversion | |
| virtual wxString | StringRepresentation () const |
| a string form presentation for this property | |
| virtual wxString | StringValueRepresentation () const |
| a string value presentation for this property | |
| 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. | |
Static Public Member Functions | |
| static a2dPoint2DProperty * | CreatePropertyFromString (const a2dPropertyIdPoint2D *id, const wxString &value) |
Protected Attributes | |
| a2dPoint2D | m_value |
| the point that is held within this property | |
| wxInt32 | m_index |
| Can be used as position to insert a point into a polygon. | |
| bool | m_afterinversion |
A wxPoint2d is held within this property, next to that an indedx into an array/list can be set. Also an afterinversion can used by Objects to transform first or not when using a point.
This property is used in polygon editing to achieve undo, but you can use it for anything needing a point as property.
Definition at line 458 of file afmatrix.h.
| a2dPoint2DProperty * a2dPoint2DProperty::CreatePropertyFromString | ( | const a2dPropertyIdPoint2D * | 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 1199 of file afmatrix.cpp.
bool a2dPoint2DProperty::m_afterinversion [protected] |
when adding this point to an object with a matrix, first inverse transform it to the position without the matrix.
Definition at line 528 of file afmatrix.h.