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 #if !defined(VTK_LEGACY_REMOVE)
48 class VTKGEOVISCORE_EXPORT vtkGeoTerrain2D : public vtkGeoTerrain
49 {
50 public:
51  static vtkGeoTerrain2D *New();
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
60  vtkSetMacro(TextureTolerance, double);
61  vtkGetMacro(TextureTolerance, double);
63 
65 
69  vtkSetMacro(LocationTolerance, double);
70  vtkGetMacro(LocationTolerance, double);
72 
76  virtual vtkAbstractTransform* GetTransform();
77 
78 protected:
80  ~vtkGeoTerrain2D() override;
81 
84 
88  void InitializeNodeAnalysis(vtkRenderer* ren) override;
89 
94  bool NodeInViewport(vtkGeoTerrainNode* node) override;
95 
100  int EvaluateNode(vtkGeoTerrainNode* node) override;
101 
102  double CameraBounds[4];
103  double PixelSize;
104 
105 private:
106  vtkGeoTerrain2D(const vtkGeoTerrain2D&) = delete;
107  void operator=(const vtkGeoTerrain2D&) = delete;
108 };
109 
110 #endif //VTK_LEGACY_REMOVE
111 #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:49
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:55
abstract specification for renderers
Definition: vtkRenderer.h:63
a simple class to control print indentation
Definition: vtkIndent.h:39
superclass for all geometric transformations
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
create and manipulate ordered 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.