dtDAL::FloatActorProperty Class Reference

This actor property represents a floating point data member. More...

#include <enginepropertytypes.h>

Inheritance diagram for dtDAL::FloatActorProperty:

dtDAL::GenericActorProperty< float, float > dtDAL::ActorProperty dtDAL::AbstractParameter

List of all members.

Public Member Functions

 FloatActorProperty (const std::string &name, const std::string &label, Functor1< float > set, Functor0Ret< float > get, const std::string &desc="", const std::string &groupName="")
virtual bool FromString (const std::string &value)
 Sets the value of the property based on a string.
virtual const std::string ToString () const
 
Returns:
a string version of the data.


Protected Member Functions

virtual ~FloatActorProperty ()


Detailed Description

This actor property represents a floating point data member.

Constructor & Destructor Documentation

dtDAL::FloatActorProperty::FloatActorProperty ( const std::string &  name,
const std::string &  label,
Functor1< float >  set,
Functor0Ret< float >  get,
const std::string &  desc = "",
const std::string &  groupName = "" 
) [inline]

virtual dtDAL::FloatActorProperty::~FloatActorProperty (  )  [inline, protected, virtual]


Member Function Documentation

bool dtDAL::FloatActorProperty::FromString ( const std::string &  value  )  [virtual]

Sets the value of the property based on a string.

The string should be a float value as a string. This will set the value to 0 if it's not valid.

Note:
Returns false it the property is read only
Parameters:
value the value to set.
Returns:
true

Implements dtDAL::AbstractParameter.

const std::string dtDAL::FloatActorProperty::ToString (  )  const [virtual]

Returns:
a string version of the data.

This value can be used when calling FromString.

See also:
FromString

Implements dtDAL::AbstractParameter.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008