VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Geovis/Core/vtkGeoSphereTransform.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGeoSphereTransform.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 -------------------------------------------------------------------------*/
00031 #ifndef vtkGeoSphereTransform_h
00032 #define vtkGeoSphereTransform_h
00033 
00034 #include "vtkGeovisCoreModule.h" // For export macro
00035 #include "vtkAbstractTransform.h"
00036 
00037 class vtkGeoProjection;
00038 
00039 class VTKGEOVISCORE_EXPORT vtkGeoSphereTransform : public vtkAbstractTransform
00040 {
00041 public:
00042   static vtkGeoSphereTransform* New();
00043   virtual void PrintSelf( ostream& os, vtkIndent indent );
00044   vtkTypeMacro(vtkGeoSphereTransform,vtkAbstractTransform);
00045 
00047   virtual void Inverse();
00048 
00050 
00052   virtual void InternalTransformPoint( const float in[3], float out[3] );
00053   virtual void InternalTransformPoint( const double in[3], double out[3] );
00055 
00057 
00061   virtual void InternalTransformDerivative( const float in[3], float out[3], float derivative[3][3] );
00062   virtual void InternalTransformDerivative( const double in[3], double out[3], double derivative[3][3] );
00064 
00066   virtual vtkAbstractTransform* MakeTransform();
00067 
00069 
00073   vtkSetMacro(ToRectangular, bool);
00074   vtkGetMacro(ToRectangular, bool);
00075   vtkBooleanMacro(ToRectangular, bool);
00077 
00079 
00081   vtkSetMacro(BaseAltitude, double);
00082   vtkGetMacro(BaseAltitude, double);
00084 
00085 protected:
00086   vtkGeoSphereTransform();
00087   virtual ~vtkGeoSphereTransform();
00088 
00089   bool ToRectangular;
00090   double BaseAltitude;
00091 
00092 private:
00093   vtkGeoSphereTransform( const vtkGeoSphereTransform& ); // Not implemented.
00094   void operator = ( const vtkGeoSphereTransform& ); // Not implemented.
00095 };
00096 
00097 #endif // vtkGeoSphereTransform_h