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