VTK  9.1.0
vtkInteractorStyleTerrain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTerrain.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
84 #ifndef vtkInteractorStyleTerrain_h
85 #define vtkInteractorStyleTerrain_h
86 
87 #include "vtkInteractionStyleModule.h" // For export macro
88 #include "vtkInteractorStyle.h"
89 
90 class vtkPolyDataMapper;
91 class vtkSphereSource;
92 class vtkExtractEdges;
93 
94 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
95 {
96 public:
101 
103  void PrintSelf(ostream& os, vtkIndent indent) override;
104 
106 
110  void OnMouseMove() override;
111  void OnLeftButtonDown() override;
112  void OnLeftButtonUp() override;
113  void OnMiddleButtonDown() override;
114  void OnMiddleButtonUp() override;
115  void OnRightButtonDown() override;
116  void OnRightButtonUp() override;
118 
122  void OnChar() override;
123 
124  // These methods for the different interactions in different modes
125  // are overridden in subclasses to perform the correct motion.
126  void Rotate() override;
127  void Pan() override;
128  void Dolly() override;
129 
131 
134  vtkSetMacro(LatLongLines, vtkTypeBool);
135  vtkGetMacro(LatLongLines, vtkTypeBool);
136  vtkBooleanMacro(LatLongLines, vtkTypeBool);
138 
139 protected:
142 
143  // Internal helper attributes
145 
150 
153 
154  double MotionFactor;
155 
156 private:
158  void operator=(const vtkInteractorStyleTerrain&) = delete;
159 };
160 
161 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:146
vtkInteractorStyle.h
vtkExtractEdges
extract cell edges from any type of data
Definition: vtkExtractEdges.h:144
vtkInteractorStyleTerrain::OnLeftButtonUp
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::Pan
void Pan() override
vtkInteractorStyleTerrain::OnChar
void OnChar() override
Override the "fly-to" (f keypress) for images.
vtkInteractorStyleTerrain::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleTerrain::Rotate
void Rotate() override
These methods for the different interactions in different modes are overridden in subclasses to perfo...
vtkInteractorStyleTerrain::OnRightButtonDown
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::OnMiddleButtonUp
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::vtkInteractorStyleTerrain
vtkInteractorStyleTerrain()
vtkInteractorStyleTerrain::LatLongMapper
vtkPolyDataMapper * LatLongMapper
Definition: vtkInteractorStyleTerrain.h:147
vtkInteractorStyleTerrain::LatLongSphere
vtkSphereSource * LatLongSphere
Definition: vtkInteractorStyleTerrain.h:146
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:149
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInteractorStyleTerrain::New
static vtkInteractorStyleTerrain * New()
Instantiate the object.
vtkInteractorStyleTerrain::OnLeftButtonDown
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::Dolly
void Dolly() override
vtkInteractorStyleTerrain
manipulate camera in scene with natural view up (e.g., terrain)
Definition: vtkInteractorStyleTerrain.h:95
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:207
vtkInteractorStyleTerrain::LatLongLines
vtkTypeBool LatLongLines
Definition: vtkInteractorStyleTerrain.h:144
vtkInteractorStyleTerrain::OnMouseMove
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::~vtkInteractorStyleTerrain
~vtkInteractorStyleTerrain() override
vtkInteractorStyleTerrain::OnMiddleButtonDown
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::SelectRepresentation
void SelectRepresentation()
vtkInteractorStyleTerrain::LatLongActor
vtkActor * LatLongActor
Definition: vtkInteractorStyleTerrain.h:148
vtkInteractorStyleTerrain::OnRightButtonUp
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleTerrain::LatLongExtractEdges
vtkExtractEdges * LatLongExtractEdges
Definition: vtkInteractorStyleTerrain.h:149
vtkInteractorStyleTerrain::MotionFactor
double MotionFactor
Definition: vtkInteractorStyleTerrain.h:154
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkInteractorStyleTerrain::CreateLatLong
void CreateLatLong()