Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ const double WGS_84_RADIUS_EQUATOR = 6378137.0;
|
||||
const double WGS_84_RADIUS_POLAR = 6356752.3142;
|
||||
|
||||
/** EllipsoidModel encapsulates the ellipsoid used to model astronomical bodies,
|
||||
* such as sun, planets, moon etc.
|
||||
* such as sun, planets, moon etc.
|
||||
* All distance quantities (i.e. heights + radius) are in meters,
|
||||
* and latitude and longitude are in radians.*/
|
||||
class EllipsoidModel : public Object
|
||||
@@ -87,7 +87,7 @@ class EllipsoidModel : public Object
|
||||
|
||||
};
|
||||
|
||||
/** CoordinateFrame encapsulates the orientation of east, north and up.*/
|
||||
/** CoordinateFrame encapsulates the orientation of east, north and up.*/
|
||||
typedef Matrixd CoordinateFrame;
|
||||
|
||||
/** CoordinateSystem encapsulate the coordinate system that is associated with objects in a scene.
|
||||
@@ -102,45 +102,45 @@ class OSG_EXPORT CoordinateSystemNode : public Group
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
CoordinateSystemNode(const CoordinateSystemNode&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
|
||||
META_Node(osg,CoordinateSystemNode);
|
||||
|
||||
|
||||
|
||||
|
||||
/** Set the coordinate system node up by copying the format, coordinate system string, and ellipsoid model of another coordinate system node.*/
|
||||
void set(const CoordinateSystemNode& csn);
|
||||
|
||||
|
||||
/** Set the coordinate system format string. Typical values would be WKT, PROJ4, USGS etc.*/
|
||||
void setFormat(const std::string& format) { _format = format; }
|
||||
|
||||
|
||||
/** Get the coordinate system format string.*/
|
||||
const std::string& getFormat() const { return _format; }
|
||||
|
||||
/** Set the CoordinateSystem reference string, should be stored in a form consistent with the Format.*/
|
||||
void setCoordinateSystem(const std::string& cs) { _cs = cs; }
|
||||
|
||||
|
||||
/** Get the CoordinateSystem reference string.*/
|
||||
const std::string& getCoordinateSystem() const { return _cs; }
|
||||
|
||||
|
||||
|
||||
|
||||
/** Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back. */
|
||||
void setEllipsoidModel(EllipsoidModel* ellipsode) { _ellipsoidModel = ellipsode; }
|
||||
|
||||
|
||||
/** Get the EllipsoidModel.*/
|
||||
EllipsoidModel* getEllipsoidModel() { return _ellipsoidModel.get(); }
|
||||
|
||||
|
||||
/** Get the const EllipsoidModel.*/
|
||||
const EllipsoidModel* getEllipsoidModel() const { return _ellipsoidModel.get(); }
|
||||
|
||||
|
||||
/** Compute the local coordinate frame for specified point.*/
|
||||
CoordinateFrame computeLocalCoordinateFrame(const Vec3d& position) const;
|
||||
|
||||
|
||||
/** Compute the local up-vector for specified point.*/
|
||||
osg::Vec3d computeLocalUpVector(const Vec3d& position) const;
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~CoordinateSystemNode() {}
|
||||
|
||||
|
||||
std::string _format;
|
||||
std::string _cs;
|
||||
ref_ptr<EllipsoidModel> _ellipsoidModel;
|
||||
|
||||
Reference in New Issue
Block a user