dtDAL::ColorRgbaActorProperty Class Reference

This actor property represents a color data member with 4 floats. More...

#include <enginepropertytypes.h>

Inheritance diagram for dtDAL::ColorRgbaActorProperty:

dtDAL::Vec4ActorProperty dtDAL::GenericActorProperty< const osg::Vec4 &, osg::Vec4 > dtDAL::ActorProperty dtDAL::AbstractParameter

List of all members.

Public Member Functions

 ColorRgbaActorProperty (const std::string &name, const std::string &label, Functor1< const osg::Vec4 & > set, Functor0Ret< osg::Vec4 > 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 ~ColorRgbaActorProperty ()


Detailed Description

This actor property represents a color data member with 4 floats.

Constructor & Destructor Documentation

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

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


Member Function Documentation

virtual bool dtDAL::ColorRgbaActorProperty::FromString ( const std::string &  value  )  [inline, virtual]

Sets the value of the property based on a string.

The string should be four floating point values as a strings separated by spaces. This will return false if the values can't be set.

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

Reimplemented from dtDAL::Vec4ActorProperty.

virtual const std::string dtDAL::ColorRgbaActorProperty::ToString (  )  const [inline, virtual]

Returns:
a string version of the data.

This value can be used when calling FromString.

See also:
FromString

Reimplemented from dtDAL::Vec4ActorProperty.


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