VTK  9.5.20251112
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
48#include "vtkPolyDataPlaneCutter.h" // For CanFullyProcessDataObject() method
49#include "vtkSmartPointer.h" // For SmartPointer
50#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
51
52VTK_ABI_NAMESPACE_BEGIN
54{
55public:
57
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
69
71
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
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
165protected:
168
174 unsigned int BatchSize;
175
176 // Pipeline-related methods
178
179private:
181 void operator=(const vtkPolyDataPlaneClipper&) = delete;
182};
183
184VTK_ABI_NAMESPACE_END
185#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:141
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.
static vtkPolyDataPlaneClipper * New()
Standard construction, type, and print methods.
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.
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
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_INT_MAX
Definition vtkType.h:196
#define VTK_MARSHALAUTO