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 class VTKGEOVISCORE_EXPORT vtkGeoSphereTransform : public vtkAbstractTransform
41 {
42 public:
43  static vtkGeoSphereTransform* New();
44  void PrintSelf( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
46 
50  void Inverse() VTK_OVERRIDE;
51 
53 
57  void InternalTransformPoint( const float in[3], float out[3] ) VTK_OVERRIDE;
58  void InternalTransformPoint( const double in[3], double out[3] ) VTK_OVERRIDE;
60 
62 
68  void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] ) VTK_OVERRIDE;
69  void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] ) VTK_OVERRIDE;
71 
75  vtkAbstractTransform* MakeTransform() VTK_OVERRIDE;
76 
78 
84  vtkSetMacro(ToRectangular, bool);
85  vtkGetMacro(ToRectangular, bool);
86  vtkBooleanMacro(ToRectangular, bool);
88 
90 
94  vtkSetMacro(BaseAltitude, double);
95  vtkGetMacro(BaseAltitude, double);
97 
98 protected:
100  ~vtkGeoSphereTransform() VTK_OVERRIDE;
101 
102  bool ToRectangular;
103  double BaseAltitude;
104 
105 private:
106  vtkGeoSphereTransform( const vtkGeoSphereTransform& ) VTK_DELETE_FUNCTION;
107  void operator = ( const vtkGeoSphereTransform& ) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif // vtkGeoSphereTransform_h
Represent a projection from a sphere to a plane.
A transformation between long-lat-alt and rect coords.
a simple class to control print indentation
Definition: vtkIndent.h:33
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...