osgTerrain::TerrainGeometry Class Reference

Inheritance diagram for osgTerrain::TerrainGeometry:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TerrainGeometry ()
 TerrainGeometry (const TerrainGeometry &geometry, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ObjectcloneType () const
 Clone the type of an object, with Object* return type.
virtual osg::Objectclone (const osg::CopyOp &copyop) const
 Clone an object, with Object* return type.
virtual bool isSameKindAs (const osg::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 setVertices (osg::Vec3Array *vertices)
osg::Vec3ArraygetVertices ()
const osg::Vec3ArraygetVertices () const
void setNormals (osg::Vec3Array *normals)
osg::Vec3ArraygetNormals ()
const osg::Vec3ArraygetNormals () const
void setColors (osg::Vec4Array *colors)
osg::Vec4ArraygetColors ()
const osg::Vec4ArraygetColors () const
void setTexCoords (unsigned int unit, osg::Array *array)
osg::ArraygetTexCoords (unsigned int unit)
const osg::ArraygetTexCoords (unsigned int unit) const
void addPrimitiveSet (osg::PrimitiveSet *primitiveSet)
osg::PrimitiveSetgetPrimtitiveSet (unsigned int i)
const osg::PrimitiveSetgetPrimtitiveSet (unsigned int i) const
unsigned int getNumPrimitiveSets () const
virtual osg::BoundingBox computeBound () const
 Compute the bounding box around Drawables's geometry.
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 Draw Geometry directly ignoring an OpenGL display list which could be attached.

Protected Types

typedef osg::Geometry::PrimitiveSetList PrimitiveSetList
typedef std::pair< osg::ref_ptr<
osg::Array >, GLvoid * > 
ArrayData
typedef std::pair< osg::ref_ptr<
osg::FloatArray >, GLvoid * > 
FloatArrayData
typedef std::pair< osg::ref_ptr<
osg::Vec2Array >, GLvoid * > 
Vec2ArrayData
typedef std::pair< osg::ref_ptr<
osg::Vec3Array >, GLvoid * > 
Vec3ArrayData
typedef std::pair< osg::ref_ptr<
osg::Vec4Array >, GLvoid * > 
Vec4ArrayData
typedef std::vector< ArrayDataTexCoordsList

Protected Attributes

Vec3ArrayData _vertices
Vec3ArrayData _normals
Vec4ArrayData _colors
TexCoordsList _texcoords
PrimitiveSetList _primitiveSets

Member Typedef Documentation

typedef osg::Geometry::PrimitiveSetList osgTerrain::TerrainGeometry::PrimitiveSetList [protected]

typedef std::pair< osg::ref_ptr<osg::Array>, GLvoid*> osgTerrain::TerrainGeometry::ArrayData [protected]

typedef std::pair< osg::ref_ptr<osg::FloatArray>, GLvoid*> osgTerrain::TerrainGeometry::FloatArrayData [protected]

typedef std::pair< osg::ref_ptr<osg::Vec2Array>, GLvoid*> osgTerrain::TerrainGeometry::Vec2ArrayData [protected]

typedef std::pair< osg::ref_ptr<osg::Vec3Array>, GLvoid*> osgTerrain::TerrainGeometry::Vec3ArrayData [protected]

typedef std::pair< osg::ref_ptr<osg::Vec4Array>, GLvoid*> osgTerrain::TerrainGeometry::Vec4ArrayData [protected]

typedef std::vector< ArrayData > osgTerrain::TerrainGeometry::TexCoordsList [protected]


Constructor & Destructor Documentation

osgTerrain::TerrainGeometry::TerrainGeometry (  ) 

osgTerrain::TerrainGeometry::TerrainGeometry ( const TerrainGeometry geometry,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

virtual osg::Object* osgTerrain::TerrainGeometry::cloneType (  )  const [inline, virtual]

Clone the type of an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

virtual osg::Object* osgTerrain::TerrainGeometry::clone ( const osg::CopyOp  )  const [inline, virtual]

Clone an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

virtual bool osgTerrain::TerrainGeometry::isSameKindAs ( const osg::Object obj  )  const [inline, virtual]

Reimplemented from osg::Drawable.

virtual const char* osgTerrain::TerrainGeometry::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.

virtual const char* osgTerrain::TerrainGeometry::className (  )  const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osg::Drawable.

void osgTerrain::TerrainGeometry::setVertices ( osg::Vec3Array vertices  )  [inline]

osg::Vec3Array* osgTerrain::TerrainGeometry::getVertices (  )  [inline]

const osg::Vec3Array* osgTerrain::TerrainGeometry::getVertices (  )  const [inline]

void osgTerrain::TerrainGeometry::setNormals ( osg::Vec3Array normals  )  [inline]

osg::Vec3Array* osgTerrain::TerrainGeometry::getNormals (  )  [inline]

const osg::Vec3Array* osgTerrain::TerrainGeometry::getNormals (  )  const [inline]

void osgTerrain::TerrainGeometry::setColors ( osg::Vec4Array colors  )  [inline]

osg::Vec4Array* osgTerrain::TerrainGeometry::getColors (  )  [inline]

const osg::Vec4Array* osgTerrain::TerrainGeometry::getColors (  )  const [inline]

void osgTerrain::TerrainGeometry::setTexCoords ( unsigned int  unit,
osg::Array array 
) [inline]

osg::Array* osgTerrain::TerrainGeometry::getTexCoords ( unsigned int  unit  )  [inline]

const osg::Array* osgTerrain::TerrainGeometry::getTexCoords ( unsigned int  unit  )  const [inline]

void osgTerrain::TerrainGeometry::addPrimitiveSet ( osg::PrimitiveSet primitiveSet  )  [inline]

osg::PrimitiveSet* osgTerrain::TerrainGeometry::getPrimtitiveSet ( unsigned int  i  )  [inline]

const osg::PrimitiveSet* osgTerrain::TerrainGeometry::getPrimtitiveSet ( unsigned int  i  )  const [inline]

unsigned int osgTerrain::TerrainGeometry::getNumPrimitiveSets (  )  const [inline]

virtual osg::BoundingBox osgTerrain::TerrainGeometry::computeBound (  )  const [virtual]

Compute the bounding box around Drawables's geometry.

Reimplemented from osg::Drawable.

virtual void osgTerrain::TerrainGeometry::drawImplementation ( osg::RenderInfo renderInfo  )  const [virtual]

Draw Geometry 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 Geometry for user-drawn objects.

Implements osg::Drawable.


Member Data Documentation

Vec3ArrayData osgTerrain::TerrainGeometry::_vertices [protected]

Vec3ArrayData osgTerrain::TerrainGeometry::_normals [protected]

Vec4ArrayData osgTerrain::TerrainGeometry::_colors [protected]

TexCoordsList osgTerrain::TerrainGeometry::_texcoords [protected]

PrimitiveSetList osgTerrain::TerrainGeometry::_primitiveSets [protected]


The documentation for this class was generated from the following file:
Generated at Fri Nov 2 23:36:17 2007 for the OpenSceneGraph by doxygen 1.5.2.