/usr/include/vtk-7.1/vtkGeoProjection.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkGeoProjection.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkGeoProjection
* @brief Represent a projection from a sphere to a plane
*
*
* This class uses the PROJ.4 library to represent geographic coordinate
* projections.
*/
#ifndef vtkGeoProjection_h
#define vtkGeoProjection_h
#include "vtkGeovisCoreModule.h" // For export macro
#include "vtkObject.h"
struct PJconsts;
typedef struct PJconsts PJ;
typedef PJ* projPJ;
class VTKGEOVISCORE_EXPORT vtkGeoProjection : public vtkObject
{
public:
static vtkGeoProjection* New();
virtual void PrintSelf( ostream& os, vtkIndent indent );
vtkTypeMacro(vtkGeoProjection,vtkObject);
/**
* Returns the number of projections that this class offers.
*/
static int GetNumberOfProjections();
/**
* Returns the name of one of the projections supported by this class.
* You can pass these strings to SetName(char*).
* @param projection the index of a projection, must be in [0,GetNumberOfProjections()[.
*/
static const char* GetProjectionName( int projection );
/**
* Returns a description of one of the projections supported by this class.
* @param projection the index of a projection, must be in [0,GetNumberOfProjections()[.
*/
static const char* GetProjectionDescription( int projection );
//@{
/**
* 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.
*/
vtkSetStringMacro(Name);
vtkGetStringMacro(Name);
//@}
/**
* 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()[.
*/
int GetIndex();
/**
* Get the description of a projection.
* This will return NULL if the projection name is invalid.
*/
const char* GetDescription();
//@{
/**
* Set/get the longitude which corresponds to the central meridian of the projection.
* This defaults to 0, the Greenwich Meridian.
*/
vtkSetMacro(CentralMeridian,double);
vtkGetMacro(CentralMeridian,double);
//@}
/**
* 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.
*/
projPJ GetProjection();
/**
* Add an optional parameter to the projection that will be computed or
* replace it if already present.
*/
void SetOptionalParameter(const char* key, const char* value);
/**
* Remove an optional parameter to the projection that will be computed
*/
void RemoveOptionalParameter(const char*);
/**
* Return the number of optional parameters
*/
int GetNumberOfOptionalParameters();
/**
* Return the number of optional parameters
*/
const char* GetOptionalParameterKey(int index);
/**
* Return the number of optional parameters
*/
const char* GetOptionalParameterValue(int index);
/**
* Clear all optional parameters
*/
void ClearOptionalParameters();
protected:
vtkGeoProjection();
virtual ~vtkGeoProjection();
/**
* 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.
*/
virtual int UpdateProjection();
char* Name;
double CentralMeridian;
projPJ Projection;
vtkMTimeType ProjectionMTime;
private:
vtkGeoProjection( const vtkGeoProjection& ) VTK_DELETE_FUNCTION;
void operator = ( const vtkGeoProjection& ) VTK_DELETE_FUNCTION;
class vtkInternals;
vtkInternals* Internals;
};
#endif // vtkGeoProjection_h
|