#include <vtkSelectEnclosedPoints.h>
vtkSelectEnclosedPoints is a filter that evaluates all the input points to determine whether they are in an enclosed surface. The filter produces a (0,1) mask (in the form of a vtkDataArray) that indicates whether points are outside (mask value=0) or inside (mask value=1) a provided surface. (The name of the output vtkDataArray is "SelectedPointsArray".)
After running the filter, it is possible to query it as to whether a point is inside/outside by invoking the IsInside(ptId) method.
This filter produces and output data array, but does not modify the input dataset. If you wish to extract cells or poinrs, various threshold filters are available (i.e., threshold the output array).
Definition at line 56 of file vtkSelectEnclosedPoints.h.
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
Definition at line 61 of file vtkSelectEnclosedPoints.h.
vtkSelectEnclosedPoints::vtkSelectEnclosedPoints | ( | ) | [protected] |
vtkSelectEnclosedPoints::~vtkSelectEnclosedPoints | ( | ) | [protected] |
virtual const char* vtkSelectEnclosedPoints::GetClassName | ( | ) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
static int vtkSelectEnclosedPoints::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
virtual int vtkSelectEnclosedPoints::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
static vtkSelectEnclosedPoints* vtkSelectEnclosedPoints::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
void vtkSelectEnclosedPoints::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkDataSetAlgorithm.
static vtkSelectEnclosedPoints* vtkSelectEnclosedPoints::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkDataSetAlgorithm.
void vtkSelectEnclosedPoints::SetSurface | ( | vtkPolyData * | pd | ) |
Set the surface to be used to test for containment. Two methods are provided: one directly for vtkPolyData, and one for the output of a filter.
void vtkSelectEnclosedPoints::SetSurfaceConnection | ( | vtkAlgorithmOutput * | algOutput | ) |
Set the surface to be used to test for containment. Two methods are provided: one directly for vtkPolyData, and one for the output of a filter.
vtkPolyData* vtkSelectEnclosedPoints::GetSurface | ( | ) |
Return a pointer to the enclosing surface.
vtkPolyData* vtkSelectEnclosedPoints::GetSurface | ( | vtkInformationVector * | sourceInfo | ) |
Return a pointer to the enclosing surface.
virtual void vtkSelectEnclosedPoints::SetInsideOut | ( | int | ) | [virtual] |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::InsideOutOn | ( | ) | [virtual] |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::InsideOutOff | ( | ) | [virtual] |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual int vtkSelectEnclosedPoints::GetInsideOut | ( | ) | [virtual] |
By default, points inside the surface are marked inside or sent to the output. If InsideOut is on, then the points outside the surface are marked inside.
virtual void vtkSelectEnclosedPoints::SetCheckSurface | ( | int | ) | [virtual] |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual void vtkSelectEnclosedPoints::CheckSurfaceOn | ( | ) | [virtual] |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual void vtkSelectEnclosedPoints::CheckSurfaceOff | ( | ) | [virtual] |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
virtual int vtkSelectEnclosedPoints::GetCheckSurface | ( | ) | [virtual] |
Specify whether to check the surface for closure. If on, then the algorithm first checks to see if the surface is closed and manifold.
int vtkSelectEnclosedPoints::IsInside | ( | vtkIdType | inputPtId | ) |
Query an input point id as to whether it is inside or outside. Note that the result requires that the filter execute first.
virtual void vtkSelectEnclosedPoints::SetTolerance | ( | double | ) | [virtual] |
Specify the tolerance on the intersection. The tolerance is expressed as a fraction of the bounding box of the enclosing surface.
virtual double vtkSelectEnclosedPoints::GetTolerance | ( | ) | [virtual] |
Specify the tolerance on the intersection. The tolerance is expressed as a fraction of the bounding box of the enclosing surface.
void vtkSelectEnclosedPoints::Initialize | ( | vtkPolyData * | surface | ) |
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsInsideSurface | ( | double | x, | |
double | y, | |||
double | z | |||
) |
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsInsideSurface | ( | double | x[3] | ) |
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
void vtkSelectEnclosedPoints::Complete | ( | ) |
This is a backdoor that can be used to test many points for containment. First initialize the instance, then repeated calls to IsInsideSurface() can be used without rebuilding the search structures. The complete method releases memory.
int vtkSelectEnclosedPoints::IsSurfaceClosed | ( | vtkPolyData * | surface | ) | [protected] |
virtual int vtkSelectEnclosedPoints::RequestData | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.
Reimplemented from vtkDataSetAlgorithm.
virtual int vtkSelectEnclosedPoints::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 vtkDataSetAlgorithm.
virtual void vtkSelectEnclosedPoints::ReportReferences | ( | vtkGarbageCollector * | ) | [protected, virtual] |
Reimplemented from vtkAlgorithm.
int vtkSelectEnclosedPoints::CheckSurface [protected] |
Definition at line 125 of file vtkSelectEnclosedPoints.h.
int vtkSelectEnclosedPoints::InsideOut [protected] |
Definition at line 126 of file vtkSelectEnclosedPoints.h.
double vtkSelectEnclosedPoints::Tolerance [protected] |
Definition at line 127 of file vtkSelectEnclosedPoints.h.
Definition at line 130 of file vtkSelectEnclosedPoints.h.
vtkCellLocator* vtkSelectEnclosedPoints::CellLocator [protected] |
Definition at line 133 of file vtkSelectEnclosedPoints.h.
vtkIdList* vtkSelectEnclosedPoints::CellIds [protected] |
Definition at line 134 of file vtkSelectEnclosedPoints.h.
vtkGenericCell* vtkSelectEnclosedPoints::Cell [protected] |
Definition at line 135 of file vtkSelectEnclosedPoints.h.
vtkPolyData* vtkSelectEnclosedPoints::Surface [protected] |
Definition at line 136 of file vtkSelectEnclosedPoints.h.
double vtkSelectEnclosedPoints::Bounds[6] [protected] |
Definition at line 137 of file vtkSelectEnclosedPoints.h.
double vtkSelectEnclosedPoints::Length [protected] |
Definition at line 138 of file vtkSelectEnclosedPoints.h.