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
40#ifndef vtkInteractorStyleTerrain_h
41#define vtkInteractorStyleTerrain_h
42
43#include "vtkInteractionStyleModule.h" // For export macro
44#include "vtkInteractorStyle.h"
45
46VTK_ABI_NAMESPACE_BEGIN
48class vtkSphereSource;
49class vtkExtractEdges;
50
51class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
52{
53public:
58
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
67 void OnMouseMove() override;
68 void OnLeftButtonDown() override;
69 void OnLeftButtonUp() override;
70 void OnMiddleButtonDown() override;
71 void OnMiddleButtonUp() override;
72 void OnRightButtonDown() override;
73 void OnRightButtonUp() override;
75
79 void OnChar() override;
80
81 // These methods for the different interactions in different modes
82 // are overridden in subclasses to perform the correct motion.
83 void Rotate() override;
84 void Pan() override;
85 void Dolly() override;
86
88
91 vtkSetMacro(LatLongLines, vtkTypeBool);
92 vtkGetMacro(LatLongLines, vtkTypeBool);
93 vtkBooleanMacro(LatLongLines, vtkTypeBool);
95
96protected:
99
100 // Internal helper attributes
102
107
110
112
113private:
115 void operator=(const vtkInteractorStyleTerrain&) = delete;
116};
117
118VTK_ABI_NAMESPACE_END
119#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
extract cell edges from any type of dataset
a simple class to control print indentation
Definition vtkIndent.h:29
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