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 -------------------------------------------------------------------------*/
43 #ifndef vtkGeoView_h
44 #define vtkGeoView_h
45 
46 #include "vtkViewsGeovisModule.h" // For export macro
47 #include "vtkRenderView.h"
48 
49 class vtkActor;
50 class vtkAssembly;
53 class vtkGeoTerrain;
54 class vtkGlobeSource;
55 class vtkImageData;
56 class vtkPolyDataMapper;
57 class vtkViewTheme;
58 
59 #if !defined(VTK_LEGACY_REMOVE)
60 class VTKVIEWSGEOVIS_EXPORT vtkGeoView : public vtkRenderView
61 {
62 public:
63  static vtkGeoView *New();
64  vtkTypeMacro(vtkGeoView, vtkRenderView);
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
71  vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image);
72 
76  void PrepareForRendering() override;
77 
81  void BuildLowResEarth( double origin[3] );
82 
84 
88  virtual void SetLockHeading(bool lock);
89  virtual bool GetLockHeading();
90  vtkBooleanMacro(LockHeading, bool);
92 
96  vtkGeoInteractorStyle* GetGeoInteractorStyle();
97 
101  virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style);
102 
104 
107  virtual void SetTerrain(vtkGeoTerrain* terrain);
108  vtkGetObjectMacro(Terrain, vtkGeoTerrain);
110 
114  void Render() override;
115 
116 protected:
117  vtkGeoView();
118  ~vtkGeoView() override;
119 
125 
127 
128 private:
129  vtkGeoView(const vtkGeoView&) = delete;
130  void operator=(const vtkGeoView&) = delete;
131 };
132 
133 #endif //VTK_LEGACY_REMOVE
134 #endif
135 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:36
vtkGeoView::UsingMesaDrivers
int UsingMesaDrivers
Definition: vtkGeoView.h:126
vtkGeoView::LowResEarthSource
vtkGlobeSource * LowResEarthSource
Definition: vtkGeoView.h:120
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:58
vtkRenderView::Render
void Render() override
Updates the representations, then calls Render() on the render window associated with this view.
vtkGeoTerrain
A 3D terrain model for the globe.
Definition: vtkGeoTerrain.h:49
vtkX3D::image
Definition: vtkX3D.h:374
vtkX3D::style
Definition: vtkX3D.h:492
vtkRenderView.h
vtkGeoView::LowResEarthActor
vtkActor * LowResEarthActor
Definition: vtkGeoView.h:122
vtkGlobeSource
Sphere patch with Lat/Long scalar array.
Definition: vtkGlobeSource.h:48
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
vtkGeoView::Terrain
vtkGeoTerrain * Terrain
Definition: vtkGeoView.h:124
vtkGeoView
A 3D geospatial view.
Definition: vtkGeoView.h:60
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRenderView::New
static vtkRenderView * New()
vtkRenderView::PrepareForRendering
void PrepareForRendering() override
Called by the view when the renderer is about to render.
vtkRenderView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeoAlignedImageRepresentation
A multi-resolution image tree.
Definition: vtkGeoAlignedImageRepresentation.h:42
vtkGeoView::LowResEarthMapper
vtkPolyDataMapper * LowResEarthMapper
Definition: vtkGeoView.h:121
vtkGeoInteractorStyle
Interaction for a globe.
Definition: vtkGeoInteractorStyle.h:47
vtkGeoView::Assembly
vtkAssembly * Assembly
Definition: vtkGeoView.h:123
vtkAssembly
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:69