VTK  9.3.1
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 
59  static vtkPolyDataPlaneClipper* New();
61  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
67  vtkMTimeType GetMTime() override;
68 
70 
75  void SetPlane(vtkPlane*);
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 
115  vtkPolyData* GetCap();
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:
166  ~vtkPolyDataPlaneClipper() override;
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
static bool CanFullyProcessDataObject(vtkDataObject *object)
This helper method can be used to determine the if the input vtkPolyData contains convex polygonal ce...
clip a vtkPolyData with a plane and optionally cap it
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:144
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
perform various plane computations
Definition: vtkPlane.h:25
static bool CanFullyProcessDataObject(vtkDataObject *object)
This helper method can be used to determine the if the input vtkPolyData contains convex polygonal ce...
vtkSmartPointer< vtkPlane > Plane
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.