a2dPoint2DProperty Class Reference
[a2dPropObject holds property objects]

property to hold a a2dPoint2D plus an index in e.g a polygon. More...

#include <afmatrix.h>

Inheritance diagram for a2dPoint2DProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dPoint2DProperty:

Collaboration graph
[legend]

List of all members.

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
a2dNamedPropertyClone (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
a2dPoint2DGetValue ()
 get the point
const a2dPoint2DGetValue () const
a2dPoint2DGetValuePtr ()
 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 a2dPoint2DPropertyCreatePropertyFromString (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


Detailed Description

property to hold a a2dPoint2D plus an index in e.g a polygon.

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.


Member Function Documentation

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.


Member Data Documentation

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.


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