Changeset 13041 for OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgTerrain/CompositeLayer.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgTerrain/CompositeLayer.cpp
r12292 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 44 44 45 45 bool itrAdvanced = false; 46 46 47 47 osg::ref_ptr<osgTerrain::Locator> locator = 0; 48 48 … … 88 88 if (minLevel!=0) proxyLayer->setMinLevel(minLevel); 89 89 if (maxLevel!=MAXIMUM_NUMBER_OF_LEVELS) proxyLayer->setMaxLevel(maxLevel); 90 90 91 91 92 92 layer.addLayer(proxyLayer); 93 93 } 94 94 95 95 fr += 2; 96 96 … … 117 117 if (readObject.valid()) itrAdvanced = true; 118 118 } 119 119 120 120 } while (itrAdvanced); 121 121 122 122 if (locator.valid()) layer.setLocator(locator.get()); 123 123 … … 143 143 fw.writeObject(*locator); 144 144 } 145 145 146 146 if (proxyLayer->getMinLevel()!=0) 147 147 { 148 148 fw.indent()<<"MinLevel "<<proxyLayer->getMinLevel()<<std::endl; 149 } 149 } 150 150 151 151 if (proxyLayer->getMaxLevel()!=MAXIMUM_NUMBER_OF_LEVELS) 152 152 { 153 153 fw.indent()<<"MaxLevel "<<proxyLayer->getMaxLevel()<<std::endl; 154 } 155 154 } 155 156 156 fw.indent()<<"ProxyLayer "<<proxyLayer->getCompoundName()<<std::endl; 157 157 } 158 158 } 159 159 else 160 { 160 { 161 161 fw.writeObject(*(layer.getLayer(i))); 162 162 }
