Examples/Cxx/Tutorial1/Step3/vtkKWMyWidget.h

Go to the documentation of this file.
00001 #ifndef __vtkKWMyWidget_h
00002 #define __vtkKWMyWidget_h
00003 
00004 #include "vtkKWCompositeWidget.h"
00005 
00006 class vtkKWLabel;
00007 class vtkKWCheckButton;
00008 
00009 class vtkKWMyWidget : public vtkKWCompositeWidget
00010 {
00011 public:
00012   static vtkKWMyWidget* New();
00013   vtkTypeRevisionMacro(vtkKWMyWidget,vtkKWCompositeWidget);
00014 
00015   // Description:
00016   // Get the internal widgets.
00017   vtkGetObjectMacro(Label, vtkKWLabel);
00018   vtkGetObjectMacro(CheckButton, vtkKWCheckButton);
00019 
00020 protected:
00021   vtkKWMyWidget();
00022   ~vtkKWMyWidget();
00023 
00024   vtkKWLabel *Label;
00025   vtkKWCheckButton *CheckButton;
00026 
00027   // Description:
00028   // Create the widget.
00029   virtual void CreateWidget();
00030 
00031   // Description:
00032   // Update the label's aspect according to the checkbutton's state.
00033   virtual void UpdateLabel();
00034 
00035   // Description:
00036   // Processes the events that are passed through CallbackCommand (or others).
00037   virtual void ProcessCallbackCommandEvents(
00038     vtkObject *caller, unsigned long event, void *calldata);
00039 
00040 private:
00041   vtkKWMyWidget(const vtkKWMyWidget&);   // Not implemented.
00042   void operator=(const vtkKWMyWidget&);  // Not implemented.
00043 };
00044 
00045 #endif

Generated on Sat Dec 12 16:04:55 2009 for KWWidgets by  doxygen 1.6.1