14#ifndef OSGSIM_SHAPEATTRIBUTE
15#define OSGSIM_SHAPEATTRIBUTE 1
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; }
114 osg::Object(sal, copyop),
Definition ShapeAttribute:103
ShapeAttributeList(const ShapeAttributeList &sal, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition ShapeAttribute:113
virtual ~ShapeAttributeList()
Definition ShapeAttribute:123
META_Object(osgSim, ShapeAttributeList) ShapeAttributeList()
Definition ShapeAttribute:105
virtual int compare(const osgSim::ShapeAttributeList &sal) const
Definition ShapeAttribute:26
ShapeAttribute(const char *name, const char *value)
void setValue(int value)
Set an integer attribute data.
Definition ShapeAttribute:77
int _integer
Definition ShapeAttribute:96
void setName(const std::string &name)
Set the attribute name.
Definition ShapeAttribute:62
ShapeAttribute(const char *name, double value)
int compare(const osgSim::ShapeAttribute &sa) const
Type
ShapeAttribute data type.
Definition ShapeAttribute:30
@ DOUBLE
Definition ShapeAttribute:33
@ INTEGER
Definition ShapeAttribute:32
@ UNKNOWN
Definition ShapeAttribute:31
int getInt() const
Get the attribute data as an int.
Definition ShapeAttribute:68
double _double
Definition ShapeAttribute:97
char * _string
Definition ShapeAttribute:98
Type getType() const
Get the attribute data type.
Definition ShapeAttribute:65
const char * getString() const
Get the attribute data as a string.
Definition ShapeAttribute:74
ShapeAttribute(const char *name, int value)
void setValue(double value)
Set a double attribute data.
Definition ShapeAttribute:80
const std::string & getName() const
Get the attribute name.
Definition ShapeAttribute:59
ShapeAttribute(const char *name)
void setValue(const char *value)
Set a string attribute data.
double getDouble() const
Get the attribute data as a double.
Definition ShapeAttribute:71
ShapeAttribute(const ShapeAttribute &sa)
@ SHALLOW_COPY
Definition CopyOp:47
Definition MixinVector:29
Definition BlinkSequence:27
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSGSIM_EXPORT
Definition osgSim/Export:38