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 | Public Attributes | Protected Member Functions | List of all members
svkImageCopy Class Reference

#include <svkImageCopy.h>

Inheritance diagram for svkImageCopy:
svkImageAlgorithmWithPortMapper svkImageAlgorithm

Public Types

enum  { INPUT_IMAGE = 0, OUTPUT_SERIES_DESCRIPTION, OUTPUT_SCALAR_TYPE, ZERO_COPY }
 

Public Member Functions

 vtkTypeMacro (svkImageCopy, svkImageAlgorithmWithPortMapper)
 
void SetSeriesDescription (string newSeriesDescription)
 
void SetOutputDataType (int dataType)
 
void SetZeroCopy (bool zeroCopy)
 
- Public Member Functions inherited from svkImageAlgorithmWithPortMapper
 vtkTypeMacro (svkImageAlgorithmWithPortMapper, svkImageAlgorithm)
 
virtual void SetInputPortsFromXML (vtkXMLDataElement *element)
 Parses an XML element and converts it into input port parameters. Converts image filename strings to svkImageData objects. More...
 
virtual svkAlgorithmPortMapperGetPortMapper ()
 Get the internal port mapper. More...
 
void PrintSelf (ostream &os, vtkIndent indent)
 Prints all input parameters set. More...
 
- Public Member Functions inherited from svkImageAlgorithm
 vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
svkImageDataGetImageDataInput (int port)
 

Static Public Member Functions

static svkImageCopyNew ()
 
- Static Public Member Functions inherited from svkImageAlgorithmWithPortMapper
static
svkImageAlgorithmWithPortMapper
New ()
 

Public Attributes

enum svk::svkImageCopy:: { ... }  svkImageCopyParameters
 

Protected Member Functions

 svkImageCopy ()
 
 ~svkImageCopy ()
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Protected Member Functions inherited from svkImageAlgorithmWithPortMapper
 svkImageAlgorithmWithPortMapper ()
 
 ~svkImageAlgorithmWithPortMapper ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 All ports must be initialized through the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from svkImageAlgorithm
 svkImageAlgorithm ()
 
 ~svkImageAlgorithm ()
 
virtual int FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 
virtual int FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 

Detailed Description

Class to manage copying svkImageData as part of a pipeline, updating the header and provenance.

Member Enumeration Documentation

anonymous enum
Enumerator
INPUT_IMAGE 
OUTPUT_SERIES_DESCRIPTION 
OUTPUT_SCALAR_TYPE 
ZERO_COPY 

Constructor & Destructor Documentation

svkImageCopy ( )
protected
~svkImageCopy ( )
protected

Member Function Documentation

static svkImageCopy* New ( )
static
int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual
void SetOutputDataType ( int  dataType)
void SetSeriesDescription ( string  newSeriesDescription)

This is an in-place filter, so just pass original svkImageData input back out:

Set the series description for the DICOM header of the copy.

References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkImageCopy::OUTPUT_SERIES_DESCRIPTION, and svkAlgorithmPortMapper::SetStringInputPortValue().

void SetZeroCopy ( bool  zeroCopy)

If set, the copy will have pixels set to 0. This is also useful for downcasting a copy.

References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkAlgorithmPortMapper::SetBoolInputPortValue(), and svkImageCopy::ZERO_COPY.

vtkTypeMacro ( svkImageCopy  ,
svkImageAlgorithmWithPortMapper   
)

Member Data Documentation

enum { ... } svkImageCopyParameters

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