00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00037 #ifndef __vtkKWWindowLevelPresetSelector_h
00038 #define __vtkKWWindowLevelPresetSelector_h
00039
00040 #include "vtkKWPresetSelector.h"
00041
00042 class KWWIDGETS_EXPORT vtkKWWindowLevelPresetSelector : public vtkKWPresetSelector
00043 {
00044 public:
00045 static vtkKWWindowLevelPresetSelector* New();
00046 vtkTypeRevisionMacro(vtkKWWindowLevelPresetSelector, vtkKWPresetSelector);
00047 void PrintSelf(ostream& os, vtkIndent indent);
00048
00050
00052 virtual double GetPresetWindow(int id);
00053 virtual int SetPresetWindow(int id, double window);
00054 virtual double GetPresetLevel(int id);
00055 virtual int SetPresetLevel(int id, double level);
00057
00059
00063 virtual int SetPresetModality(int id, const char *modality);
00064 virtual const char* GetPresetModality(int id);
00066
00068
00070 virtual void SetModalityColumnVisibility(int);
00071 virtual int GetModalityColumnVisibility();
00072 vtkBooleanMacro(ModalityColumnVisibility, int);
00074
00076
00077 virtual int HasPresetWithGroupWithWindowLevel(
00078 const char *group, double window, double level);
00080
00082
00087 virtual const char* PresetCellEditEndCallback(
00088 int row, int col, const char *text);
00090
00094 virtual void PresetCellUpdatedCallback(int row, int col, const char *text);
00095
00097
00098 static const char *WindowColumnName;
00099 static const char *LevelColumnName;
00100 static const char *ModalityColumnName;
00101
00103
00104 protected:
00105 vtkKWWindowLevelPresetSelector() {};
00106 ~vtkKWWindowLevelPresetSelector() {};
00107
00111 virtual void CreateColumns();
00112
00120 virtual int UpdatePresetRow(int id);
00121
00123
00124 virtual int GetWindowColumnIndex();
00125 virtual int GetLevelColumnIndex();
00126 virtual int GetModalityColumnIndex();
00128
00129 private:
00130
00131 vtkKWWindowLevelPresetSelector(const vtkKWWindowLevelPresetSelector&);
00132 void operator=(const vtkKWWindowLevelPresetSelector&);
00133 };
00134
00135 #endif