153
* window level setting
155
class WindowLevelSetting
158
WindowLevelSetting();
159
WindowLevelSetting(double window, double level, const std::string& label);
160
WindowLevelSetting(wxXmlNode* node);
161
WindowLevelSetting(const WindowLevelSetting& other);
162
~WindowLevelSetting();
166
wxXmlNode* serialize();
168
double getWindow() const;
169
double getLevel() const;
170
const std::string& getLabel() const;
172
std::string toString() const;
174
void setWindow(double window);
175
void setLevel(double level);
176
void setLabel(const std::string& label);
185
* default modality settings
187
class DefaultModalitySettings
190
typedef enum TInterpolationMode{
191
TIM_NEAREST_NEIGHBOUR,
195
typedef std::list<GNC::GCS::Ptr<WindowLevelSetting> > TListOfWLSettings;
196
DefaultModalitySettings();
197
DefaultModalitySettings(wxXmlNode* node);
198
DefaultModalitySettings(const DefaultModalitySettings& other);
199
~DefaultModalitySettings();
203
wxXmlNode* serialize();
205
static std::string getDefaultWindowLevelLabel();
206
static std::string getAutocalculateWindowLevelLabel();
208
const TListOfWLSettings& getWLSettings() const;
209
const std::string& getModality() const;
210
const std::string& getInitialWindowLevelLabel() const;
211
TInterpolationMode getInterpolationMode() const;
213
void addWindowLevel(const GNC::GCS::Ptr<WindowLevelSetting>& wlSetting);
214
void clearWindowLevels();
215
void setModality(const std::string& modality);
216
void setInitialWindowLevelLabel(const std::string& label);
217
void setInterpolationMode(TInterpolationMode mode);
219
std::string modality;
220
std::string initialWindowLevelLabel;
221
TInterpolationMode interpolationMode;
222
TListOfWLSettings listOfWLSettings;
226
153
HangingProtocol class, defines a hanging protocol
228
155
class HangingProtocol {
230
157
typedef std::list<GNC::GCS::Ptr<Layout> > TListOfLayouts;
231
typedef std::map<std::string, GNC::GCS::Ptr<DefaultModalitySettings> > TMapOfModalitySettings;
232
158
HangingProtocol();
234
160
deserialize from xml
262
187
const TListOfLayouts& getLayouts();
263
188
void addLayout(const GNC::GCS::Ptr<Layout>& layout);
264
189
void clearLayouts();
265
const TMapOfModalitySettings& getModalitySettingsMap();
266
void addModalitySettings(const GNC::GCS::Ptr<DefaultModalitySettings>& settings);
267
void clearModalitySettings();
268
GNC::GCS::Ptr<DefaultModalitySettings> getModalitySettings(const std::string& modality);
269
190
std::map<std::string, std::string>& getProperties();
270
191
void setProperties(const std::map<std::string, std::string>& properties);