VTK  9.3.20240329
vtkPolyDataPlaneClipper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
42 #ifndef vtkPolyDataPlaneClipper_h
43 #define vtkPolyDataPlaneClipper_h
44 
45 #include "vtkFiltersCoreModule.h" // For export macro
46 #include "vtkPlane.h" // For clipping plane
47 #include "vtkPolyDataAlgorithm.h"
48 #include "vtkPolyDataPlaneCutter.h" // For CanFullyProcessDataObject() method
49 #include "vtkSmartPointer.h" // For SmartPointer
50 
51 VTK_ABI_NAMESPACE_BEGIN
52 class VTKFILTERSCORE_EXPORT vtkPolyDataPlaneClipper : public vtkPolyDataAlgorithm
53 {
54 public:
56 
61  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
67  vtkMTimeType GetMTime() override;
68 
70 
76  vtkGetObjectMacro(Plane, vtkPlane);
78 
80 
88  vtkSetMacro(ClippingLoops, bool);
89  vtkGetMacro(ClippingLoops, bool);
90  vtkBooleanMacro(ClippingLoops, bool);
92 
94 
103  vtkSetMacro(Capping, bool);
104  vtkGetMacro(Capping, bool);
105  vtkBooleanMacro(Capping, bool);
107 
116 
118 
123  vtkSetMacro(PassCapPointData, bool);
124  vtkGetMacro(PassCapPointData, bool);
125  vtkBooleanMacro(PassCapPointData, bool);
127 
129 
135  vtkSetMacro(OutputPointsPrecision, int);
136  vtkGetMacro(OutputPointsPrecision, int);
138 
140 
146  vtkSetClampMacro(BatchSize, unsigned int, 1, VTK_INT_MAX);
147  vtkGetMacro(BatchSize, unsigned int);
149 
160  {
162  }
163 
164 protected:
167 
170  bool Capping;
173  unsigned int BatchSize;
174 
175  // Pipeline-related methods
177 
178 private:
180  void operator=(const vtkPolyDataPlaneClipper&) = delete;
181 };
182 
183 VTK_ABI_NAMESPACE_END
184 #endif
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition: vtkPlane.h:135
Superclass for algorithms that produce only polydata as output.
clip a vtkPolyData with a plane and optionally cap it
vtkPolyData * GetCap()
Get the output dataset representing the clipping loops and capping polygons.
void SetPlane(vtkPlane *)
Specify the plane (an implicit function) to perform the clipping.
static bool CanFullyProcessDataObject(vtkDataObject *object)
This helper method can be used to determine the if the input vtkPolyData contains convex polygonal ce...
~vtkPolyDataPlaneClipper() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard construction, type, and print methods.
vtkMTimeType GetMTime() override
The modified time depends on the delegated clipping plane.
static vtkPolyDataPlaneClipper * New()
Standard construction, type, and print methods.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSmartPointer< vtkPlane > Plane
static bool CanFullyProcessDataObject(vtkDataObject *object)
This helper method can be used to determine the if the input vtkPolyData contains convex polygonal ce...
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:181
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_INT_MAX
Definition: vtkType.h:144