VTK
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 =========================================================================*/
54 #ifndef __vtkInteractorStyleTerrain_h
55 #define __vtkInteractorStyleTerrain_h
56 
57 #include "vtkInteractorStyle.h"
58 
59 class vtkPolyDataMapper;
60 class vtkSphereSource;
61 class vtkExtractEdges;
62 
64 {
65 public:
68 
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
73 
75  virtual void OnMouseMove();
76  virtual void OnLeftButtonDown();
77  virtual void OnLeftButtonUp();
78  virtual void OnMiddleButtonDown();
79  virtual void OnMiddleButtonUp();
80  virtual void OnRightButtonDown();
81  virtual void OnRightButtonUp();
83 
85  virtual void OnChar();
86 
87  // These methods for the different interactions in different modes
88  // are overridden in subclasses to perform the correct motion.
89  virtual void Rotate();
90  virtual void Pan();
91  virtual void Dolly();
92 
94 
95  vtkSetMacro(LatLongLines,int);
96  vtkGetMacro(LatLongLines,int);
97  vtkBooleanMacro(LatLongLines,int);
99 
100 protected:
103 
104  // Internal helper attributes
106 
111 
112  void SelectRepresentation();
113  void CreateLatLong();
114 
115  double MotionFactor;
116 
117 private:
118  vtkInteractorStyleTerrain(const vtkInteractorStyleTerrain&); // Not implemented.
119  void operator=(const vtkInteractorStyleTerrain&); // Not implemented.
120 
121 };
122 
123 #endif
124 
virtual void OnLeftButtonDown()
virtual void OnMiddleButtonDown()
virtual void OnRightButtonDown()
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
virtual void OnLeftButtonUp()
static vtkInteractorStyle * New()
virtual void OnMiddleButtonUp()
manipulate camera in scene with natural view up (e.g., terrain)
virtual void OnRightButtonUp()
create a polygonal sphere centered at the origin
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_RENDERING_EXPORT
map vtkPolyData to graphics primitives
virtual void OnChar()
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnMouseMove()
extract cell edges from any type of data