VTK  9.3.20240303
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 
165 VTK_ABI_NAMESPACE_BEGIN
166 class vtkImplicitFunction;
168 
169 class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
170 {
171 public:
173  void PrintSelf(ostream& os, vtkIndent indent) override;
174 
180  static vtkClipPolyData* New();
181 
183 
188  vtkSetMacro(Value, double);
189  vtkGetMacro(Value, double);
191 
193 
201  vtkSetMacro(InsideOut, vtkTypeBool);
202  vtkGetMacro(InsideOut, vtkTypeBool);
203  vtkBooleanMacro(InsideOut, vtkTypeBool);
205 
207 
213  vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
215 
217 
224  vtkSetMacro(GenerateClipScalars, vtkTypeBool);
225  vtkGetMacro(GenerateClipScalars, vtkTypeBool);
226  vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
228 
230 
235  vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
236  vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
237  vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
239 
244 
249 
251 
256  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
258 
264 
268  vtkMTimeType GetMTime() override;
269 
271 
277  vtkSetMacro(OutputPointsPrecision, int);
278  vtkGetMacro(OutputPointsPrecision, int);
280 
281 protected:
283  ~vtkClipPolyData() override;
284 
287 
290  double Value;
294 
295 private:
296  vtkClipPolyData(const vtkClipPolyData&) = delete;
297  void operator=(const vtkClipPolyData&) = delete;
298 };
299 
300 VTK_ABI_NAMESPACE_END
301 #endif
Proxy object to connect input/output ports.
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:609
clip polygonal data with user-specified implicit function or input scalar data
vtkClipPolyData(vtkImplicitFunction *cf=nullptr)
vtkTypeBool GenerateClipScalars
vtkIncrementalPointLocator * Locator
vtkImplicitFunction * ClipFunction
vtkPolyData * GetClippedOutput()
Return 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.
static vtkClipPolyData * New()
Construct with user-specified implicit function; InsideOut turned off; value set to 0....
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
virtual void SetClipFunction(vtkImplicitFunction *)
Specify the implicit function with which to perform the clipping.
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
~vtkClipPolyData() override
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
Definition: vtkPolyData.h:180
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270