class SG_EXPORT osg::ShapeDrawable


Inheritance:


Public Methods

[more] ShapeDrawable()
[more] ShapeDrawable(Shape* shape, TessellationHints* hints=0)
[more] ShapeDrawable(const ShapeDrawable& pg, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more]virtual Object* cloneType() const
[more]virtual Object* clone(const CopyOp& copyop) const
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]void setColor(const Vec4& color)
set the color of the shape
[more]const Vec4& getColor() const
get the color of the shape
[more]void setTessellationHints(TessellationHints* hints)
[more]TessellationHints* getTessellationHints()
[more]const TessellationHints* getTessellationHints() const
[more]virtual void drawImplementation(State& state) const
draw ShapeDrawable directly ignoring an OpenGL display list which could be attached.
[more]virtual bool supports(AttributeFunctor&) const
return false, osg::ShapeDrawable does not support accept(AttributeFunctor&)
[more]virtual bool supports(ConstAttributeFunctor&) const
return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&)
[more]virtual void accept(ConstAttributeFunctor& af) const
accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has
[more]virtual bool supports(PrimitiveFunctor&) const
return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&)
[more]virtual void accept(PrimitiveFunctor& pf) const
accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has

Protected Fields

[more]Vec4 _color
[more]ref_ptr<TessellationHints> _tessellationHints

Protected Methods

[more]ShapeDrawable& operator = (const ShapeDrawable&)
[more]virtual ~ShapeDrawable()
[more]virtual bool computeBound() const


Inherited from Drawable:

Public Classes

ostruct UpdateCallback: public virtual osg::Object
ostruct CullCallback: public virtual osg::Object
ostruct DrawCallback: public virtual osg::Object
oenum AttributeTypes
class AttributeFunctor
class ConstAttributeFunctor
class PrimitiveFunctor
class PrimitiveIndexFunctor
class SG_EXPORT Extensions: public osg::Referenced
Extensions class which encapsulates the querring of extensions and associated function pointers, and provide convinience wrappers to check for the extensions or use the associated functions

Public Methods

ovirtual Geometry* asGeometry()
ovirtual const Geometry* asGeometry() const
oinline const ParentList& getParents() const
oinline ParentList getParents()
oinline Node* getParent(unsigned int i)
oinline const Node* getParent(unsigned int i) const
oinline unsigned int getNumParents() const
oinline void setStateSet(StateSet* state)
oinline StateSet* getStateSet()
oinline const StateSet* getStateSet() const
oStateSet* getOrCreateStateSet()
ovoid dirtyBound()
oinline const BoundingBox& getBound() const
oinline void setShape(Shape* shape)
oinline Shape* getShape()
oinline const Shape* getShape() const
ovoid setSupportsDisplayList(bool flag)
oinline bool getSupportsDisplayList() const
ovoid setUseDisplayList(bool flag)
oinline bool getUseDisplayList() const
ovoid setUseVertexBufferObjects(bool flag)
oinline bool getUseVertexBufferObjects() const
ovoid dirtyDisplayList()
ovirtual void compileGLObjects(State& state) const
ovirtual void releaseGLObjects(State* state=0) const
ovoid setUpdateCallback(UpdateCallback* ac)
oUpdateCallback* getUpdateCallback()
oconst UpdateCallback* getUpdateCallback() const
ovoid setCullCallback(CullCallback* cc)
oCullCallback* getCullCallback()
oconst CullCallback* getCullCallback() const
ovoid setDrawCallback(DrawCallback* dc)
oDrawCallback* getDrawCallback()
oconst DrawCallback* getDrawCallback() const
ostatic void deleteDisplayList(unsigned int contextID, GLuint globj)
ostatic void flushDeletedDisplayLists(unsigned int contextID, double currentTime, double& availableTime)
ostatic void deleteVertexBufferObject(unsigned int contextID, GLuint globj)
ostatic void flushDeletedVertexBufferObjects(unsigned int contextID, double currentTime, double& availableTime)
ostatic Extensions* getExtensions(unsigned int contextID, bool createIfNotInitalized)
ostatic void setExtensions(unsigned int contextID, Extensions* extensions)
oinline void draw(State& state) const

Public

otypedef std::vector<Node*> ParentList
otypedef unsigned int AttributeType

Protected Fields

oParentList _parents
oref_ptr<StateSet> _stateset
omutable BoundingBox _bbox
omutable bool _bbox_computed
oref_ptr<Shape> _shape
obool _supportsDisplayList
obool _useDisplayList
obool _supportsVertexBufferObjects
obool _useVertexBufferObjects
omutable GLObjectList _globjList
omutable GLObjectList _vboList
oref_ptr<UpdateCallback> _updateCallback
oref_ptr<CullCallback> _cullCallback
oref_ptr<DrawCallback> _drawCallback

Protected Methods

ovoid setBound(const BoundingBox& bb) const
ovoid addParent(osg::Node* node)
ovoid removeParent(osg::Node* node)

Protected

otypedef osg::buffered_value<GLuint> GLObjectList


Inherited from Object:

Public Classes

oenum DataVariance

Public Methods

oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable OpenThreads::Mutex _refMutex
omutable int _refCount


Documentation

o ShapeDrawable()

o ShapeDrawable(Shape* shape, TessellationHints* hints=0)

o ShapeDrawable(const ShapeDrawable& pg, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

ovirtual Object* cloneType() const

ovirtual Object* clone(const CopyOp& copyop) const

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

ovoid setColor(const Vec4& color)
set the color of the shape

oconst Vec4& getColor() const
get the color of the shape

ovoid setTessellationHints(TessellationHints* hints)

oTessellationHints* getTessellationHints()

oconst TessellationHints* getTessellationHints() const

ovirtual void drawImplementation(State& state) const
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.

ovirtual bool supports(AttributeFunctor&) const
return false, osg::ShapeDrawable does not support accept(AttributeFunctor&)

ovirtual bool supports(ConstAttributeFunctor&) const
return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&)

ovirtual void accept(ConstAttributeFunctor& af) const
accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has

ovirtual bool supports(PrimitiveFunctor&) const
return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&)

ovirtual void accept(PrimitiveFunctor& pf) const
accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has

oShapeDrawable& operator = (const ShapeDrawable&)

ovirtual ~ShapeDrawable()

ovirtual bool computeBound() const

oVec4 _color

oref_ptr<TessellationHints> _tessellationHints


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.