VTK
vtkButtonWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkButtonWidget.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 =========================================================================*/
60 #ifndef __vtkButtonWidget_h
61 #define __vtkButtonWidget_h
62 
63 #include "vtkAbstractWidget.h"
64 
66 
67 
69 {
70 public:
72  static vtkButtonWidget *New();
73 
75 
77  void PrintSelf(ostream& os, vtkIndent indent);
79 
81 
85  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
87 
89 
91  {return reinterpret_cast<vtkButtonRepresentation*>(this->WidgetRep);}
93 
96 
97 protected:
100 
101  // These are the events that are handled
102  static void SelectAction(vtkAbstractWidget*);
103  static void MoveAction(vtkAbstractWidget*);
104  static void EndSelectAction(vtkAbstractWidget*);
105 
106 //BTX - manage the state of the widget
109  {
110  Start=0,
112  Selecting
113  };
114  //ETX
115 
116 private:
117  vtkButtonWidget(const vtkButtonWidget&); //Not implemented
118  void operator=(const vtkButtonWidget&); //Not implemented
119 };
120 
121 #endif