OpenSceneGraph 2.8.3

osgSim::ShapeAttribute Class Reference

List of all members.

Public Types

enum  Type { UNKNOW, INTEGER, DOUBLE, STRING }

Public Member Functions

 ShapeAttribute ()
 ShapeAttribute (const char *name)
 ShapeAttribute (const char *name, int value)
 ShapeAttribute (const char *name, double value)
 ShapeAttribute (const char *name, const char *value)
 Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings.
 ShapeAttribute (const ShapeAttribute &sa)
 ~ShapeAttribute ()
ShapeAttributeoperator= (const ShapeAttribute &sa)
const std::string & getName () const
void setName (const std::string &name)
const Type getType () const
int getInt () const
double getDouble () const
const char * getString () const
void setValue (int value)
void setValue (double value)
void setValue (const char *value)
int compare (const osgSim::ShapeAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Member Enumeration Documentation

Enumerator:
UNKNOW 
INTEGER 
DOUBLE 
STRING 

Constructor & Destructor Documentation

osgSim::ShapeAttribute::ShapeAttribute ( )
osgSim::ShapeAttribute::ShapeAttribute ( const char *  name)
osgSim::ShapeAttribute::ShapeAttribute ( const char *  name,
int  value 
)
osgSim::ShapeAttribute::ShapeAttribute ( const char *  name,
double  value 
)
osgSim::ShapeAttribute::ShapeAttribute ( const char *  name,
const char *  value 
)

Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings.

osgSim::ShapeAttribute::ShapeAttribute ( const ShapeAttribute sa)
osgSim::ShapeAttribute::~ShapeAttribute ( )

Member Function Documentation

int osgSim::ShapeAttribute::compare ( const osgSim::ShapeAttribute sa) const

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

double osgSim::ShapeAttribute::getDouble ( ) const [inline]
int osgSim::ShapeAttribute::getInt ( ) const [inline]
const std::string& osgSim::ShapeAttribute::getName ( ) const [inline]
const char* osgSim::ShapeAttribute::getString ( ) const [inline]
const Type osgSim::ShapeAttribute::getType ( ) const [inline]
ShapeAttribute& osgSim::ShapeAttribute::operator= ( const ShapeAttribute sa)
void osgSim::ShapeAttribute::setName ( const std::string &  name) [inline]
void osgSim::ShapeAttribute::setValue ( const char *  value)
void osgSim::ShapeAttribute::setValue ( double  value) [inline]
void osgSim::ShapeAttribute::setValue ( int  value) [inline]

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:29 for the OpenSceneGraph by doxygen 1.7.3.