VTK
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=========================================================================*/
34#ifndef vtkLinearSelector_h
35#define vtkLinearSelector_h
36
37#include "vtkFiltersSelectionModule.h" // For export macro
39
41class vtkDataSet;
42class vtkDoubleArray;
43class vtkIdTypeArray;
44class vtkPoints;
45
46class VTKFILTERSSELECTION_EXPORT vtkLinearSelector : public vtkSelectionAlgorithm
47{
48 public:
50 void PrintSelf(ostream& os, vtkIndent indent);
51
53
55
58 vtkSetVector3Macro(StartPoint,double);
59 vtkGetVectorMacro(StartPoint,double,3);
61
63
66 vtkSetVector3Macro(EndPoint,double);
67 vtkGetVectorMacro(EndPoint,double,3);
69
71
74 virtual void SetPoints(vtkPoints*);
75 vtkGetObjectMacro(Points,vtkPoints);
77
79
82 vtkSetMacro(Tolerance,double);
83 vtkGetMacro(Tolerance,double);
85
87
90 vtkSetMacro(IncludeVertices,bool);
91 vtkGetMacro(IncludeVertices,bool);
92 vtkBooleanMacro(IncludeVertices,bool);
94
96
99 vtkSetClampMacro(VertexEliminationTolerance,double,0.,.1 );
100 vtkGetMacro(VertexEliminationTolerance,double);
102
103 protected:
106
108
109 virtual int RequestData(vtkInformation *request,
110 vtkInformationVector **inputVector,
111 vtkInformationVector *outputVector);
112
118
119 private:
120 vtkLinearSelector(const vtkLinearSelector&) VTK_DELETE_FUNCTION;
121 void operator =(const vtkLinearSelector&) VTK_DELETE_FUNCTION;
122
124
128 double StartPoint[3];
129 double EndPoint[3];
131
136 vtkPoints* Points;
137
141 double Tolerance;
142
147 bool IncludeVertices;
148
150
154 double VertexEliminationTolerance;
155};
157
158
159#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...
virtual ~vtkLinearSelector()
virtual void SetPoints(vtkPoints *)
Set/Get the list of points defining the intersecting broken line.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkLinearSelector * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only Selection as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.