source: experimental/TerrainTest/ModificationVisitor.h @ 384

Last change on this file since 384 was 279, checked in by Torben Dannhauer, 14 years ago
File size: 1.4 KB
RevLine 
[251]1#pragma once
[272]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*/
[251]17
18#include <osg/Notify>
19#include <osg/NodeVisitor>
20#include <osg/PagedLOD>
[255]21#include <osgTerrain/TerrainTile>
[256]22#include <osgTerrain/Layer>
[251]23
[258]24#include "ellipsoidTechnique.h"
[275]25#include "rampedEllipsoidTechnique.h"
[279]26#include "ModificationManager/ModificationManager.h"
[255]27
[258]28
[251]29class ModificationVisitor : public osg::NodeVisitor
30{
31public:
[252]32        ModificationVisitor(std::string extensionToSet);
[251]33        virtual void apply( osg::Node& node );
34        virtual void apply( osg::PagedLOD& pNode );
[252]35
36private:
[256]37        void modifyTile(osgTerrain::TerrainTile* tile);
[252]38        std::string _extensionToSet;
[275]39        osg::ref_ptr<rampedEllipsoidTechnique> _technique;
[258]40
[251]41};
Note: See TracBrowser for help on using the repository browser.