24#ifndef _SB_PROJ4PROJECTION_
25#define _SB_PROJ4PROJECTION_
27#include <Inventor/projection/SbProjection.h>
28#include <Inventor/SbLinear.h>
31#define PVALUE PROJ_PVALUE
33#define PROJECTION_PARAM_ID 0
34#define ELLIPSOID_PARAM_ID 1
328 void setRevertCoord(
bool revertCoordNeeded ) { m_revertCoordNeeded = revertCoordNeeded; };
370SoEXTENDER_Documented
private:
374 virtual void apply(
SbVec3f &point );
379 virtual void internalSetParameter(
int parameterId,
const SbString ¶meterString,
SbBool notifyNode = TRUE,
SbBool callInit = TRUE);
382 virtual void internalSetParameter(
int parameterId,
const float ¶meterString,
SbBool notifyNode = TRUE,
SbBool callInit = TRUE)
383 { SbProjection::internalSetParameter( parameterId, parameterString, notifyNode , callInit ); }
392 void initProj4Params();
416 bool m_revertCoordNeeded;
419 int m_numProjections;
Cartographic (PROJ4) projection class.
bool isUTMSouth()
Get m_south (UTM)
SbProj4Projection::PredefinedEllipsoid getEllipsoidIn()
Get current input ellipsoid.
SbProj4Projection::CoordinateSystem getCoordinateSystem()
Get current coordinate system.
void toGeocentric(SbVec3f &point)
Transform the given coordinates from Geodetic coordinate system to Geocentric coordinate system .
CoordinateSystem
Available coordinate systems.
void setUTMZone(int zone)
Set current UTM zone.
PredefinedEllipsoid
Available ellipsoids.
virtual void exit()
Exit function.
SbProj4Projection(const SbProj4Projection &proj)
Copy constructor.
SbProj4Projection::Projection getProjection()
Get current projection .
SbProj4Projection(SoProjection *node)
Constructor.
void setProjection(SbProj4Projection::Projection proj)
Set current projection.
void setEllipsoid(SbProj4Projection::PredefinedEllipsoid ellipsoid)
Set current ellipsoid.
void setCoordinateSystem(SbProj4Projection::CoordinateSystem coordinateSystem)
Set current coordinate system.
void setRevertCoord(bool revertCoordNeeded)
Set revertCoordNeeded.
SbProj4Projection::Projection getProjectionIn()
Get current input projection .
static SbString getProjectionName(SbProj4Projection::Projection proj)
Get projection name description.
void setUTMSouth(bool south)
Set m_south (UTM)
bool isRevertCoordNeeded()
Get revertCoordNeeded.
void setProjectionIn(SbProj4Projection::Projection proj)
Set current input projection.
virtual void inverse(SbVec3f &point)
Inverse projection of one point.
Projection
Available projections.
@ OBLIQUE_STEREOGRAPHIC_ALTERNATIVE
@ UNIVERSAL_TRANSVERSE_MERCATOR
@ TRANSVERSE_CYLINDRICAL_EQUAL_AREA
@ MCBRYDE_THOMAS_FLAT_POLAR_SINUSOIDAL
@ HATANO_ASYMMETRICAL_EQUAL_AREA
@ MCBRYDE_THOMAS_FLAT_POLAR_QUARTIC
@ UNIVERSAL_POLAR_STEREOGRAPHIC
@ MCBRYDE_THOMAS_FLAT_POLE_SINE
@ OBLIQUE_CYLINDRICAL_EQUAL_AREA
@ MCBRYDE_THOMAS_FLAT_POLAR_PARABOLIC
@ LAMBERT_EQUAL_AREA_CONIC
@ LAMBERT_AZIMUTHAL_EQUAL_AREA
@ EQUIDISTANT_CYLINDRICAL
virtual ~SbProj4Projection()
Destructor.
int getUTMZone()
Get current UTM zone.
SbProj4Projection()
Constructor.
SbProj4Projection::PredefinedEllipsoid getEllipsoid()
Get current ellipsoid.
static SbString getProjectionString(SbProj4Projection::Projection proj)
Get internal PROJ.4 projection string.
void setEllipsoidIn(SbProj4Projection::PredefinedEllipsoid ellipsoid)
Set current input ellipsoid.
static SbString getEllipsoidString(SbProj4Projection::PredefinedEllipsoid ellipsoid)
Get PROJ.4 ellipsoid string.
void toGeodetic(SbVec3f &point)
Transform the given coordinates from Geocentric coordinate system to Geodetic coordinate system .
virtual void init()
Initialisation.
Base class for coordinate projection classes.
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Coordinate proje...