VTK  9.2.6
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=========================================================================*/
71#ifndef vtkClipPolyData_h
72#define vtkClipPolyData_h
73
74#include "vtkFiltersCoreModule.h" // For export macro
76
79
80class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
81{
82public:
84 void PrintSelf(ostream& os, vtkIndent indent) override;
85
92
94
99 vtkSetMacro(Value, double);
100 vtkGetMacro(Value, double);
102
104
112 vtkSetMacro(InsideOut, vtkTypeBool);
113 vtkGetMacro(InsideOut, vtkTypeBool);
114 vtkBooleanMacro(InsideOut, vtkTypeBool);
116
118
124 vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
126
128
135 vtkSetMacro(GenerateClipScalars, vtkTypeBool);
136 vtkGetMacro(GenerateClipScalars, vtkTypeBool);
137 vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
139
141
146 vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
147 vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
148 vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
150
155
160
162
167 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
169
175
180
182
188 vtkSetMacro(OutputPointsPrecision, int);
189 vtkGetMacro(OutputPointsPrecision, int);
191
192protected:
195
198
201 double Value;
205
206private:
207 vtkClipPolyData(const vtkClipPolyData&) = delete;
208 void operator=(const vtkClipPolyData&) = delete;
209};
210
211#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:49
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:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287