VTK
vtkGeoView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoView.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 -------------------------------------------------------------------------*/
43 #ifndef vtkGeoView_h
44 #define vtkGeoView_h
45 
46 #include "vtkViewsGeovisModule.h" // For export macro
47 #include "vtkRenderView.h"
48 
49 class vtkActor;
50 class vtkAssembly;
53 class vtkGeoTerrain;
54 class vtkGlobeSource;
55 class vtkImageData;
56 class vtkPolyDataMapper;
57 class vtkViewTheme;
58 
59 class VTKVIEWSGEOVIS_EXPORT vtkGeoView : public vtkRenderView
60 {
61 public:
62  static vtkGeoView *New();
63  vtkTypeMacro(vtkGeoView, vtkRenderView);
64  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
65 
70  vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image);
71 
75  void PrepareForRendering() VTK_OVERRIDE;
76 
80  void BuildLowResEarth( double origin[3] );
81 
83 
87  virtual void SetLockHeading(bool lock);
88  virtual bool GetLockHeading();
89  vtkBooleanMacro(LockHeading, bool);
91 
95  vtkGeoInteractorStyle* GetGeoInteractorStyle();
96 
100  virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style);
101 
103 
106  virtual void SetTerrain(vtkGeoTerrain* terrain);
107  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
109 
113  void Render() VTK_OVERRIDE;
114 
115 protected:
116  vtkGeoView();
117  ~vtkGeoView() VTK_OVERRIDE;
118 
119  vtkGlobeSource* LowResEarthSource;
120  vtkPolyDataMapper* LowResEarthMapper;
121  vtkActor* LowResEarthActor;
122  vtkAssembly* Assembly;
123  vtkGeoTerrain* Terrain;
124 
125  int UsingMesaDrivers;
126 
127 private:
128  vtkGeoView(const vtkGeoView&) VTK_DELETE_FUNCTION;
129  void operator=(const vtkGeoView&) VTK_DELETE_FUNCTION;
130 };
131 
132 #endif
133 
A 3D geospatial view.
Definition: vtkGeoView.h:59
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
Interaction for a globe.
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:48
static vtkRenderView * New()
void PrepareForRendering() override
Called by the view when the renderer is about to render.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:69
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:58
Sphere patch with Lat/Long scalar array.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.