VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageStencil Class Reference

combine images via a cookie-cutter operation More...

#include <vtkImageStencil.h>

Inheritance diagram for vtkImageStencil:
Inheritance graph
[legend]
Collaboration diagram for vtkImageStencil:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageStencilNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetStencilData (vtkImageStencilData *stencil)
vtkImageStencilDataGetStencil ()
void SetStencilConnection (vtkAlgorithmOutput *outputPort)
virtual void SetReverseStencil (int)
virtual void ReverseStencilOn ()
virtual void ReverseStencilOff ()
virtual int GetReverseStencil ()
virtual void SetBackgroundInputData (vtkImageData *input)
vtkImageDataGetBackgroundInput ()
void SetBackgroundValue (double val)
double GetBackgroundValue ()
virtual void SetBackgroundColor (double, double, double, double)
virtual void SetBackgroundColor (double[4])
virtual doubleGetBackgroundColor ()
virtual void GetBackgroundColor (double &, double &, double &, double &)
virtual void GetBackgroundColor (double[4])

Static Public Member Functions

static vtkImageStencilNew ()
static int IsTypeOf (const char *type)
static vtkImageStencilSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageStencil ()
 ~vtkImageStencil ()
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
virtual int FillInputPortInformation (int, vtkInformation *)

Protected Attributes

int ReverseStencil
double BackgroundColor [4]

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,

Examples:
vtkImageStencil (Examples)
Tests:
vtkImageStencil (Tests)

Definition at line 36 of file vtkImageStencil.h.


Member Typedef Documentation

Reimplemented from vtkThreadedImageAlgorithm.

Definition at line 40 of file vtkImageStencil.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkThreadedImageAlgorithm.

virtual vtkObjectBase* vtkImageStencil::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkThreadedImageAlgorithm.

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.

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.

Set the default output value to use when the second input is not set.

Definition at line 76 of file vtkImageStencil.h.

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.

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.


Member Data Documentation

Definition at line 99 of file vtkImageStencil.h.

Definition at line 100 of file vtkImageStencil.h.


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