ALBA
albaGUIDicomSettings.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIDicomSettings
5 Authors: Matteo Giacomoni, Simone Brazzale
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaGUIDicomSettings_H__
18#define __albaGUIDicomSettings_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include "albaGUISettings.h"
25
26//----------------------------------------------------------------------------
27// forward reference
28//----------------------------------------------------------------------------
30
42class ALBA_EXPORT albaGUIDicomSettings : public albaGUISettings
43{
44public:
46 albaGUIDicomSettings(albaObserver *Listener, const albaString &label = _("Dicom"));
49
52 {
53 ID_DICTONARY = MINID,
63 ID_SKIP_NAMING
64 };
65
66
69 {
70 ID_1X = 0,
74 };
75
78 {
79 NONE = 0,
81 };
82
84 {
88 };
89
91 {
93 IMAGE_TYPE
94 };
95
97 {
102 ID_SERIES
103 };
104
106 {
110 };
111
113 void OnEvent(albaEventBase *alba_event);
114
116 int GetBuildStep(){return m_Step;};
117
120 void SetLastDicomDir(wxString lastDicomDir);
121 wxString GetLastDicomDir() {return m_LastDicomDir;};
122
125
128
130 void SetAcquisitionNumberStrategy(int strategy) { m_AcquisitionNumberStrategy = strategy; m_Config->Write("AcquisitionNumberStrategy", m_AcquisitionNumberStrategy); };
131
134
136 void SetDCMImagePositionPatientExceptionHandling(int choice) { m_DCM_ImagePositionPatientchoice = choice; m_Config->Write("DCM_ImagePositionPatientchoice", m_DCM_ImagePositionPatientchoice);};
137
139 int GetSkipCrop() const { return m_SkipCrop; }
140
142 void SetSkipCrop(int skipCrop) { m_SkipCrop = skipCrop; m_Config->Write("SkipCrop", m_SkipCrop);}
143
145 int GetAutoVMEType() const { return m_AutoVMEType; }
146
148 void SetAutoVMEType(int autoVMEType) { m_AutoVMEType = autoVMEType; m_Config->Write("AutoVMEType", m_AutoVMEType);}
149
151 int GetAutoResample() const { return m_AutoResample; }
152
154 void SetAutoResample(int autoResample) { m_AutoResample = autoResample; m_Config->Write("AutoResample", m_AutoResample); }
155
157 int GetOutputType() const { return m_OutputType; }
158
160 void SetOutputType(int outputType) { m_OutputType = outputType; m_Config->Write("VMEType", m_OutputType);}
161
162protected:
164 void CreateGui();
165
168
171
172 // albaString m_Dictionary;
174
175 int m_CheckNameCompositor[5];
176
178
186
187 friend class albaGUIDicomSettingsTest;
188};
189#endif
MINID
Definition: albaDecl.h:420
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
a CheckList that send albaEventNotification in the form albaEvent(this, widget_id,...
Class Name : albaGUIDicomSettings.
void SetOutputType(int outputType)
Sets OutputType.
int GetAutoResample() const
Returns AutoVMEType.
albaGUIDicomSettings(albaObserver *Listener, const albaString &label=_("Dicom"))
constructor.
void SetLastDicomDir(wxString lastDicomDir)
Helper function to store and retrieve the last Dicom dir opened.
void InitializeSettings()
Initialize the application settings.
int GetAutoVMEType() const
Returns AutoVMEType.
void EnableItems()
Used to enable/disable items according to the current widgets state.
void OnEvent(albaEventBase *alba_event)
Answer to the messages coming from interface.
~albaGUIDicomSettings()
destructor.
void SetDCMImagePositionPatientExceptionHandling(int choice)
Sets the DCM_ImagePositionPatient choice.
albaGUICheckListBox * m_DicomModalityListBox
void SetAcquisitionNumberStrategy(int strategy)
Return the merge/split strategy for series with the same series ID and different acquisition number.
int GetBuildStep()
Retrieve the build step.
int GetOutputType() const
Returns OutputType.
void SetSkipCrop(int skipCrop)
Sets SkipCrop.
int GetAcquisitionNumberStrategy()
Return the merge/split strategy for series with the same series ID and different acquisition number.
void SetAutoVMEType(int autoVMEType)
Sets AutoVMEType.
DICOM_CONVERSION
Conversion IDs.
int GetSkipCrop() const
Returns SkipCrop.
int GetDCMImagePositionPatientExceptionHandling()
Return the DCM_ImagePositionPatient choice.
void SetAutoResample(int autoResample)
Sets AutoVMEType.
int GetEnabledCustomName(enum NAME_COMPOSITOR type)
Return if an element of custom name check list is checked.
void CreateGui()
Create the GUI for the setting panel.
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43