Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkDICOMImageReader Class Reference

#include <vtkDICOMImageReader.h>

Inheritance diagram for vtkDICOMImageReader:

Inheritance graph
[legend]
Collaboration diagram for vtkDICOMImageReader:

Collaboration graph
[legend]
List of all members.

Detailed Description

Reads DICOM images.

See also:
vtkBMPReader vtkPNMReader vtkTIFFReader
Created by:
  • Turek, Matt
CVS contributions (if > 5%):
  • Turek, Matt (70%)
  • King, Brad (11%)
  • Miller, Jim (11%)
CVS logs (CVSweb):
  • .cxx (/IO/vtkDICOMImageReader.cxx)
  • .h (/IO/vtkDICOMImageReader.h)
Tests:
vtkDICOMImageReader (Tests)

Definition at line 48 of file vtkDICOMImageReader.h.

[NOHEADER]

typedef vtkImageReader2 Superclass
virtual const char * GetClassName ()
virtual int IsA (const char *type)
vtkDICOMImageReaderNew ()
int IsTypeOf (const char *type)
vtkDICOMImageReaderSafeDownCast (vtkObject *o)

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
void SetDirectoryName (const char *dn)
double * GetPixelSpacing ()
int GetWidth ()
int GetHeight ()
float * GetImagePositionPatient ()
int GetBitsAllocated ()
int GetPixelRepresentation ()
int GetNumberOfComponents ()
const char * GetTransferSyntaxUID ()
float GetRescaleSlope ()
float GetRescaleOffset ()
const char * GetPatientName ()
const char * GetStudyUID ()
const char * GetStudyID ()
float GetGantryAngle ()
void SetFileName (const char *fn)
virtual char * GetDirectoryName ()

Protected Member Functions

void SetupOutputInformation (int num_slices)
virtual int CanReadFile (const char *fname)
virtual const char * GetFileExtensions ()
virtual void ExecuteInformation ()
virtual void ExecuteData (vtkDataObject *out)
 vtkDICOMImageReader ()
virtual ~vtkDICOMImageReader ()
int GetNumberOfDICOMFileNames ()
const char * GetDICOMFileName (int index)
virtual const char * GetDescriptiveName ()

Protected Attributes

DICOMParser * Parser
DICOMAppHelper * AppHelper
vtkDICOMImageReaderVector * DICOMFileNames
char * DirectoryName
char * PatientName
char * StudyUID
char * StudyID
char * TransferSyntaxUID


Member Typedef Documentation

typedef vtkImageReader2 vtkDICOMImageReader::Superclass
 

Reimplemented from vtkImageReader2.

Definition at line 54 of file vtkDICOMImageReader.h.


Constructor & Destructor Documentation

vtkDICOMImageReader::vtkDICOMImageReader  )  [protected]
 

virtual vtkDICOMImageReader::~vtkDICOMImageReader  )  [protected, virtual]
 


Member Function Documentation

vtkDICOMImageReader* vtkDICOMImageReader::New  )  [static]
 

Static method for construction.

Reimplemented from vtkImageReader2.

virtual const char* vtkDICOMImageReader::GetClassName  )  [virtual]
 

Reimplemented from vtkImageReader2.

int vtkDICOMImageReader::IsTypeOf const char *  type  )  [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader2.

virtual int vtkDICOMImageReader::IsA const char *  type  )  [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageReader2.

vtkDICOMImageReader* vtkDICOMImageReader::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkImageReader2.

void vtkDICOMImageReader::PrintSelf ostream &  os,
vtkIndent  indent
[virtual]
 

Prints the ivars.

Reimplemented from vtkImageReader2.

void vtkDICOMImageReader::SetFileName const char *  fn  )  [inline, virtual]
 

Set the filename for the file to read. If this method is used, the reader will only read a single file.

Reimplemented from vtkImageReader2.

Definition at line 63 of file vtkDICOMImageReader.h.

References vtkImageReader2::SetFileName().

void vtkDICOMImageReader::SetDirectoryName const char *  dn  ) 
 

Set the directory name for the reader to look in for DICOM files. If this method is used, the reader will try to find all the DICOM files in a directory. It will select the subset corresponding to the first series UID it stumbles across and it will try to build an ordered volume from them based on the slice number. The volume building will be upgraded to something more sophisticated in the future.

virtual char* vtkDICOMImageReader::GetDirectoryName  )  [virtual]
 

Returns the directory name.

double* vtkDICOMImageReader::GetPixelSpacing  ) 
 

Returns the pixel spacing.

int vtkDICOMImageReader::GetWidth  ) 
 

Returns the image width.

int vtkDICOMImageReader::GetHeight  ) 
 

Returns the image height.

float* vtkDICOMImageReader::GetImagePositionPatient  ) 
 

Get the (DICOM) x,y,z coordinates of the first pixel in the image (upper left hand corner) of the last image processed by the DICOMParser

int vtkDICOMImageReader::GetBitsAllocated  ) 
 

Get the number of bits allocated for each pixel in the file.

int vtkDICOMImageReader::GetPixelRepresentation  ) 
 

Get the pixel representation of the last image processed by the DICOMParser. A zero is a unsigned quantity. A one indicates a signed quantity

int vtkDICOMImageReader::GetNumberOfComponents  ) 
 

Get the number of components of the image data for the last image processed.

const char* vtkDICOMImageReader::GetTransferSyntaxUID  ) 
 

Get the transfer syntax UID for the last image processed.

float vtkDICOMImageReader::GetRescaleSlope  ) 
 

Get the rescale slope for the pixel data.

float vtkDICOMImageReader::GetRescaleOffset  ) 
 

Get the rescale offset for the pixel data.

const char* vtkDICOMImageReader::GetPatientName  ) 
 

Get the patient name for the last image processed.

const char* vtkDICOMImageReader::GetStudyUID  ) 
 

Get the study uid for the last image processed.

const char* vtkDICOMImageReader::GetStudyID  ) 
 

Get the Study ID for the last image processed.

float vtkDICOMImageReader::GetGantryAngle  ) 
 

Get the gantry angle for the last image processed.

void vtkDICOMImageReader::SetupOutputInformation int  num_slices  )  [protected]
 

virtual int vtkDICOMImageReader::CanReadFile const char *  fname  )  [protected, virtual]
 

virtual const char* vtkDICOMImageReader::GetFileExtensions  )  [inline, protected, virtual]
 

Get the file extensions for this format. Returns a string with a space separated list of extensions in the format .extension

Reimplemented from vtkImageReader2.

Definition at line 153 of file vtkDICOMImageReader.h.

virtual const char* vtkDICOMImageReader::GetDescriptiveName  )  [inline, protected, virtual]
 

Return a descriptive name for the file format that might be useful in a GUI.

Reimplemented from vtkImageReader2.

Definition at line 161 of file vtkDICOMImageReader.h.

virtual void vtkDICOMImageReader::ExecuteInformation  )  [protected, virtual]
 

Reimplemented from vtkImageReader2.

virtual void vtkDICOMImageReader::ExecuteData vtkDataObject out  )  [protected, virtual]
 

This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method

Reimplemented from vtkImageReader2.

int vtkDICOMImageReader::GetNumberOfDICOMFileNames  )  [protected]
 

const char* vtkDICOMImageReader::GetDICOMFileName int  index  )  [protected]
 


Member Data Documentation

DICOMParser* vtkDICOMImageReader::Parser [protected]
 

Definition at line 183 of file vtkDICOMImageReader.h.

DICOMAppHelper* vtkDICOMImageReader::AppHelper [protected]
 

Definition at line 188 of file vtkDICOMImageReader.h.

vtkDICOMImageReaderVector* vtkDICOMImageReader::DICOMFileNames [protected]
 

Definition at line 193 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::DirectoryName [protected]
 

Definition at line 194 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::PatientName [protected]
 

Definition at line 196 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::StudyUID [protected]
 

Definition at line 197 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::StudyID [protected]
 

Definition at line 198 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::TransferSyntaxUID [protected]
 

Definition at line 199 of file vtkDICOMImageReader.h.


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