VTK
vtkKdTreeSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkKdTreeSelector.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
31 #ifndef vtkKdTreeSelector_h
32 #define vtkKdTreeSelector_h
33 
34 #include "vtkFiltersSelectionModule.h" // For export macro
35 #include "vtkSelectionAlgorithm.h"
36 
37 class vtkKdTree;
38 
39 class VTKFILTERSSELECTION_EXPORT vtkKdTreeSelector : public vtkSelectionAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
52  void SetKdTree(vtkKdTree* tree);
53  vtkGetObjectMacro(KdTree, vtkKdTree);
55 
57 
62  vtkSetVector6Macro(SelectionBounds, double);
63  vtkGetVector6Macro(SelectionBounds, double);
65 
67 
73  vtkSetStringMacro(SelectionFieldName);
74  vtkGetStringMacro(SelectionFieldName);
76 
78 
86  vtkSetMacro(SelectionAttribute, int);
87  vtkGetMacro(SelectionAttribute, int);
89 
91 
97  vtkSetMacro(SingleSelection, bool);
98  vtkGetMacro(SingleSelection, bool);
99  vtkBooleanMacro(SingleSelection, bool);
101 
103 
109  vtkSetMacro(SingleSelectionThreshold, double);
110  vtkGetMacro(SingleSelectionThreshold, double);
112 
114 
115 protected:
118 
120  double SelectionBounds[6];
126 
128  int port, vtkInformation* info);
129 
134 
135 private:
136  vtkKdTreeSelector(const vtkKdTreeSelector&) VTK_DELETE_FUNCTION;
137  void operator=(const vtkKdTreeSelector&) VTK_DELETE_FUNCTION;
138 };
139 
140 #endif
vtkKdTreeSelector::New
static vtkKdTreeSelector * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSelectionAlgorithm.h
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkKdTreeSelector::SetKdTree
void SetKdTree(vtkKdTree *tree)
The kd-tree to use to find selected ids.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkKdTreeSelector::vtkKdTreeSelector
vtkKdTreeSelector()
vtkKdTreeSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkKdTreeSelector::~vtkKdTreeSelector
~vtkKdTreeSelector()
vtkKdTreeSelector::GetMTime
vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkKdTreeSelector::SingleSelection
bool SingleSelection
Definition: vtkKdTreeSelector.h:123
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkKdTreeSelector::BuildKdTreeFromInput
bool BuildKdTreeFromInput
Definition: vtkKdTreeSelector.h:122
vtkKdTreeSelector::SelectionAttribute
int SelectionAttribute
Definition: vtkKdTreeSelector.h:125
vtkKdTreeSelector::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkKdTree
a Kd-tree spatial decomposition of a set of points
Definition: vtkKdTree.h:79
vtkKdTreeSelector::KdTree
vtkKdTree * KdTree
Definition: vtkKdTreeSelector.h:119
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:47
vtkKdTreeSelector
Selects point ids using a kd-tree.
Definition: vtkKdTreeSelector.h:40
vtkKdTreeSelector::SelectionFieldName
char * SelectionFieldName
Definition: vtkKdTreeSelector.h:121
vtkKdTreeSelector::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkKdTreeSelector::SingleSelectionThreshold
double SingleSelectionThreshold
Definition: vtkKdTreeSelector.h:124