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 -------------------------------------------------------------------------*/
32 #ifndef vtkGeoSphereTransform_h
33 #define vtkGeoSphereTransform_h
34 
35 #include "vtkGeovisCoreModule.h" // For export macro
36 #include "vtkAbstractTransform.h"
37 
38 class vtkGeoProjection;
39 
40 #if !defined(VTK_LEGACY_REMOVE)
41 class VTKGEOVISCORE_EXPORT vtkGeoSphereTransform : public vtkAbstractTransform
42 {
43 public:
44  static vtkGeoSphereTransform* New();
45  void PrintSelf( ostream& os, vtkIndent indent ) override;
47 
51  void Inverse() override;
52 
54 
58  void InternalTransformPoint( const float in[3], float out[3] ) override;
59  void InternalTransformPoint( const double in[3], double out[3] ) override;
61 
63 
69  void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] ) override;
70  void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] ) override;
72 
77 
79 
85  vtkSetMacro(ToRectangular, bool);
86  vtkGetMacro(ToRectangular, bool);
87  vtkBooleanMacro(ToRectangular, bool);
89 
91 
95  vtkSetMacro(BaseAltitude, double);
96  vtkGetMacro(BaseAltitude, double);
98 
99 protected:
101  ~vtkGeoSphereTransform() override;
102 
104  double BaseAltitude;
105 
106 private:
107  vtkGeoSphereTransform( const vtkGeoSphereTransform& ) = delete;
108  void operator = ( const vtkGeoSphereTransform& ) = delete;
109 };
110 
111 #endif //VTK_LEGACY_REMOVE
112 #endif // vtkGeoSphereTransform_h
Represent a projection from a sphere to a plane.
A transformation between long-lat-alt and rect coords.
virtual vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
superclass for all geometric transformations
virtual void Inverse()=0
Invert the transformation.
virtual void InternalTransformPoint(const float in[3], float out[3])=0
This will calculate the transformation without calling Update.
virtual void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])=0
This will transform a point and, at the same time, calculate a 3x3 Jacobian matrix that provides the ...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...