VTK  9.1.0
vtkClipConvexPolyData.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkClipConvexPolyData.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=========================================================================*/
24#ifndef vtkClipConvexPolyData_h
25#define vtkClipConvexPolyData_h
26
27#include "vtkFiltersGeneralModule.h" // For export macro
29
31class vtkPlane;
32class vtkClipConvexPolyDataInternals;
33
34class VTKFILTERSGENERAL_EXPORT vtkClipConvexPolyData : public vtkPolyDataAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
47 vtkGetObjectMacro(Planes, vtkPlaneCollection);
49
55
56protected:
59
60 // The method that does it all...
61 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
62 vtkInformationVector* outputVector) override;
63
68 void ClipWithPlane(vtkPlane* p, double tolerance);
69
74
79
84
89
91 vtkClipConvexPolyDataInternals* Internal;
92
93private:
95 void operator=(const vtkClipConvexPolyData&) = delete;
96};
97
98#endif
clip any dataset with user-specified implicit function or input scalar data
vtkClipConvexPolyDataInternals * Internal
void ClipWithPlane(vtkPlane *p, double tolerance)
Clip the input with a given plane ā€˜pā€™.
void ClearInternals()
Delete calculation data.
vtkPlaneCollection * Planes
bool HasDegeneracies(vtkPlane *p)
Tells if clipping the input by plane ā€˜pā€™ creates some degeneracies.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkClipConvexPolyData * New()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
~vtkClipConvexPolyData() override
vtkMTimeType GetMTime() override
Redefines this method, as this filter depends on time of its components (planes)
void SetPlanes(vtkPlaneCollection *planes)
Set all the planes at once using a vtkPlanes implicit function.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
maintain a list of planes
perform various plane computations
Definition: vtkPlane.h:143
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287