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 | |
---|
29 | class ModificationVisitor : public osg::NodeVisitor |
---|
30 | { |
---|
31 | public: |
---|
32 | ModificationVisitor(std::string extensionToSet); |
---|
33 | virtual void apply( osg::Node& node ); |
---|
34 | virtual void apply( osg::PagedLOD& pNode ); |
---|
35 | |
---|
36 | private: |
---|
37 | void modifyTile(osgTerrain::TerrainTile* tile); |
---|
38 | std::string _extensionToSet; |
---|
39 | osg::ref_ptr<rampedEllipsoidTechnique> _technique; |
---|
40 | |
---|
41 | }; |
---|