Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::ShapeDrawable Class Reference

Inheritance diagram for osg::ShapeDrawable:

osg::Drawable osg::Object osg::Referenced List of all members.

Public Member Functions

 ShapeDrawable ()
 ShapeDrawable (Shape *shape, TessellationHints *hints=0)
 ShapeDrawable (const ShapeDrawable &pg, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual ObjectcloneType () const
virtual Objectclone (const CopyOp &copyop) const
virtual bool isSameKindAs (const Object *obj) const
virtual const char * libraryName () const
virtual const char * className () const
void setColor (const Vec4 &color)
const Vec4getColor () const
void setTessellationHints (TessellationHints *hints)
TessellationHintsgetTessellationHints ()
const TessellationHintsgetTessellationHints () const
virtual void drawImplementation (State &state) const
virtual bool supports (AttributeFunctor &) const
virtual bool supports (ConstAttributeFunctor &) const
virtual void accept (ConstAttributeFunctor &af) const
virtual bool supports (PrimitiveFunctor &) const
virtual void accept (PrimitiveFunctor &pf) const

Protected Member Functions

ShapeDrawableoperator= (const ShapeDrawable &)
virtual ~ShapeDrawable ()
virtual bool computeBound () const

Protected Attributes

Vec4 _color
ref_ptr< TessellationHints_tessellationHints

Constructor & Destructor Documentation

osg::ShapeDrawable::ShapeDrawable  ) 
 

osg::ShapeDrawable::ShapeDrawable Shape shape,
TessellationHints hints = 0
 

osg::ShapeDrawable::ShapeDrawable const ShapeDrawable pg,
const CopyOp copyop = CopyOp::SHALLOW_COPY
 

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::ShapeDrawable::~ShapeDrawable  )  [protected, virtual]
 


Member Function Documentation

virtual void osg::ShapeDrawable::accept PrimitiveFunctor &  pf  )  const [virtual]
 

accept a PrimtiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.

virtual void osg::ShapeDrawable::accept ConstAttributeFunctor &  af  )  const [virtual]
 

accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has.

virtual const char* osg::ShapeDrawable::className  )  const [inline, virtual]
 

return the name of the object's class type. Must be defined by derived classes.

Reimplemented from osg::Drawable.

virtual Object* osg::ShapeDrawable::clone const CopyOp copyop  )  const [inline, virtual]
 

Clone an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

virtual Object* osg::ShapeDrawable::cloneType  )  const [inline, virtual]
 

Clone the type of an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

virtual bool osg::ShapeDrawable::computeBound  )  const [protected, virtual]
 

compute the bounding box of the drawable. Method must be implemented by subclasses.

Reimplemented from osg::Drawable.

virtual void osg::ShapeDrawable::drawImplementation State state  )  const [virtual]
 

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.

const Vec4& osg::ShapeDrawable::getColor  )  const [inline]
 

get the color of the shape.

const TessellationHints* osg::ShapeDrawable::getTessellationHints  )  const [inline]
 

TessellationHints* osg::ShapeDrawable::getTessellationHints  )  [inline]
 

virtual bool osg::ShapeDrawable::isSameKindAs const Object obj  )  const [inline, virtual]
 

Reimplemented from osg::Drawable.

virtual const char* osg::ShapeDrawable::libraryName  )  const [inline, virtual]
 

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.

ShapeDrawable& osg::ShapeDrawable::operator= const ShapeDrawable  )  [inline, protected]
 

void osg::ShapeDrawable::setColor const Vec4 color  )  [inline]
 

set the color of the shape.

void osg::ShapeDrawable::setTessellationHints TessellationHints hints  )  [inline]
 

virtual bool osg::ShapeDrawable::supports PrimitiveFunctor &   )  const [inline, virtual]
 

return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) .

virtual bool osg::ShapeDrawable::supports ConstAttributeFunctor &   )  const [inline, virtual]
 

return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&).

virtual bool osg::ShapeDrawable::supports AttributeFunctor &   )  const [inline, virtual]
 

return false, osg::ShapeDrawable does not support accept(AttributeFunctor&).


Member Data Documentation

Vec4 osg::ShapeDrawable::_color [protected]
 

ref_ptr<TessellationHints> osg::ShapeDrawable::_tessellationHints [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 11:10:03 2005 for openscenegraph by  doxygen 1.4.4