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 -------------------------------------------------------------------------*/
33 #ifndef vtkGeoTerrain_h
34 #define vtkGeoTerrain_h
35 
36 #include "vtkGeovisCoreModule.h" // For export macro
37 #include "vtkObject.h"
38 
39 class vtkAssembly;
40 class vtkCollection;
42 class vtkGeoCamera;
44 class vtkGeoSource;
45 class vtkGeoTerrainNode;
46 class vtkRenderer;
47 
48 class VTKGEOVISCORE_EXPORT vtkGeoTerrain : public vtkObject
49 {
50 public:
51  static vtkGeoTerrain *New();
52  vtkTypeMacro(vtkGeoTerrain,vtkObject);
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54 
59  { return this->GeoSource; }
60  virtual void SetSource(vtkGeoSource* source);
61 
65  void SaveDatabase(const char* path, int depth);
66 
73  void AddActors(
74  vtkRenderer* ren,
75  vtkAssembly* assembly,
76  vtkCollection* imageReps);
77 
79 
83  vtkSetVector3Macro(Origin, double);
84  vtkGetVector3Macro(Origin, double);
86 
88 
91  vtkSetClampMacro(MaxLevel, int, 0, VTK_INT_MAX);
92  vtkGetMacro(MaxLevel, int);
94 
95 protected:
96  vtkGeoTerrain();
97  ~vtkGeoTerrain() VTK_OVERRIDE;
98 
99  virtual void SetGeoSource(vtkGeoSource* source);
103 
107  void Initialize();
108 
112  virtual void InitializeNodeAnalysis(vtkRenderer* ren);
113 
118  virtual bool NodeInViewport(vtkGeoTerrainNode* node);
119 
124  virtual int EvaluateNode(vtkGeoTerrainNode* node);
125 
129  void PrintTree(ostream & os, vtkIndent indent, vtkGeoTerrainNode* node);
130 
131  double Origin[3];
133  virtual void SetGeoCamera(vtkGeoCamera* camera);
135  int MaxLevel;
136 
137 private:
138  vtkGeoTerrain(const vtkGeoTerrain&) VTK_DELETE_FUNCTION;
139  void operator=(const vtkGeoTerrain&) VTK_DELETE_FUNCTION;
140 };
141 
142 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:48
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_INT_MAX
Definition: vtkType.h:157
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:54
abstract specification for renderers
Definition: vtkRenderer.h:57
vtkGeoCamera * GeoCamera
virtual vtkGeoSource * GetSource()
The source used to obtain geometry patches.
Definition: vtkGeoTerrain.h:58
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGeoTreeNodeCache * Cache
Returns the portion of the input dataset that lies within a selection frustum.
vtkGeoSource * GeoSource
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:69
boost::graph_traits< vtkGraph *>::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkGeoTerrainNode * Root
create and manipulate ordered lists of objects
Definition: vtkCollection.h:48
vtkExtractSelectedFrustum * Extractor
Manages a list of vtkGeoTreeNodes.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Geo interface to a camera.
Definition: vtkGeoCamera.h:83