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 =========================================================================*/
49 #ifndef vtkCheckerboardWidget_h
50 #define vtkCheckerboardWidget_h
51 
52 #include "vtkInteractionWidgetsModule.h" // For export macro
53 #include "vtkAbstractWidget.h"
54 
56 class vtkSliderWidget;
57 
58 
59 class VTKINTERACTIONWIDGETS_EXPORT vtkCheckerboardWidget : public vtkAbstractWidget
60 {
61 public:
65  static vtkCheckerboardWidget *New();
66 
68 
72  void PrintSelf(ostream& os, vtkIndent indent);
74 
80  virtual void SetEnabled(int);
81 
88  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
89 
94  {return reinterpret_cast<vtkCheckerboardRepresentation*>(this->WidgetRep);}
95 
100 
101 protected:
104 
105  // The four slider widgets
110 
111  // Callback interface
112  void StartCheckerboardInteraction();
113  void CheckerboardInteraction(int sliderNum);
114  void EndCheckerboardInteraction();
115 
116  friend class vtkCWCallback;
117 
118 private:
119  vtkCheckerboardWidget(const vtkCheckerboardWidget&) VTK_DELETE_FUNCTION;
120  void operator=(const vtkCheckerboardWidget&) VTK_DELETE_FUNCTION;
121 };
122 
123 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Standard macros implementing standard VTK methods.
vtkSliderWidget * RightSlider
void SetRepresentation(vtkCheckerboardRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
vtkCheckerboardRepresentation * GetCheckerboardRepresentation()
Return the representation as a vtkCheckerboardRepresentation.
interactively set the number of divisions in 2D image checkerboard
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSliderWidget * BottomSlider
set a value by manipulating a slider
define the API for widget / widget representation
vtkSliderWidget * LeftSlider
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent the vtkCheckerboardWidget
virtual void SetEnabled(int)
Methods for activating this widget.