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

#include <svkImageWriterFactory.h>

Inheritance diagram for svkImageWriterFactory:

Public Types

enum  WriterType {
  UNDEFINED = -1, JPEG = 0, TIFF, DDF,
  IDF, DICOM_MRS, DICOM_MRI, DICOM_ENHANCED_MRI,
  DICOM_SC, PS, LCMODEL, LAST_TYPE = PS
}
 

Public Member Functions

 vtkTypeMacro (svkImageWriterFactory, vtkObject)
 
virtual vtkImageWriter * CreateImageWriter (WriterType writerType)
 

Static Public Member Functions

static svkImageWriterFactoryNew ()
 
static WriterType GetDefaultWriterForFilePattern (string newSeriesFilePattern)
 
static int GetNewSeriesFilePattern (svkImageData *imageData, string *newSeriesFilePattern)
 
static int GetNewSeriesNumberOffset ()
 

Protected Member Functions

 svkImageWriterFactory ()
 
 ~svkImageWriterFactory ()
 

Detailed Description

Factory Base class. Generates both vtk image writers ( JPEG, TIFF, etc.) and svk image writers. many of the vtk image writers are for screen captures from a vtkRenderWindow. The output from the vtkWindow2ImageFilter is used as input to the writer, for writers that write out screen images.

Member Enumeration Documentation

enum WriterType
Enumerator
UNDEFINED 
JPEG 
TIFF 
DDF 
IDF 
DICOM_MRS 
DICOM_MRI 
DICOM_ENHANCED_MRI 
DICOM_SC 
PS 
LCMODEL 
LAST_TYPE 

Constructor & Destructor Documentation

svkImageWriterFactory ( )
protected
~svkImageWriterFactory ( )
protected

Member Function Documentation

vtkImageWriter * CreateImageWriter ( svkImageWriterFactory::WriterType  writerType)
virtual
svkImageWriterFactory::WriterType GetDefaultWriterForFilePattern ( string  newSeriesFilePattern)
static
int GetNewSeriesFilePattern ( svkImageData imageData,
string *  newSeriesFilePattern 
)
static

Generates a default file pattern for a new series and returns the new series number: EStudyIdSSeriesNumberI

References svkImageData::GetDcmHeader(), svkDcmHeader::GetIntValue(), svkImageWriterFactory::GetNewSeriesNumberOffset(), and svkDcmHeader::GetStringValue().

int GetNewSeriesNumberOffset ( )
static

Return incremented series offset

Referenced by svkImageWriterFactory::GetNewSeriesFilePattern().

static svkImageWriterFactory* New ( )
static
vtkTypeMacro ( svkImageWriterFactory  ,
vtkObject   
)

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