source: experimental/TerrainTest/ModificationVisitor.h @ 368

Last change on this file since 368 was 279, checked in by Torben Dannhauer, 14 years ago
File size: 1.4 KB
Line 
1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2011 Torben Dannhauer
3 *
4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
10 * You have to aquire licenses for all used proprietary modules.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * OpenSceneGraph Public License for more details.
16*/
17
18#include <osg/Notify>
19#include <osg/NodeVisitor>
20#include <osg/PagedLOD>
21#include <osgTerrain/TerrainTile>
22#include <osgTerrain/Layer>
23
24#include "ellipsoidTechnique.h"
25#include "rampedEllipsoidTechnique.h"
26#include "ModificationManager/ModificationManager.h"
27
28
29class ModificationVisitor : public osg::NodeVisitor
30{
31public:
32        ModificationVisitor(std::string extensionToSet);
33        virtual void apply( osg::Node& node );
34        virtual void apply( osg::PagedLOD& pNode );
35
36private:
37        void modifyTile(osgTerrain::TerrainTile* tile);
38        std::string _extensionToSet;
39        osg::ref_ptr<rampedEllipsoidTechnique> _technique;
40
41};
Note: See TracBrowser for help on using the repository browser.