VTK  9.3.0
vtk3DLinearGridCrinkleExtractor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
61 #ifndef vtk3DLinearGridCrinkleExtractor_h
62 #define vtk3DLinearGridCrinkleExtractor_h
63 
64 #include "vtkDataObjectAlgorithm.h"
65 #include "vtkFiltersCoreModule.h" // For export macro
66 
67 VTK_ABI_NAMESPACE_BEGIN
70 
71 class VTKFILTERSCORE_EXPORT vtk3DLinearGridCrinkleExtractor : public vtkDataObjectAlgorithm
72 {
73 public:
75 
80  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
84 
90  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
92 
94 
98  vtkSetMacro(CopyPointData, bool);
99  vtkGetMacro(CopyPointData, bool);
100  vtkBooleanMacro(CopyPointData, bool);
102 
104 
108  vtkSetMacro(CopyCellData, bool);
109  vtkGetMacro(CopyCellData, bool);
110  vtkBooleanMacro(CopyCellData, bool);
112 
114 
122  vtkSetMacro(RemoveUnusedPoints, bool);
123  vtkGetMacro(RemoveUnusedPoints, bool);
124  vtkBooleanMacro(RemoveUnusedPoints, bool);
126 
131  vtkMTimeType GetMTime() override;
132 
134 
139  void SetOutputPointsPrecision(int precision);
142 
144 
152  vtkSetMacro(SequentialProcessing, bool);
153  vtkGetMacro(SequentialProcessing, bool);
154  vtkBooleanMacro(SequentialProcessing, bool);
156 
161  int GetNumberOfThreadsUsed() { return this->NumberOfThreadsUsed; }
162 
170 
171 protected:
174 
182 
183  // Process the data: input unstructured grid and output an unstructured grid
185 
187  vtkInformationVector* outputVector) override;
188  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
189  vtkInformationVector* outputVector) override;
191 
192 private:
194  void operator=(const vtk3DLinearGridCrinkleExtractor&) = delete;
195 };
196 
197 VTK_ABI_NAMESPACE_END
198 #endif
fast extraction of cells intersected by a plane
int GetNumberOfThreadsUsed()
Return the number of threads actually used during execution.
static vtk3DLinearGridCrinkleExtractor * New()
Standard methods for construction, type info, and printing.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int ProcessPiece(vtkUnstructuredGrid *input, vtkImplicitFunction *f, vtkUnstructuredGrid *grid)
int GetOutputPointsPrecision() const
Set/get the desired precision for the output points.
static bool CanFullyProcessDataObject(vtkDataObject *object)
Returns true if the data object passed in is fully supported by this filter, i.e.,...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function which is used to select the output cell faces.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
vtkMTimeType GetMTime() override
Overloaded GetMTime() because of delegation to the helper vtkImplicitFunction.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output points.
Superclass for algorithms that produce only data object as output.
general representation of visualization data
Definition: vtkDataObject.h:55
abstract interface for implicit functions
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270