VTK
|
Convert an image stencil into an image. More...
#include <vtkImageStencilToImage.h>
Convert an image stencil into an image.
vtkImageStencilToImage will convert an image stencil into a binary image. The default output will be an 8-bit image with a value of 1 inside the stencil and 0 outside. When used in combination with vtkPolyDataToImageStencil or vtkImplicitFunctionToImageStencil, this can be used to create a binary image from a mesh or a function.
Definition at line 36 of file vtkImageStencilToImage.h.
Reimplemented from vtkImageAlgorithm.
Definition at line 40 of file vtkImageStencilToImage.h.
vtkImageStencilToImage::vtkImageStencilToImage | ( | ) | [protected] |
vtkImageStencilToImage::~vtkImageStencilToImage | ( | ) | [protected] |
static vtkImageStencilToImage* vtkImageStencilToImage::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkImageStencilToImage::IsTypeOf | ( | const char * | name | ) | [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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageStencilToImage::IsA | ( | const char * | name | ) | [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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
static vtkImageStencilToImage* vtkImageStencilToImage::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
virtual vtkObjectBase* vtkImageStencilToImage::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
Reimplemented from vtkImageAlgorithm.
void vtkImageStencilToImage::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImageAlgorithm.
virtual void vtkImageStencilToImage::SetOutsideValue | ( | double | ) | [virtual] |
The value to use outside the stencil. The default is 0.
virtual double vtkImageStencilToImage::GetOutsideValue | ( | ) | [virtual] |
The value to use outside the stencil. The default is 0.
virtual void vtkImageStencilToImage::SetInsideValue | ( | double | ) | [virtual] |
The value to use inside the stencil. The default is 1.
virtual double vtkImageStencilToImage::GetInsideValue | ( | ) | [virtual] |
The value to use inside the stencil. The default is 1.
virtual void vtkImageStencilToImage::SetOutputScalarType | ( | int | ) | [virtual] |
The desired output scalar type. The default is unsigned char.
virtual int vtkImageStencilToImage::GetOutputScalarType | ( | ) | [virtual] |
The desired output scalar type. The default is unsigned char.
void vtkImageStencilToImage::SetOutputScalarTypeToFloat | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 59 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToDouble | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 60 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToInt | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 61 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToUnsignedInt | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 62 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToLong | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 64 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToUnsignedLong | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 65 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToShort | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 67 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToUnsignedShort | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 68 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToUnsignedChar | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 70 of file vtkImageStencilToImage.h.
void vtkImageStencilToImage::SetOutputScalarTypeToChar | ( | ) | [inline] |
The desired output scalar type. The default is unsigned char.
Definition at line 72 of file vtkImageStencilToImage.h.
virtual int vtkImageStencilToImage::RequestInformation | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageStencilToImage::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageStencilToImage::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
These method should be reimplemented by subclasses that have more than a single input or single output. See vtkAlgorithm for more information.
Reimplemented from vtkImageAlgorithm.
double vtkImageStencilToImage::OutsideValue [protected] |
Definition at line 88 of file vtkImageStencilToImage.h.
double vtkImageStencilToImage::InsideValue [protected] |
Definition at line 89 of file vtkImageStencilToImage.h.
int vtkImageStencilToImage::OutputScalarType [protected] |
Definition at line 90 of file vtkImageStencilToImage.h.