vtkPVProbeLineFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkPVProbeLineFilter_h
13 #define vtkPVProbeLineFilter_h
14 
15 #include "vtkNew.h" // needed for internal filters
16 #include "vtkPVVTKExtensionsFiltersParallelDIY2Module.h" //needed for exports
17 #include "vtkPolyDataAlgorithm.h"
18 
19 class vtkLineSource;
20 class vtkProbeLineFilter;
21 
23  : public vtkPolyDataAlgorithm
24 {
25 public:
26  static vtkPVProbeLineFilter* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
35  vtkSetMacro(PassCellArrays, bool);
36  vtkBooleanMacro(PassCellArrays, bool);
37  vtkGetMacro(PassCellArrays, bool);
39 
41 
45  vtkSetMacro(PassPointArrays, bool);
46  vtkBooleanMacro(PassPointArrays, bool);
47  vtkGetMacro(PassPointArrays, bool);
49 
51 
55  vtkSetMacro(PassFieldArrays, bool);
56  vtkBooleanMacro(PassFieldArrays, bool);
57  vtkGetMacro(PassFieldArrays, bool);
59 
61 
66  vtkSetMacro(Tolerance, double);
67  vtkGetMacro(Tolerance, double);
69 
71 
76  vtkSetMacro(ComputeTolerance, bool);
77  vtkBooleanMacro(ComputeTolerance, bool);
78  vtkGetMacro(ComputeTolerance, bool);
80 
82 
94  vtkSetMacro(PassPartialArrays, bool);
95  vtkGetMacro(PassPartialArrays, bool);
96  vtkBooleanMacro(PassPartialArrays, bool);
98 
100 
104  vtkGetMacro(SamplingPattern, int);
105  vtkSetClampMacro(SamplingPattern, int, 0, 2);
107 
109 
114  vtkGetMacro(LineResolution, int);
115  vtkSetMacro(LineResolution, int);
117 
119 
122  vtkGetVector3Macro(Point1, double);
123  vtkSetVector3Macro(Point1, double);
124  vtkGetVector3Macro(Point2, double);
125  vtkSetVector3Macro(Point2, double);
127 
128 protected:
130  ~vtkPVProbeLineFilter() override = default;
131 
133  int FillInputPortInformation(int, vtkInformation*) override;
134 
135  int SamplingPattern = 0;
136  int LineResolution = 1000;
137  bool PassPartialArrays = false;
138  bool PassCellArrays = false;
139  bool PassPointArrays = false;
140  bool PassFieldArrays = false;
141  bool ComputeTolerance = true;
142  double Tolerance = 1.0;
143  double Point1[3] = { 0, 0, 0 };
144  double Point2[3] = { 1, 1, 1 };
145 
148 
149 private:
151  void operator=(const vtkPVProbeLineFilter&) = delete;
152 };
153 
154 #endif // vtkPVProbeLineFilter_h
vtkNew< vtkLineSource > LineSource
#define VTKPVVTKEXTENSIONSFILTERSPARALLELDIY2_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkPolyDataAlgorithm * New()
Filter to simplify probe line usage when probing over a simple line.
void operator=(const vtkObjectBase &)
vtkNew< vtkProbeLineFilter > Prober