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 "vtkAbstractWidget.h"
55 
57 class vtkSliderWidget;
58 
59 
61 {
62 public:
64  static vtkCheckerboardWidget *New();
65 
67 
69  void PrintSelf(ostream& os, vtkIndent indent);
71 
75  virtual void SetEnabled(int);
76 
78 
82  {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
84 
86 
88  {return reinterpret_cast<vtkCheckerboardRepresentation*>(this->WidgetRep);}
90 
93 
94 protected:
97 
98  // The four slider widgets
103 
104  // Callback interface
105  void StartCheckerboardInteraction();
106  void CheckerboardInteraction(int sliderNum);
107  void EndCheckerboardInteraction();
108 
109 //BTX
110  friend class vtkCWCallback;
111 //ETX
112 
113 private:
114  vtkCheckerboardWidget(const vtkCheckerboardWidget&); //Not implemented
115  void operator=(const vtkCheckerboardWidget&); //Not implemented
116 };
117 
118 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtkSliderWidget * RightSlider
vtkSliderWidget * TopSlider
void SetRepresentation(vtkCheckerboardRepresentation *r)
virtual void CreateDefaultRepresentation()=0
vtkCheckerboardRepresentation * GetCheckerboardRepresentation()
interactively set the number of divisions in 2D image checkerboard
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkSliderWidget * BottomSlider
#define VTK_WIDGETS_EXPORT
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)