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 ----------------------------------------------------------------------------*/
30 #ifndef vtkKdTreeSelector_h
31 #define vtkKdTreeSelector_h
32 
33 #include "vtkFiltersSelectionModule.h" // For export macro
34 #include "vtkSelectionAlgorithm.h"
35 
36 class vtkKdTree;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void SetKdTree(vtkKdTree* tree);
52 
54 
57  vtkSetVector6Macro(SelectionBounds, double);
58  vtkGetVector6Macro(SelectionBounds, double);
60 
62 
65  vtkSetStringMacro(SelectionFieldName);
66  vtkGetStringMacro(SelectionFieldName);
68 
70 
75  vtkSetMacro(SelectionAttribute, int);
76  vtkGetMacro(SelectionAttribute, int);
78 
80 
83  vtkSetMacro(SingleSelection, bool);
84  vtkGetMacro(SingleSelection, bool);
85  vtkBooleanMacro(SingleSelection, bool);
87 
89 
92  vtkSetMacro(SingleSelectionThreshold, double);
93  vtkGetMacro(SingleSelectionThreshold, double);
95 
96  unsigned long GetMTime();
97 
98 protected:
101 
103  double SelectionBounds[6];
109 
111  int port, vtkInformation* info);
112 
117 
118 private:
119  vtkKdTreeSelector(const vtkKdTreeSelector&); // Not implemented
120  void operator=(const vtkKdTreeSelector&); // Not implemented
121 };
122 
123 #endif
vtkGetVector6Macro
#define vtkGetVector6Macro(name, type)
Definition: vtkSetGet.h:380
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkKdTreeSelector::New
static vtkKdTreeSelector * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSelectionAlgorithm.h
vtkKdTreeSelector::SetKdTree
void SetKdTree(vtkKdTree *tree)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkKdTreeSelector::vtkKdTreeSelector
vtkKdTreeSelector()
vtkKdTreeSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkKdTreeSelector::~vtkKdTreeSelector
~vtkKdTreeSelector()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkFiltersSelectionModule.h
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
VTKFILTERSSELECTION_EXPORT
#define VTKFILTERSSELECTION_EXPORT
Definition: vtkFiltersSelectionModule.h:15
vtkKdTreeSelector::SingleSelection
bool SingleSelection
Definition: vtkKdTreeSelector.h:106
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkKdTreeSelector::GetMTime
unsigned long GetMTime()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkKdTreeSelector::BuildKdTreeFromInput
bool BuildKdTreeFromInput
Definition: vtkKdTreeSelector.h:105
vtkKdTreeSelector::SelectionAttribute
int SelectionAttribute
Definition: vtkKdTreeSelector.h:108
vtkKdTreeSelector::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkKdTree
a Kd-tree spatial decomposition of a set of points
Definition: vtkKdTree.h:81
vtkKdTreeSelector::KdTree
vtkKdTree * KdTree
Definition: vtkKdTreeSelector.h:102
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vtkKdTreeSelector
Selects point ids using a kd-tree.
Definition: vtkKdTreeSelector.h:39
vtkKdTreeSelector::SelectionFieldName
char * SelectionFieldName
Definition: vtkKdTreeSelector.h:104
vtkKdTreeSelector::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkKdTreeSelector::SingleSelectionThreshold
double SingleSelectionThreshold
Definition: vtkKdTreeSelector.h:107