Public Member Functions | Protected Member Functions | Protected Attributes | Friends

osgVolume::VolumeTile Class Reference

VolumeTile provides a framework for loosely coupling 3d image data with rendering algorithms. More...

Inheritance diagram for osgVolume::VolumeTile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VolumeTile ()
 VolumeTile (const VolumeTile &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Node (osgVolume, VolumeTile)
virtual void traverse (osg::NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.
void init ()
 Call init on any attached TerrainTechnique.
void setVolume (Volume *ts)
 Set the Volume that this Volume tile is a member of.
Volume * getVolume ()
 Get the Volume that this Volume tile is a member of.
const Volume * getVolume () const
 Get the const Volume that this Volume tile is a member of.
void setTileID (const TileID &tileID)
 Set the TileID (layer, x,y,z) of the VolumeTile.
const TileID & getTileID () const
 Get the TileID (layer, x,y,z) of the VolumeTile.
void setLocator (Locator *locator)
Locator * getLocator ()
const Locator * getLocator () const
void setLayer (Layer *layer)
Layer * getLayer ()
const Layer * getLayer () const
void setVolumeTechnique (VolumeTechnique *VolumeTechnique)
 Set the VolumeTechnique that will be used to render this tile.
VolumeTechnique * getVolumeTechnique ()
 Get the VolumeTechnique that will be used to render this tile.
const VolumeTechnique * getVolumeTechnique () const
 Get the const VolumeTechnique that will be used to render this tile.
void setDirty (bool dirty)
 Set the dirty flag on/off.
bool getDirty () const
 return true if the tile is dirty and needs to be updated,
virtual osg::BoundingSphere computeBound () const
 Compute the bounding sphere around Node's geometry or children.

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:

osg logo
Generated at Wed Nov 3 2010 02:40:20 for the OpenSceneGraph by doxygen 1.7.1.