Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ive/Locator.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Locator.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 */ … … 31 31 else 32 32 out_THROW_EXCEPTION("Layer::write(): Could not cast this osgLayer::Layer to an osg::Object."); 33 33 34 34 out->writeInt(getCoordinateSystemType()); 35 35 out->writeString(getFormat()); 36 36 out->writeString(getCoordinateSystem()); 37 37 38 38 out->writeBool(getEllipsoidModel()!=0); 39 39 if(getEllipsoidModel()) … … 41 41 ((ive::EllipsoidModel*)(getEllipsoidModel()))->write(out); 42 42 } 43 43 44 44 out->writeBool(getDefinedInFile()); 45 45 out->writeBool(getTransformScaledByResolution()); … … 55 55 in_THROW_EXCEPTION("Locator::read(): Expected Locator identification."); 56 56 } 57 57 58 58 // Read Locator's identification. 59 59 id = in->readInt(); … … 69 69 setFormat(in->readString()); 70 70 setCoordinateSystem(in->readString()); 71 71 72 72 bool readEllipsoidModel = in->readBool(); 73 73 if (readEllipsoidModel) … … 77 77 setEllipsoidModel(em); 78 78 } 79 79 80 80 setDefinedInFile(in->readBool()); 81 81 setTransformScaledByResolution(in->readBool());
