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

use polydata to mask an image More...

#include <vtkPolyDataToImageStencil.h>

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

List of all members.

Public Types

typedef vtkImageStencilSource Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPolyDataToImageStencilNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetInputData (vtkPolyData *)
vtkPolyDataGetInput ()
virtual void SetTolerance (double)
virtual double GetTolerance ()

Static Public Member Functions

static vtkPolyDataToImageStencilNew ()
static int IsTypeOf (const char *type)
static vtkPolyDataToImageStencilSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkPolyDataToImageStencil ()
 ~vtkPolyDataToImageStencil ()
void ThreadedExecute (vtkImageStencilData *output, int extent[6], int threadId)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation (int, vtkInformation *)

Static Protected Member Functions

static void PolyDataCutter (vtkPolyData *input, vtkPolyData *output, double z, vtkMergePoints *locator)
static void PolyDataSelector (vtkPolyData *input, vtkPolyData *output, double z, double thickness, vtkMergePoints *locator)

Protected Attributes

double Tolerance

Detailed Description

use polydata to mask an image

The vtkPolyDataToImageStencil class will convert polydata into an image stencil. The polydata can either be a closed surface mesh or a series of polyline contours (one contour per slice).

Warning:
If contours are provided, the contours must be aligned with the Z planes. Other contour orientations are not supported.
See also:
vtkImageStencil vtkImageAccumulate vtkImageBlend vtkImageReslice
Examples:
vtkPolyDataToImageStencil (Examples)
Tests:
vtkPolyDataToImageStencil (Tests)

Definition at line 77 of file vtkPolyDataToImageStencil.h.


Member Typedef Documentation

Reimplemented from vtkImageStencilSource.

Definition at line 82 of file vtkPolyDataToImageStencil.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkImageStencilSource.

static int vtkPolyDataToImageStencil::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 vtkImageStencilSource.

virtual int vtkPolyDataToImageStencil::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 vtkImageStencilSource.

Reimplemented from vtkImageStencilSource.

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

Reimplemented from vtkImageStencilSource.

Reimplemented from vtkImageStencilSource.

void vtkPolyDataToImageStencil::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 vtkImageStencilSource.

virtual void vtkPolyDataToImageStencil::SetInputData ( vtkPolyData ) [virtual]

Specify the implicit function to convert into a stencil.

Specify the implicit function to convert into a stencil.

virtual void vtkPolyDataToImageStencil::SetTolerance ( double  ) [virtual]

The tolerance to apply in when determining whether a voxel is inside the stencil, given as a fraction of a voxel. Only used in X and Y, not in Z.

The tolerance to apply in when determining whether a voxel is inside the stencil, given as a fraction of a voxel. Only used in X and Y, not in Z.

void vtkPolyDataToImageStencil::ThreadedExecute ( vtkImageStencilData output,
int  extent[6],
int  threadId 
) [protected]
static void vtkPolyDataToImageStencil::PolyDataCutter ( vtkPolyData input,
vtkPolyData output,
double  z,
vtkMergePoints locator 
) [static, protected]
static void vtkPolyDataToImageStencil::PolyDataSelector ( vtkPolyData input,
vtkPolyData output,
double  z,
double  thickness,
vtkMergePoints locator 
) [static, protected]

Reimplemented from vtkImageStencilAlgorithm.

virtual int vtkPolyDataToImageStencil::FillInputPortInformation ( int  port,
vtkInformation info 
) [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 vtkAlgorithm.


Member Data Documentation

The tolerance distance for favoring the inside of the stencil

Definition at line 119 of file vtkPolyDataToImageStencil.h.


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