a2dFloatProperty Class Reference
[a2dPropObject holds property objects]

property to hold a float type variable to be associated with a a2dPropObject More...

#include <gen.h>

Inheritance diagram for a2dFloatProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dFloatProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dFloatProperty (const a2dPropertyIdFloat *id, float value)
 a2dFloatProperty (const a2dFloatProperty &other)
virtual a2dNamedPropertyClone (a2dObject::CloneOptions options) const
 Virtual copy constructor.
virtual void Assign (const a2dNamedProperty &other)
 Virtual assignment operator.
void SetValue (float value)
float GetValue () const
virtual float GetFloat () const
 when a2dFloatProperty, return its value else assert
virtual double GetDouble () const
 when a2dDoubleProperty, return its value else assert
float * GetValuePtr ()
float & GetValueRef ()
virtual wxString StringRepresentation () const
virtual wxString StringValueRepresentation () const
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 a2dFloatPropertyCreatePropertyFromString (const a2dPropertyIdFloat *id, const wxString &value)

Protected Attributes

float m_value


Detailed Description

property to hold a float type variable to be associated with a a2dPropObject

Definition at line 1992 of file gen.h.


Member Function Documentation

a2dFloatProperty * a2dFloatProperty::CreatePropertyFromString ( const a2dPropertyIdFloat 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 1851 of file gen.cpp.

wxString a2dFloatProperty::StringRepresentation (  )  const [virtual]

Convert the property to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 1889 of file gen.cpp.

wxString a2dFloatProperty::StringValueRepresentation (  )  const [virtual]

Convert the property value to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 1896 of file gen.cpp.


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