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,
62 ID_SKIP_NAMING
63 };
64
65
68 {
69 ID_1X = 0,
73 };
74
77 {
78 NONE = 0,
80 };
81
83 {
85 APPLY_DEFAULT_POSITION
86 };
87
89 {
91 IMAGE_TYPE
92 };
93
95 {
100 ID_SERIES
101 };
102
104 void OnEvent(albaEventBase *alba_event);
105
107 int GetBuildStep(){return m_Step;};
108
111 void SetLastDicomDir(wxString lastDicomDir);
112 wxString GetLastDicomDir() {return m_LastDicomDir;};
113
116
118 int GetDCMImagePositionPatientExceptionHandling(){return m_DCM_ImagePositionPatientchoice;};
119
121 void SetDCMImagePositionPatientExceptionHandling(int choice) { m_DCM_ImagePositionPatientchoice = choice; m_Config->Write("DCM_ImagePositionPatientchoice", m_DCM_ImagePositionPatientchoice);};
122
124 int GetSkipCrop() const { return m_SkipCrop; }
125
127 void SetSkipCrop(int skipCrop) { m_SkipCrop = skipCrop; m_Config->Write("SkipCrop", m_SkipCrop);}
128
130 int GetAutoVMEType() const { return m_AutoVMEType; }
131
133 void SetAutoVMEType(int autoVMEType) { m_AutoVMEType = autoVMEType; m_Config->Write("AutoVMEType", m_AutoVMEType);}
134
136 int GetAutoResample() const { return m_AutoResample; }
137
139 void SetAutoResample(int autoResample) { m_AutoResample = autoResample; m_Config->Write("AutoResample", m_AutoResample); }
140
142 int GetOutputType() const { return m_OutputType; }
143
145 void SetOutputType(int outputType) { m_OutputType = outputType; m_Config->Write("VMEType", m_OutputType);}
146
147protected:
149 void CreateGui();
150
153
156
157 // albaString m_Dictionary;
159
160 int m_CheckNameCompositor[5];
161
163
170
171 friend class albaGUIDicomSettingsTest;
172};
173#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
int GetBuildStep()
Retrieve the build step.
int GetOutputType() const
Returns OutputType.
void SetSkipCrop(int skipCrop)
Sets SkipCrop.
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