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 -------------------------------------------------------------------------*/
28 #ifndef vtkGeoTransform_h
29 #define vtkGeoTransform_h
30 
31 #include "vtkGeovisCoreModule.h" // For export macro
32 #include "vtkAbstractTransform.h"
33 
34 class vtkGeoProjection;
35 
36 class VTKGEOVISCORE_EXPORT vtkGeoTransform : public vtkAbstractTransform
37 {
38 public:
39  static vtkGeoTransform* New();
40  void PrintSelf( ostream& os, vtkIndent indent ) override;
42 
44 
47  void SetSourceProjection(vtkGeoProjection* source);
48  vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
50 
52 
55  void SetDestinationProjection(vtkGeoProjection* dest);
56  vtkGetObjectMacro(DestinationProjection,vtkGeoProjection);
58 
62  void TransformPoints( vtkPoints* src, vtkPoints* dst ) override;
63 
67  void Inverse() override;
68 
70 
74  void InternalTransformPoint( const float in[3], float out[3] ) override;
75  void InternalTransformPoint( const double in[3], double out[3] ) override;
77 
79 
85  void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] ) override;
86  void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] ) override;
88 
93 
94 protected:
96  ~vtkGeoTransform() override;
97 
98  void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride );
99 
102 
103 private:
104  vtkGeoTransform( const vtkGeoTransform& ) = delete;
105  void operator = ( const vtkGeoTransform& ) = delete;
106 };
107 
108 #endif // vtkGeoTransform_h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkGeoTransform::DestinationProjection
vtkGeoProjection * DestinationProjection
Definition: vtkGeoTransform.h:101
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkAbstractTransform::InternalTransformPoint
virtual void InternalTransformPoint(const float in[3], float out[3])=0
This will calculate the transformation without calling Update.
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkAbstractTransform::Inverse
virtual void Inverse()=0
Invert the transformation.
vtkAbstractTransform.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGeoTransform
A transformation between two geographic coordinate systems.
Definition: vtkGeoTransform.h:36
vtkGeoTransform::SourceProjection
vtkGeoProjection * SourceProjection
Definition: vtkGeoTransform.h:100
vtkAbstractTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkAbstractTransform::InternalTransformDerivative
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 ...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAbstractTransform::TransformPoints
virtual void TransformPoints(vtkPoints *inPts, vtkPoints *outPts)
Apply the transformation to a series of points, and append the results to outPts.
vtkGeoProjection
Represent a projection from a sphere to a plane.
Definition: vtkGeoProjection.h:39
vtkAbstractTransform::MakeTransform
virtual vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.