VTK
vtkGeoView2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoView2D.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 vtkGeoView2D_h
44 #define vtkGeoView2D_h
45 
46 #include "vtkViewsGeovisModule.h" // For export macro
47 #include "vtkRenderView.h"
48 
49 class vtkAssembly;
50 class vtkGeoTerrain2D;
51 class vtkViewTheme;
52 
53 #if !defined(VTK_LEGACY_REMOVE)
54 class VTKVIEWSGEOVIS_EXPORT vtkGeoView2D : public vtkRenderView
55 {
56 public:
57  static vtkGeoView2D *New();
58  vtkTypeMacro(vtkGeoView2D,vtkRenderView);
59  void PrintSelf( ostream& os, vtkIndent indent ) override;
60 
61  vtkGeoView2D();
62  ~vtkGeoView2D() override;
63 
64  vtkGetObjectMacro(Surface, vtkGeoTerrain2D);
65  virtual void SetSurface(vtkGeoTerrain2D* surf);
66 
71 
75  void ApplyViewTheme(vtkViewTheme* theme) override;
76 
80  void Render() override;
81 
82 protected:
85 
86  void PrepareForRendering() override;
87 
88 private:
89  vtkGeoView2D(const vtkGeoView2D&) = delete;
90  void operator=(const vtkGeoView2D&) = delete;
91 };
92 
93 #endif //VTK_LEGACY_REMOVE
94 #endif
virtual vtkAbstractTransform * GetTransform()
Set the view's transform.
A 2D terrain model for the globe.
static vtkRenderView * New()
void PrepareForRendering() override
Called by the view when the renderer is about to render.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:48
void ApplyViewTheme(vtkViewTheme *theme) override
Applies a view theme to this view.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGeoTerrain2D * Surface
Definition: vtkGeoView2D.h:83
vtkAssembly * Assembly
Definition: vtkGeoView2D.h:84
superclass for all geometric transformations
void Render() override
Updates the representations, then calls Render() on the render window associated with this view...
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
A view containing a renderer.
Definition: vtkRenderView.h:61
A 2D geospatial view.
Definition: vtkGeoView2D.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.