VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkKdTreeSelector Class Reference

Selects point ids using a kd-tree. More...

#include <vtkKdTreeSelector.h>

Inheritance diagram for vtkKdTreeSelector:
Inheritance graph
[legend]
Collaboration diagram for vtkKdTreeSelector:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkSelectionAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkKdTreeSelectorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long GetMTime ()
void SetKdTree (vtkKdTree *tree)
virtual vtkKdTreeGetKdTree ()
virtual void SetSelectionBounds (double, double, double, double, double, double)
virtual void SetSelectionBounds (double[6])
virtual doubleGetSelectionBounds ()
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 ()

Static Public Member Functions

static vtkKdTreeSelectorNew ()
static int IsTypeOf (const char *type)
static vtkKdTreeSelectorSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkKdTreeSelector ()
 ~vtkKdTreeSelector ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

vtkKdTreeKdTree
double SelectionBounds [6]
char * SelectionFieldName
bool BuildKdTreeFromInput
bool SingleSelection
double SingleSelectionThreshold
int SelectionAttribute

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkSelectionAlgorithm.

Definition at line 42 of file vtkKdTreeSelector.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkSelectionAlgorithm.

virtual vtkObjectBase* vtkKdTreeSelector::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkSelectionAlgorithm.

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.

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).

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.

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.

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.

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.


Member Data Documentation

Definition at line 102 of file vtkKdTreeSelector.h.

Definition at line 103 of file vtkKdTreeSelector.h.

Definition at line 104 of file vtkKdTreeSelector.h.

Definition at line 105 of file vtkKdTreeSelector.h.

Definition at line 106 of file vtkKdTreeSelector.h.

Definition at line 107 of file vtkKdTreeSelector.h.

Definition at line 108 of file vtkKdTreeSelector.h.


The documentation for this class was generated from the following file: