VTK  9.5.2
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
68
69#ifndef vtkInteractorStyleTerrain_h
70#define vtkInteractorStyleTerrain_h
71
72#include "vtkInteractionStyleModule.h" // For export macro
73#include "vtkInteractorStyle.h"
74#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
75
76VTK_ABI_NAMESPACE_BEGIN
78class vtkSphereSource;
79class vtkExtractEdges;
80
81class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleTerrain
82 : public vtkInteractorStyle
83{
84public:
89
91 void PrintSelf(ostream& os, vtkIndent indent) override;
92
94
98 void OnMouseMove() override;
99 void OnLeftButtonDown() override;
100 void OnLeftButtonUp() override;
101 void OnMiddleButtonDown() override;
102 void OnMiddleButtonUp() override;
103 void OnRightButtonDown() override;
104 void OnRightButtonUp() override;
106
110 void OnChar() override;
111
112 // These methods for the different interactions in different modes
113 // are overridden in subclasses to perform the correct motion.
114 void Rotate() override;
115 void Pan() override;
116 void Dolly() override;
117
119
124 vtkBooleanMacro(LatLongLines, vtkTypeBool);
126
127protected:
130
131 // Internal helper attributes
133
138
141
143
144private:
146 void operator=(const vtkInteractorStyleTerrain&) = delete;
147};
148
149VTK_ABI_NAMESPACE_END
150#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
extract cell edges from any type of dataset
a simple class to control print indentation
Definition vtkIndent.h:108
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