Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
vtkSimpleActorInteractor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSimpleActorInteractor.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 =========================================================================*/
15 // .NAME vtkSimpleActorInteractor -
16 
17 // .SECTION Description
18 
19 
20 #ifndef __vtkSimpleActorInteractor_h
21 #define __vtkSimpleActorInteractor_h
22 
23 #include "vtkInteractorStyleTrackballActor.h"
24 #include "ddAppConfigure.h"
25 
26 
27 class DD_APP_EXPORT vtkSimpleActorInteractor : public vtkInteractorStyleTrackballActor
28 {
29 public:
30  static vtkSimpleActorInteractor *New();
31  vtkTypeMacro(vtkSimpleActorInteractor, vtkInteractorStyleTrackballActor);
32  void PrintSelf(ostream& os, vtkIndent indent);
33 
34  // Description:
35  // Override parent class methods to remap the interaction style
36  virtual void OnLeftButtonDown();
37  virtual void OnLeftButtonUp();
38  virtual void OnMiddleButtonDown();
39  virtual void OnMiddleButtonUp();
40  virtual void OnRightButtonDown();
41  virtual void OnRightButtonUp();
42 
43  // Description:
44  // Override parent class method to dolly camera instead of actor
45  virtual void Dolly();
46 
47 protected:
48 
50  virtual ~vtkSimpleActorInteractor();
51 
52 
53 private:
54  vtkSimpleActorInteractor(const vtkSimpleActorInteractor&); // Not implemented.
55  void operator=(const vtkSimpleActorInteractor&); // Not implemented.
56 };
57 #endif
#define DD_APP_EXPORT