root/OpenSceneGraph/trunk/include/osgVolume/VolumeTechnique @ 13041

Revision 13041, 1.8 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
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
28class OSGVOLUME_EXPORT VolumeTechnique : public osg::Object
29{
30    public:
31
32        VolumeTechnique();
33
34        /** Copy constructor using CopyOp to manage deep vs shallow copy.*/
35        VolumeTechnique(const VolumeTechnique&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
36
37        META_Object(osgVolume, VolumeTechnique);
38
39        VolumeTile* getVolumeTile() { return _volumeTile; }
40        const VolumeTile* getVolumeTile() const { return _volumeTile; }
41
42        virtual void init();
43
44        virtual void update(osgUtil::UpdateVisitor* nv);
45
46        virtual void cull(osgUtil::CullVisitor* nv);
47
48        /** Clean scene graph from any terrain technique specific nodes.*/
49        virtual void cleanSceneGraph();
50
51        /** Traverse the terrain subgraph.*/
52        virtual void traverse(osg::NodeVisitor& nv);
53
54    protected:
55
56        void setDirty(bool dirty);
57
58        virtual ~VolumeTechnique();
59
60        friend class osgVolume::VolumeTile;
61
62        VolumeTile*    _volumeTile;
63
64};
65
66}
67
68#endif
Note: See TracBrowser for help on using the browser.