VTK  9.4.20251007
vtkTableBasedClipDataSet.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) 2000 - 2009, Lawrence Livermore National Security, LLC
3// SPDX-License-Identifier: BSD-3-Clause
4
76
77#ifndef vtkTableBasedClipDataSet_h
78#define vtkTableBasedClipDataSet_h
79
80#include "vtkFiltersGeneralModule.h" // For export macro
81#include "vtkIncrementalPointLocator.h" // For vtkIncrementalPointLocator
83#include "vtkWeakPointer.h" // Needed for weak pointer to the vtkIncrementalPointLocator
84
85VTK_ABI_NAMESPACE_BEGIN
87class vtkDoubleArray;
89class vtkPolyData;
90
91class VTKFILTERSGENERAL_EXPORT vtkTableBasedClipDataSet : public vtkUnstructuredGridAlgorithm
92{
93public:
95 void PrintSelf(ostream& os, vtkIndent indent) override;
96
102
107
109
116 vtkSetMacro(InsideOut, vtkTypeBool);
117 vtkGetMacro(InsideOut, vtkTypeBool);
118 vtkBooleanMacro(InsideOut, vtkTypeBool);
120
122
128 vtkSetMacro(Value, double);
129 vtkGetMacro(Value, double);
131
133
138 vtkSetMacro(UseValueAsOffset, bool);
139 vtkGetMacro(UseValueAsOffset, bool);
140 vtkBooleanMacro(UseValueAsOffset, bool);
142
144
152
154
164
166
172 vtkSetClampMacro(MergeTolerance, double, 0.0001, 0.25);
173 vtkGetMacro(MergeTolerance, double);
175
177
185
190
192
198 vtkGetMacro(OutputPointsPrecision, int);
200
202
210 vtkSetClampMacro(BatchSize, unsigned int, 1, VTK_INT_MAX);
211 vtkGetMacro(BatchSize, unsigned int);
213
215
222
223protected:
226
228 int FillInputPortInformation(int port, vtkInformation* info) override;
229
230private:
236 void ClipDataSet(vtkDataSet* pDataSet, vtkUnstructuredGrid* outputUG);
237
244 void ClipPolyData(vtkPolyData* inputGrid, vtkImplicitFunction* implicitFunction,
245 vtkDoubleArray* scalars, double isoValue, vtkUnstructuredGrid* outputUG);
246
253 template <class TGrid>
254 void ClipTDataSet(TGrid* inputGrid, vtkImplicitFunction* implicitFunction,
255 vtkDoubleArray* scalars, double isoValue, vtkUnstructuredGrid* outputUG);
256
260 template <typename TGrid, typename TInputIdType, bool InsideOut>
262 TGrid* input, vtkImplicitFunction* implicitFunction, vtkDoubleArray* scalars, double isoValue);
263
267 static void InternalProgressCallbackFunction(vtkObject*, unsigned long, void* clientdata, void*);
268
272 void InternalProgressCallback(vtkAlgorithm* algorithm);
273
274protected:
279 double Value;
283 unsigned int BatchSize;
284
286
288
289private:
291 void operator=(const vtkTableBasedClipDataSet&) = delete;
292};
293
294VTK_ABI_NAMESPACE_END
295#endif
supports function callbacks
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
dynamic, self-adjusting array of double
abstract interface for implicit functions
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
Hold a reference to a vtkObjectBase instance.
vtkTableBasedClipDataSet(vtkImplicitFunction *cf=nullptr)
static vtkTableBasedClipDataSet * New()
Create an instance with a user-specified implicit function, turning off IVARs InsideOut and GenerateC...
~vtkTableBasedClipDataSet() override
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void SetClipFunction(vtkImplicitFunction *)
Set/Get the implicit function with which to perform the clipping operation.
vtkMTimeType GetMTime() override
Get the MTime for which the clip function are considered.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGrid * GetClippedOutput()
Return the clipped output.
vtkWeakPointer< vtkIncrementalPointLocator > Locator
vtkCallbackCommand * InternalProgressObserver
dataset represents arbitrary combinations of all possible cell types
a weak reference to a vtkObject.
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_INT_MAX
Definition vtkType.h:144