dtDAL::Vec2ActorProperty Class Reference

This actor property represents a vector data member with 2 values. More...

#include <enginepropertytypes.h>

Inheritance diagram for dtDAL::Vec2ActorProperty:

dtDAL::GenericActorProperty< const osg::Vec2 &, osg::Vec2 > dtDAL::ActorProperty dtDAL::AbstractParameter

List of all members.

Public Member Functions

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


Detailed Description

This actor property represents a vector data member with 2 values.

Constructor & Destructor Documentation

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

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


Member Function Documentation

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

Sets the value of the property based on a string.

The string should be two 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

Implements dtDAL::AbstractParameter.

const std::string dtDAL::Vec2ActorProperty::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