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 -------------------------------------------------------------------------*/
48 #ifndef __vtkGeoView_h
49 #define __vtkGeoView_h
50 
51 #include "vtkRenderView.h"
52 
53 class vtkActor;
54 class vtkAssembly;
57 class vtkGeoTerrain;
58 class vtkGlobeSource;
59 class vtkImageData;
60 class vtkPolyDataMapper;
61 class vtkViewTheme;
62 
64 {
65 public:
66  static vtkGeoView *New();
67  vtkTypeMacro(vtkGeoView, vtkRenderView);
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
72  vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image);
73 
75  virtual void PrepareForRendering();
76 
78  void BuildLowResEarth( double origin[3] );
79 
81 
82  virtual void SetLockHeading(bool lock);
83  virtual bool GetLockHeading();
84  vtkBooleanMacro(LockHeading, bool);
86 
88  vtkGeoInteractorStyle* GetGeoInteractorStyle();
89 
91  virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style);
92 
94 
95  virtual void SetTerrain(vtkGeoTerrain* terrain);
96  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
98 
100  virtual void Render();
101 
102 protected:
103  vtkGeoView();
104  ~vtkGeoView();
105 
111 
113 
114 private:
115  vtkGeoView(const vtkGeoView&); // Not implemented.
116  void operator=(const vtkGeoView&); // Not implemented.
117 };
118 
119 #endif
120 
A 3D geospatial view.
Definition: vtkGeoView.h:63
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
Interaction for a globe.
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:49
vtkPolyDataMapper * LowResEarthMapper
Definition: vtkGeoView.h:107
static vtkRenderView * New()
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:46
a simple class to control print indentation
Definition: vtkIndent.h:37
int UsingMesaDrivers
Definition: vtkGeoView.h:112
virtual void Render()
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
#define VTK_GEOVIS_EXPORT
vtkAssembly * Assembly
Definition: vtkGeoView.h:109
virtual void PrepareForRendering()
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:73
map vtkPolyData to graphics primitives
vtkGlobeSource * LowResEarthSource
Definition: vtkGeoView.h:106
A view containing a renderer.
Definition: vtkRenderView.h:62
vtkGeoTerrain * Terrain
Definition: vtkGeoView.h:110
Sphere patch with Lat/Long scalar array.
void PrintSelf(ostream &os, vtkIndent indent)
vtkActor * LowResEarthActor
Definition: vtkGeoView.h:108