VTK  9.3.0
vtkInteractorStyleTerrain.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
49#ifndef vtkInteractorStyleTerrain_h
50#define vtkInteractorStyleTerrain_h
51
52#include "vtkInteractionStyleModule.h" // For export macro
53#include "vtkInteractorStyle.h"
54
55VTK_ABI_NAMESPACE_BEGIN
57class vtkSphereSource;
58class vtkExtractEdges;
59
60class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
61{
62public:
67
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
76 void OnMouseMove() override;
77 void OnLeftButtonDown() override;
78 void OnLeftButtonUp() override;
79 void OnMiddleButtonDown() override;
80 void OnMiddleButtonUp() override;
81 void OnRightButtonDown() override;
82 void OnRightButtonUp() override;
84
88 void OnChar() override;
89
90 // These methods for the different interactions in different modes
91 // are overridden in subclasses to perform the correct motion.
92 void Rotate() override;
93 void Pan() override;
94 void Dolly() override;
95
97
100 vtkSetMacro(LatLongLines, vtkTypeBool);
101 vtkGetMacro(LatLongLines, vtkTypeBool);
102 vtkBooleanMacro(LatLongLines, vtkTypeBool);
104
105protected:
108
109 // Internal helper attributes
111
116
119
121
122private:
124 void operator=(const vtkInteractorStyleTerrain&) = delete;
125};
126
127VTK_ABI_NAMESPACE_END
128#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:50
extract cell edges from any type of dataset
a simple class to control print indentation
Definition vtkIndent.h:38
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.
static vtkInteractorStyleTerrain * New()
Instantiate the object.
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.
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:64