openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
osgVolume::VolumeTile Class Reference
Inheritance diagram for osgVolume::VolumeTile:
osg::Group osg::Node osg::Object osg::Referenced

List of all members.

Public Member Functions

 VolumeTile ()
 VolumeTile (const VolumeTile &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgVolume, VolumeTile)
virtual void traverse (osg::NodeVisitor &nv)
void init ()
void setVolume (Volume *ts)
VolumegetVolume ()
const VolumegetVolume () const
void setTileID (const TileID &tileID)
const TileIDgetTileID () const
void setLocator (Locator *locator)
LocatorgetLocator ()
const LocatorgetLocator () const
void setLayer (Layer *layer)
LayergetLayer ()
const LayergetLayer () const
void setVolumeTechnique (VolumeTechnique *VolumeTechnique)
VolumeTechniquegetVolumeTechnique ()
const VolumeTechniquegetVolumeTechnique () const
void setDirty (bool dirty)
bool getDirty () const
virtual osg::BoundingSphere computeBound () const

Protected Member Functions

virtual ~VolumeTile ()

Protected Attributes

Volume_volume
bool _dirty
bool _hasBeenTraversal
TileID _tileID
osg::ref_ptr< VolumeTechnique_volumeTechnique
osg::ref_ptr< Locator_locator
osg::ref_ptr< Layer_layer

Friends

class Volume

Detailed Description

VolumeTile provides a framework for loosely coupling 3d image data with rendering algorithms. This allows TerrainTechnique's to be plugged in at runtime.


Constructor & Destructor Documentation

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgVolume::VolumeTile::~VolumeTile ( ) [protected, virtual]

Member Function Documentation

Compute the bounding sphere around Node's geometry or children. This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().

Reimplemented from osg::Group.

bool osgVolume::VolumeTile::getDirty ( ) const [inline]

return true if the tile is dirty and needs to be updated,

const Layer* osgVolume::VolumeTile::getLayer ( ) const [inline]
const Locator* osgVolume::VolumeTile::getLocator ( ) const [inline]
const TileID& osgVolume::VolumeTile::getTileID ( ) const [inline]

Get the TileID (layer, x,y,z) of the VolumeTile.

Get the Volume that this Volume tile is a member of.

const Volume* osgVolume::VolumeTile::getVolume ( ) const [inline]

Get the const Volume that this Volume tile is a member of.

Get the VolumeTechnique that will be used to render this tile.

Get the const VolumeTechnique that will be used to render this tile.

Call init on any attached TerrainTechnique.

void osgVolume::VolumeTile::setDirty ( bool  dirty)

Set the dirty flag on/off.

void osgVolume::VolumeTile::setLocator ( Locator locator) [inline]
void osgVolume::VolumeTile::setTileID ( const TileID tileID)

Set the TileID (layer, x,y,z) of the VolumeTile. The TileID is used so it can be located by its neighbours via the enclosing Volume node that manages a map of TileID to VolumeTiles.

Set the Volume that this Volume tile is a member of.

Set the VolumeTechnique that will be used to render this tile.

virtual void osgVolume::VolumeTile::traverse ( osg::NodeVisitor ) [virtual]

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Group.


Friends And Related Function Documentation

friend class Volume [friend]

Member Data Documentation


The documentation for this class was generated from the following file: