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
36
38
39class VTKGEOVISCORE_EXPORT vtkGeoTransform : public vtkAbstractTransform
40{
41public:
43 virtual void PrintSelf( ostream& os, vtkIndent indent );
45
47
51 vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
53
55
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
97protected:
100
101 void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride );
102
105
106private:
107 vtkGeoTransform( const vtkGeoTransform& ) VTK_DELETE_FUNCTION;
108 void operator = ( const vtkGeoTransform& ) VTK_DELETE_FUNCTION;
109};
110
111#endif // vtkGeoTransform_h
superclass for all geometric transformations
Represent a projection from a sphere to a plane.
A transformation between two geographic coordinate systems.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual ~vtkGeoTransform()
void SetSourceProjection(vtkGeoProjection *source)
The source geographic projection.
virtual vtkAbstractTransform * MakeTransform()
Make another transform of the same type.
static vtkGeoTransform * New()
virtual void Inverse()
Invert the transformation.
virtual void InternalTransformDerivative(const double in[3], double out[3], double derivative[3][3])
virtual void InternalTransformPoint(const double in[3], double out[3])
virtual void TransformPoints(vtkPoints *src, vtkPoints *dst)
Transform many points at once.
virtual void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])
This will transform a point and, at the same time, calculate a 3x3 Jacobian matrix that provides the ...
vtkGeoProjection * SourceProjection
void SetDestinationProjection(vtkGeoProjection *dest)
The target geographic projection.
virtual void InternalTransformPoint(const float in[3], float out[3])
This will calculate the transformation without calling Update.
vtkGeoProjection * DestinationProjection
void InternalTransformPoints(double *ptsInOut, vtkIdType numPts, int stride)
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:40
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:287