VTK
|
Selects point ids using a kd-tree. More...
#include <vtkKdTreeSelector.h>
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.
Reimplemented from vtkSelectionAlgorithm.
Definition at line 42 of file vtkKdTreeSelector.h.
vtkKdTreeSelector::vtkKdTreeSelector | ( | ) | [protected] |
vtkKdTreeSelector::~vtkKdTreeSelector | ( | ) | [protected] |
static vtkKdTreeSelector* vtkKdTreeSelector::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkSelectionAlgorithm.
static int vtkKdTreeSelector::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 vtkSelectionAlgorithm.
virtual int vtkKdTreeSelector::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 vtkSelectionAlgorithm.
static vtkKdTreeSelector* vtkKdTreeSelector::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkSelectionAlgorithm.
virtual vtkObjectBase* vtkKdTreeSelector::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkSelectionAlgorithm.
vtkKdTreeSelector* vtkKdTreeSelector::NewInstance | ( | ) | const |
Reimplemented from vtkSelectionAlgorithm.
void vtkKdTreeSelector::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 vtkSelectionAlgorithm.
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] |
Return this object's modified time.
Reimplemented from vtkObject.
virtual int vtkKdTreeSelector::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 vtkSelectionAlgorithm.
int vtkKdTreeSelector::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkSelectionAlgorithm.
vtkKdTree* vtkKdTreeSelector::KdTree [protected] |
Definition at line 102 of file vtkKdTreeSelector.h.
double vtkKdTreeSelector::SelectionBounds[6] [protected] |
Definition at line 103 of file vtkKdTreeSelector.h.
char* vtkKdTreeSelector::SelectionFieldName [protected] |
Definition at line 104 of file vtkKdTreeSelector.h.
bool vtkKdTreeSelector::BuildKdTreeFromInput [protected] |
Definition at line 105 of file vtkKdTreeSelector.h.
bool vtkKdTreeSelector::SingleSelection [protected] |
Definition at line 106 of file vtkKdTreeSelector.h.
double vtkKdTreeSelector::SingleSelectionThreshold [protected] |
Definition at line 107 of file vtkKdTreeSelector.h.
int vtkKdTreeSelector::SelectionAttribute [protected] |
Definition at line 108 of file vtkKdTreeSelector.h.