1 /*=========================================================================
4 Module: $RCSfile: marDicom.h,v $
6 Date: $Date: 2008/10/31 16:32:55 $
7 Version: $Revision: 1.1 $
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__
20 #include <kgfo/volume.h>
22 #include "marObject.h"
24 class MAR_KERNEL_EXPORT marDicom : public marObject
44 ID_Study_Description ,
45 ID_Series_Description ,
46 ID_Admitting_Diagnoses_Description ,
49 ID_Body_Part_Examined ,
50 ID_Scanning_Sequence ,
53 ID_MR_Acquisition_Type ,
59 ID_Number_of_Averages ,
60 ID_Imaging_Frequency ,
63 ID_Magnetic_Field_Strength ,
64 ID_Spacing_Between_Slices ,
65 ID_Echo_Train_Length ,
67 ID_Percent_Phase_Field_of_View ,
70 ID_Study_Instance_UID ,
71 ID_Series_Instance_UID ,
74 ID_Acquisition_Number ,
76 ID_Patient_Orientation ,
78 ID_Image_Position_Patient ,
79 ID_Image_Orientation ,
80 ID_Image_Orientation_Patient ,
82 ID_Frame_of_Reference_UID ,
93 marDicom( marParameters* p = NULL );
100 wxString& getActualStudy( )
102 return( _actualStudy );
105 wxString& getActualSerie( )
107 return( _actualSerie );
110 wxArrayString getStudies( );
111 wxArrayString getSeries( );
112 wxArrayString getStudyData( );
113 wxArrayString getSerieData( );
115 void loadActualSerie( );
117 wxArrayString& getImageFileNames( )
119 return( _imageFileNames );
122 wxArrayString& getImageNumbers( )
124 return( _imageNumbers );
127 void loadVolume( bool force = false );
131 return( _volume != NULL );
134 kVolume* getVolume( )
139 wxString getImageNumber( int i )
141 return( _imageNumbers[ i ] );
144 wxString getImageFileName( int i )
146 return( _imageFileNames[ i ] );
149 bool setActualStudy( wxString& s );
150 bool setActualSerie( wxString& s );
157 _imageFileNames.Clear( );
158 _imageNumbers.Clear( );
161 void copyFrom( const marObject& from );
163 /** Persistence methods
165 bool save( std::ofstream& os );
166 bool load( std::ifstream& is );
168 wxArrayString getRelationalArrayStudyData( );
169 wxArrayString getRelationalArraySerieData( );
173 wxString _actualStudy;
174 wxString _actualSerie;
175 wxArrayString _imageFileNames;
176 wxArrayString _imageNumbers;
181 #endif // __MAR__KERNEL__DICOM__HXX__