VTK
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=========================================================================*/
27#ifndef vtkClipConvexPolyData_h
28#define vtkClipConvexPolyData_h
29
30#include "vtkFiltersGeneralModule.h" // For export macro
32
34class vtkPlane;
35class vtkClipConvexPolyDataInternals;
36
37class VTKFILTERSGENERAL_EXPORT vtkClipConvexPolyData : public vtkPolyDataAlgorithm
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43
45
50 vtkGetObjectMacro(Planes,vtkPlaneCollection);
52
57 vtkMTimeType GetMTime() VTK_OVERRIDE;
58
59protected:
61 ~vtkClipConvexPolyData() VTK_OVERRIDE;
62
63 // The method that does it all...
64 int RequestData(vtkInformation *request,
65 vtkInformationVector **inputVector,
66 vtkInformationVector *outputVector) VTK_OVERRIDE;
67
72 void ClipWithPlane(vtkPlane *p,
73 double tolerance);
74
78 bool HasDegeneracies(vtkPlane *p);
79
83 void ClearInternals();
84
88 void ClearNewVertices();
89
93 void RemoveEmptyPolygons();
94
96 vtkClipConvexPolyDataInternals *Internal;
97
98private:
99 vtkClipConvexPolyData(const vtkClipConvexPolyData&) VTK_DELETE_FUNCTION;
100 void operator=(const vtkClipConvexPolyData&) VTK_DELETE_FUNCTION;
101};
102
103#endif
clip any dataset with user-specified implicit function or input scalar data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkClipConvexPolyData * New()
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
maintain a list of planes
perform various plane computations
Definition: vtkPlane.h:38
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248