VTK
vtkGeoTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoTransform.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 vtkGeoTransform_h
32 #define vtkGeoTransform_h
33 
34 #include "vtkGeovisCoreModule.h" // For export macro
35 #include "vtkAbstractTransform.h"
36 
37 class vtkGeoProjection;
38 
39 class VTKGEOVISCORE_EXPORT vtkGeoTransform : public vtkAbstractTransform
40 {
41 public:
42  static vtkGeoTransform* New();
43  void PrintSelf( ostream& os, vtkIndent indent ) override;
45 
47 
50  void SetSourceProjection(vtkGeoProjection* source);
51  vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
53 
55 
58  void SetDestinationProjection(vtkGeoProjection* dest);
59  vtkGetObjectMacro(DestinationProjection,vtkGeoProjection);
61 
65  void TransformPoints( vtkPoints* src, vtkPoints* dst ) override;
66 
70  void Inverse() override;
71 
73 
77  void InternalTransformPoint( const float in[3], float out[3] ) override;
78  void InternalTransformPoint( const double in[3], double out[3] ) override;
80 
82 
88  void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] ) override;
89  void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] ) override;
91 
96 
97 protected:
99  ~vtkGeoTransform() override;
100 
101  void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride );
102 
105 
106 private:
107  vtkGeoTransform( const vtkGeoTransform& ) = delete;
108  void operator = ( const vtkGeoTransform& ) = delete;
109 };
110 
111 #endif // vtkGeoTransform_h
A transformation between two geographic coordinate systems.
Represent a projection from a sphere to a plane.
vtkGeoProjection * DestinationProjection
virtual void TransformPoints(vtkPoints *inPts, vtkPoints *outPts)
Apply the transformation to a series of points, and append the results to outPts. ...
virtual vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.
int vtkIdType
Definition: vtkType.h:347
vtkGeoProjection * SourceProjection
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.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
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...
represent and manipulate 3D points
Definition: vtkPoints.h:39