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 () | |
ShapeAttribute & | operator= (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. |
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 | ( | ) |
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] |
![]() | Generated at Mon Feb 23 19:51:43 2009 for the OpenSceneGraph by doxygen 1.5.8. |