SIVIC API
0.9.26
|
#include <svkIdfVolumeReader.h>
Public Types | |
enum | IDF_Data_Type { BYTE_DATA = 2, INT2_DATA = 3, FLT_DATA = 7 } |
enum | MultiVolumeType { TIME_SERIES_DATA = 0, MULTI_CHANNEL_DATA } |
Public Types inherited from svkImageReader2 | |
enum | ReaderType { UNDEFINED = -1, DICOM_MRS =0, DICOM_MRI, DICOM_ENHANCED_MRI, DICOM_SEGMENTATION, DICOM_RAW, SIEMENS_RDA, VARIAN_FID, VARIAN_FDF, GE_PFILE, GE_SDBM, GE_POSTAGE_STAMP, GE_SIGNA_LX2, GE_SIGNA_5X, LC_MODEL_COORD, LC_MODEL_CSV, LC_MODEL_TABLE, VARIABLE_FLIP_DAT, BRUKER_MRS, PHILIPS_S, DDF, IDF, LAST_TYPE = IDF } |
Public Member Functions | |
vtkTypeMacro (svkIdfVolumeReader, svkImageReader2) | |
virtual const char * | GetDescriptiveName () |
virtual svkImageReader2::ReaderType | GetReaderType () |
void | SetMultiVolumeType (svkIdfVolumeReader::MultiVolumeType volumeType) |
virtual int | CanReadFile (const char *fname) |
void | SetReadIntAsSigned (bool readIntAsSigned) |
Public Member Functions inherited from svkImageReader2 | |
vtkTypeMacro (svkImageReader2, vtkImageReader2) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int) |
svkDcmHeader * | GetDcmHeader (const char *fileName) |
void | OnlyReadOneInputFile () |
void | OnlyGlobFiles () |
void | GlobFileNames () |
void | OnlyReadHeader (bool onlyReadHeader) |
Static Public Member Functions | |
static svkIdfVolumeReader * | New () |
Static Public Member Functions inherited from svkImageReader2 | |
static string | StripWhite (string in) |
static string | RemoveDelimFromDate (string *slashDate, char delimChar= '/') |
static string | GetFileRoot (const char *fname) |
static string | GetFileExtension (const char *fname) |
static string | GetFilePath (const char *fname) |
static string | GetFileNameWithoutPath (const char *fname) |
static long | GetFileSize (ifstream *fs) |
Protected Member Functions | |
svkIdfVolumeReader () | |
~svkIdfVolumeReader () | |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
virtual void | ExecuteInformation () |
virtual void | ExecuteDataWithInformation (vtkDataObject *output, vtkInformation *outInfo) |
virtual svkDcmHeader::DcmPixelDataFormat | GetFileType () |
Protected Member Functions inherited from svkImageReader2 | |
svkImageReader2 () | |
~svkImageReader2 () | |
void | SetupOutputInformation () |
void | SetupOutputExtent () |
void | SetupOutputScalarData () |
virtual void | ReadLine (ifstream *hdr, istringstream *iss) |
void | ReadLineIgnore (ifstream *hdr, istringstream *iss, char delim) |
string | ReadLineSubstr (ifstream *hdr, istringstream *iss, int start, int stop) |
string | ReadLineValue (ifstream *hdr, istringstream *iss, char delim) |
int | ReadLineKeyValue (ifstream *hdr, istringstream *iss, char delim, string *key, string *value) |
virtual void | SetProvenance () |
virtual string | GetFileSeriesDescription (string fileName) |
void | SetReadLength (int length) |
Additional Inherited Members | |
Protected Attributes inherited from svkImageReader2 | |
vtkDataArray * | dataArray |
bool | readOneInputFile |
bool | onlyGlobFiles |
bool | onlyReadHeader |
enum IDF_Data_Type |
enum MultiVolumeType |
|
protected |
References svkIdfVolumeReader::MULTI_CHANNEL_DATA.
|
protected |
|
virtual |
Check to see if the extension indicates a UCSF IDF file. If so, try to open the file for reading. If that works, then return a success code. Return Values: 1 if can read the file, 0 otherwise.
|
protectedvirtual |
Side effect of Update() method. Used to load pixel data and initialize vtkImageData Called after ExecuteInformation()
References svkDcmHeader::GetDataDcos(), svkImageData::GetDcmHeader(), svkDcmHeader::GetDimensionIndexVector(), svkImageReader2::GetOutput(), svkImageData::IMAGINARY, svkImageData::MAGNITUDE, svkImageData::REAL, svkImageData::SetDataRange(), and svkImageData::SetDcos().
|
protectedvirtual |
Side effect of Update() method. Used to initialize the svkDcmHeader member of the target svkImageData object and uses the header to set up the Output Informatin. Called before ExecuteData()
References svkImageReader2::SetupOutputInformation().
|
protectedvirtual |
Reimplemented from svkImageReader2.
|
inlinevirtual |
|
protectedvirtual |
Returns the file root without extension
Implements svkImageReader2.
References svkDcmHeader::SIGNED_FLOAT_4, svkDcmHeader::SIGNED_INT_2, svkDcmHeader::UNSIGNED_INT_1, and svkDcmHeader::UNSIGNED_INT_2.
|
inlinevirtual |
Implements svkImageReader2.
References svkImageReader2::IDF.
|
static |
void SetMultiVolumeType | ( | svkIdfVolumeReader::MultiVolumeType | volumeType | ) |
Interpret the volumes as time points or channels.
void SetReadIntAsSigned | ( | bool | readIntAsSigned | ) |
Set boolean to determine if int2 should be interpreted as signed, or unsigned.
vtkTypeMacro | ( | svkIdfVolumeReader | , |
svkImageReader2 | |||
) |