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)
Volume * getVolume ()
const Volume * getVolume () const
void setTileID (const TileID &tileID)
const TileID & getTileID () const
void setLocator (Locator *locator)
Locator * getLocator ()
const Locator * getLocator () const
void setLayer (Layer *layer)
Layer * getLayer ()
const Layer * getLayer () const
void setVolumeTechnique (VolumeTechnique *VolumeTechnique)
VolumeTechnique * getVolumeTechnique ()
const VolumeTechnique * getVolumeTechnique () 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

osgVolume::VolumeTile::VolumeTile (  ) 
osgVolume::VolumeTile::VolumeTile ( const VolumeTile &  ,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

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

Member Function Documentation

virtual osg::BoundingSphere osgVolume::VolumeTile::computeBound (  )  const [virtual]

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,

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

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

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

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.

const VolumeTechnique* osgVolume::VolumeTile::getVolumeTechnique (  )  const [inline]

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

VolumeTechnique* osgVolume::VolumeTile::getVolumeTechnique (  )  [inline]

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

void osgVolume::VolumeTile::init (  ) 

Call init on any attached TerrainTechnique.

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

Set the dirty flag on/off.

void osgVolume::VolumeTile::setLayer ( Layer *  layer  ) 
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.

void osgVolume::VolumeTile::setVolume ( Volume *  ts  ) 

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

void osgVolume::VolumeTile::setVolumeTechnique ( VolumeTechnique *  VolumeTechnique  ) 

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: