VTK  9.6.1
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
42
43#ifndef vtkInteractorStyleTerrain_h
44#define vtkInteractorStyleTerrain_h
45
46#include "vtkInteractionStyleModule.h" // For export macro
47#include "vtkInteractorStyle.h"
48#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
49
50VTK_ABI_NAMESPACE_BEGIN
52class vtkSphereSource;
53class vtkExtractEdges;
54
55class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleTerrain
56 : public vtkInteractorStyle
57{
58public:
63
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
72 void OnMouseMove() override;
73 void OnLeftButtonDown() override;
74 void OnLeftButtonUp() override;
75 void OnMiddleButtonDown() override;
76 void OnMiddleButtonUp() override;
77 void OnRightButtonDown() override;
78 void OnRightButtonUp() override;
80
84 void OnChar() override;
85
86 // These methods for the different interactions in different modes
87 // are overridden in subclasses to perform the correct motion.
88 void Rotate() override;
89 void Pan() override;
90 void Dolly() override;
91
93
98 vtkBooleanMacro(LatLongLines, vtkTypeBool);
100
101protected:
104
105 // Internal helper attributes
107
112
115
117
118private:
120 void operator=(const vtkInteractorStyleTerrain&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:42
extract cell edges from any type of dataset
a simple class to control print indentation
Definition vtkIndent.h:29
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.
map vtkPolyData to graphics primitives
create a polygonal sphere centered at the origin
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO