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 -------------------------------------------------------------------------*/
32 #ifndef vtkGeoProjection_h
33 #define vtkGeoProjection_h
34 
35 #include "vtkGeovisCoreModule.h" // For export macro
36 #include "vtkObject.h"
37 
38 struct PJconsts;
39 typedef struct PJconsts PJ;
40 typedef PJ* projPJ;
41 
42 class VTKGEOVISCORE_EXPORT vtkGeoProjection : public vtkObject
43 {
44 public:
45  static vtkGeoProjection* New();
46  virtual void PrintSelf( ostream& os, vtkIndent indent );
47  vtkTypeMacro(vtkGeoProjection,vtkObject);
48 
52  static int GetNumberOfProjections();
53 
59  static const char* GetProjectionName( int projection );
60 
65  static const char* GetProjectionDescription( int projection );
66 
68 
74  vtkSetStringMacro(Name);
75  vtkGetStringMacro(Name);
77 
82  int GetIndex();
83 
88  const char* GetDescription();
89 
91 
95  vtkSetMacro(CentralMeridian,double);
96  vtkGetMacro(CentralMeridian,double);
98 
107  projPJ GetProjection();
108 
113  void SetOptionalParameter(const char* key, const char* value);
114 
118  void RemoveOptionalParameter(const char*);
119 
123  int GetNumberOfOptionalParameters();
124 
128  const char* GetOptionalParameterKey(int index);
129 
133  const char* GetOptionalParameterValue(int index);
134 
138  void ClearOptionalParameters();
139 
140 protected:
142  virtual ~vtkGeoProjection();
143 
150  virtual int UpdateProjection();
151 
152  char* Name;
156 
157 private:
158  vtkGeoProjection( const vtkGeoProjection& ) VTK_DELETE_FUNCTION;
159  void operator = ( const vtkGeoProjection& ) VTK_DELETE_FUNCTION;
160 
161  class vtkInternals;
162  vtkInternals* Internals;
163 };
164 
165 #endif // vtkGeoProjection_h
Represent a projection from a sphere to a plane.
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
PJ * projPJ
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
struct PJconsts PJ
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkMTimeType ProjectionMTime
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...