vtkPolyDataToImageStencil Class Reference

#include <vtkPolyDataToImageStencil.h>

Inheritance diagram for vtkPolyDataToImageStencil:

Inheritance graph
[legend]
Collaboration diagram for vtkPolyDataToImageStencil:

Collaboration graph
[legend]

List of all members.


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 76 of file vtkPolyDataToImageStencil.h.


Public Types

typedef vtkImageStencilSource Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 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, double thickness, vtkMergePoints *locator)

Protected Attributes

double Tolerance

Member Typedef Documentation

Reimplemented from vtkImageStencilSource.

Definition at line 81 of file vtkPolyDataToImageStencil.h.


Constructor & Destructor Documentation

vtkPolyDataToImageStencil::vtkPolyDataToImageStencil (  )  [protected]

vtkPolyDataToImageStencil::~vtkPolyDataToImageStencil (  )  [protected]


Member Function Documentation

static vtkPolyDataToImageStencil* vtkPolyDataToImageStencil::New (  )  [static]

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

Reimplemented from vtkImageStencilSource.

virtual const char* vtkPolyDataToImageStencil::GetClassName (  )  [virtual]

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.

static vtkPolyDataToImageStencil* vtkPolyDataToImageStencil::SafeDownCast ( vtkObject o  )  [static]

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::SetInput ( vtkPolyData  )  [virtual]

Specify the implicit function to convert into a stencil.

vtkPolyData* vtkPolyDataToImageStencil::GetInput (  ) 

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.

virtual double vtkPolyDataToImageStencil::GetTolerance (  )  [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.

void vtkPolyDataToImageStencil::ThreadedExecute ( vtkImageStencilData output,
int  extent[6],
int  threadId 
) [protected]

static void vtkPolyDataToImageStencil::PolyDataCutter ( vtkPolyData input,
vtkPolyData output,
double  z,
double  thickness,
vtkMergePoints locator 
) [static, protected]

virtual int vtkPolyDataToImageStencil::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

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 115 of file vtkPolyDataToImageStencil.h.


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

Generated on Wed Aug 24 11:57:11 2011 for VTK by  doxygen 1.5.6