00001 /* 00002 * 00003 * Program: Slicer Image-Guided Navigator (The SIGN) 00004 * Module: $RCSfile: SignElementPreviousButton.h,v $ 00005 */ 00017 #ifndef _SIGNELEMENTPREVIOUSBUTTON_H 00018 #define _SIGNELEMENTPREVIOUSBUTTON_H 00019 00020 #include <map> 00021 00022 #include <SignDLL.h> 00023 #include <SignElement.h> 00024 00025 class vtkKWPushButton; 00026 00027 00028 class SIGN_EXPORT SignElementPreviousButton : public SignElement 00029 { 00030 public: 00031 vtkTypeRevisionMacro(SignElementPreviousButton,SignElement); 00032 virtual void PrintSelf(ostream& os, vtkIndent indent); 00033 00034 static SignElementPreviousButton* New(); 00035 00037 bool ActivateElement(); 00039 bool DeActivateElement(); 00040 00042 void SetPreviousButton(vtkKWPushButton* b); 00044 void SetFirstElement(SignElement* el); 00045 00046 protected: 00047 SignElementPreviousButton(); 00048 ~SignElementPreviousButton(); 00049 00050 SignElementPreviousButton(const SignElementPreviousButton&); // Not implemented. 00051 void operator=(const SignElementPreviousButton&); // Not implemented. 00052 00053 private: 00054 SignElement* FindActiveCheckpoint(SignElement* start); 00055 unsigned long pbcbid; 00056 vtkKWPushButton* previousButton; 00057 SignElement* firstElement; 00058 SignElement* lastInactiveCheckpoint; 00059 00060 static void PreviousButtonCallback(vtkObject *caller, unsigned long, void *data, void *calldata); 00061 }; 00062 #endif
1.4.6