VTK
|
combine images via a cookie-cutter operation More...
#include <vtkImageStencil.h>
combine images via a cookie-cutter operation
vtkImageStencil will combine two images together using a stencil. The stencil should be provided in the form of a vtkImageStencilData,
Definition at line 36 of file vtkImageStencil.h.
Reimplemented from vtkThreadedImageAlgorithm.
Definition at line 40 of file vtkImageStencil.h.
vtkImageStencil::vtkImageStencil | ( | ) | [protected] |
vtkImageStencil::~vtkImageStencil | ( | ) | [protected] |
static vtkImageStencil* vtkImageStencil::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkImageStencil::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 vtkThreadedImageAlgorithm.
virtual int vtkImageStencil::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 vtkThreadedImageAlgorithm.
static vtkImageStencil* vtkImageStencil::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkThreadedImageAlgorithm.
virtual vtkObjectBase* vtkImageStencil::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkThreadedImageAlgorithm.
vtkImageStencil* vtkImageStencil::NewInstance | ( | ) | const |
Reimplemented from vtkThreadedImageAlgorithm.
void vtkImageStencil::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 vtkThreadedImageAlgorithm.
virtual void vtkImageStencil::SetStencilData | ( | vtkImageStencilData * | stencil | ) | [virtual] |
Specify the stencil to use. The stencil can be created from a vtkImplicitFunction or a vtkPolyData. This function does not setup a pipeline connection.
Specify the stencil to use. The stencil can be created from a vtkImplicitFunction or a vtkPolyData. This function does not setup a pipeline connection.
void vtkImageStencil::SetStencilConnection | ( | vtkAlgorithmOutput * | outputPort | ) | [inline] |
Specify the stencil to use. This sets up a pipeline connection.
Definition at line 53 of file vtkImageStencil.h.
virtual void vtkImageStencil::SetReverseStencil | ( | int | ) | [virtual] |
Reverse the stencil.
virtual void vtkImageStencil::ReverseStencilOn | ( | ) | [virtual] |
Reverse the stencil.
virtual void vtkImageStencil::ReverseStencilOff | ( | ) | [virtual] |
Reverse the stencil.
virtual int vtkImageStencil::GetReverseStencil | ( | ) | [virtual] |
Reverse the stencil.
virtual void vtkImageStencil::SetBackgroundInputData | ( | vtkImageData * | input | ) | [virtual] |
Set the second input. This image will be used for the 'outside' of the stencil. If not set, the output voxels will be filled with BackgroundValue instead.
Set the second input. This image will be used for the 'outside' of the stencil. If not set, the output voxels will be filled with BackgroundValue instead.
void vtkImageStencil::SetBackgroundValue | ( | double | val | ) | [inline] |
Set the default output value to use when the second input is not set.
Definition at line 76 of file vtkImageStencil.h.
double vtkImageStencil::GetBackgroundValue | ( | ) | [inline] |
Set the default output value to use when the second input is not set.
Definition at line 78 of file vtkImageStencil.h.
virtual void vtkImageStencil::SetBackgroundColor | ( | double | , |
double | , | ||
double | , | ||
double | |||
) | [virtual] |
Set the default color to use when the second input is not set. This is like SetBackgroundValue, but for multi-component images.
virtual void vtkImageStencil::SetBackgroundColor | ( | double | [4] | ) | [virtual] |
Set the default color to use when the second input is not set. This is like SetBackgroundValue, but for multi-component images.
virtual double* vtkImageStencil::GetBackgroundColor | ( | ) | [virtual] |
Set the default color to use when the second input is not set. This is like SetBackgroundValue, but for multi-component images.
virtual void vtkImageStencil::GetBackgroundColor | ( | double & | , |
double & | , | ||
double & | , | ||
double & | |||
) | [virtual] |
Set the default color to use when the second input is not set. This is like SetBackgroundValue, but for multi-component images.
virtual void vtkImageStencil::GetBackgroundColor | ( | double | [4] | ) | [virtual] |
Set the default color to use when the second input is not set. This is like SetBackgroundValue, but for multi-component images.
void vtkImageStencil::ThreadedRequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector, | ||
vtkImageData *** | inData, | ||
vtkImageData ** | outData, | ||
int | extent[6], | ||
int | threadId | ||
) | [protected, virtual] |
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.
Reimplemented from vtkThreadedImageAlgorithm.
virtual int vtkImageStencil::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.
int vtkImageStencil::ReverseStencil [protected] |
Definition at line 99 of file vtkImageStencil.h.
double vtkImageStencil::BackgroundColor[4] [protected] |
Definition at line 100 of file vtkImageStencil.h.