VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkPolyDataToImageStencil Class Reference

use polydata to mask an image More...

#include <vtkPolyDataToImageStencil.h>

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

Public Types

typedef vtkImageStencilSource Superclass
 
- Public Types inherited from vtkImageStencilSource
typedef vtkImageStencilAlgorithm Superclass
 
- Public Types inherited from vtkImageStencilAlgorithm
typedef vtkAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPolyDataToImageStencilNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetInputData (vtkPolyData *)
 
vtkPolyData * GetInput ()
 
virtual void SetTolerance (double)
 
virtual double GetTolerance ()
 
- Public Member Functions inherited from vtkImageStencilSource
vtkImageStencilSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetInformationInput (vtkImageData *)
 
virtual vtkImageData * GetInformationInput ()
 
virtual void SetOutputOrigin (double, double, double)
 
virtual void SetOutputOrigin (double[3])
 
virtual double * GetOutputOrigin ()
 
virtual void GetOutputOrigin (double &, double &, double &)
 
virtual void GetOutputOrigin (double[3])
 
virtual void SetOutputSpacing (double, double, double)
 
virtual void SetOutputSpacing (double[3])
 
virtual double * GetOutputSpacing ()
 
virtual void GetOutputSpacing (double &, double &, double &)
 
virtual void GetOutputSpacing (double[3])
 
virtual void SetOutputWholeExtent (int, int, int, int, int, int)
 
virtual void SetOutputWholeExtent (int[6])
 
virtual int * GetOutputWholeExtent ()
 
virtual void GetOutputWholeExtent (int &, int &, int &, int &, int &, int &)
 
virtual void GetOutputWholeExtent (int[6])
 
- Public Member Functions inherited from vtkImageStencilAlgorithm
vtkImageStencilAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetOutput (vtkImageStencilData *output)
 
vtkImageStencilDataGetOutput ()
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Static Public Member Functions

static vtkPolyDataToImageStencilNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataToImageStencilSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkImageStencilSource
static vtkImageStencilSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageStencilSourceSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkImageStencilAlgorithm
static vtkImageStencilAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageStencilAlgorithmSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkPolyDataToImageStencil ()
 
 ~vtkPolyDataToImageStencil ()
 
void ThreadedExecute (vtkImageStencilData *output, int extent[6], int threadId)
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
- Protected Member Functions inherited from vtkImageStencilSource
 vtkImageStencilSource ()
 
 ~vtkImageStencilSource ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkImageStencilAlgorithm
 vtkImageStencilAlgorithm ()
 
 ~vtkImageStencilAlgorithm ()
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
vtkImageStencilDataAllocateOutputData (vtkDataObject *out, int *updateExt)
 
virtual int FillOutputPortInformation (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
 
- Protected Attributes inherited from vtkImageStencilSource
vtkImageData * InformationInput
 
int OutputWholeExtent [6]
 
double OutputOrigin [3]
 
double OutputSpacing [3]
 

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

Definition at line 82 of file vtkPolyDataToImageStencil.h.

Constructor & Destructor Documentation

vtkPolyDataToImageStencil::vtkPolyDataToImageStencil ( )
protected
vtkPolyDataToImageStencil::~vtkPolyDataToImageStencil ( )
protected

Member Function Documentation

static vtkPolyDataToImageStencil* vtkPolyDataToImageStencil::New ( )
static
static int vtkPolyDataToImageStencil::IsTypeOf ( const char *  type)
static
virtual int vtkPolyDataToImageStencil::IsA ( const char *  type)
virtual

Reimplemented from vtkImageStencilSource.

static vtkPolyDataToImageStencil* vtkPolyDataToImageStencil::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkPolyDataToImageStencil::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkImageStencilSource.

vtkPolyDataToImageStencil* vtkPolyDataToImageStencil::NewInstance ( ) const
void vtkPolyDataToImageStencil::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkPolyDataToImageStencil::SetInputData ( 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,
vtkMergePoints *  locator 
)
staticprotected
static void vtkPolyDataToImageStencil::PolyDataSelector ( vtkPolyData *  input,
vtkPolyData *  output,
double  z,
double  thickness,
vtkMergePoints *  locator 
)
staticprotected
virtual int vtkPolyDataToImageStencil::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Reimplemented from vtkImageStencilAlgorithm.

virtual int vtkPolyDataToImageStencil::FillInputPortInformation ( int  ,
vtkInformation *   
)
protectedvirtual

Member Data Documentation

double vtkPolyDataToImageStencil::Tolerance
protected

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: