VTK
vtkCheckerboardWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCheckerboardWidget.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 =========================================================================*/
51 #ifndef vtkCheckerboardWidget_h
52 #define vtkCheckerboardWidget_h
53 
54 #include "vtkInteractionWidgetsModule.h" // For export macro
55 #include "vtkAbstractWidget.h"
56 
58 class vtkSliderWidget;
59 
60 
62 {
63 public:
65  static vtkCheckerboardWidget *New();
66 
68 
70  void PrintSelf(ostream& os, vtkIndent indent);
72 
76  virtual void SetEnabled(int);
77 
79 
83  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
85 
87 
89  {return reinterpret_cast<vtkCheckerboardRepresentation*>(this->WidgetRep);}
91 
94 
95 protected:
98 
99  // The four slider widgets
104 
105  // Callback interface
106  void StartCheckerboardInteraction();
107  void CheckerboardInteraction(int sliderNum);
108  void EndCheckerboardInteraction();
109 
110 //BTX
111  friend class vtkCWCallback;
112 //ETX
113 
114 private:
115  vtkCheckerboardWidget(const vtkCheckerboardWidget&); //Not implemented
116  void operator=(const vtkCheckerboardWidget&); //Not implemented
117 };
118 
119 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtkSliderWidget * RightSlider
void SetRepresentation(vtkCheckerboardRepresentation *r)
virtual void CreateDefaultRepresentation()=0
vtkCheckerboardRepresentation * GetCheckerboardRepresentation()
interactively set the number of divisions in 2D image checkerboard
vtkWidgetRepresentation * WidgetRep
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSliderWidget * BottomSlider
set a value by manipulating a slider
define the API for widget / widget representation
vtkSliderWidget * LeftSlider
static vtkObject * New()
represent the vtkCheckerboardWidget
virtual void SetEnabled(int)