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 -------------------------------------------------------------------------*/
33 #ifndef vtkGeoTerrain2D_h
34 #define vtkGeoTerrain2D_h
35 
36 #include "vtkGeovisCoreModule.h" // For export macro
37 #include "vtkGeoTerrain.h"
38 
40 class vtkAssembly;
41 class vtkCollection;
42 class vtkGeoImageRepresentation;
43 class vtkGeoSource;
44 class vtkGeoTerrainNode;
45 class vtkRenderer;
46 
47 class VTKGEOVISCORE_EXPORT vtkGeoTerrain2D : public vtkGeoTerrain
48 {
49 public:
50  static vtkGeoTerrain2D *New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
59  vtkSetMacro(TextureTolerance, double);
60  vtkGetMacro(TextureTolerance, double);
62 
64 
68  vtkSetMacro(LocationTolerance, double);
69  vtkGetMacro(LocationTolerance, double);
71 
75  virtual vtkAbstractTransform* GetTransform();
76 
77 protected:
79  ~vtkGeoTerrain2D() override;
80 
83 
87  void InitializeNodeAnalysis(vtkRenderer* ren) override;
88 
93  bool NodeInViewport(vtkGeoTerrainNode* node) override;
94 
99  int EvaluateNode(vtkGeoTerrainNode* node) override;
100 
101  double CameraBounds[4];
102  double PixelSize;
103 
104 private:
105  vtkGeoTerrain2D(const vtkGeoTerrain2D&) = delete;
106  void operator=(const vtkGeoTerrain2D&) = delete;
107 };
108 
109 #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:48
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:54
abstract specification for renderers
Definition: vtkRenderer.h:57
a simple class to control print indentation
Definition: vtkIndent.h:33
superclass for all geometric transformations
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:69
create and manipulate ordered lists of objects
Definition: vtkCollection.h:48
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.