VTK  9.5.20251015
vtkClipPolyData.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
159#ifndef vtkClipPolyData_h
160#define vtkClipPolyData_h
161
162#include "vtkFiltersCoreModule.h" // For export macro
163#include "vtkPolyDataAlgorithm.h"
164#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
165
166VTK_ABI_NAMESPACE_BEGIN
169
170class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkClipPolyData : public vtkPolyDataAlgorithm
171{
172public:
174 void PrintSelf(ostream& os, vtkIndent indent) override;
175
182
184
189 vtkSetMacro(Value, double);
190 vtkGetMacro(Value, double);
192
194
202 vtkSetMacro(InsideOut, vtkTypeBool);
203 vtkGetMacro(InsideOut, vtkTypeBool);
204 vtkBooleanMacro(InsideOut, vtkTypeBool);
206
208
214 vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
216
218
225 vtkSetMacro(GenerateClipScalars, vtkTypeBool);
226 vtkGetMacro(GenerateClipScalars, vtkTypeBool);
227 vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
229
231
236 vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
237 vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
238 vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
240
245
249 vtkAlgorithmOutput* GetClippedOutputPort() { return this->GetOutputPort(1); }
250
252
257 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
259
265
270
272
278 vtkSetMacro(OutputPointsPrecision, int);
279 vtkGetMacro(OutputPointsPrecision, int);
281
282protected:
285
288
291 double Value;
295
296private:
297 vtkClipPolyData(const vtkClipPolyData&) = delete;
298 void operator=(const vtkClipPolyData&) = delete;
299};
300
301VTK_ABI_NAMESPACE_END
302#endif
Proxy object to connect input/output ports.
clip polygonal data with user-specified implicit function or input scalar data
vtkClipPolyData(vtkImplicitFunction *cf=nullptr)
vtkTypeBool GenerateClipScalars
vtkIncrementalPointLocator * Locator
vtkImplicitFunction * ClipFunction
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
void CreateDefaultLocator()
Create default locator.
vtkTypeBool InsideOut
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool GenerateClippedOutput
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the mtime also considering the locator and clip function.
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
static vtkClipPolyData * New()
Construct with user-specified implicit function; InsideOut turned off; value set to 0....
virtual void SetClipFunction(vtkImplicitFunction *)
Specify the implicit function with which to perform the clipping.
~vtkClipPolyData() override
vtkPolyData * GetClippedOutput()
Return the Clipped output.
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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_MARSHALAUTO