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 -------------------------------------------------------------------------*/
49 #ifndef vtkGeoView_h
50 #define vtkGeoView_h
51 
52 #include "vtkViewsGeovisModule.h" // For export macro
53 #include "vtkRenderView.h"
54 
55 class vtkActor;
56 class vtkAssembly;
59 class vtkGeoTerrain;
60 class vtkGlobeSource;
61 class vtkImageData;
62 class vtkPolyDataMapper;
63 class vtkViewTheme;
64 
65 class VTKVIEWSGEOVIS_EXPORT vtkGeoView : public vtkRenderView
66 {
67 public:
68  static vtkGeoView *New();
69  vtkTypeMacro(vtkGeoView, vtkRenderView);
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
76  vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image);
77 
81  virtual void PrepareForRendering();
82 
86  void BuildLowResEarth( double origin[3] );
87 
89 
93  virtual void SetLockHeading(bool lock);
94  virtual bool GetLockHeading();
95  vtkBooleanMacro(LockHeading, bool);
97 
101  vtkGeoInteractorStyle* GetGeoInteractorStyle();
102 
106  virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style);
107 
109 
112  virtual void SetTerrain(vtkGeoTerrain* terrain);
113  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
115 
119  virtual void Render();
120 
121 protected:
122  vtkGeoView();
123  ~vtkGeoView();
124 
130 
132 
133 private:
134  vtkGeoView(const vtkGeoView&) VTK_DELETE_FUNCTION;
135  void operator=(const vtkGeoView&) VTK_DELETE_FUNCTION;
136 };
137 
138 #endif
139 
A 3D geospatial view.
Definition: vtkGeoView.h:65
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Interaction for a globe.
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:51
vtkPolyDataMapper * LowResEarthMapper
Definition: vtkGeoView.h:126
static vtkRenderView * New()
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:48
a simple class to control print indentation
Definition: vtkIndent.h:39
int UsingMesaDrivers
Definition: vtkGeoView.h:131
virtual void Render()
Updates the representations, then calls Render() on the render window associated with this view...
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkAssembly * Assembly
Definition: vtkGeoView.h:128
virtual void PrepareForRendering()
Called by the view when the renderer is about to render.
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
map vtkPolyData to graphics primitives
vtkGlobeSource * LowResEarthSource
Definition: vtkGeoView.h:125
A view containing a renderer.
Definition: vtkRenderView.h:61
vtkGeoTerrain * Terrain
Definition: vtkGeoView.h:129
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)
Methods invoked by print to print information about the object including superclasses.
vtkActor * LowResEarthActor
Definition: vtkGeoView.h:127