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; }
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The osgSim library is a NodeKit that extends the core scene graph to support nodes and drawables that...
Definition BlinkSequence:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
MixinVector is a base class that allows inheritance to be used to easily emulate derivation from std:...
Definition MixinVector:29
MixinVector()
Definition MixinVector:45
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
Definition ShapeAttribute:26
ShapeAttribute(const char *name, const char *value)
Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clea...
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
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Type
ShapeAttribute data type.
Definition ShapeAttribute:30
@ STRING
Definition ShapeAttribute:34
@ 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)
Definition ShapeAttribute:103
ShapeAttributeList(const ShapeAttributeList &sal, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic da...
Definition ShapeAttribute:113
virtual ~ShapeAttributeList()
Definition ShapeAttribute:123
META_Object(osgSim, ShapeAttributeList) ShapeAttributeList()
Definition ShapeAttribute:105
virtual int compare(const osgSim::ShapeAttributeList &sal) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
#define OSGSIM_EXPORT
Definition Export:38