ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
itk::DCMTKFileReader Class Reference

#include <itkDCMTKFileReader.h>

+ Collaboration diagram for itk::DCMTKFileReader:

Detailed Description

Definition at line 236 of file itkDCMTKFileReader.h.

Public Types

typedef DCMTKFileReader Self
 

Public Member Functions

 DCMTKFileReader ()
 
int GetDimensions (unsigned short &rows, unsigned short &columns)
 
int GetDirCosArray (double *dircos)
 
int GetDirCosines (vnl_vector< double > &dir1, vnl_vector< double > &dir2, vnl_vector< double > &dir3)
 
int GetElementCS (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementCSorOB (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementDA (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementIS (unsigned short group, unsigned short element,::itk::int32_t &target, bool throwException=true)
 
int GetElementISorOB (unsigned short group, unsigned short element,::itk::int32_t &target, bool throwException=true)
 
int GetElementLO (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementLO (unsigned short group, unsigned short element, std::vector< std::string > &target, bool throwException=true)
 
int GetElementOB (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementPN (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementSL (unsigned short group, unsigned short element,::itk::int32_t &target, bool throwException=true)
 
int GetElementSQ (unsigned short group, unsigned short entry, DCMTKSequence &sequence, bool throwException=true)
 
int GetElementTM (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementUI (unsigned short group, unsigned short entry, std::string &target, bool throwException=true)
 
int GetElementUS (unsigned short group, unsigned short element, unsigned short &target, bool throwException=true)
 
int GetElementUS (unsigned short group, unsigned short element, unsigned short *&target, bool throwException=true)
 
const std::string & GetFileName () const
 
long GetFileNumber () const
 
int GetFrameCount () const
 
ImageIOBase::IOComponentType GetImageDataType ()
 
ImageIOBase::IOPixelType GetImagePixelType ()
 
int GetOrigin (double *origin)
 
int GetSlopeIntercept (double &slope, double &intercept)
 
int GetSpacing (double *spacing)
 
E_TransferSyntax GetTransferSyntax () const
 
bool HasPixelData () const
 
void LoadFile ()
 
void SetFileName (const std::string &fileName)
 
 ~DCMTKFileReader ()
 
template<typename TType >
int GetElementDS (unsigned short group, unsigned short element, unsigned short count, TType *target, bool throwException=true)
 
template<typename TType >
int GetElementDSorOB (unsigned short group, unsigned short element, TType &target, bool throwException=true)
 
int GetElementDS (unsigned short group, unsigned short element, std::string &target, bool throwException=true)
 
int GetElementFD (unsigned short group, unsigned short element, double &target, bool throwException=true)
 
int GetElementFD (unsigned short group, unsigned short element, int count, double *target, bool throwException=true)
 
int GetElementFL (unsigned short group, unsigned short element, float &target, bool throwException=true)
 
int GetElementFLorOB (unsigned short group, unsigned short element, float &target, bool throwException=true)
 

Static Public Member Functions

static void AddDictEntry (DcmDictEntry *entry)
 
static bool CanReadFile (const std::string &filename)
 
static bool IsImageFile (const std::string &filename)
 

Private Attributes

DcmDataset * m_Dataset
 
DcmFileFormat * m_DFile
 
std::string m_FileName
 
long m_FileNumber
 
Sint32 m_FrameCount
 
E_TransferSyntax m_Xfer
 

Member Typedef Documentation

Definition at line 239 of file itkDCMTKFileReader.h.

Constructor & Destructor Documentation

itk::DCMTKFileReader::DCMTKFileReader ( )
inline

Definition at line 241 of file itkDCMTKFileReader.h.

itk::DCMTKFileReader::~DCMTKFileReader ( )

Member Function Documentation

static void itk::DCMTKFileReader::AddDictEntry ( DcmDictEntry *  entry)
static
static bool itk::DCMTKFileReader::CanReadFile ( const std::string &  filename)
static
int itk::DCMTKFileReader::GetDimensions ( unsigned short &  rows,
unsigned short &  columns 
)
int itk::DCMTKFileReader::GetDirCosArray ( double *  dircos)
int itk::DCMTKFileReader::GetDirCosines ( vnl_vector< double > &  dir1,
vnl_vector< double > &  dir2,
vnl_vector< double > &  dir3 
)
int itk::DCMTKFileReader::GetElementCS ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)

Get a DecimalString Item as a single string

int itk::DCMTKFileReader::GetElementCSorOB ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementDA ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)
template<typename TType >
int itk::DCMTKFileReader::GetElementDS ( unsigned short  group,
unsigned short  element,
unsigned short  count,
TType *  target,
bool  throwException = true 
)
inline

Get an array of data values, as contained in a DICOM DecimalString Item

Definition at line 269 of file itkDCMTKFileReader.h.

References DCMTKExceptionOrErrorReturn.

int itk::DCMTKFileReader::GetElementDS ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)

Get a DecimalString Item as a single string

template<typename TType >
int itk::DCMTKFileReader::GetElementDSorOB ( unsigned short  group,
unsigned short  element,
TType &  target,
bool  throwException = true 
)
inline

Get an array of data values, as contained in a DICOM DecimalString Item

Definition at line 315 of file itkDCMTKFileReader.h.

References DCMTKExceptionOrErrorReturn, itk::ByteSwapper< T >::SwapFromSystemToBigEndian(), and itk::ByteSwapper< T >::SwapFromSystemToLittleEndian().

int itk::DCMTKFileReader::GetElementFD ( unsigned short  group,
unsigned short  element,
double &  target,
bool  throwException = true 
)

Get an array of data values, as contained in a DICOM DecimalString Item

int itk::DCMTKFileReader::GetElementFD ( unsigned short  group,
unsigned short  element,
int  count,
double *  target,
bool  throwException = true 
)

Get an array of data values, as contained in a DICOM DecimalString Item

int itk::DCMTKFileReader::GetElementFL ( unsigned short  group,
unsigned short  element,
float &  target,
bool  throwException = true 
)

Get an array of data values, as contained in a DICOM DecimalString Item

int itk::DCMTKFileReader::GetElementFLorOB ( unsigned short  group,
unsigned short  element,
float &  target,
bool  throwException = true 
)

Get an array of data values, as contained in a DICOM DecimalString Item

int itk::DCMTKFileReader::GetElementIS ( unsigned short  group,
unsigned short  element,
::itk::int32_t target,
bool  throwException = true 
)

get an IS (Integer String Item

int itk::DCMTKFileReader::GetElementISorOB ( unsigned short  group,
unsigned short  element,
::itk::int32_t target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementLO ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementLO ( unsigned short  group,
unsigned short  element,
std::vector< std::string > &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementOB ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)

get an OB OtherByte Item

int itk::DCMTKFileReader::GetElementPN ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)

Get a PersonName Item as a single string

int itk::DCMTKFileReader::GetElementSL ( unsigned short  group,
unsigned short  element,
::itk::int32_t target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementSQ ( unsigned short  group,
unsigned short  entry,
DCMTKSequence sequence,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementTM ( unsigned short  group,
unsigned short  element,
std::string &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementUI ( unsigned short  group,
unsigned short  entry,
std::string &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementUS ( unsigned short  group,
unsigned short  element,
unsigned short &  target,
bool  throwException = true 
)
int itk::DCMTKFileReader::GetElementUS ( unsigned short  group,
unsigned short  element,
unsigned short *&  target,
bool  throwException = true 
)
const std::string& itk::DCMTKFileReader::GetFileName ( ) const
long itk::DCMTKFileReader::GetFileNumber ( ) const
int itk::DCMTKFileReader::GetFrameCount ( ) const
ImageIOBase::IOComponentType itk::DCMTKFileReader::GetImageDataType ( )
ImageIOBase::IOPixelType itk::DCMTKFileReader::GetImagePixelType ( )
int itk::DCMTKFileReader::GetOrigin ( double *  origin)
int itk::DCMTKFileReader::GetSlopeIntercept ( double &  slope,
double &  intercept 
)
int itk::DCMTKFileReader::GetSpacing ( double *  spacing)
E_TransferSyntax itk::DCMTKFileReader::GetTransferSyntax ( ) const
bool itk::DCMTKFileReader::HasPixelData ( ) const
static bool itk::DCMTKFileReader::IsImageFile ( const std::string &  filename)
static
void itk::DCMTKFileReader::LoadFile ( )
void itk::DCMTKFileReader::SetFileName ( const std::string &  fileName)

Member Data Documentation

DcmDataset* itk::DCMTKFileReader::m_Dataset
private

Definition at line 479 of file itkDCMTKFileReader.h.

DcmFileFormat* itk::DCMTKFileReader::m_DFile
private

Definition at line 478 of file itkDCMTKFileReader.h.

std::string itk::DCMTKFileReader::m_FileName
private

Definition at line 477 of file itkDCMTKFileReader.h.

long itk::DCMTKFileReader::m_FileNumber
private

Definition at line 482 of file itkDCMTKFileReader.h.

Sint32 itk::DCMTKFileReader::m_FrameCount
private

Definition at line 481 of file itkDCMTKFileReader.h.

E_TransferSyntax itk::DCMTKFileReader::m_Xfer
private

Definition at line 480 of file itkDCMTKFileReader.h.


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