#include <vtkPolyDataToImageStencil.h>
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).
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 *) |
vtkPolyData * | GetInput () |
virtual void | SetTolerance (double) |
virtual double | GetTolerance () |
Static Public Member Functions | |
static vtkPolyDataToImageStencil * | New () |
static int | IsTypeOf (const char *type) |
static vtkPolyDataToImageStencil * | SafeDownCast (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 |
Reimplemented from vtkImageStencilSource.
Definition at line 81 of file vtkPolyDataToImageStencil.h.
vtkPolyDataToImageStencil::vtkPolyDataToImageStencil | ( | ) | [protected] |
vtkPolyDataToImageStencil::~vtkPolyDataToImageStencil | ( | ) | [protected] |
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.
double vtkPolyDataToImageStencil::Tolerance [protected] |
The tolerance distance for favoring the inside of the stencil
Definition at line 115 of file vtkPolyDataToImageStencil.h.