VTK  9.3.1
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 
89  virtual void SetImplicitFunction(vtkImplicitFunction*);
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);
140  int GetOutputPointsPrecision() const;
142 
144 
152  vtkSetMacro(SequentialProcessing, bool);
153  vtkGetMacro(SequentialProcessing, bool);
154  vtkBooleanMacro(SequentialProcessing, bool);
156 
161  int GetNumberOfThreadsUsed() { return this->NumberOfThreadsUsed; }
162 
169  static bool CanFullyProcessDataObject(vtkDataObject* object);
170 
171 protected:
174 
182 
183  // Process the data: input unstructured grid and output an unstructured grid
184  int ProcessPiece(vtkUnstructuredGrid* input, vtkImplicitFunction* f, vtkUnstructuredGrid* grid);
185 
186  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
187  vtkInformationVector* outputVector) override;
188  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
189  vtkInformationVector* outputVector) override;
190  int FillInputPortInformation(int port, vtkInformation* info) override;
191 
192 private:
194  void operator=(const vtk3DLinearGridCrinkleExtractor&) = delete;
195 };
196 
197 VTK_ABI_NAMESPACE_END
198 #endif
abstract interface for implicit functions
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
static vtkDataObjectAlgorithm * New()
int GetNumberOfThreadsUsed()
Return the number of threads actually used during execution.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
virtual vtkMTimeType GetMTime()
Return this object's modified time.
fast extraction of cells intersected by a plane
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.