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 "vtkInfovisLayoutModule.h" // For export macro
31 #include "vtkObject.h"
32 
34 {
35 public:
36  static vtkGeoMath *New();
37  vtkTypeMacro(vtkGeoMath, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41  static double EarthRadiusMeters() {return 6356750.0;}
42 
44  static double DistanceSquared(double pt0[3], double pt1[3]);
45 
50  static void LongLatAltToRect(double lla[3], double rect[3]);
51 
52 protected:
53  vtkGeoMath();
54  ~vtkGeoMath();
55 
56 private:
57  vtkGeoMath(const vtkGeoMath&); // Not implemented.
58  void operator=(const vtkGeoMath&); // Not implemented.
59 };
60 
61 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKINFOVISLAYOUT_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static double EarthRadiusMeters()
Definition: vtkGeoMath.h:41
static vtkObject * New()
Useful geographic calculations.
Definition: vtkGeoMath.h:33