VTK
vtkGeoSphereTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoSphereTransform.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 vtkGeoSphereTransform_h
32 #define vtkGeoSphereTransform_h
33 
34 #include "vtkGeovisCoreModule.h" // For export macro
35 #include "vtkAbstractTransform.h"
36 
37 class vtkGeoProjection;
38 
40 {
41 public:
42  static vtkGeoSphereTransform* New();
43  virtual void PrintSelf( ostream& os, vtkIndent indent );
45 
47  virtual void Inverse();
48 
50 
52  virtual void InternalTransformPoint( const float in[3], float out[3] );
53  virtual void InternalTransformPoint( const double in[3], double out[3] );
55 
57 
61  virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] );
62  virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] );
64 
67 
69 
73  vtkSetMacro(ToRectangular, bool);
74  vtkGetMacro(ToRectangular, bool);
75  vtkBooleanMacro(ToRectangular, bool);
77 
79 
81  vtkSetMacro(BaseAltitude, double);
82  vtkGetMacro(BaseAltitude, double);
84 
85 protected:
87  virtual ~vtkGeoSphereTransform();
88 
90  double BaseAltitude;
91 
92 private:
93  vtkGeoSphereTransform( const vtkGeoSphereTransform& ); // Not implemented.
94  void operator = ( const vtkGeoSphereTransform& ); // Not implemented.
95 };
96 
97 #endif // vtkGeoSphereTransform_h
Represent a projection from a sphere to a plane.
A transformation between long-lat-alt and rect coords.
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkAbstractTransform * MakeTransform()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
superclass for all geometric transformations
virtual void Inverse()=0
#define VTKGEOVISCORE_EXPORT
virtual void InternalTransformPoint(const float in[3], float out[3])=0
virtual void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])=0
static vtkObject * New()