00001 /* 00002 * 00003 * Program: Slicer Image-Guided Navigator (The SIGN) 00004 * Module: $RCSfile: SignElementPushButton.h,v $ 00005 */ 00016 #ifndef _SIGNELEMENTPUSHBUTTON_H 00017 #define _SIGNELEMENTPUSHBUTTON_H 00018 00019 #include <map> 00020 00021 #include <SignDLL.h> 00022 #include <SignElement.h> 00023 00024 class vtkKWPushButton; 00025 00026 00027 class SIGN_EXPORT SignElementPushButton : public SignElement 00028 { 00029 public: 00030 vtkTypeRevisionMacro(SignElementPushButton,SignElement); 00031 virtual void PrintSelf(ostream& os, vtkIndent indent); 00032 00033 static SignElementPushButton* New(); 00034 00036 bool ActivateElement(); 00038 bool DeActivateElement(); 00039 00041 void SetPushButton(vtkKWPushButton* b); 00042 00043 protected: 00044 SignElementPushButton(); 00045 ~SignElementPushButton(); 00046 00047 SignElementPushButton(const SignElementPushButton&); // Not implemented. 00048 void operator=(const SignElementPushButton&); // Not implemented. 00049 00050 private: 00051 unsigned long nbcbid; 00052 vtkKWPushButton* pushButton; 00053 00054 static void PushButtonCallback(vtkObject *caller, unsigned long, void *data, void *calldata); 00055 }; 00056 #endif
1.4.6