VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
51 
52 VTK_ABI_NAMESPACE_BEGIN
53 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkPolyDataPlaneClipper : public vtkPolyDataAlgorithm
54 {
55 public:
57 
60  static vtkPolyDataPlaneClipper* New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
68  vtkMTimeType GetMTime() override;
69 
71 
76  void SetPlane(vtkPlane*);
77  vtkGetObjectMacro(Plane, vtkPlane);
79 
81 
89  vtkSetMacro(ClippingLoops, bool);
90  vtkGetMacro(ClippingLoops, bool);
91  vtkBooleanMacro(ClippingLoops, bool);
93 
95 
104  vtkSetMacro(Capping, bool);
105  vtkGetMacro(Capping, bool);
106  vtkBooleanMacro(Capping, bool);
108 
116  vtkPolyData* GetCap();
117 
119 
124  vtkSetMacro(PassCapPointData, bool);
125  vtkGetMacro(PassCapPointData, bool);
126  vtkBooleanMacro(PassCapPointData, bool);
128 
130 
136  vtkSetMacro(OutputPointsPrecision, int);
137  vtkGetMacro(OutputPointsPrecision, int);
139 
141 
147  vtkSetClampMacro(BatchSize, unsigned int, 1, VTK_INT_MAX);
148  vtkGetMacro(BatchSize, unsigned int);
150 
161  {
163  }
164 
165 protected:
167  ~vtkPolyDataPlaneClipper() override;
168 
171  bool Capping;
174  unsigned int BatchSize;
175 
176  // Pipeline-related methods
178 
179 private:
181  void operator=(const vtkPolyDataPlaneClipper&) = delete;
182 };
183 
184 VTK_ABI_NAMESPACE_END
185 #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:318
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:192
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
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:31
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.
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.