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 -------------------------------------------------------------------------*/
30 #ifndef vtkGeoTransform_h
31 #define vtkGeoTransform_h
32 
33 #include "vtkGeovisCoreModule.h" // For export macro
34 #include "vtkAbstractTransform.h"
35 
36 class vtkGeoProjection;
37 
39 {
40 public:
41  static vtkGeoTransform* New();
42  virtual void PrintSelf( ostream& os, vtkIndent indent );
44 
46 
47  void SetSourceProjection(vtkGeoProjection* source);
48  vtkGetObjectMacro(SourceProjection,vtkGeoProjection);
50 
52 
53  void SetDestinationProjection(vtkGeoProjection* dest);
54  vtkGetObjectMacro(DestinationProjection,vtkGeoProjection);
56 
58  virtual void TransformPoints( vtkPoints* src, vtkPoints* dst );
59 
61  virtual void Inverse();
62 
64 
66  virtual void InternalTransformPoint( const float in[3], float out[3] );
67  virtual void InternalTransformPoint( const double in[3], double out[3] );
69 
71 
75  virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] );
76  virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] );
78 
81 
82 protected:
84  virtual ~vtkGeoTransform();
85 
86  void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride );
87 
90 
91 private:
92  vtkGeoTransform( const vtkGeoTransform& ); // Not implemented.
93  void operator = ( const vtkGeoTransform& ); // Not implemented.
94 };
95 
96 #endif // vtkGeoTransform_h
A transformation between two geographic coordinate systems.
Represent a projection from a sphere to a plane.
void PrintSelf(ostream &os, vtkIndent indent)
vtkGeoProjection * DestinationProjection
virtual void TransformPoints(vtkPoints *inPts, vtkPoints *outPts)
virtual vtkAbstractTransform * MakeTransform()=0
int vtkIdType
Definition: vtkType.h:275
vtkGeoProjection * SourceProjection
a simple class to control print indentation
Definition: vtkIndent.h:38
superclass for all geometric transformations
virtual void Inverse()=0
#define VTKGEOVISCORE_EXPORT
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
virtual void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])=0
static vtkObject * New()
represent and manipulate 3D points
Definition: vtkPoints.h:38