VTK
vtkInteractorStyleRubberBand3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleRubberBand3D.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 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
40 #ifndef vtkInteractorStyleRubberBand3D_h
41 #define vtkInteractorStyleRubberBand3D_h
42 
43 #include "vtkInteractionStyleModule.h" // For export macro
45 
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
55  virtual void OnLeftButtonDown();
56  virtual void OnLeftButtonUp();
57  virtual void OnMiddleButtonDown();
58  virtual void OnMiddleButtonUp();
59  virtual void OnRightButtonDown();
60  virtual void OnRightButtonUp();
61  virtual void OnMouseMove();
62  virtual void OnMouseWheelForward();
63  virtual void OnMouseWheelBackward();
64 
66 
67  vtkSetMacro(RenderOnMouseMove, bool);
68  vtkGetMacro(RenderOnMouseMove, bool);
69  vtkBooleanMacro(RenderOnMouseMove, bool);
71 
72  //BTX
74 
75  enum
76  {
77  SELECT_NORMAL = 0,
78  SELECT_UNION = 1
79  };
80  //ETX
82 
84 
85  vtkGetMacro(Interaction, int);
87 
88  //BTX
89  enum
90  {
95  SELECTING
96  };
97  //ETX
98 
100 
104  vtkGetVector2Macro(StartPosition,int);
105  vtkGetVector2Macro(EndPosition,int);
107 
108 protected:
111 
112  // The interaction mode
114 
115  // Draws the selection rubber band
117 
118  // The end position of the selection
119  int StartPosition[2];
120 
121  // The start position of the selection
122  int EndPosition[2];
123 
124  // The pixel array for the rubber band
126 
127  // Whether to trigger a render when the mouse moves
129 
130 private:
132  void operator=(const vtkInteractorStyleRubberBand3D&); // Not implemented
133 };
134 
135 #endif
vtkInteractorStyleRubberBand3D::OnRightButtonDown
virtual void OnRightButtonDown()
vtkGetVector2Macro
#define vtkGetVector2Macro(name, type)
Definition: vtkSetGet.h:270
vtkInteractorStyleRubberBand3D::New
static vtkInteractorStyleRubberBand3D * New()
vtkInteractorStyleRubberBand3D::NONE
@ NONE
Definition: vtkInteractorStyleRubberBand3D.h:91
vtkInteractorStyleRubberBand3D::PixelArray
vtkUnsignedCharArray * PixelArray
Definition: vtkInteractorStyleRubberBand3D.h:125
vtkInteractorStyleRubberBand3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInteractorStyleRubberBand3D::ROTATING
@ ROTATING
Definition: vtkInteractorStyleRubberBand3D.h:94
vtkInteractorStyleRubberBand3D::~vtkInteractorStyleRubberBand3D
~vtkInteractorStyleRubberBand3D()
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTKINTERACTIONSTYLE_EXPORT
#define VTKINTERACTIONSTYLE_EXPORT
Definition: vtkInteractionStyleModule.h:15
vtkInteractorStyleRubberBand3D::OnMouseWheelForward
virtual void OnMouseWheelForward()
vtkInteractorStyleRubberBand3D::OnLeftButtonDown
virtual void OnLeftButtonDown()
vtkInteractionStyleModule.h
vtkInteractorStyleRubberBand3D::ZOOMING
@ ZOOMING
Definition: vtkInteractorStyleRubberBand3D.h:93
vtkInteractorStyleRubberBand3D::RenderOnMouseMove
bool RenderOnMouseMove
Definition: vtkInteractorStyleRubberBand3D.h:128
vtkInteractorStyleRubberBand3D::OnMiddleButtonDown
virtual void OnMiddleButtonDown()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInteractorStyleRubberBand3D::OnMouseMove
virtual void OnMouseMove()
vtkInteractorStyleRubberBand3D::vtkInteractorStyleRubberBand3D
vtkInteractorStyleRubberBand3D()
vtkInteractorStyleRubberBand3D::OnLeftButtonUp
virtual void OnLeftButtonUp()
vtkInteractorStyleRubberBand3D::OnMouseWheelBackward
virtual void OnMouseWheelBackward()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkInteractorStyleRubberBand3D::OnMiddleButtonUp
virtual void OnMiddleButtonUp()
vtkInteractorStyleRubberBand3D::Interaction
int Interaction
Definition: vtkInteractorStyleRubberBand3D.h:113
vtkInteractorStyleRubberBand3D::PANNING
@ PANNING
Definition: vtkInteractorStyleRubberBand3D.h:92
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleTrackballCamera.h:50
vtkInteractorStyleRubberBand3D::RedrawRubberBand
void RedrawRubberBand()
vtkInteractorStyleRubberBand3D
A rubber band interactor for a 3D view.
Definition: vtkInteractorStyleRubberBand3D.h:49
vtkInteractorStyleRubberBand3D::OnRightButtonUp
virtual void OnRightButtonUp()
vtkInteractorStyleTrackballCamera.h