OpenSceneGraph
3.4.0
|
Public Types | |
typedef std::vector< unsigned int > | VertexToHeightFieldMapping |
Public Member Functions | |
SharedGeometry () | |
SharedGeometry (const SharedGeometry &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgTerrain, SharedGeometry) | |
void | setVertexArray (osg::Array *array) |
osg::Array * | getVertexArray () |
const osg::Array * | getVertexArray () const |
void | setNormalArray (osg::Array *array) |
osg::Array * | getNormalArray () |
const osg::Array * | getNormalArray () const |
void | setColorArray (osg::Array *array) |
osg::Array * | getColorArray () |
const osg::Array * | getColorArray () const |
void | setTexCoordArray (osg::Array *array) |
osg::Array * | getTexCoordArray () |
const osg::Array * | getTexCoordArray () const |
void | setDrawElements (osg::DrawElements *array) |
osg::DrawElements * | getDrawElements () |
const osg::DrawElements * | getDrawElements () const |
void | setVertexToHeightFieldMapping (const VertexToHeightFieldMapping &vthfm) |
VertexToHeightFieldMapping & | getVertexToHeightFieldMapping () |
const VertexToHeightFieldMapping & | getVertexToHeightFieldMapping () const |
void | compileGLObjects (osg::RenderInfo &renderInfo) const |
Immediately compile this Drawable into an OpenGL Display List/VertexBufferObjects. | |
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. | |
void | resizeGLObjectBuffers (unsigned int maxSize) |
Resize any per context GLObject buffers to specified size. | |
void | releaseGLObjects (osg::State *state) 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 | ~SharedGeometry () |
Protected Attributes | |
osg::ref_ptr< osg::Array > | _vertexArray |
osg::ref_ptr< osg::Array > | _normalArray |
osg::ref_ptr< osg::Array > | _colorArray |
osg::ref_ptr< osg::Array > | _texcoordArray |
osg::ref_ptr< osg::DrawElements > | _drawElements |
VertexToHeightFieldMapping | _vertexToHeightFieldMapping |
typedef std::vector<unsigned int> osgTerrain::SharedGeometry::VertexToHeightFieldMapping |
osgTerrain::SharedGeometry::SharedGeometry | ( | const SharedGeometry & | , |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osgTerrain::SharedGeometry::~SharedGeometry | ( | ) | [protected, virtual] |
virtual void osgTerrain::SharedGeometry::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::SharedGeometry::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::SharedGeometry::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::SharedGeometry::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.
void osgTerrain::SharedGeometry::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.
void osgTerrain::SharedGeometry::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.
osg::Array* osgTerrain::SharedGeometry::getColorArray | ( | ) | [inline] |
const osg::Array* osgTerrain::SharedGeometry::getColorArray | ( | ) | const [inline] |
osg::DrawElements* osgTerrain::SharedGeometry::getDrawElements | ( | ) | [inline] |
const osg::DrawElements* osgTerrain::SharedGeometry::getDrawElements | ( | ) | const [inline] |
osg::Array* osgTerrain::SharedGeometry::getNormalArray | ( | ) | [inline] |
const osg::Array* osgTerrain::SharedGeometry::getNormalArray | ( | ) | const [inline] |
osg::Array* osgTerrain::SharedGeometry::getTexCoordArray | ( | ) | [inline] |
const osg::Array* osgTerrain::SharedGeometry::getTexCoordArray | ( | ) | const [inline] |
osg::Array* osgTerrain::SharedGeometry::getVertexArray | ( | ) | [inline] |
const osg::Array* osgTerrain::SharedGeometry::getVertexArray | ( | ) | const [inline] |
const VertexToHeightFieldMapping& osgTerrain::SharedGeometry::getVertexToHeightFieldMapping | ( | ) | const [inline] |
osgTerrain::SharedGeometry::META_Node | ( | osgTerrain | , |
SharedGeometry | |||
) |
void osgTerrain::SharedGeometry::releaseGLObjects | ( | osg::State * | state | ) | 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.
void osgTerrain::SharedGeometry::resizeGLObjectBuffers | ( | unsigned int | maxSize | ) | [virtual] |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Drawable.
void osgTerrain::SharedGeometry::setColorArray | ( | osg::Array * | array | ) | [inline] |
void osgTerrain::SharedGeometry::setDrawElements | ( | osg::DrawElements * | array | ) | [inline] |
void osgTerrain::SharedGeometry::setNormalArray | ( | osg::Array * | array | ) | [inline] |
void osgTerrain::SharedGeometry::setTexCoordArray | ( | osg::Array * | array | ) | [inline] |
void osgTerrain::SharedGeometry::setVertexArray | ( | osg::Array * | array | ) | [inline] |
void osgTerrain::SharedGeometry::setVertexToHeightFieldMapping | ( | const VertexToHeightFieldMapping & | vthfm | ) | [inline] |
virtual bool osgTerrain::SharedGeometry::supports | ( | const osg::Drawable::AttributeFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(AttributeFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::SharedGeometry::supports | ( | const osg::Drawable::ConstAttributeFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(ConstAttributeFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::SharedGeometry::supports | ( | const osg::PrimitiveFunctor & | ) | const [inline, virtual] |
Return true if the Drawable subclass supports accept(PrimitiveFunctor&).
Reimplemented from osg::Drawable.
virtual bool osgTerrain::SharedGeometry::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:14:30 for the OpenSceneGraph by doxygen 1.7.6.1. |