VTK  9.2.5
vtk3DLinearGridCrinkleExtractor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtk3DLinearGridCrinkleExtractor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
73 #ifndef vtk3DLinearGridCrinkleExtractor_h
74 #define vtk3DLinearGridCrinkleExtractor_h
75 
76 #include "vtkDataObjectAlgorithm.h"
77 #include "vtkFiltersCoreModule.h" // For export macro
78 
81 
82 class VTKFILTERSCORE_EXPORT vtk3DLinearGridCrinkleExtractor : public vtkDataObjectAlgorithm
83 {
84 public:
86 
91  void PrintSelf(ostream& os, vtkIndent indent) override;
93 
95 
101  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
103 
105 
109  vtkSetMacro(CopyPointData, bool);
110  vtkGetMacro(CopyPointData, bool);
111  vtkBooleanMacro(CopyPointData, bool);
113 
115 
119  vtkSetMacro(CopyCellData, bool);
120  vtkGetMacro(CopyCellData, bool);
121  vtkBooleanMacro(CopyCellData, bool);
123 
125 
133  vtkSetMacro(RemoveUnusedPoints, bool);
134  vtkGetMacro(RemoveUnusedPoints, bool);
135  vtkBooleanMacro(RemoveUnusedPoints, bool);
137 
142  vtkMTimeType GetMTime() override;
143 
145 
150  void SetOutputPointsPrecision(int precision);
153 
155 
163  vtkSetMacro(SequentialProcessing, bool);
164  vtkGetMacro(SequentialProcessing, bool);
165  vtkBooleanMacro(SequentialProcessing, bool);
167 
172  int GetNumberOfThreadsUsed() { return this->NumberOfThreadsUsed; }
173 
181 
182 protected:
185 
193 
194  // Process the data: input unstructured grid and output an unstructured grid
196 
198  vtkInformationVector* outputVector) override;
199  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
200  vtkInformationVector* outputVector) override;
202 
203 private:
205  void operator=(const vtk3DLinearGridCrinkleExtractor&) = delete;
206 };
207 
208 #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
abstract interface for implicit functions
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287