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 -------------------------------------------------------------------------*/
46 #ifndef vtkGeoView_h
47 #define vtkGeoView_h
48 
49 #include "vtkViewsGeovisModule.h" // For export macro
50 #include "vtkRenderView.h"
51 
52 class vtkActor;
53 class vtkAssembly;
56 class vtkGeoTerrain;
57 class vtkGlobeSource;
58 class vtkImageData;
59 class vtkPolyDataMapper;
60 class vtkViewTheme;
61 
62 #if !defined(VTK_LEGACY_REMOVE)
63 class VTKVIEWSGEOVIS_EXPORT vtkGeoView : public vtkRenderView
64 {
65 public:
66  static vtkGeoView *New();
67  vtkTypeMacro(vtkGeoView, vtkRenderView);
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
75 
79  void PrepareForRendering() override;
80 
84  void BuildLowResEarth( double origin[3] );
85 
87 
91  virtual void SetLockHeading(bool lock);
92  virtual bool GetLockHeading();
93  vtkBooleanMacro(LockHeading, bool);
95 
100 
105 
107 
110  virtual void SetTerrain(vtkGeoTerrain* terrain);
111  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
113 
117  void Render() override;
118 
119 protected:
121  ~vtkGeoView() override;
122 
128 
130 
131 private:
132  vtkGeoView(const vtkGeoView&) = delete;
133  void operator=(const vtkGeoView&) = delete;
134 };
135 
136 #endif //VTK_LEGACY_REMOVE
137 #endif
138 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:43
vtkGeoView::UsingMesaDrivers
int UsingMesaDrivers
Definition: vtkGeoView.h:129
vtkGeoView::LowResEarthSource
vtkGlobeSource * LowResEarthSource
Definition: vtkGeoView.h:123
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:62
vtkGeoView::GetGeoInteractorStyle
vtkGeoInteractorStyle * GetGeoInteractorStyle()
Convenience method for obtaining the internal interactor style.
vtkGeoView::AddDefaultImageRepresentation
vtkGeoAlignedImageRepresentation * AddDefaultImageRepresentation(vtkImageData *image)
Adds an image representation with a simple terrain model using the image in the specified file as the...
vtkGeoTerrain
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:50
vtkX3D::image
@ image
Definition: vtkX3D.h:374
vtkX3D::style
@ style
Definition: vtkX3D.h:492
vtkGeoView::SetTerrain
virtual void SetTerrain(vtkGeoTerrain *terrain)
The terrain (geometry) model for this earth view.
vtkRenderView.h
vtkGeoView::SetLockHeading
virtual void SetLockHeading(bool lock)
Whether the view locks the heading when panning.
vtkGeoView::LowResEarthActor
vtkActor * LowResEarthActor
Definition: vtkGeoView.h:125
vtkGeoView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGlobeSource
Sphere patch with Lat/Long scalar array.
Definition: vtkGlobeSource.h:52
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
vtkGeoView::GetLockHeading
virtual bool GetLockHeading()
vtkGeoView::Terrain
vtkGeoTerrain * Terrain
Definition: vtkGeoView.h:127
vtkGeoView
A 3D geospatial view.
Definition: vtkGeoView.h:64
vtkGeoView::SetGeoInteractorStyle
virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle *style)
Method to change the interactor style.
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGeoView::vtkGeoView
vtkGeoView()
vtkGeoView::New
static vtkGeoView * New()
vtkGeoView::PrepareForRendering
void PrepareForRendering() override
Prepares the view for rendering.
vtkGeoAlignedImageRepresentation
A multi-resolution image tree.
Definition: vtkGeoAlignedImageRepresentation.h:43
vtkGeoView::Render
void Render() override
Update and render the view.
vtkGeoView::~vtkGeoView
~vtkGeoView() override
vtkGeoView::LowResEarthMapper
vtkPolyDataMapper * LowResEarthMapper
Definition: vtkGeoView.h:124
vtkGeoInteractorStyle
Interaction for a globe.
Definition: vtkGeoInteractorStyle.h:49
vtkGeoView::Assembly
vtkAssembly * Assembly
Definition: vtkGeoView.h:126
vtkAssembly
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:76
vtkGeoView::BuildLowResEarth
void BuildLowResEarth(double origin[3])
Rebuild low-res earth source; call after (re)setting origin.