VTK  9.1.0
vtkClipPolyData.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkClipPolyData.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=========================================================================*/
168#ifndef vtkClipPolyData_h
169#define vtkClipPolyData_h
170
171#include "vtkFiltersCoreModule.h" // For export macro
172#include "vtkPolyDataAlgorithm.h"
173
176
177class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
178{
179public:
181 void PrintSelf(ostream& os, vtkIndent indent) override;
182
189
191
196 vtkSetMacro(Value, double);
197 vtkGetMacro(Value, double);
199
201
209 vtkSetMacro(InsideOut, vtkTypeBool);
210 vtkGetMacro(InsideOut, vtkTypeBool);
211 vtkBooleanMacro(InsideOut, vtkTypeBool);
213
215
221 vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
223
225
232 vtkSetMacro(GenerateClipScalars, vtkTypeBool);
233 vtkGetMacro(GenerateClipScalars, vtkTypeBool);
234 vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
236
238
243 vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
244 vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
245 vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
247
252
257
259
264 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
266
272
277
279
285 vtkSetMacro(OutputPointsPrecision, int);
286 vtkGetMacro(OutputPointsPrecision, int);
288
289protected:
292
295
298 double Value;
302
303private:
304 vtkClipPolyData(const vtkClipPolyData&) = delete;
305 void operator=(const vtkClipPolyData&) = delete;
306};
307
308#endif
Proxy object to connect input/output ports.
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:529
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:113
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:195
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287