14#ifndef OSG_SHAPEDRAWABLE
15#define OSG_SHAPEDRAWABLE 1
47 virtual const char*
className()
const {
return "ShapeDrawable"; }
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec4f Vec4
Definition Vec4:21
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
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
T * get() const
Definition ref_ptr:117
Base class for all shape types.
Definition Shape:49
Describe several hints that can be passed to a Tessellator (like the one used by ShapeDrawable) as a ...
Definition Shape:658
TessellationHints * getTessellationHints()
Definition ShapeDrawable:59
virtual bool isSameKindAs(const Object *obj) const
return true if this and obj are of the same kind of object.
Definition ShapeDrawable:45
void setTessellationHints(TessellationHints *hints)
ref_ptr< TessellationHints > _tessellationHints
Definition ShapeDrawable:73
void build()
method to invoke to rebuild the geometry that renders the shape.
virtual Object * cloneType() const
clone an object of the same type as the node.
Definition ShapeDrawable:43
const Vec4 & getColor() const
Get the color of the shape.
Definition ShapeDrawable:55
virtual Object * clone(const CopyOp ©op) const
return a clone of a node, with Object* return type.
Definition ShapeDrawable:44
ShapeDrawable(Shape *shape, TessellationHints *hints=0)
void setColor(const Vec4 &color)
Set the color of the shape.
ShapeDrawable(const ShapeDrawable &pg, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Vec4 _color
Definition ShapeDrawable:71
const TessellationHints * getTessellationHints() const
Definition ShapeDrawable:60
virtual const char * className() const
return the name of the node's class type.
Definition ShapeDrawable:47
ShapeDrawable(const ref_ptr< T > &shape, TessellationHints *hints=0)
Definition ShapeDrawable:37
virtual const char * libraryName() const
return the name of the node's library.
Definition ShapeDrawable:46
virtual void setShape(Shape *shape)
Set the Shape of the Drawable.
#define NULL
Definition Export:55
#define OSG_EXPORT
Definition Export:39