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 PJconsts;
38 typedef struct PJconsts PJ;
39 typedef PJ* projPJ;
40 
42 {
43 public:
44  static vtkGeoProjection* New();
45  virtual void PrintSelf( ostream& os, vtkIndent indent );
47 
49  static int GetNumberOfProjections();
50 
54  static const char* GetProjectionName( int projection );
55 
59  static const char* GetProjectionDescription( int projection );
60 
62 
66  vtkSetStringMacro(Name);
67  vtkGetStringMacro(Name);
69 
73  int GetIndex();
74 
77  const char* GetDescription();
78 
80 
82  vtkSetMacro(CentralMeridian,double);
83  vtkGetMacro(CentralMeridian,double);
85 
94  projPJ GetProjection();
95 
98  void SetOptionalParameter(const char* key, const char* value);
99 
101  void RemoveOptionalParameter(const char*);
102 
104  int GetNumberOfOptionalParameters();
105 
107  const char* GetOptionalParameterKey(int index);
108 
110  const char* GetOptionalParameterValue(int index);
111 
113  void ClearOptionalParameters();
114 
115 protected:
117  virtual ~vtkGeoProjection();
118 
122  virtual int UpdateProjection();
123 
124  char* Name;
128 
129 private:
130  vtkGeoProjection( const vtkGeoProjection& ); // Not implemented.
131  void operator = ( const vtkGeoProjection& ); // Not implemented.
132 
133  class vtkInternals;
134  vtkInternals* Internals;
135 };
136 
137 #endif // vtkGeoProjection_h
Represent a projection from a sphere to a plane.
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkTimeStamp ProjectionMTime
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
record modification and/or execution time
Definition: vtkTimeStamp.h:34
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
PJ * projPJ
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
virtual void PrintSelf(ostream &os, vtkIndent indent)
struct PJconsts PJ
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkGetStringMacro(name)
Definition: vtkSetGet.h:130
#define VTKGEOVISCORE_EXPORT
static vtkObject * New()
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:79