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 vtkKWWindowLevelPresetSelectorInternals;
00043
00044 class KWWidgets_EXPORT vtkKWWindowLevelPresetSelector : public vtkKWPresetSelector
00045 {
00046
00047 public:
00048 static vtkKWWindowLevelPresetSelector* New();
00049 vtkTypeRevisionMacro(vtkKWWindowLevelPresetSelector, vtkKWPresetSelector);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00053
00055 virtual double GetPresetWindow(int id);
00056 virtual int SetPresetWindow(int id, double window);
00057 virtual double GetPresetLevel(int id);
00058 virtual int SetPresetLevel(int id, double level);
00060
00062
00067 virtual int SetPresetType(int id, const char *type);
00068 virtual const char* GetPresetType(int id);
00070
00072
00074 virtual void SetTypeColumnVisibility(int);
00075 virtual int GetTypeColumnVisibility();
00076 vtkBooleanMacro(TypeColumnVisibility, int);
00078
00080
00081 virtual int HasPresetWithGroupWithWindowLevel(
00082 const char *group, double window, double level);
00084
00086
00096 virtual void SetPresetTypeSlotName(const char *);
00097 virtual const char* GetPresetTypeSlotName();
00099
00101
00102 static const char *WindowColumnName;
00103 static const char *LevelColumnName;
00104 static const char *TypeColumnName;
00105
00107
00109
00114 virtual const char* PresetCellEditEndCallback(
00115 int row, int col, const char *text);
00117
00121 virtual void PresetCellUpdatedCallback(int row, int col, const char *text);
00122
00123
00124
00125 protected:
00126 vtkKWWindowLevelPresetSelector();
00127 ~vtkKWWindowLevelPresetSelector();
00128
00132 virtual void CreateColumns();
00133
00141 virtual int UpdatePresetRow(int id);
00142
00144
00145 virtual int GetWindowColumnIndex();
00146 virtual int GetLevelColumnIndex();
00147 virtual int GetTypeColumnIndex();
00149
00150
00151
00152 vtkKWWindowLevelPresetSelectorInternals *Internals;
00153
00154
00155
00156
00157 private:
00158
00159 vtkKWWindowLevelPresetSelector(const vtkKWWindowLevelPresetSelector&);
00160 void operator=(const vtkKWWindowLevelPresetSelector&);
00161 };
00162
00163 #endif
00164