31#ifndef vtkGeoTerrainNode_h
32#define vtkGeoTerrainNode_h
34#include "vtkGeovisCoreModule.h"
76 vtkGetMacro(BoundingSphereRadius,
double);
77 vtkGetVector3Macro(BoundingSphereCenter,
double);
80 vtkGetVector3Macro(CornerNormal00,
double);
81 vtkGetVector3Macro(CornerNormal01,
double);
82 vtkGetVector3Macro(CornerNormal10,
double);
83 vtkGetVector3Macro(CornerNormal11,
double);
90 vtkGetVector4Macro(ProjectionBounds,
double);
91 vtkSetVector4Macro(ProjectionBounds,
double);
98 vtkGetMacro(GraticuleLevel,
int);
107 vtkGetMacro(Error,
double);
116 vtkGetMacro(Coverage,
float);
148 double BoundingSphereCenter[3];
153 double CornerNormal00[3];
154 double CornerNormal01[3];
155 double CornerNormal10[3];
156 double CornerNormal11[3];
158 double ProjectionBounds[4];
double GetAltitude(double longitude, double latitude)
Given, a long, lat position, return altitude in meters relative to sea level.
void UpdateBoundingSphere()
Bounding sphere is precomputed for faster updates of terrain.
virtual void DeleteData()
Deletes the data associated with the node to make this an "empty" node.
virtual void ShallowCopy(vtkGeoTreeNode *src)
Shallow and Deep copy.
vtkGeoTerrainNode * GetChild(int idx)
Every subclass implements these methods returning the specific type.
vtkGeoTerrainNode * GetParent()
vtkPolyData * GetModel()
Get the terrrain model.
virtual void DeepCopy(vtkGeoTreeNode *src)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetModel(vtkPolyData *model)
static vtkGeoTerrainNode * New()
double BoundingSphereRadius
virtual bool HasData()
Returns whether this node has valid data associated with it, or if it is an "empty" node.
vtkSmartPointer< vtkPolyData > Model
Stores data for a patch of the globe.
a simple class to control print indentation
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.