VTK
vtkGeoProjection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoProjection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
29 #ifndef vtkGeoProjection_h
30 #define vtkGeoProjection_h
31 
32 #include "vtkGeovisCoreModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 struct PJconsts;
36 typedef struct PJconsts PJ;
37 typedef PJ* projPJ;
38 
39 class VTKGEOVISCORE_EXPORT vtkGeoProjection : public vtkObject
40 {
41 public:
42  static vtkGeoProjection* New();
43  void PrintSelf( ostream& os, vtkIndent indent ) override;
44  vtkTypeMacro(vtkGeoProjection,vtkObject);
45 
49  static int GetNumberOfProjections();
50 
56  static const char* GetProjectionName( int projection );
57 
62  static const char* GetProjectionDescription( int projection );
63 
65 
71  vtkSetStringMacro(Name);
72  vtkGetStringMacro(Name);
74 
79  int GetIndex();
80 
85  const char* GetDescription();
86 
88 
92  vtkSetMacro(CentralMeridian,double);
93  vtkGetMacro(CentralMeridian,double);
95 
104  projPJ GetProjection();
105 
110  void SetOptionalParameter(const char* key, const char* value);
111 
115  void RemoveOptionalParameter(const char*);
116 
120  int GetNumberOfOptionalParameters();
121 
125  const char* GetOptionalParameterKey(int index);
126 
130  const char* GetOptionalParameterValue(int index);
131 
135  void ClearOptionalParameters();
136 
137 protected:
139  ~vtkGeoProjection() override;
140 
147  virtual int UpdateProjection();
148 
149  char* Name;
153 
154 private:
155  vtkGeoProjection( const vtkGeoProjection& ) = delete;
156  void operator = ( const vtkGeoProjection& ) = delete;
157 
158  class vtkInternals;
159  vtkInternals* Internals;
160 };
161 
162 #endif // vtkGeoProjection_h
Represent a projection from a sphere to a plane.
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
PJ * projPJ
struct PJconsts PJ
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMTimeType ProjectionMTime
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...