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
39
40#ifndef vtkInteractorStyleTerrain_h
41#define vtkInteractorStyleTerrain_h
42
43#include "vtkInteractionStyleModule.h" // For export macro
44#include "vtkInteractorStyle.h"
45#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
46
47VTK_ABI_NAMESPACE_BEGIN
49class vtkSphereSource;
50class vtkExtractEdges;
51
52class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleTerrain
53 : public vtkInteractorStyle
54{
55public:
60
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
69 void OnMouseMove() override;
70 void OnLeftButtonDown() override;
71 void OnLeftButtonUp() override;
72 void OnMiddleButtonDown() override;
73 void OnMiddleButtonUp() override;
74 void OnRightButtonDown() override;
75 void OnRightButtonUp() override;
77
81 void OnChar() override;
82
83 // These methods for the different interactions in different modes
84 // are overridden in subclasses to perform the correct motion.
85 void Rotate() override;
86 void Pan() override;
87 void Dolly() override;
88
90
95 vtkBooleanMacro(LatLongLines, vtkTypeBool);
97
98protected:
101
102 // Internal helper attributes
104
109
112
114
115private:
117 void operator=(const vtkInteractorStyleTerrain&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#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