VTK
vtkGeoMath.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoMath.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 -------------------------------------------------------------------------*/
27 #ifndef __vtkGeoMath_h
28 #define __vtkGeoMath_h
29 
30 #include "vtkObject.h"
31 
33 {
34 public:
35  static vtkGeoMath *New();
36  vtkTypeMacro(vtkGeoMath, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40  static double EarthRadiusMeters() {return 6356750.0;}
41 
43  static double DistanceSquared(double pt0[3], double pt1[3]);
44 
49  static void LongLatAltToRect(double lla[3], double rect[3]);
50 
51 protected:
52  vtkGeoMath();
53  ~vtkGeoMath();
54 
55 private:
56  vtkGeoMath(const vtkGeoMath&); // Not implemented.
57  void operator=(const vtkGeoMath&); // Not implemented.
58 };
59 
60 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
static double EarthRadiusMeters()
Definition: vtkGeoMath.h:40
#define VTK_INFOVIS_EXPORT
static vtkObject * New()
Useful geographic calculations.
Definition: vtkGeoMath.h:32