VTK  9.3.0
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
59#ifndef vtkClipPolyData_h
60#define vtkClipPolyData_h
61
62#include "vtkFiltersCoreModule.h" // For export macro
64
65VTK_ABI_NAMESPACE_BEGIN
68
69class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
70{
71public:
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
81
83
88 vtkSetMacro(Value, double);
89 vtkGetMacro(Value, double);
91
93
101 vtkSetMacro(InsideOut, vtkTypeBool);
102 vtkGetMacro(InsideOut, vtkTypeBool);
103 vtkBooleanMacro(InsideOut, vtkTypeBool);
105
107
113 vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
115
117
124 vtkSetMacro(GenerateClipScalars, vtkTypeBool);
125 vtkGetMacro(GenerateClipScalars, vtkTypeBool);
126 vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
128
130
135 vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
136 vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
137 vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
139
144
149
151
156 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
158
164
169
171
177 vtkSetMacro(OutputPointsPrecision, int);
178 vtkGetMacro(OutputPointsPrecision, int);
180
181protected:
184
187
190 double Value;
194
195private:
196 vtkClipPolyData(const vtkClipPolyData&) = delete;
197 void operator=(const vtkClipPolyData&) = delete;
198};
199
200VTK_ABI_NAMESPACE_END
201#endif
Proxy object to connect input/output ports.
vtkAlgorithmOutput * GetOutputPort()
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:38
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
Definition vtkPolyData.h:89
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270