SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
svkLCModelReader Class Reference

#include <svkLCModelReader.h>

Inheritance diagram for svkLCModelReader:
svkImageReader2 svkLCModelCoordReader svkLCModelCSVReader svkLCModelTableReader

Public Member Functions

 vtkTypeMacro (svkLCModelReader, svkImageReader2)
 
virtual const char * GetDescriptiveName ()
 
void SetMRSFileName (string mrsFileName)
 
void SetMetName (string metName)
 
- Public Member Functions inherited from svkImageReader2
 vtkTypeMacro (svkImageReader2, vtkImageReader2)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int)
 
svkDcmHeaderGetDcmHeader (const char *fileName)
 
void OnlyReadOneInputFile ()
 
void OnlyGlobFiles ()
 
void GlobFileNames ()
 
void OnlyReadHeader (bool onlyReadHeader)
 
virtual svkImageReader2::ReaderType GetReaderType ()=0
 

Protected Member Functions

 svkLCModelReader ()
 
 ~svkLCModelReader ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual void ExecuteInformation ()
 
virtual
svkDcmHeader::DcmPixelDataFormat 
GetFileType ()
 
string GetSeriesDescription ()
 
void GetVoxelIndexFromFileName (string lcmodelFileName, int *col, int *row, int *slice)
 
virtual string GetFileSeriesDescription (string fileName)
 
- Protected Member Functions inherited from svkImageReader2
 svkImageReader2 ()
 
 ~svkImageReader2 ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
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 ()
 
void SetReadLength (int length)
 

Protected Attributes

string metName
 
- Protected Attributes inherited from svkImageReader2
vtkDataArray * dataArray
 
bool readOneInputFile
 
bool onlyGlobFiles
 
bool onlyReadHeader
 

Additional Inherited Members

- 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
}
 
- 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)
 

Constructor & Destructor Documentation

svkLCModelReader ( )
protected
~svkLCModelReader ( )
protected

Member Function Documentation

void ExecuteInformation ( )
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()

int FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual
  • input ports 0 - 2 are required. All input ports are MRI data. 0: MRS template (required) 1: CSV file name (required) 2: met name (required)
virtual const char* GetDescriptiveName ( )
inlinevirtual
string GetFileSeriesDescription ( string  fileName)
protectedvirtual

get the series description for this file for globbing purposes to ensure all files have the same series description. For the LCModel reader this isn't relevant so just return an empty string.

Reimplemented from svkImageReader2.

svkDcmHeader::DcmPixelDataFormat GetFileType ( )
protectedvirtual

returns the data size.

Implements svkImageReader2.

References svkDcmHeader::SIGNED_FLOAT_4.

string GetSeriesDescription ( )
protected

Construct a series descrition for the file being loaded

Referenced by svkLCModelCSVReader::ExecuteDataWithInformation(), and svkLCModelTableReader::ExecuteDataWithInformation().

void GetVoxelIndexFromFileName ( string  lcmodelFileName,
int *  col,
int *  row,
int *  slice 
)
protected

Parse voxel col, row and slice coords out of LCMODEL csv or coord file output generated form SIVIC generated control files. test_1377_c9_r11_s4.csv test_1377_c9_r11_s4_sl4_11-9.coord

References svkImageReader2::GetFileNameWithoutPath(), and svkTypeUtils::StringToInt().

void SetMetName ( string  metName)
void SetMRSFileName ( string  mrsFileName)
vtkTypeMacro ( svkLCModelReader  ,
svkImageReader2   
)

Member Data Documentation

string metName
protected

The documentation for this class was generated from the following files: