openscenegraph
RayTracedTechnique
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_RAYTRACEDTECHNIQUE
15#define OSGVOLUME_RAYTRACEDTECHNIQUE 1
16
17#include <osgVolume/VolumeTechnique>
18#include <osg/MatrixTransform>
19
20namespace osgVolume {
21
22class OSGVOLUME_EXPORT RayTracedTechnique : public VolumeTechnique
23{
24 public:
25
26 RayTracedTechnique();
27
28 RayTracedTechnique(const RayTracedTechnique&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
29
30 META_Object(osgVolume, RayTracedTechnique);
31
32 virtual void init();
33
34 virtual void update(osgUtil::UpdateVisitor* nv);
35
36 virtual void cull(osgUtil::CullVisitor* nv);
37
38 /** Clean scene graph from any terrain technique specific nodes.*/
39 virtual void cleanSceneGraph();
40
41 /** Traverse the terrain subgraph.*/
42 virtual void traverse(osg::NodeVisitor& nv);
43
44 protected:
45
46 virtual ~RayTracedTechnique();
47
48 osg::ref_ptr<osg::MatrixTransform> _transform;
49
50 osg::ref_ptr<osg::StateSet> _whenMovingStateSet;
51};
52
53}
54
55#endif