[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" |
---|
[264] | 25 | #include "rampedEllipsoidTechnique.h" |
---|
[255] | 26 | |
---|
[258] | 27 | |
---|
[251] | 28 | class ModificationVisitor : public osg::NodeVisitor |
---|
| 29 | { |
---|
| 30 | public: |
---|
[252] | 31 | ModificationVisitor(std::string extensionToSet); |
---|
[251] | 32 | virtual void apply( osg::Node& node ); |
---|
| 33 | virtual void apply( osg::PagedLOD& pNode ); |
---|
[252] | 34 | |
---|
| 35 | private: |
---|
[256] | 36 | void modifyTile(osgTerrain::TerrainTile* tile); |
---|
[252] | 37 | std::string _extensionToSet; |
---|
[265] | 38 | osg::ref_ptr<rampedEllipsoidTechnique> _technique; |
---|
[258] | 39 | |
---|
[251] | 40 | }; |
---|