OpenSceneGraph 3.6.5
VolumeTechnique
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGVOLUME_VOLUMETECHNIQUE
15#define OSGVOLUME_VOLUMETECHNIQUE 1
16
17#include <osg/Object>
18
19#include <osgUtil/UpdateVisitor>
20#include <osgUtil/CullVisitor>
21
22#include <osgVolume/Export>
23
24namespace osgVolume {
25
26class VolumeTile;
27
43
44
46{
47 public:
48
50
53
55
57 const VolumeTile* getVolumeTile() const { return _volumeTile; }
58
59 virtual void init();
60
61 virtual void update(osgUtil::UpdateVisitor* nv);
62
63 virtual bool isMoving(osgUtil::CullVisitor* nv);
64
65 virtual void cull(osgUtil::CullVisitor* nv);
66
68 virtual void cleanSceneGraph();
69
71 virtual void traverse(osg::NodeVisitor& nv);
72
75 virtual TileData* createTileData(osgUtil::CullVisitor* /*cv*/) { return 0; }
76
77 protected:
78
79 void setDirty(bool dirty);
80
82
84
86
87 typedef std::map<osgUtil::CullVisitor::Identifier*, osg::Matrix> ModelViewMatrixMap;
88 OpenThreads::Mutex _mutex;
90};
91
92}
93
94#endif
std::vector< Node * > NodePath
A vector of Nodes pointers which is used to describe the path from a root node to a descendant.
Definition Node:47
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
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for providing reference counted objects.
Definition Referenced:44
Basic NodeVisitor implementation for rendering a scene.
Definition CullVisitor:49
Basic UpdateVisitor implementation for animating a scene.
Definition UpdateVisitor:38
Container for render to texture objects used when doing multi-pass volume rendering techniques.
Definition VolumeTechnique:30
osg::ref_ptr< osg::RefMatrix > modelviewMatrix
Definition VolumeTechnique:39
osg::ref_ptr< osg::RefMatrix > projectionMatrix
Definition VolumeTechnique:38
osg::NodePath nodePath
Definition VolumeTechnique:37
osg::ref_ptr< osg::StateSet > stateset
Definition VolumeTechnique:41
TileData()
Definition VolumeTechnique:31
virtual void update(osgUtil::CullVisitor *cv)=0
bool active
Definition VolumeTechnique:35
virtual void traverse(osg::NodeVisitor &nv)
Traverse the terrain subgraph.
OpenThreads::Mutex _mutex
Definition VolumeTechnique:88
virtual void update(osgUtil::UpdateVisitor *nv)
std::map< osgUtil::CullVisitor::Identifier *, osg::Matrix > ModelViewMatrixMap
Definition VolumeTechnique:87
VolumeTile * _volumeTile
Definition VolumeTechnique:85
ModelViewMatrixMap _modelViewMatrixMap
Definition VolumeTechnique:89
virtual TileData * createTileData(osgUtil::CullVisitor *)
Called from VolumeScene to create the TileData container when a multi-pass technique is being used.
Definition VolumeTechnique:75
virtual void cull(osgUtil::CullVisitor *nv)
VolumeTechnique(const VolumeTechnique &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual bool isMoving(osgUtil::CullVisitor *nv)
VolumeTile * getVolumeTile()
Definition VolumeTechnique:56
void setDirty(bool dirty)
META_Object(osgVolume, VolumeTechnique)
virtual void cleanSceneGraph()
Clean scene graph from any terrain technique specific nodes.
const VolumeTile * getVolumeTile() const
Definition VolumeTechnique:57
friend class osgVolume::VolumeTile
Definition VolumeTechnique:83
VolumeTile provides a framework for loosely coupling 3d image data with rendering algorithms.
Definition VolumeTile:70
#define OSGVOLUME_EXPORT
Definition Export:39

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.