vtkImageStencil Class Reference
#include <vtkImageStencil.h>
Inheritance diagram for vtkImageStencil:
[legend]Collaboration diagram for vtkImageStencil:
[legend]List of all members.
Detailed Description
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,
- Created by:
-
- CVS contributions (if > 5%):
- Gobbi, David (87%)
- Martin, Ken (5%)
- CVS logs (CVSweb):
.h (/Imaging/vtkImageStencil
.h)
.cxx (/Imaging/vtkImageStencil
.cxx)
- Examples:
- vtkImageStencil (Examples)
- Tests:
- vtkImageStencil (Tests)
Definition at line 46 of file vtkImageStencil.h.
|
Public Types |
typedef vtkImageToImageFilter | Superclass |
Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | SetStencil (vtkImageStencilData *stencil) |
vtkImageStencilData * | GetStencil () |
|
virtual void | SetReverseStencil (int) |
virtual void | ReverseStencilOn () |
virtual void | ReverseStencilOff () |
virtual int | GetReverseStencil () |
|
virtual void | SetBackgroundInput (vtkImageData *input) |
vtkImageData * | GetBackgroundInput () |
|
void | SetBackgroundValue (double val) |
double | GetBackgroundValue () |
|
virtual void | SetBackgroundColor (double, double, double, double) |
virtual void | SetBackgroundColor (double[4]) |
virtual double * | GetBackgroundColor () |
virtual void | GetBackgroundColor (double &, double &, double &, double &) |
virtual void | GetBackgroundColor (double[4]) |
Static Public Member Functions |
vtkImageStencil * | New () |
int | IsTypeOf (const char *type) |
vtkImageStencil * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkImageStencil () |
| ~vtkImageStencil () |
void | ExecuteInformation () |
void | ExecuteInformation (vtkImageData *inData, vtkImageData *outData) |
void | ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int extent[6], int id) |
virtual int | FillInputPortInformation (int, vtkInformation *) |
Protected Attributes |
int | ReverseStencil |
double | BackgroundColor [4] |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkImageStencil::vtkImageStencil |
( |
|
) |
[protected] |
|
Member Function Documentation
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm. |
virtual const char* vtkImageStencil::GetClassName |
( |
|
) |
[virtual] |
|
int vtkImageStencil::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 vtkImageToImageFilter. |
virtual int vtkImageStencil::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 vtkImageToImageFilter. |
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 vtkImageToImageFilter. |
virtual void vtkImageStencil::SetReverseStencil |
( |
int |
|
) |
[virtual] |
|
virtual void vtkImageStencil::ReverseStencilOn |
( |
|
) |
[virtual] |
|
virtual void vtkImageStencil::ReverseStencilOff |
( |
|
) |
[virtual] |
|
virtual int vtkImageStencil::GetReverseStencil |
( |
|
) |
[virtual] |
|
virtual void vtkImageStencil::SetBackgroundInput |
( |
vtkImageData * |
input |
) |
[virtual] |
|
|
NOTE: Not yet implemented, use SetBackgroundValue 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. |
|
NOTE: Not yet implemented, use SetBackgroundValue 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 78 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 80 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::ExecuteInformation |
( |
|
) |
[inline, protected, virtual] |
|
void vtkImageStencil::ThreadedExecute |
( |
vtkImageData * |
inData, |
|
|
vtkImageData * |
outData, |
|
|
int |
extent[6], |
|
|
int |
id |
|
) |
[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 vtkImageToImageFilter. |
virtual int vtkImageStencil::FillInputPortInformation |
( |
int |
, |
|
|
vtkInformation * |
|
|
) |
[protected, virtual] |
|
|
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkImageToImageFilter. |
Member Data Documentation
The documentation for this class was generated from the following file: