VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkKdTreeSelector Class Reference

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

#include <vtkKdTreeSelector.h>

Inherits vtkSelectionAlgorithm.

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

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

vtkKdTree * KdTree
 
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

typedef vtkSelectionAlgorithm vtkKdTreeSelector::Superclass

Definition at line 42 of file vtkKdTreeSelector.h.

Constructor & Destructor Documentation

vtkKdTreeSelector::vtkKdTreeSelector ( )
protected
vtkKdTreeSelector::~vtkKdTreeSelector ( )
protected

Member Function Documentation

static vtkKdTreeSelector* vtkKdTreeSelector::New ( )
static
static int vtkKdTreeSelector::IsTypeOf ( const char *  type)
static
virtual int vtkKdTreeSelector::IsA ( const char *  type)
virtual
static vtkKdTreeSelector* vtkKdTreeSelector::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkKdTreeSelector::NewInstanceInternal ( ) const
protectedvirtual
vtkKdTreeSelector* vtkKdTreeSelector::NewInstance ( ) const
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

Member Data Documentation

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.


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