VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGeoTransform.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00030 #ifndef __vtkGeoTransform_h 00031 #define __vtkGeoTransform_h 00032 00033 #include "vtkGeovisCoreModule.h" // For export macro 00034 #include "vtkAbstractTransform.h" 00035 00036 class vtkGeoProjection; 00037 00038 class VTKGEOVISCORE_EXPORT vtkGeoTransform : public vtkAbstractTransform 00039 { 00040 public: 00041 static vtkGeoTransform* New(); 00042 virtual void PrintSelf( ostream& os, vtkIndent indent ); 00043 vtkTypeMacro(vtkGeoTransform,vtkAbstractTransform); 00044 00046 00047 void SetSourceProjection(vtkGeoProjection* source); 00048 vtkGetObjectMacro(SourceProjection,vtkGeoProjection); 00050 00052 00053 void SetDestinationProjection(vtkGeoProjection* dest); 00054 vtkGetObjectMacro(DestinationProjection,vtkGeoProjection); 00056 00058 virtual void TransformPoints( vtkPoints* src, vtkPoints* dst ); 00059 00061 virtual void Inverse(); 00062 00064 00066 virtual void InternalTransformPoint( const float in[3], float out[3] ); 00067 virtual void InternalTransformPoint( const double in[3], double out[3] ); 00069 00071 00075 virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] ); 00076 virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] ); 00078 00080 virtual vtkAbstractTransform* MakeTransform(); 00081 00082 protected: 00083 vtkGeoTransform(); 00084 virtual ~vtkGeoTransform(); 00085 00086 void InternalTransformPoints( double* ptsInOut, vtkIdType numPts, int stride ); 00087 00088 vtkGeoProjection* SourceProjection; 00089 vtkGeoProjection* DestinationProjection; 00090 00091 private: 00092 vtkGeoTransform( const vtkGeoTransform& ); // Not implemented. 00093 void operator = ( const vtkGeoTransform& ); // Not implemented. 00094 }; 00095 00096 #endif // __vtkGeoTransform_h