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 
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 
102 
107 
109 
112  virtual void SetTerrain(vtkGeoTerrain* terrain);
113  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
115 
119  virtual void Render();
120 
121 protected:
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 
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:76
Interaction for a globe.
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:52
A 3D geospatial view.
Definition: vtkGeoView.h:66
virtual void SetTerrain(vtkGeoTerrain *terrain)
The terrain (geometry) model for this earth view.
vtkActor * LowResEarthActor
Definition: vtkGeoView.h:127
int UsingMesaDrivers
Definition: vtkGeoView.h:131
vtkGlobeSource * LowResEarthSource
Definition: vtkGeoView.h:125
virtual bool GetLockHeading()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkGeoView * New()
virtual void SetLockHeading(bool lock)
Whether the view locks the heading when panning.
vtkAssembly * Assembly
Definition: vtkGeoView.h:128
virtual void Render()
Update and render the view.
vtkGeoTerrain * Terrain
Definition: vtkGeoView.h:129
virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle *style)
Method to change the interactor style.
vtkGeoAlignedImageRepresentation * AddDefaultImageRepresentation(vtkImageData *image)
Adds an image representation with a simple terrain model using the image in the specified file as the...
void BuildLowResEarth(double origin[3])
Rebuild low-res earth source; call after (re)setting origin.
virtual void PrepareForRendering()
Prepares the view for rendering.
vtkGeoInteractorStyle * GetGeoInteractorStyle()
Convenience method for obtaining the internal interactor style.
vtkPolyDataMapper * LowResEarthMapper
Definition: vtkGeoView.h:126
Sphere patch with Lat/Long scalar array.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:62
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
@ style
Definition: vtkX3D.h:492
@ image
Definition: vtkX3D.h:374
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.