Represent a projection from a sphere to a plane.
More...
#include <vtkGeoProjection.h>
Inherits vtkObject.
Represent a projection from a sphere to a plane.
This class uses the PROJ.4 library to represent geographic coordinate projections.
- Tests:
- vtkGeoProjection (Tests)
Definition at line 40 of file vtkGeoProjection.h.
vtkGeoProjection::vtkGeoProjection |
( |
| ) |
|
|
protected |
virtual vtkGeoProjection::~vtkGeoProjection |
( |
| ) |
|
|
protectedvirtual |
virtual void vtkGeoProjection::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
static int vtkGeoProjection::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkGeoProjection::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkGeoProjection::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
static int vtkGeoProjection::GetNumberOfProjections |
( |
| ) |
|
|
static |
Returns the number of projections that this class offers.
static const char* vtkGeoProjection::GetProjectionName |
( |
int |
projection | ) |
|
|
static |
Returns the name of one of the projections supported by this class. You can pass these strings to SetName(char*).
- Parameters
-
static const char* vtkGeoProjection::GetProjectionDescription |
( |
int |
projection | ) |
|
|
static |
Returns a description of one of the projections supported by this class.
- Parameters
-
virtual void vtkGeoProjection::SetName |
( |
const char * |
| ) |
|
|
virtual |
Set/get the short name describing the projection you wish to use. This defaults to "rpoly" for no reason other than I like it. To get a list of valid values, use the GetNumberOfProjections() and GetProjectionName(int) static methods.
virtual char* vtkGeoProjection::GetName |
( |
| ) |
|
|
virtual |
Set/get the short name describing the projection you wish to use. This defaults to "rpoly" for no reason other than I like it. To get a list of valid values, use the GetNumberOfProjections() and GetProjectionName(int) static methods.
int vtkGeoProjection::GetIndex |
( |
| ) |
|
Return the index of the current projection's type in the list of all projection types. On error, this will return -1. On success, it returns a number in [0,GetNumberOfProjections()[.
const char* vtkGeoProjection::GetDescription |
( |
| ) |
|
Get the description of a projection. This will return NULL if the projection name is invalid.
virtual void vtkGeoProjection::SetCentralMeridian |
( |
double |
| ) |
|
|
virtual |
Set/get the longitude which corresponds to the central meridian of the projection. This defaults to 0, the Greenwich Meridian.
virtual double vtkGeoProjection::GetCentralMeridian |
( |
| ) |
|
|
virtual |
Set/get the longitude which corresponds to the central meridian of the projection. This defaults to 0, the Greenwich Meridian.
PROJ* vtkGeoProjection::GetProjection |
( |
| ) |
|
Return a pointer to the PROJ.4 data structure describing this projection. This may return NULL if an invalid projection name or parameter set is specified. If you invoke any methods on this vtkGeoProjection object, the PROJ.4 structure this method returns may be freed, so you should not use the PROJ.4 structure after changing any parameters. Also, you should not modify the PROJ.4 structure on your own as it will then be out of sync with the vtkGeoProjection class.
void vtkGeoProjection::SetOptionalParameter |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
Add an optional parameter to the projection that will be computed or replace it if already present.
void vtkGeoProjection::RemoveOptionalParameter |
( |
const char * |
| ) |
|
Remove an optional parameter to the projection that will be computed
int vtkGeoProjection::GetNumberOfOptionalParameters |
( |
| ) |
|
Return the number of optional parameters
const char* vtkGeoProjection::GetOptionalParameterKey |
( |
int |
index | ) |
|
Return the number of optional parameters
const char* vtkGeoProjection::GetOptionalParameterValue |
( |
int |
index | ) |
|
Return the number of optional parameters
void vtkGeoProjection::ClearOptionalParameters |
( |
| ) |
|
Clear all optional parameters
virtual int vtkGeoProjection::UpdateProjection |
( |
| ) |
|
|
protectedvirtual |
Determine whether the current projection structure has any changes pending and apply them if necessary. Upon success, 0 is returned. When an error occurs, a nonzero value is returned.
char* vtkGeoProjection::Name |
|
protected |
double vtkGeoProjection::CentralMeridian |
|
protected |
PROJ* vtkGeoProjection::Projection |
|
protected |
vtkTimeStamp vtkGeoProjection::ProjectionMTime |
|
protected |
The documentation for this class was generated from the following file: