VTK  9.0.2
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 =========================================================================*/
59 #ifndef vtkClipPolyData_h
60 #define vtkClipPolyData_h
61 
62 #include "vtkFiltersCoreModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
67 
68 class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
69 {
70 public:
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
79  static vtkClipPolyData* New();
80 
82 
87  vtkSetMacro(Value, double);
88  vtkGetMacro(Value, double);
90 
92 
100  vtkSetMacro(InsideOut, vtkTypeBool);
101  vtkGetMacro(InsideOut, vtkTypeBool);
102  vtkBooleanMacro(InsideOut, vtkTypeBool);
104 
106 
112  vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
114 
116 
123  vtkSetMacro(GenerateClipScalars, vtkTypeBool);
124  vtkGetMacro(GenerateClipScalars, vtkTypeBool);
125  vtkBooleanMacro(GenerateClipScalars, vtkTypeBool);
127 
129 
134  vtkSetMacro(GenerateClippedOutput, vtkTypeBool);
135  vtkGetMacro(GenerateClippedOutput, vtkTypeBool);
136  vtkBooleanMacro(GenerateClippedOutput, vtkTypeBool);
138 
143 
148 
150 
155  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
157 
163 
167  vtkMTimeType GetMTime() override;
168 
170 
176  vtkSetMacro(OutputPointsPrecision, int);
177  vtkGetMacro(OutputPointsPrecision, int);
179 
180 protected:
182  ~vtkClipPolyData() override;
183 
186 
189  double Value;
193 
194 private:
195  vtkClipPolyData(const vtkClipPolyData&) = delete;
196  void operator=(const vtkClipPolyData&) = delete;
197 };
198 
199 #endif
Proxy object to connect input/output ports.
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:477
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:34
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:85
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293