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