OpenSceneGraph
3.4.0
|
Public Member Functions | |
HeightFieldDrawable () | |
HeightFieldDrawable (const HeightFieldDrawable &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgTerrain, HeightFieldDrawable) | |
void | setHeightField (osg::HeightField *hf) |
osg::HeightField * | getHeightField () |
const osg::HeightField * | getHeightField () const |
void | setGeometry (SharedGeometry *geom) |
SharedGeometry * | getGeometry () |
const SharedGeometry * | getGeometry () const |
void | setVertices (osg::Vec3Array *vertices) |
osg::Vec3Array * | getVertices () |
const osg::Vec3Array * | getVertices () const |
virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. | |
virtual void | compileGLObjects (osg::RenderInfo &renderInfo) const |
Immediately compile this Drawable into an OpenGL Display List/VertexBufferObjects. | |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
Resize any per context GLObject buffers to specified size. | |
virtual void | releaseGLObjects (osg::State *state=0) const |
If State is non-zero, this function releases OpenGL objects for the specified graphics context. | |
virtual bool | supports (const osg::Drawable::AttributeFunctor &) const |
Return true if the Drawable subclass supports accept(AttributeFunctor&). | |
virtual void | accept (osg::Drawable::AttributeFunctor &) |
accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. | |
virtual bool | supports (const osg::Drawable::ConstAttributeFunctor &) const |
Return true if the Drawable subclass supports accept(ConstAttributeFunctor&). | |
virtual void | accept (osg::Drawable::ConstAttributeFunctor &) const |
Accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. | |
virtual bool | supports (const osg::PrimitiveFunctor &) const |
Return true if the Drawable subclass supports accept(PrimitiveFunctor&). | |
virtual void | accept (osg::PrimitiveFunctor &) const |
Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. | |
virtual bool | supports (const osg::PrimitiveIndexFunctor &) const |
Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). | |
virtual void | accept (osg::PrimitiveIndexFunctor &) const |
Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. | |
Protected Member Functions | |
virtual | ~HeightFieldDrawable () |
Protected Attributes | |
osg::ref_ptr< osg::HeightField > | _heightField |
osg::ref_ptr< SharedGeometry > | _geometry |
osg::ref_ptr< osg::Vec3Array > | _vertices |
osgTerrain::HeightFieldDrawable::HeightFieldDrawable | ( | const HeightFieldDrawable & | , |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osgTerrain::HeightFieldDrawable::~HeightFieldDrawable | ( | ) | [protected, virtual] |
virtual void osgTerrain::HeightFieldDrawable::accept | ( | osg::Drawable::AttributeFunctor & | ) | [virtual] |
accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.
return true if functor handled by drawable, return false on failure of drawable to generate functor calls.
Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::accept | ( | osg::Drawable::ConstAttributeFunctor & | ) | const [virtual] |
Accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.
return true if functor handled by drawable, return false on failure of drawable to generate functor calls.
Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::accept | ( | osg::PrimitiveFunctor & | ) | const [virtual] |
Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.
return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it.
Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::accept | ( | osg::PrimitiveIndexFunctor & | ) | const [virtual] |
Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has.
return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it.
Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::compileGLObjects | ( | osg::RenderInfo & | renderInfo | ) | const [virtual] |
Immediately compile this Drawable
into an OpenGL Display List/VertexBufferObjects.
_useDisplayList
is false
or VertexBufferObjects are not used. Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::drawImplementation | ( | osg::RenderInfo & | ) | const [virtual] |
drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable.
drawImplementation(RenderInfo&) is called from the draw(RenderInfo&) method, with the draw method handling management of OpenGL display lists, and drawImplementation(RenderInfo&) handling the actual drawing itself.
renderInfo | The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. |
Reimplemented from osg::Drawable.
SharedGeometry* osgTerrain::HeightFieldDrawable::getGeometry | ( | ) | [inline] |
const SharedGeometry* osgTerrain::HeightFieldDrawable::getGeometry | ( | ) | const [inline] |
const osg::HeightField* osgTerrain::HeightFieldDrawable::getHeightField | ( | ) | const [inline] |
osg::Vec3Array* osgTerrain::HeightFieldDrawable::getVertices | ( | ) | [inline] |
const osg::Vec3Array* osgTerrain::HeightFieldDrawable::getVertices | ( | ) | const [inline] |
osgTerrain::HeightFieldDrawable::META_Node | ( | osgTerrain | , |
HeightFieldDrawable | |||
) |
virtual void osgTerrain::HeightFieldDrawable::releaseGLObjects | ( | osg::State * | state = 0 | ) | const [virtual] |
If State is non-zero, this function releases OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objects for all graphics contexts.
Reimplemented from osg::Drawable.
virtual void osgTerrain::HeightFieldDrawable::resizeGLObjectBuffers | ( | unsigned int | maxSize | ) | [virtual] |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Drawable.
void osgTerrain::HeightFieldDrawable::setGeometry | ( | SharedGeometry * | geom | ) | [inline] |
void osgTerrain::HeightFieldDrawable::setHeightField | ( | osg::HeightField * | hf | ) | [inline] |
void osgTerrain::HeightFieldDrawable::setVertices | ( | osg::Vec3Array * | vertices | ) | [inline] |
virtual bool osgTerrain::HeightFieldDrawable::supports | ( | const osg::Drawable::AttributeFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(AttributeFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::HeightFieldDrawable::supports | ( | const osg::Drawable::ConstAttributeFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(ConstAttributeFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::HeightFieldDrawable::supports | ( | const osg::PrimitiveFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(PrimitiveFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::HeightFieldDrawable::supports | ( | const osg::PrimitiveIndexFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&).
Reimplemented from osg::Drawable.
![]() | Generated at Tue Dec 8 2015 00:16:49 for the OpenSceneGraph by doxygen 1.7.6.1. |