43 #ifndef SVK_FDF_VOLUME_READER_H
44 #define SVK_FDF_VOLUME_READER_H
46 #include <vtkInformation.h>
47 #include <vtkFloatArray.h>
48 #include <vtkStringArray.h>
82 return "Varian FDF File";
103 void ScaleTo16Bit(
bool scaleTo16Bit,
bool scaleToSignedShort,
bool scaleToPositiveRange );
109 virtual void InitDcmHeader();
110 void InitPatientModule();
111 void InitGeneralStudyModule();
112 void InitGeneralSeriesModule();
113 void InitGeneralEquipmentModule();
114 void InitImagePixelModule();
115 void InitMultiFrameFunctionalGroupsModule();
116 void InitMultiFrameDimensionModule();
117 void InitAcquisitionContextModule();
118 void InitSharedFunctionalGroupMacros();
119 void InitPerFrameFunctionalGroupMacros();
122 void InitPixelMeasuresMacro();
123 void InitPlaneOrientationMacro();
124 void InitMRReceiveCoilMacro();
126 string VarianToDicomDate(
string* volumeDate);
127 string GetDcmPatientPositionString();
128 void GetTLCAndSliceSpacing(
double* toplc,
double* sliceSpacing);
129 void GetPixelSize(
double* pixelSize);
131 int GetFdfKeyValuePair( vtkStringArray* keySet = NULL);
132 void SetKeysToSearch(vtkStringArray* fltArray,
int fileIndex);
133 int GetDataBufferSize();
134 int GetHeaderValueAsInt(
string keyString,
int valueIndex = 0);
135 float GetHeaderValueAsFloat(
string keyString,
int valueIndex = 0);
136 string GetHeaderValueAsString(
string keyString,
int valueIndex = 0);
137 bool IsKeyInHeader(
string keyString);
138 void ParseAndSetStringElements(
string key,
string valueArrayString);
139 void ConvertCmToMm();
140 void ConvertUserToMagnetFrame();
141 string GetStringFromFloat(
float floatValue);
142 void AddDimensionTo2DData();
143 void PrintKeyValuePairs();
144 void MapFloatValuesTo16Bit(
145 vtkFloatArray* fltArray,
152 map <string, vector<string> >
155 vtkStringArray* tmpFileNames;
157 bool scaleToSignedShort;
158 bool scaleToPositiveRange;
167 #endif //SVK_FDF_VOLUME_READER_H
vtkTypeMacro(svkFdfVolumeReader, svkVarianReader)
svkFdfVolumeReader()
Definition: svkFdfVolumeReader.cc:64
Definition: svkFdfVolumeReader.h:71
svkDcmHeader::DcmPixelDataFormat GetFileType()
Definition: svkFdfVolumeReader.cc:381
Definition: svkImageReader2.h:76
ReaderType
Definition: svkImageReader2.h:67
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Definition: svkFdfVolumeReader.cc:1373
Definition: svkVarianReader.h:58
static svkFdfVolumeReader * New()
virtual svkImageReader2::ReaderType GetReaderType()
Definition: svkFdfVolumeReader.h:85
void ScaleTo16Bit(bool scaleTo16Bit, bool scaleToSignedShort, bool scaleToPositiveRange)
Definition: svkFdfVolumeReader.cc:115
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
Definition: svkFdfVolumeReader.cc:218
virtual void ExecuteInformation()
Definition: svkFdfVolumeReader.cc:307
virtual const char * GetDescriptiveName()
Definition: svkFdfVolumeReader.h:81
vtkDataArray * dataArray
Definition: svkImageReader2.h:154
~svkFdfVolumeReader()
Definition: svkFdfVolumeReader.cc:90
virtual int CanReadFile(const char *fname)
Definition: svkFdfVolumeReader.cc:132