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 
51  vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
53 
55 
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkGeoTransform::InternalTransformPoint
void InternalTransformPoint(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
vtkGeoTransform::DestinationProjection
vtkGeoProjection * DestinationProjection
Definition: vtkGeoTransform.h:104
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:51
vtkGeoTransform::InternalTransformPoints
void InternalTransformPoints(double *ptsInOut, vtkIdType numPts, int stride)
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkGeoTransform::SetSourceProjection
void SetSourceProjection(vtkGeoProjection *source)
The source geographic projection.
vtkGeoTransform::InternalTransformPoint
void InternalTransformPoint(const double in[3], double out[3]) override
vtkAbstractTransform.h
vtkGeoTransform::New
static vtkGeoTransform * New()
vtkGeoTransform::vtkGeoTransform
vtkGeoTransform()
vtkGeoTransform::InternalTransformDerivative
void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3]) override
This will transform a point and, at the same time, calculate a 3x3 Jacobian matrix that provides the ...
vtkGeoTransform
A transformation between two geographic coordinate systems.
Definition: vtkGeoTransform.h:40
vtkGeoTransform::SourceProjection
vtkGeoProjection * SourceProjection
Definition: vtkGeoTransform.h:103
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkGeoTransform::SetDestinationProjection
void SetDestinationProjection(vtkGeoProjection *dest)
The target geographic projection.
vtkGeoTransform::InternalTransformDerivative
void InternalTransformDerivative(const double in[3], double out[3], double derivative[3][3]) override
vtkGeoTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGeoTransform::Inverse
void Inverse() override
Invert the transformation.
vtkGeoTransform::TransformPoints
void TransformPoints(vtkPoints *src, vtkPoints *dst) override
Transform many points at once.
vtkGeoTransform::~vtkGeoTransform
~vtkGeoTransform() override
vtkGeoProjection
Represent a projection from a sphere to a plane.
Definition: vtkGeoProjection.h:43
vtkGeoTransform::MakeTransform
vtkAbstractTransform * MakeTransform() override
Make another transform of the same type.