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  virtual void PrintSelf( ostream& os, vtkIndent indent );
46 
50  virtual void Inverse();
51 
53 
57  virtual void InternalTransformPoint( const float in[3], float out[3] );
58  virtual void InternalTransformPoint( const double in[3], double out[3] );
60 
62 
68  virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] );
69  virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] );
71 
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  virtual ~vtkGeoSphereTransform();
101 
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.
virtual VTK_NEWINSTANCE 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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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 ...
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...