VTK  9.2.6
vtkPolyDataPlaneClipper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPolyDataPlaneClipper.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=========================================================================*/
50
51#ifndef vtkPolyDataPlaneClipper_h
52#define vtkPolyDataPlaneClipper_h
53
54#include "vtkFiltersCoreModule.h" // For export macro
55#include "vtkPlane.h" // For clipping plane
57#include "vtkPolyDataPlaneCutter.h" // For CanFullyProcessDataObject() method
58#include "vtkSmartPointer.h" // For SmartPointer
59
60class VTKFILTERSCORE_EXPORT vtkPolyDataPlaneClipper : public vtkPolyDataAlgorithm
61{
62public:
64
69 void PrintSelf(ostream& os, vtkIndent indent) override;
71
76
78
84 vtkGetObjectMacro(Plane, vtkPlane);
86
88
96 vtkSetMacro(ClippingLoops, bool);
97 vtkGetMacro(ClippingLoops, bool);
98 vtkBooleanMacro(ClippingLoops, bool);
100
102
111 vtkSetMacro(Capping, bool);
112 vtkGetMacro(Capping, bool);
113 vtkBooleanMacro(Capping, bool);
115
124
126
131 vtkSetMacro(PassCapPointData, bool);
132 vtkGetMacro(PassCapPointData, bool);
133 vtkBooleanMacro(PassCapPointData, bool);
135
137
143 vtkSetMacro(OutputPointsPrecision, int);
144 vtkGetMacro(OutputPointsPrecision, int);
146
148
154 vtkSetClampMacro(BatchSize, unsigned int, 1, VTK_INT_MAX);
155 vtkGetMacro(BatchSize, unsigned int);
157
171
172protected:
175
181 unsigned int BatchSize;
182
183 // Pipeline-related methods
185
186private:
188 void operator=(const vtkPolyDataPlaneClipper&) = delete;
189};
190
191#endif
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
perform various plane computations
Definition vtkPlane.h:34
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
Definition vtkPolyData.h:85
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_INT_MAX
Definition vtkType.h:155