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
43class vtkAssembly;
44class vtkCollection;
45class vtkGeoImageRepresentation;
46class vtkGeoSource;
48class vtkRenderer;
49
50class VTKGEOVISCORE_EXPORT vtkGeoTerrain2D : public vtkGeoTerrain
51{
52public:
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
79
80protected:
83
86
91
96 virtual bool NodeInViewport(vtkGeoTerrainNode* node);
97
102 virtual int EvaluateNode(vtkGeoTerrainNode* node);
103
104 double CameraBounds[4];
105 double PixelSize;
106
107private:
108 vtkGeoTerrain2D(const vtkGeoTerrain2D&) VTK_DELETE_FUNCTION;
109 void operator=(const vtkGeoTerrain2D&) VTK_DELETE_FUNCTION;
110};
111
112#endif
superclass for all geometric transformations
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:76
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:58
A 2D terrain model for the globe.
virtual vtkAbstractTransform * GetTransform()
Return the projection transformation used by this 2D terrain.
virtual int EvaluateNode(vtkGeoTerrainNode *node)
AddActors() calls to to evaluate whether a node should be refined (1), coarsened (-1),...
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.
static vtkGeoTerrain2D * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:52
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.