VTK  9.4.20250421
vtkLoopBooleanPolyDataFilter.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
43#ifndef vtkLoopBooleanPolyDataFilter_h
44#define vtkLoopBooleanPolyDataFilter_h
45
46#include "vtkDataSetAttributes.h" // Needed for CopyCells() method
47#include "vtkFiltersGeneralModule.h" // For export macro
49
50VTK_ABI_NAMESPACE_BEGIN
51class vtkIdList;
52
57class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter : public vtkPolyDataAlgorithm
58{
59public:
64
66
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
73 vtkGetMacro(NumberOfIntersectionPoints, int);
74 vtkGetMacro(NumberOfIntersectionLines, int);
76
78
83 vtkGetMacro(NoIntersectionOutput, int);
84 vtkSetMacro(NoIntersectionOutput, int);
85 vtkBooleanMacro(NoIntersectionOutput, int);
87
88 // Union intersection, or difference
90 {
91 VTK_UNION = 0,
93 VTK_DIFFERENCE
94 };
95 // Output if no intersection
97 {
98 VTK_NEITHER = 0,
102 };
103
105
108 vtkSetClampMacro(Operation, int, VTK_UNION, VTK_DIFFERENCE);
109 vtkGetMacro(Operation, int);
110 void SetOperationToUnion() { this->SetOperation(VTK_UNION); }
111 void SetOperationToIntersection() { this->SetOperation(VTK_INTERSECTION); }
112 void SetOperationToDifference() { this->SetOperation(VTK_DIFFERENCE); }
114
116
121 vtkGetMacro(Status, int);
123
125
128 vtkGetMacro(Tolerance, double);
129 vtkSetMacro(Tolerance, double);
131
132protected:
135
138
139private:
141 void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
142
144
148 int Operation;
149 int NoIntersectionOutput;
150 int NumberOfIntersectionPoints;
151 int NumberOfIntersectionLines;
153
154 int Status;
155 double Tolerance;
156
157 class Impl;
158};
159
160VTK_ABI_NAMESPACE_END
161#endif
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Filter to perform boolean operations.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void SetOperationToDifference()
Set the boolean operation to perform.
~vtkLoopBooleanPolyDataFilter() override
static vtkLoopBooleanPolyDataFilter * New()
Construct object that computes the boolean surface.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetOperationToIntersection()
Set the boolean operation to perform.
void SetOperationToUnion()
Set the boolean operation to perform.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that produce only polydata as output.