VTK  9.2.5
vtkLinearSelector.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkLinearSelector.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
33#ifndef vtkLinearSelector_h
34#define vtkLinearSelector_h
35
36#include "vtkFiltersSelectionModule.h" // For export macro
38
40class vtkDataSet;
41class vtkDoubleArray;
42class vtkIdTypeArray;
43class vtkPoints;
44
45class VTKFILTERSSELECTION_EXPORT vtkLinearSelector : public vtkSelectionAlgorithm
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
54
57 vtkSetVector3Macro(StartPoint, double);
58 vtkGetVectorMacro(StartPoint, double, 3);
60
62
65 vtkSetVector3Macro(EndPoint, double);
66 vtkGetVectorMacro(EndPoint, double, 3);
68
70
73 virtual void SetPoints(vtkPoints*);
74 vtkGetObjectMacro(Points, vtkPoints);
76
78
81 vtkSetMacro(Tolerance, double);
82 vtkGetMacro(Tolerance, double);
84
86
89 vtkSetMacro(IncludeVertices, bool);
90 vtkGetMacro(IncludeVertices, bool);
91 vtkBooleanMacro(IncludeVertices, bool);
93
95
98 vtkSetClampMacro(VertexEliminationTolerance, double, 0., .1);
99 vtkGetMacro(VertexEliminationTolerance, double);
101
102protected:
105
106 int FillInputPortInformation(int port, vtkInformation* info) override;
107
109 vtkInformationVector* outputVector) override;
110
116
117private:
118 vtkLinearSelector(const vtkLinearSelector&) = delete;
119 void operator=(const vtkLinearSelector&) = delete;
120
122
126 double StartPoint[3];
127 double EndPoint[3];
129
134 vtkPoints* Points;
135
139 double Tolerance;
140
145 bool IncludeVertices;
146
148
152 double VertexEliminationTolerance;
154};
155
156#endif // vtkLinearSelector_h
Proxy object to connect input/output ports.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
select cells intersecting a line (possibly broken)
void SeekIntersectingCells(vtkDataSet *input, vtkIdTypeArray *outIndices)
The main routine that iterates over cells and looks for those that intersect at least one of the segm...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
virtual void SetPoints(vtkPoints *)
Set/Get the list of points defining the intersecting broken line.
~vtkLinearSelector() override
static vtkLinearSelector * New()
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only Selection as output.