1 /*=========================================================================
4 Module: $RCSfile: marDicom.h,v $
6 Date: $Date: 2008/11/14 11:33:20 $
7 Version: $Revision: 1.2 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
17 #ifndef __MAR__KERNEL__DICOM__HXX__
18 #define __MAR__KERNEL__DICOM__HXX__
21 #include <kgfo/volume.h>
23 #include "marObject.h"
25 class MAR_KERNEL_EXPORT marDicom : public marObject
45 ID_Study_Description ,
46 ID_Series_Description ,
47 ID_Admitting_Diagnoses_Description ,
50 ID_Body_Part_Examined ,
51 ID_Scanning_Sequence ,
54 ID_MR_Acquisition_Type ,
60 ID_Number_of_Averages ,
61 ID_Imaging_Frequency ,
64 ID_Magnetic_Field_Strength ,
65 ID_Spacing_Between_Slices ,
66 ID_Echo_Train_Length ,
68 ID_Percent_Phase_Field_of_View ,
71 ID_Study_Instance_UID ,
72 ID_Series_Instance_UID ,
75 ID_Acquisition_Number ,
77 ID_Patient_Orientation ,
79 ID_Image_Position_Patient ,
80 ID_Image_Orientation ,
81 ID_Image_Orientation_Patient ,
83 ID_Frame_of_Reference_UID ,
94 marDicom( marParameters* p = NULL );
101 wxString& getActualStudy( )
103 return( _actualStudy );
106 wxString& getActualSerie( )
108 return( _actualSerie );
111 wxArrayString getStudies( );
112 wxArrayString getSeries( );
113 wxArrayString getStudyData( );
114 wxArrayString getSerieData( );
116 void loadActualSerie( );
118 wxArrayString& getImageFileNames( )
120 return( _imageFileNames );
123 wxArrayString& getImageNumbers( )
125 return( _imageNumbers );
128 void loadVolume( bool force = false );
132 return( _volume != NULL );
135 kVolume* getVolume( )
140 wxString getImageNumber( int i )
142 return( _imageNumbers[ i ] );
145 wxString getImageFileName( int i )
147 return( _imageFileNames[ i ] );
150 bool setActualStudy( wxString& s );
151 bool setActualSerie( wxString& s );
159 _imageFileNames.Clear( );
160 _imageNumbers.Clear( );
163 void copyFrom( const marObject& from );
165 //Persistence methods
167 bool save( std::ofstream& os );
168 bool load( std::ifstream& is );
170 wxArrayString getRelationalArrayStudyData( );
171 wxArrayString getRelationalArraySerieData( );
175 wxString _actualStudy;
176 wxString _actualSerie;
177 wxArrayString _imageFileNames;
178 wxArrayString _imageNumbers;
185 #endif // __MAR__KERNEL__DICOM__HXX__