VTK  9.1.0
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=========================================================================*/
30#ifndef vtkLinearSelector_h
31#define vtkLinearSelector_h
32
33#include "vtkFiltersSelectionModule.h" // For export macro
35
37class vtkDataSet;
38class vtkDoubleArray;
39class vtkIdTypeArray;
40class vtkPoints;
41
42class VTKFILTERSSELECTION_EXPORT vtkLinearSelector : public vtkSelectionAlgorithm
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
51
54 vtkSetVector3Macro(StartPoint, double);
55 vtkGetVectorMacro(StartPoint, double, 3);
57
59
62 vtkSetVector3Macro(EndPoint, double);
63 vtkGetVectorMacro(EndPoint, double, 3);
65
67
70 virtual void SetPoints(vtkPoints*);
71 vtkGetObjectMacro(Points, vtkPoints);
73
75
78 vtkSetMacro(Tolerance, double);
79 vtkGetMacro(Tolerance, double);
81
83
86 vtkSetMacro(IncludeVertices, bool);
87 vtkGetMacro(IncludeVertices, bool);
88 vtkBooleanMacro(IncludeVertices, bool);
90
92
95 vtkSetClampMacro(VertexEliminationTolerance, double, 0., .1);
96 vtkGetMacro(VertexEliminationTolerance, double);
98
99protected:
102
103 int FillInputPortInformation(int port, vtkInformation* info) override;
104
106 vtkInformationVector* outputVector) override;
107
113
114private:
115 vtkLinearSelector(const vtkLinearSelector&) = delete;
116 void operator=(const vtkLinearSelector&) = delete;
117
119
123 double StartPoint[3];
124 double EndPoint[3];
126
131 vtkPoints* Points;
132
136 double Tolerance;
137
142 bool IncludeVertices;
143
145
149 double VertexEliminationTolerance;
151};
152
153#endif // vtkLinearSelector_h
Proxy object to connect input/output ports.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:113
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:143
Superclass for algorithms that produce only Selection as output.