14 #ifndef OSGSIM_SHAPEATTRIBUTE
15 #define OSGSIM_SHAPEATTRIBUTE 1
18 #include <osg/MixinVector>
20 #include <osgSim/Export>
59 const std::string &
getName()
const {
return _name; }
62 void setName(
const std::string& name) { _name = name; }
68 int getInt()
const {
return _integer; }
77 void setValue(
int value) { free(); _type = INTEGER; _integer = value; }
80 void setValue(
double value) { free(); _type = DOUBLE; _double = value; }
83 void setValue(
const char * value);
114 osg::Object(sal, copyop),
128 #endif // ** SHAPEATTRIBUTE_ ** //
Type getType() const
Get the attribute data type.
virtual ~ShapeAttributeList()
void setValue(double value)
Set a double attribute data.
META_Object(osgSim, ShapeAttributeList) ShapeAttributeList()
ShapeAttributeList(const ShapeAttributeList &sal, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void setValue(int value)
Set an integer attribute data.
Type
ShapeAttribute data type.
int getInt() const
Get the attribute data as an int.
double getDouble() const
Get the attribute data as a double.
const std::string & getName() const
Get the attribute name.
const char * getString() const
Get the attribute data as a string.
void setName(const std::string &name)
Set the attribute name.