VTK
vtkGeoTerrain2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoTerrain2D.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 -------------------------------------------------------------------------*/
36 #ifndef vtkGeoTerrain2D_h
37 #define vtkGeoTerrain2D_h
38 
39 #include "vtkGeovisCoreModule.h" // For export macro
40 #include "vtkGeoTerrain.h"
41 
43 class vtkAssembly;
44 class vtkCollection;
45 class vtkGeoImageRepresentation;
46 class vtkGeoSource;
47 class vtkGeoTerrainNode;
48 class vtkRenderer;
49 
50 class VTKGEOVISCORE_EXPORT vtkGeoTerrain2D : public vtkGeoTerrain
51 {
52 public:
53  static vtkGeoTerrain2D *New();
55  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
56 
58 
62  vtkSetMacro(TextureTolerance, double);
63  vtkGetMacro(TextureTolerance, double);
65 
67 
71  vtkSetMacro(LocationTolerance, double);
72  vtkGetMacro(LocationTolerance, double);
74 
78  virtual vtkAbstractTransform* GetTransform();
79 
80 protected:
82  ~vtkGeoTerrain2D();
83 
86 
90  virtual void InitializeNodeAnalysis(vtkRenderer* ren);
91 
96  virtual bool NodeInViewport(vtkGeoTerrainNode* node);
97 
102  virtual int EvaluateNode(vtkGeoTerrainNode* node);
103 
104  double CameraBounds[4];
105  double PixelSize;
106 
107 private:
108  vtkGeoTerrain2D(const vtkGeoTerrain2D&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkGeoTerrain2D&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
virtual int EvaluateNode(vtkGeoTerrainNode *node)
AddActors() calls to to evaluate whether a node should be refined (1), coarsened (-1), or remain at the same level (0).
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:51
A 2D terrain model for the globe.
static vtkGeoTerrain * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:57
abstract specification for renderers
Definition: vtkRenderer.h:63
a simple class to control print indentation
Definition: vtkIndent.h:39
superclass for all geometric transformations
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
virtual bool NodeInViewport(vtkGeoTerrainNode *node)
AddActors() calls this to determine if a node is in the current viewport.
double LocationTolerance
virtual void InitializeNodeAnalysis(vtkRenderer *ren)
AddActors() calls this to setup parameters for evaluating nodes.