VTK
vtkGeoTerrain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoTerrain.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 -------------------------------------------------------------------------*/
35 #ifndef vtkGeoTerrain_h
36 #define vtkGeoTerrain_h
37 
38 #include "vtkGeovisCoreModule.h" // For export macro
39 #include "vtkObject.h"
40 
41 class vtkAssembly;
42 class vtkCollection;
44 class vtkGeoCamera;
46 class vtkGeoSource;
47 class vtkGeoTerrainNode;
48 class vtkRenderer;
49 
51 {
52 public:
53  static vtkGeoTerrain *New();
54  vtkTypeMacro(vtkGeoTerrain,vtkObject);
55  virtual void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
60  { return this->GeoSource; }
61  virtual void SetSource(vtkGeoSource* source);
63 
65  void SaveDatabase(const char* path, int depth);
66 
68 
72  void AddActors(
73  vtkRenderer* ren,
74  vtkAssembly* assembly,
75  vtkCollection* imageReps);
77 
79 
81  vtkSetVector3Macro(Origin, double);
82  vtkGetVector3Macro(Origin, double);
84 
86 
87  vtkSetClampMacro(MaxLevel, int, 0, VTK_INT_MAX);
88  vtkGetMacro(MaxLevel, int);
90 
91 protected:
92  vtkGeoTerrain();
93  ~vtkGeoTerrain();
94 
95  virtual void SetGeoSource(vtkGeoSource* source);
99 
101  void Initialize();
102 
104  virtual void InitializeNodeAnalysis(vtkRenderer* ren);
105 
108  virtual bool NodeInViewport(vtkGeoTerrainNode* node);
109 
112  virtual int EvaluateNode(vtkGeoTerrainNode* node);
113 
115  void PrintTree(ostream & os, vtkIndent indent, vtkGeoTerrainNode* node);
116 
117  double Origin[3];
119  virtual void SetGeoCamera(vtkGeoCamera* camera);
121  int MaxLevel;
122 
123 private:
124  vtkGeoTerrain(const vtkGeoTerrain&); // Not implemented
125  void operator=(const vtkGeoTerrain&); // Not implemented
126 };
127 
128 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:50
#define VTK_INT_MAX
Definition: vtkType.h:132
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:56
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkGeoCamera * GeoCamera
virtual vtkGeoSource * GetSource()
Definition: vtkGeoTerrain.h:59
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkGeoTreeNodeCache * Cache
Definition: vtkGeoTerrain.h:98
Returns the portion of the input dataset that lies within a selection frustum.
#define VTKGEOVISCORE_EXPORT
vtkGeoSource * GeoSource
Definition: vtkGeoTerrain.h:96
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:74
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkGeoTerrainNode * Root
Definition: vtkGeoTerrain.h:97
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkExtractSelectedFrustum * Extractor
Manages a list of vtkGeoTreeNodes.
static vtkObject * New()
Geo interface to a camera.
Definition: vtkGeoCamera.h:82