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  virtual void PrintSelf( ostream& os, vtkIndent indent );
45 
47 
50  void SetSourceProjection(vtkGeoProjection* source);
51  vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
53 
55 
58  void SetDestinationProjection(vtkGeoProjection* dest);
59  vtkGetObjectMacro(DestinationProjection,vtkGeoProjection);
61 
65  virtual void TransformPoints( vtkPoints* src, vtkPoints* dst );
66 
70  virtual void Inverse();
71 
73 
77  virtual void InternalTransformPoint( const float in[3], float out[3] );
78  virtual void InternalTransformPoint( const double in[3], double out[3] );
80 
82 
88  virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] );
89  virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] );
91 
96 
97 protected:
99  virtual ~vtkGeoTransform();
100 
101  void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride );
102 
105 
106 private:
107  vtkGeoTransform( const vtkGeoTransform& ) VTK_DELETE_FUNCTION;
108  void operator = ( const vtkGeoTransform& ) VTK_DELETE_FUNCTION;
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. ...
int vtkIdType
Definition: vtkType.h:287
virtual VTK_NEWINSTANCE vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.
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