15#define OSGVOLUME_tile 1
35 TileID(
int in_level,
int in_x,
int in_y,
int in_z);
37 bool operator == (
const TileID& rhs)
const
42 bool operator != (
const TileID& rhs)
const
47 bool operator < (
const TileID& rhs)
const
51 if (
x<rhs.
x)
return true;
52 if (
x>rhs.
x)
return false;
53 if (
y<rhs.
y)
return true;
54 if (
y>rhs.
y)
return false;
BoundingSphered BoundingSphere
Definition BoundingSphere:308
The osgVolume library is a NodeKit that extends the core scene graph to support volume rendering.
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
General group node which maintains a list of children.
Definition Group:29
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for representing a single layer of volume data.
Definition Layer:57
Definition VolumeTechnique:46
int level
Definition VolumeTile:60
bool valid() const
Definition VolumeTile:58
TileID(int in_level, int in_x, int in_y, int in_z)
int y
Definition VolumeTile:62
int z
Definition VolumeTile:63
int x
Definition VolumeTile:61
META_Node(osgVolume, VolumeTile)
VolumeTechnique * getVolumeTechnique()
Get the VolumeTechnique that will be used to render this tile.
Definition VolumeTile:120
void setLocator(Locator *locator)
Definition VolumeTile:105
VolumeTile(const VolumeTile &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
bool getDirty() const
return true if the tile is dirty and needs to be updated,
Definition VolumeTile:130
Locator * getLocator()
Definition VolumeTile:106
osg::ref_ptr< VolumeTechnique > _volumeTechnique
Definition VolumeTile:148
Volume * getVolume()
Get the Volume that this Volume tile is a member of.
Definition VolumeTile:90
TileID _tileID
Definition VolumeTile:146
const Locator * getLocator() const
Definition VolumeTile:107
const Volume * getVolume() const
Get the const Volume that this Volume tile is a member of.
Definition VolumeTile:93
void setTileID(const TileID &tileID)
Set the TileID (layer, x,y,z) of the VolumeTile.
void setVolume(Volume *ts)
Set the Volume that this Volume tile is a member of.
bool _dirty
Definition VolumeTile:143
Volume * _volume
Definition VolumeTile:141
bool _hasBeenTraversal
Definition VolumeTile:144
void setLayer(Layer *layer)
osg::ref_ptr< Locator > _locator
Definition VolumeTile:150
void setVolumeTechnique(VolumeTechnique *VolumeTechnique)
Set the VolumeTechnique that will be used to render this tile.
friend class Volume
Definition VolumeTile:139
osg::ref_ptr< Layer > _layer
Definition VolumeTile:152
void init()
Call init on any attached TerrainTechnique.
const Layer * getLayer() const
Definition VolumeTile:112
Layer * getLayer()
Definition VolumeTile:111
const TileID & getTileID() const
Get the TileID (layer, x,y,z) of the VolumeTile.
Definition VolumeTile:102
virtual void traverse(osg::NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
const VolumeTechnique * getVolumeTechnique() const
Get the const VolumeTechnique that will be used to render this tile.
Definition VolumeTile:123
void setDirty(bool dirty)
Set the dirty flag on/off.
virtual osg::BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
#define OSGVOLUME_EXPORT
Definition Export:39