Public Member Functions | |
ShapeDrawable () | |
ShapeDrawable (Shape *shape, TessellationHints *hints=0) | |
ShapeDrawable (const ShapeDrawable &pg, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
virtual Object * | cloneType () const |
Clone the type of an object, with Object* return type. | |
virtual Object * | clone (const CopyOp ©op) const |
Clone an object, with Object* return type. | |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
return the name of the object's library. | |
virtual const char * | className () const |
return the name of the object's class type. | |
void | setColor (const Vec4 &color) |
set the color of the shape. | |
const Vec4 & | getColor () const |
get the color of the shape. | |
void | setTessellationHints (TessellationHints *hints) |
TessellationHints * | getTessellationHints () |
const TessellationHints * | getTessellationHints () const |
virtual void | drawImplementation (State &state) const |
draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. | |
virtual bool | supports (AttributeFunctor &) const |
return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). | |
virtual bool | supports (ConstAttributeFunctor &) const |
return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). | |
virtual void | accept (ConstAttributeFunctor &af) const |
accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. | |
virtual bool | supports (PrimitiveFunctor &) const |
return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . | |
virtual void | accept (PrimitiveFunctor &pf) const |
accept a PrimtiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. | |
Protected Member Functions | |
ShapeDrawable & | operator= (const ShapeDrawable &) |
virtual | ~ShapeDrawable () |
virtual bool | computeBound () const |
compute the bounding box of the drawable. | |
Protected Attributes | |
Vec4 | _color |
ref_ptr< TessellationHints > | _tessellationHints |
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy.
|
|
|
|
accept a PrimtiveFunctor 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.
Reimplemented from osg::Drawable. |
|
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 of the drawable. Method must be implemented by subclasses. 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&).
Reimplemented from osg::Drawable. |
|
return false, osg::ShapeDrawable does not support accept(AttributeFunctor&).
Reimplemented from osg::Drawable. |
|
|
|
|