VTK
vtkLinearSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkCellDistanceFilter,v $
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 =========================================================================*/
32 #ifndef VTK_LINEAR_SELECTOR_H
33 #define VTK_LINEAR_SELECTOR_H
34 
35 #include <vtkSelectionAlgorithm.h>
36 
37 class vtkAlgorithmOutput;
38 class vtkDataSet;
39 class vtkDoubleArray;
40 class vtkIdTypeArray;
41 class vtkPoints;
42 
44 {
45  public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
49  static vtkLinearSelector *New();
50 
52 
53  vtkSetVector3Macro(StartPoint,double);
54  vtkGetVectorMacro(StartPoint,double,3);
56 
58 
59  vtkSetVector3Macro(EndPoint,double);
60  vtkGetVectorMacro(EndPoint,double,3);
62 
64 
65  virtual void SetPoints(vtkPoints*);
66  vtkGetObjectMacro(Points,vtkPoints);
68 
70 
71  vtkSetMacro(Tolerance,double);
72  vtkGetMacro(Tolerance,double);
74 
76 
77  vtkSetMacro(IncludeVertices,bool);
78  vtkGetMacro(IncludeVertices,bool);
79  vtkBooleanMacro(IncludeVertices,bool);
81 
83 
84  vtkSetClampMacro(VertexEliminationTolerance,double,0.,.1 );
85  vtkGetMacro(VertexEliminationTolerance,double);
87 
88  protected:
90  virtual ~vtkLinearSelector();
91 
93 
94  virtual int RequestData(vtkInformation *request,
95  vtkInformationVector **inputVector,
96  vtkInformationVector *outputVector);
97 
100  void SeekIntersectingCells(vtkDataSet* input, vtkIdTypeArray* outIndices);
101 
102  private:
103  vtkLinearSelector(const vtkLinearSelector&); // Not implemented
104  void operator =(const vtkLinearSelector&); // Not implemented
105 
107 
109  double StartPoint[3];
110  double EndPoint[3];
112 
115  vtkPoints* Points;
116 
118  double Tolerance;
119 
121  bool IncludeVertices;
122 
124 
125  double VertexEliminationTolerance;
126 };
128 
129 
130 #endif // VTK_LINEAR_SELECTOR_H