VTK
vtkRectilinearWipeWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearWipeWidget.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 =========================================================================*/
82 #ifndef __vtkRectilinearWipeWidget_h
83 #define __vtkRectilinearWipeWidget_h
84 
85 #include "vtkAbstractWidget.h"
86 
88 
89 
91 {
92 public:
94  static vtkRectilinearWipeWidget *New();
95 
97 
99  void PrintSelf(ostream& os, vtkIndent indent);
101 
103 
107  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
109 
111 
113  {return reinterpret_cast<vtkRectilinearWipeRepresentation*>(this->WidgetRep);}
115 
117  virtual void CreateDefaultRepresentation();
118 
119 protected:
122 
123  // These methods handle events
124  static void SelectAction(vtkAbstractWidget*);
125  static void MoveAction(vtkAbstractWidget*);
126  static void EndSelectAction(vtkAbstractWidget*);
127 
128  // helper methods for cursor management
129  void SetCursor(int state);
130 
131 //BTX - manage the state of the widget
134  {
135  Start=0,
136  Selected
137  };
138 //ETX
139 
140 private:
141  vtkRectilinearWipeWidget(const vtkRectilinearWipeWidget&); //Not implemented
142  void operator=(const vtkRectilinearWipeWidget&); //Not implemented
143 };
144 
145 #endif