From Geoff Michel, typo and spelling fixes.
This commit is contained in:
@@ -23,14 +23,16 @@ namespace osg
|
||||
const double WGS_84_RADIUS_EQUATOR = 6378137.0;
|
||||
const double WGS_84_RADIUS_POLAR = 6356752.3142;
|
||||
|
||||
/** EllipsoidModel encapsulates the ellipsoid used to model astral bodies such as plants, moon etc.*/
|
||||
/** EllipsoidModel encapsulates the ellipsoid used to model astronomical bodies,
|
||||
* such as sun, planets, moon etc. */
|
||||
class EllipsoidModel : public Object
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
/** WGS_84 is a common representation of the earth's spheroid
|
||||
*/
|
||||
EllipsoidModel(double radiusEquator = WGS_84_RADIUS_EQUATOR,
|
||||
double radiusPolar = WGS_84_RADIUS_POLAR):
|
||||
double radiusPolar = WGS_84_RADIUS_POLAR):
|
||||
_radiusEquator(radiusEquator),
|
||||
_radiusPolar(radiusPolar) { computeCoefficients(); }
|
||||
|
||||
@@ -73,10 +75,10 @@ class EllipsoidModel : public Object
|
||||
|
||||
};
|
||||
|
||||
/** CoordinateFrame encapsulate the orientiation of east, north and up.*/
|
||||
/** CoordinateFrame encapsulates the orientation of east, north and up.*/
|
||||
typedef Matrixd CoordinateFrame;
|
||||
|
||||
/** CoordinateSystem encapsulate the coordinate system that associated with objects in a scene.
|
||||
/** CoordinateSystem encapsulate the coordinate system that is associated with objects in a scene.
|
||||
For an overview of common earth bases coordinate systems see http://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html */
|
||||
class SG_EXPORT CoordinateSystemNode : public Group
|
||||
{
|
||||
@@ -101,26 +103,26 @@ class SG_EXPORT CoordinateSystemNode : public Group
|
||||
/** Get the coordinate system format string.*/
|
||||
const std::string& getFormat() const { return _format; }
|
||||
|
||||
/** Set the CoordinateSystem reference string, should be stored form consistent with the 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. */
|
||||
/** 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.*/
|
||||
/** Get the EllipsoidModel.*/
|
||||
EllipsoidModel* getEllipsoidModel() { return _ellipsoidModel.get(); }
|
||||
|
||||
/** get the const EllipsoidModel.*/
|
||||
/** Get the const EllipsoidModel.*/
|
||||
const EllipsoidModel* getEllipsoidModel() const { return _ellipsoidModel.get(); }
|
||||
|
||||
/** compute the local coorindate frame for specified point.*/
|
||||
/** Compute the local coordinate frame for specified point.*/
|
||||
CoordinateFrame computeLocalCoordinateFrame(const Vec3d& position) const;
|
||||
|
||||
/** compute the local coorindate frame for specified point.*/
|
||||
/** Compute the local coordinate frame for specified point.*/
|
||||
osg::Vec3d computeLocalUpVector(const Vec3d& position) const;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user