VTK  9.1.0
vtkInteractorStyleTerrain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTerrain.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 =========================================================================*/
78 #ifndef vtkInteractorStyleTerrain_h
79 #define vtkInteractorStyleTerrain_h
80 
81 #include "vtkInteractionStyleModule.h" // For export macro
82 #include "vtkInteractorStyle.h"
83 
84 class vtkPolyDataMapper;
85 class vtkSphereSource;
86 class vtkExtractEdges;
87 
88 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
89 {
90 public:
95 
97  void PrintSelf(ostream& os, vtkIndent indent) override;
98 
100 
104  void OnMouseMove() override;
105  void OnLeftButtonDown() override;
106  void OnLeftButtonUp() override;
107  void OnMiddleButtonDown() override;
108  void OnMiddleButtonUp() override;
109  void OnRightButtonDown() override;
110  void OnRightButtonUp() override;
112 
116  void OnChar() override;
117 
118  // These methods for the different interactions in different modes
119  // are overridden in subclasses to perform the correct motion.
120  void Rotate() override;
121  void Pan() override;
122  void Dolly() override;
123 
125 
128  vtkSetMacro(LatLongLines, vtkTypeBool);
129  vtkGetMacro(LatLongLines, vtkTypeBool);
130  vtkBooleanMacro(LatLongLines, vtkTypeBool);
132 
133 protected:
136 
137  // Internal helper attributes
139 
144 
147 
148  double MotionFactor;
149 
150 private:
152  void operator=(const vtkInteractorStyleTerrain&) = delete;
153 };
154 
155 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
extract cell edges from any type of data
a simple class to control print indentation
Definition: vtkIndent.h:113
manipulate camera in scene with natural view up (e.g., terrain)
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void Rotate() override
These methods for the different interactions in different modes are overridden in subclasses to perfo...
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
~vtkInteractorStyleTerrain() override
void OnChar() override
Override the "fly-to" (f keypress) for images.
static vtkInteractorStyleTerrain * New()
Instantiate the object.
provide event-driven interface to the rendering window (defines trackball mode)
map vtkPolyData to graphics primitives
create a polygonal sphere centered at the origin
int vtkTypeBool
Definition: vtkABI.h:69