#include <actorproperty.h>

Public Member Functions | |
| virtual const std::string & | GetName () const |
| Gets the unique name assigned to this property. | |
| virtual const DataType & | GetDataType () const |
| |
| DataType & | GetPropertyType () const |
| This is an alias to GetStringValue. | |
| virtual void | CopyFrom (const ActorProperty &otherProp)=0 |
| Assigns the value of this property the value contained in the specified property. | |
| const std::string & | GetLabel () const |
| Gets the label assigned to this property. | |
| const std::string & | GetDescription () const |
| Gets the description assigned to this property. | |
| bool | IsReadOnly () const |
| Gets the read only state of a property. | |
| void | SetReadOnly (bool readOnly) |
| Sets the read only state of a property. | |
| void | SetGroupName (const std::string &name) |
| Sets the value of the property based on a string. | |
| const std::string & | GetGroupName () const |
| Get the group name. | |
| void | SetNumberPrecision (unsigned int precision) |
| Sets the precision of floating point number as they are converted to and from string values. | |
| unsigned int | GetNumberPrecision () const |
| Gets the current floating point precision value on this parameter. | |
Protected Member Functions | |
| ActorProperty (dtDAL::DataType &dataType, const std::string &name, const std::string &label, const std::string &desc, const std::string &groupName, bool readOnly=false) | |
| Constructs the actor property. | |
| virtual | ~ActorProperty () |
| Protected since actor properties are smart pointers. | |
Protected Attributes | |
| std::string | mGroupName |
| The name of the property's group. | |
The get/set portions of the property are functor objects which point to a getter and setter method on a particular class. Therefore, when a property is created, it knows how to set and get the data it represents.
| dtDAL::ActorProperty::ActorProperty | ( | dtDAL::DataType & | dataType, | |
| const std::string & | name, | |||
| const std::string & | label, | |||
| const std::string & | desc, | |||
| const std::string & | groupName, | |||
| bool | readOnly = false | |||
| ) | [inline, protected] |
Constructs the actor property.
This is protected since the real property functionality comes from classes extending this one.
| virtual dtDAL::ActorProperty::~ActorProperty | ( | ) | [inline, protected, virtual] |
Protected since actor properties are smart pointers.
| virtual const std::string& dtDAL::ActorProperty::GetName | ( | ) | const [inline, virtual] |
| virtual const DataType& dtDAL::ActorProperty::GetDataType | ( | ) | const [inline, virtual] |
| DataType& dtDAL::ActorProperty::GetPropertyType | ( | ) | const [inline] |
This is an alias to GetStringValue.
Returns an enumeration of the data type that this property represents.
Reimplemented in dtDAL::EnumActorProperty< T >.
| virtual void dtDAL::ActorProperty::CopyFrom | ( | const ActorProperty & | otherProp | ) | [pure virtual] |
Assigns the value of this property the value contained in the specified property.
| otherProp | The property containing the value to copy. |
This is not like a copy constructor or assignment operator. The is merely a method to set the "value" of a property from another property.
Implemented in dtDAL::ActorActorProperty, dtDAL::ResourceActorProperty, dtDAL::GenericActorProperty< SetType, GetType >, dtDAL::GroupActorProperty, dtDAL::GenericActorProperty< const osg::Vec4d &, osg::Vec4d >, dtDAL::GenericActorProperty< long, long >, dtDAL::GenericActorProperty< const osg::Vec4 &, osg::Vec4 >, dtDAL::GenericActorProperty< float, float >, dtDAL::GenericActorProperty< const osg::Vec2 &, osg::Vec2 >, dtDAL::GenericActorProperty< const osg::Vec3 &, osg::Vec3 >, dtDAL::GenericActorProperty< int, int >, dtDAL::GenericActorProperty< const std::string &, std::string >, dtDAL::GenericActorProperty< const osg::Vec3f &, osg::Vec3f >, dtDAL::GenericActorProperty< dtDAL::GameEvent *, dtDAL::GameEvent * >, dtDAL::GenericActorProperty< const osg::Vec2f &, osg::Vec2f >, dtDAL::GenericActorProperty< double, double >, dtDAL::GenericActorProperty< const osg::Vec4f &, osg::Vec4f >, dtDAL::GenericActorProperty< const osg::Vec3d &, osg::Vec3d >, dtDAL::GenericActorProperty< const osg::Vec2d &, osg::Vec2d >, dtDAL::GenericActorProperty< T &, T & >, and dtDAL::GenericActorProperty< bool, bool >.
| const std::string& dtDAL::ActorProperty::GetLabel | ( | ) | const [inline] |
Gets the label assigned to this property.
| const std::string& dtDAL::ActorProperty::GetDescription | ( | ) | const [inline] |
Gets the description assigned to this property.
| bool dtDAL::ActorProperty::IsReadOnly | ( | ) | const [inline] |
Gets the read only state of a property.
| void dtDAL::ActorProperty::SetReadOnly | ( | bool | readOnly | ) | [inline] |
Sets the read only state of a property.
| void dtDAL::ActorProperty::SetGroupName | ( | const std::string & | name | ) | [inline] |
Sets the value of the property based on a string.
| value | the value to set. |
a string version of the data. This value can be used when calling SetStringValue.
| name | The desired group name |
| const std::string& dtDAL::ActorProperty::GetGroupName | ( | ) | const [inline] |
Get the group name.
| void dtDAL::ActorProperty::SetNumberPrecision | ( | unsigned int | precision | ) | [inline] |
Sets the precision of floating point number as they are converted to and from string values.
| precision | The amount of numeric percision. |
| unsigned int dtDAL::ActorProperty::GetNumberPrecision | ( | ) | const [inline] |
Gets the current floating point precision value on this parameter.
std::string dtDAL::ActorProperty::mGroupName [protected] |
The name of the property's group.