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 "vtkGeovisCoreModule.h" // For export macro
35 #include "vtkObject.h"
36 
37 struct PROJconsts;
38 typedef PROJconsts PROJ;
39 
41 {
42 public:
43  static vtkGeoProjection* New();
44  virtual void PrintSelf( ostream& os, vtkIndent indent );
45  vtkTypeMacro(vtkGeoProjection,vtkObject);
46 
48  static int GetNumberOfProjections();
49 
53  static const char* GetProjectionName( int projection );
54 
58  static const char* GetProjectionDescription( int projection );
59 
61 
65  vtkSetStringMacro(Name);
66  vtkGetStringMacro(Name);
68 
72  int GetIndex();
73 
76  const char* GetDescription();
77 
79 
81  vtkSetMacro(CentralMeridian,double);
82  vtkGetMacro(CentralMeridian,double);
84 
93  PROJ* GetProjection();
94 
97  void SetOptionalParameter(const char* key, const char* value);
98 
100  void RemoveOptionalParameter(const char*);
101 
103  int GetNumberOfOptionalParameters();
104 
106  const char* GetOptionalParameterKey(int index);
107 
109  const char* GetOptionalParameterValue(int index);
110 
112  void ClearOptionalParameters();
113 
114 protected:
116  virtual ~vtkGeoProjection();
117 
121  virtual int UpdateProjection();
122 
123  char* Name;
127 
128 private:
129  vtkGeoProjection( const vtkGeoProjection& ); // Not implemented.
130  void operator = ( const vtkGeoProjection& ); // Not implemented.
131 
132  class vtkInternals;
133  vtkInternals* Internals;
134 };
135 
136 #endif // vtkGeoProjection_h
Represent a projection from a sphere to a plane.
PROJconsts PROJ
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkTimeStamp ProjectionMTime
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKGEOVISCORE_EXPORT
static vtkObject * New()