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 -------------------------------------------------------------------------*/
31 #ifndef __vtkGeoProjection_h
32 #define __vtkGeoProjection_h
33 
34 #include "vtkObject.h"
35 
36 struct PROJconsts;
37 typedef PROJconsts PROJ;
38 
40 {
41 public:
42  static vtkGeoProjection* New();
43  virtual void PrintSelf( ostream& os, vtkIndent indent );
44  vtkTypeMacro(vtkGeoProjection,vtkObject);
45 
47  static int GetNumberOfProjections();
48 
52  static const char* GetProjectionName( int projection );
53 
57  static const char* GetProjectionDescription( int projection );
58 
60 
64  vtkSetStringMacro(Name);
65  vtkGetStringMacro(Name);
67 
71  int GetIndex();
72 
75  const char* GetDescription();
76 
78 
80  vtkSetMacro(CentralMeridian,double);
81  vtkGetMacro(CentralMeridian,double);
83 
92  PROJ* GetProjection();
93 
96  void SetOptionalParameter(const char* key, const char* value);
97 
99  void RemoveOptionalParameter(const char*);
100 
102  int GetNumberOfOptionalParameters();
103 
105  const char* GetOptionalParameterKey(int index);
106 
108  const char* GetOptionalParameterValue(int index);
109 
111  void ClearOptionalParameters();
112 
113 protected:
115  virtual ~vtkGeoProjection();
116 
120  virtual int UpdateProjection();
121 
122  char* Name;
126 
127 private:
128  vtkGeoProjection( const vtkGeoProjection& ); // Not implemented.
129  void operator = ( const vtkGeoProjection& ); // Not implemented.
130 
131  class vtkInternals;
132  vtkInternals* Internals;
133 };
134 
135 #endif // __vtkGeoProjection_h