Volume
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGVOLUME
#define OSGVOLUME 1
#include <osg/Group>
#include <osg/CoordinateSystemNode>
#include <osgVolume/VolumeTile>
namespace osgVolume {
class OSGVOLUME_EXPORT Volume : public osg::Group
{
public:
Volume();
Volume(const Volume&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Node(osgVolume, Volume);
virtual void traverse(osg::NodeVisitor& nv);
VolumeTile* getVolumeTile(const TileID& tileID);
const VolumeTile* getVolumeTile(const TileID& tileID) const;
void setVolumeTechniquePrototype(VolumeTechnique* volumeTechnique) { _volumeTechnique = volumeTechnique; }
VolumeTechnique* getVolumeTechniquePrototype() { return _volumeTechnique.get(); }
const VolumeTechnique* getVolumeTechniquePrototype() const { return _volumeTechnique.get(); }
protected:
virtual ~Volume();
friend class VolumeTile;
void dirtyRegisteredVolumeTiles();
void registerVolumeTile(VolumeTile* tile);
void unregisterVolumeTile(VolumeTile* tile);
typedef std::map< TileID, VolumeTile* > VolumeTileMap;
typedef std::set< VolumeTile* > VolumeTileSet;
mutable OpenThreads::Mutex _mutex;
VolumeTileSet _volumeTileSet;
VolumeTileMap _volumeTileMap;
osg::ref_ptr<VolumeTechnique> _volumeTechnique;
};
}
#endif
CoordinateSystemNode
Group
VolumeTile
OpenThreads::Mutex
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
osgVolume::TileID
Definition VolumeTile:30
osgVolume::VolumeTechnique
Definition VolumeTechnique:46
osgVolume::Volume::VolumeTileMap
std::map< TileID, VolumeTile * > VolumeTileMap
Definition Volume:67
osgVolume::Volume::unregisterVolumeTile
void unregisterVolumeTile(VolumeTile *tile)
osgVolume::Volume::Volume
Volume()
osgVolume::Volume::getVolumeTile
VolumeTile * getVolumeTile(const TileID &tileID)
osgVolume::Volume::_volumeTileSet
VolumeTileSet _volumeTileSet
Definition Volume:71
osgVolume::Volume::dirtyRegisteredVolumeTiles
void dirtyRegisteredVolumeTiles()
osgVolume::Volume::~Volume
virtual ~Volume()
osgVolume::Volume::_mutex
OpenThreads::Mutex _mutex
Definition Volume:70
osgVolume::Volume::getVolumeTechniquePrototype
const VolumeTechnique * getVolumeTechniquePrototype() const
Definition Volume:53
osgVolume::Volume::_volumeTechnique
osg::ref_ptr< VolumeTechnique > _volumeTechnique
Definition Volume:74
osgVolume::Volume::traverse
virtual void traverse(osg::NodeVisitor &nv)
osgVolume::Volume::registerVolumeTile
void registerVolumeTile(VolumeTile *tile)
osgVolume::Volume::getVolumeTechniquePrototype
VolumeTechnique * getVolumeTechniquePrototype()
Definition Volume:50
osgVolume::Volume::VolumeTileSet
std::set< VolumeTile * > VolumeTileSet
Definition Volume:68
osgVolume::Volume::VolumeTile
friend class VolumeTile
Definition Volume:60
osgVolume::Volume::setVolumeTechniquePrototype
void setVolumeTechniquePrototype(VolumeTechnique *volumeTechnique)
Definition Volume:47
osgVolume::Volume::_volumeTileMap
VolumeTileMap _volumeTileMap
Definition Volume:72
osgVolume::Volume::META_Node
META_Node(osgVolume, Volume)
osgVolume::Volume::getVolumeTile
const VolumeTile * getVolumeTile(const TileID &tileID) const
osgVolume::Volume::Volume
Volume(const Volume &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group
Definition Group:29
osg::NodeVisitor
Definition NodeVisitor:82
osg::ref_ptr
Definition ref_ptr:32
osgVolume
OSGVOLUME_EXPORT
#define OSGVOLUME_EXPORT
Definition osgVolume/Export:39