Public Member Functions | |
TerrainGeometry () | |
TerrainGeometry (const TerrainGeometry &geometry, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
virtual osg::Object * | cloneType () const |
Clone the type of an object, with Object* return type. | |
virtual osg::Object * | clone (const osg::CopyOp ©op) 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::Vec3Array * | getVertices () |
const osg::Vec3Array * | getVertices () const |
void | setNormals (osg::Vec3Array *normals) |
osg::Vec3Array * | getNormals () |
const osg::Vec3Array * | getNormals () const |
void | setColors (osg::Vec4Array *colors) |
osg::Vec4Array * | getColors () |
const osg::Vec4Array * | getColors () const |
void | setTexCoords (unsigned int unit, osg::Array *array) |
osg::Array * | getTexCoords (unsigned int unit) |
const osg::Array * | getTexCoords (unsigned int unit) const |
void | addPrimitiveSet (osg::PrimitiveSet *primitiveSet) |
osg::PrimitiveSet * | getPrimtitiveSet (unsigned int i) |
const osg::PrimitiveSet * | getPrimtitiveSet (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< ArrayData > | TexCoordsList |
Protected Attributes | |
Vec3ArrayData | _vertices |
Vec3ArrayData | _normals |
Vec4ArrayData | _colors |
TexCoordsList | _texcoords |
PrimitiveSetList | _primitiveSets |
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] |
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.
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] |
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.
Vec3ArrayData osgTerrain::TerrainGeometry::_vertices [protected] |
Vec3ArrayData osgTerrain::TerrainGeometry::_normals [protected] |
Vec4ArrayData osgTerrain::TerrainGeometry::_colors [protected] |
TexCoordsList osgTerrain::TerrainGeometry::_texcoords [protected] |