Selects point ids using a kd-tree.
More...
#include <vtkKdTreeSelector.h>
Inherits vtkSelectionAlgorithm.
|
virtual int | IsA (const char *type) |
|
vtkKdTreeSelector * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
unsigned long | GetMTime () |
|
|
void | SetKdTree (vtkKdTree *tree) |
|
virtual vtkKdTree * | GetKdTree () |
|
|
virtual void | SetSelectionBounds (double, double, double, double, double, double) |
|
virtual void | SetSelectionBounds (double[6]) |
|
virtual double * | GetSelectionBounds () |
|
virtual void | GetSelectionBounds (double &, double &, double &, double &, double &, double &) |
|
virtual void | GetSelectionBounds (double[6]) |
|
|
virtual void | SetSelectionFieldName (const char *) |
|
virtual char * | GetSelectionFieldName () |
|
|
virtual void | SetSelectionAttribute (int) |
|
virtual int | GetSelectionAttribute () |
|
|
virtual void | SetSingleSelection (bool) |
|
virtual bool | GetSingleSelection () |
|
virtual void | SingleSelectionOn () |
|
virtual void | SingleSelectionOff () |
|
|
virtual void | SetSingleSelectionThreshold (double) |
|
virtual double | GetSingleSelectionThreshold () |
|
Selects point ids using a kd-tree.
If SetKdTree is used, the filter ignores the input and selects based on that kd-tree. If SetKdTree is not used, the filter builds a kd-tree using the input point set and uses that tree for selection. The output is a vtkSelection containing the ids found in the kd-tree using the specified bounds.
Definition at line 38 of file vtkKdTreeSelector.h.
vtkKdTreeSelector::vtkKdTreeSelector |
( |
| ) |
|
|
protected |
vtkKdTreeSelector::~vtkKdTreeSelector |
( |
| ) |
|
|
protected |
static int vtkKdTreeSelector::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkKdTreeSelector::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkKdTreeSelector::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkKdTreeSelector::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
void vtkKdTreeSelector::SetKdTree |
( |
vtkKdTree * |
tree | ) |
|
The kd-tree to use to find selected ids. The kd-tree must be initialized with the desired set of points. When this is set, the optional input is ignored.
virtual vtkKdTree* vtkKdTreeSelector::GetKdTree |
( |
| ) |
|
|
virtual |
The kd-tree to use to find selected ids. The kd-tree must be initialized with the desired set of points. When this is set, the optional input is ignored.
virtual void vtkKdTreeSelector::SetSelectionBounds |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
The bounds of the form (xmin,xmax,ymin,ymax,zmin,zmax). To perform a search in 2D, use the bounds (xmin,xmax,ymin,ymax,VTK_DOUBLE_MIN,VTK_DOUBLE_MAX).
virtual void vtkKdTreeSelector::SetSelectionBounds |
( |
double |
[6] | ) |
|
|
virtual |
The bounds of the form (xmin,xmax,ymin,ymax,zmin,zmax). To perform a search in 2D, use the bounds (xmin,xmax,ymin,ymax,VTK_DOUBLE_MIN,VTK_DOUBLE_MAX).
virtual double* vtkKdTreeSelector::GetSelectionBounds |
( |
| ) |
|
|
virtual |
The bounds of the form (xmin,xmax,ymin,ymax,zmin,zmax). To perform a search in 2D, use the bounds (xmin,xmax,ymin,ymax,VTK_DOUBLE_MIN,VTK_DOUBLE_MAX).
virtual void vtkKdTreeSelector::GetSelectionBounds |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
| |
|
virtual |
The bounds of the form (xmin,xmax,ymin,ymax,zmin,zmax). To perform a search in 2D, use the bounds (xmin,xmax,ymin,ymax,VTK_DOUBLE_MIN,VTK_DOUBLE_MAX).
virtual void vtkKdTreeSelector::GetSelectionBounds |
( |
double |
[6] | ) |
|
|
virtual |
The bounds of the form (xmin,xmax,ymin,ymax,zmin,zmax). To perform a search in 2D, use the bounds (xmin,xmax,ymin,ymax,VTK_DOUBLE_MIN,VTK_DOUBLE_MAX).
virtual void vtkKdTreeSelector::SetSelectionFieldName |
( |
const char * |
| ) |
|
|
virtual |
The field name to use when generating the selection. If set, creates a VALUES selection. If not set (or is set to NULL), creates a INDICES selection. By default this is not set.
virtual char* vtkKdTreeSelector::GetSelectionFieldName |
( |
| ) |
|
|
virtual |
The field name to use when generating the selection. If set, creates a VALUES selection. If not set (or is set to NULL), creates a INDICES selection. By default this is not set.
virtual void vtkKdTreeSelector::SetSelectionAttribute |
( |
int |
| ) |
|
|
virtual |
The field attribute to use when generating the selection. If set, creates a PEDIGREEIDS or GLOBALIDS selection. If not set (or is set to -1), creates a INDICES selection. By default this is not set. NOTE: This should be set a constant in vtkDataSetAttributes, not vtkSelection.
virtual int vtkKdTreeSelector::GetSelectionAttribute |
( |
| ) |
|
|
virtual |
The field attribute to use when generating the selection. If set, creates a PEDIGREEIDS or GLOBALIDS selection. If not set (or is set to -1), creates a INDICES selection. By default this is not set. NOTE: This should be set a constant in vtkDataSetAttributes, not vtkSelection.
virtual void vtkKdTreeSelector::SetSingleSelection |
( |
bool |
| ) |
|
|
virtual |
Whether to only allow up to one value in the result. The item selected is closest to the center of the bounds, if there are any points within the selection threshold. Default is off.
virtual bool vtkKdTreeSelector::GetSingleSelection |
( |
| ) |
|
|
virtual |
Whether to only allow up to one value in the result. The item selected is closest to the center of the bounds, if there are any points within the selection threshold. Default is off.
virtual void vtkKdTreeSelector::SingleSelectionOn |
( |
| ) |
|
|
virtual |
Whether to only allow up to one value in the result. The item selected is closest to the center of the bounds, if there are any points within the selection threshold. Default is off.
virtual void vtkKdTreeSelector::SingleSelectionOff |
( |
| ) |
|
|
virtual |
Whether to only allow up to one value in the result. The item selected is closest to the center of the bounds, if there are any points within the selection threshold. Default is off.
virtual void vtkKdTreeSelector::SetSingleSelectionThreshold |
( |
double |
| ) |
|
|
virtual |
The threshold for the single selection. A single point is added to the selection if it is within this threshold from the bounds center. Default is 1.
virtual double vtkKdTreeSelector::GetSingleSelectionThreshold |
( |
| ) |
|
|
virtual |
The threshold for the single selection. A single point is added to the selection if it is within this threshold from the bounds center. Default is 1.
unsigned long vtkKdTreeSelector::GetMTime |
( |
| ) |
|
virtual int vtkKdTreeSelector::FillInputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
int vtkKdTreeSelector::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
vtkKdTree* vtkKdTreeSelector::KdTree |
|
protected |
double vtkKdTreeSelector::SelectionBounds[6] |
|
protected |
char* vtkKdTreeSelector::SelectionFieldName |
|
protected |
bool vtkKdTreeSelector::BuildKdTreeFromInput |
|
protected |
bool vtkKdTreeSelector::SingleSelection |
|
protected |
double vtkKdTreeSelector::SingleSelectionThreshold |
|
protected |
int vtkKdTreeSelector::SelectionAttribute |
|
protected |
The documentation for this class was generated from the following file: