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 "vtkSelectionAlgorithm.h"
34 
35 class vtkKdTree;
36 
38 {
39 public:
40  static vtkKdTreeSelector* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
48  void SetKdTree(vtkKdTree* tree);
49  vtkGetObjectMacro(KdTree, vtkKdTree);
51 
53 
56  vtkSetVector6Macro(SelectionBounds, double);
57  vtkGetVector6Macro(SelectionBounds, double);
59 
61 
64  vtkSetStringMacro(SelectionFieldName);
65  vtkGetStringMacro(SelectionFieldName);
67 
69 
74  vtkSetMacro(SelectionAttribute, int);
75  vtkGetMacro(SelectionAttribute, int);
77 
79 
82  vtkSetMacro(SingleSelection, bool);
83  vtkGetMacro(SingleSelection, bool);
84  vtkBooleanMacro(SingleSelection, bool);
86 
88 
91  vtkSetMacro(SingleSelectionThreshold, double);
92  vtkGetMacro(SingleSelectionThreshold, double);
94 
95  unsigned long GetMTime();
96 
97 protected:
100 
102  double SelectionBounds[6];
108 
109  virtual int FillInputPortInformation(
110  int port, vtkInformation* info);
111 
112  int RequestData(
113  vtkInformation*,
116 
117 private:
118  vtkKdTreeSelector(const vtkKdTreeSelector&); // Not implemented
119  void operator=(const vtkKdTreeSelector&); // Not implemented
120 };
121 
122 #endif
123