VTK  9.2.6
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 =========================================================================*/
64 #ifndef vtkInteractorStyleTerrain_h
65 #define vtkInteractorStyleTerrain_h
66 
67 #include "vtkInteractionStyleModule.h" // For export macro
68 #include "vtkInteractorStyle.h"
69 
70 class vtkPolyDataMapper;
71 class vtkSphereSource;
72 class vtkExtractEdges;
73 
74 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
75 {
76 public:
81 
83  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
86 
90  void OnMouseMove() override;
91  void OnLeftButtonDown() override;
92  void OnLeftButtonUp() override;
93  void OnMiddleButtonDown() override;
94  void OnMiddleButtonUp() override;
95  void OnRightButtonDown() override;
96  void OnRightButtonUp() override;
98 
102  void OnChar() override;
103 
104  // These methods for the different interactions in different modes
105  // are overridden in subclasses to perform the correct motion.
106  void Rotate() override;
107  void Pan() override;
108  void Dolly() override;
109 
111 
114  vtkSetMacro(LatLongLines, vtkTypeBool);
115  vtkGetMacro(LatLongLines, vtkTypeBool);
116  vtkBooleanMacro(LatLongLines, vtkTypeBool);
118 
119 protected:
122 
123  // Internal helper attributes
125 
130 
133 
134  double MotionFactor;
135 
136 private:
138  void operator=(const vtkInteractorStyleTerrain&) = delete;
139 };
140 
141 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:61
extract cell edges from any type of dataset
a simple class to control print indentation
Definition: vtkIndent.h:49
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