VTK
vtkInteractorStyleTrackballActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTrackballActor.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 =========================================================================*/
37 #ifndef vtkInteractorStyleTrackballActor_h
38 #define vtkInteractorStyleTrackballActor_h
39 
40 #include "vtkInteractionStyleModule.h" // For export macro
41 #include "vtkInteractorStyle.h"
42 
43 class vtkCellPicker;
44 
45 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTrackballActor : public vtkInteractorStyle
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
57  virtual void OnMouseMove();
58  virtual void OnLeftButtonDown();
59  virtual void OnLeftButtonUp();
60  virtual void OnMiddleButtonDown();
61  virtual void OnMiddleButtonUp();
62  virtual void OnRightButtonDown();
63  virtual void OnRightButtonUp();
65 
66  // These methods for the different interactions in different modes
67  // are overridden in subclasses to perform the correct motion. Since
68  // they might be called from OnTimer, they do not have mouse coord parameters
69  // (use interactor's GetEventPosition and GetLastEventPosition)
70  virtual void Rotate();
71  virtual void Spin();
72  virtual void Pan();
73  virtual void Dolly();
74  virtual void UniformScale();
75 
76 protected:
79 
80  void FindPickedActor(int x, int y);
81 
82  void Prop3DTransform(vtkProp3D *prop3D,
83  double *boxCenter,
84  int NumRotation,
85  double **rotate,
86  double *scale);
87 
88  double MotionFactor;
89 
92 
93 private:
95  void operator=(const vtkInteractorStyleTrackballActor&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
vtkInteractorStyle.h
vtkX3D::scale
@ scale
Definition: vtkX3D.h:229
vtkInteractorStyleTrackballActor::~vtkInteractorStyleTrackballActor
~vtkInteractorStyleTrackballActor()
vtkInteractorStyleTrackballActor::OnRightButtonDown
virtual void OnRightButtonDown()
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkInteractorStyleTrackballActor::OnMiddleButtonUp
virtual void OnMiddleButtonUp()
vtkInteractorStyleTrackballActor::Dolly
virtual void Dolly()
vtkInteractorStyleTrackballActor::Spin
virtual void Spin()
vtkInteractorStyleTrackballActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleTrackballActor::OnMiddleButtonDown
virtual void OnMiddleButtonDown()
vtkInteractorStyleTrackballActor::vtkInteractorStyleTrackballActor
vtkInteractorStyleTrackballActor()
vtkInteractorStyleTrackballActor::FindPickedActor
void FindPickedActor(int x, int y)
vtkInteractorStyleTrackballActor::Pan
virtual void Pan()
vtkInteractorStyleTrackballActor::UniformScale
virtual void UniformScale()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkInteractorStyleTrackballActor::MotionFactor
double MotionFactor
Definition: vtkInteractorStyleTrackballActor.h:88
vtkInteractorStyleTrackballActor::OnMouseMove
virtual void OnMouseMove()
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:134
vtkInteractorStyleTrackballActor::Rotate
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
vtkInteractorStyleTrackballActor::OnLeftButtonDown
virtual void OnLeftButtonDown()
vtkInteractorStyleTrackballActor::InteractionProp
vtkProp3D * InteractionProp
Definition: vtkInteractorStyleTrackballActor.h:90
vtkInteractorStyleTrackballActor::InteractionPicker
vtkCellPicker * InteractionPicker
Definition: vtkInteractorStyleTrackballActor.h:91
vtkInteractorStyleTrackballActor::OnRightButtonUp
virtual void OnRightButtonUp()
vtkInteractorStyleTrackballActor::New
static vtkInteractorStyleTrackballActor * New()
vtkInteractorStyleTrackballActor::OnLeftButtonUp
virtual void OnLeftButtonUp()
vtkCellPicker
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:70
vtkInteractorStyleTrackballActor::Prop3DTransform
void Prop3DTransform(vtkProp3D *prop3D, double *boxCenter, int NumRotation, double **rotate, double *scale)
vtkInteractorStyleTrackballActor
manipulate objects in the scene independent of each other
Definition: vtkInteractorStyleTrackballActor.h:46