Inheritance diagram for osg::ShapeDrawable:
Public Member Functions | |
ShapeDrawable () | |
ShapeDrawable (Shape *shape, TessellationHints *hints=0) | |
ShapeDrawable (const ShapeDrawable &pg, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const |
virtual Object * | clone (const CopyOp ©op) const |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
void | setColor (const Vec4 &color) |
const Vec4 & | getColor () const |
void | setTessellationHints (TessellationHints *hints) |
TessellationHints * | getTessellationHints () |
const TessellationHints * | getTessellationHints () const |
virtual void | drawImplementation (State &state) const |
virtual bool | supports (const AttributeFunctor &) const |
virtual bool | supports (const ConstAttributeFunctor &) const |
virtual void | accept (ConstAttributeFunctor &af) const |
virtual bool | supports (const PrimitiveFunctor &) const |
virtual void | accept (PrimitiveFunctor &pf) const |
virtual BoundingBox | computeBound () const |
Protected Member Functions | |
ShapeDrawable & | operator= (const ShapeDrawable &) |
virtual | ~ShapeDrawable () |
Protected Attributes | |
Vec4 | _color |
ref_ptr< TessellationHints > | _tessellationHints |
Shape
s as Drawable
s, so that they can be rendered with reduced effort. The implementation of ShapeDrawable
is not geared to efficiency; it's better to think of it as a convenience to render Shape
s easily (perhaps for test or debugging purposes) than as the right way to render basic shapes in some efficiency-critical section of code. ShapeDrawable
currently doesn't render InfinitePlane
s.
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. Reimplemented from osg::Drawable. |
|
Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. |
|
return the name of the object's class type. Must be defined by derived classes. Reimplemented from osg::Drawable. |
|
Clone an object, with Object* return type. Must be defined by derived classes. Implements osg::Object. |
|
Clone the type of an object, with Object* return type. Must be defined by derived classes. Implements osg::Object. |
|
Compute the bounding box around Drawables's geometry. Reimplemented from osg::Drawable. |
|
Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects. Implements osg::Drawable. |
|
Get the color of the shape. |
|
|
|
|
|
Reimplemented from osg::Drawable. |
|
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. Reimplemented from osg::Drawable. |
|
|
|
Set the color of the shape. |
|
|
|
Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . Reimplemented from osg::Drawable. |
|
Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). |
|
Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). |
|
|
|
|