VTK  9.1.0
vtkLoopBooleanPolyDataFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLoopBooleanPolyDataFilter.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=========================================================================*/
52#ifndef vtkLoopBooleanPolyDataFilter_h
53#define vtkLoopBooleanPolyDataFilter_h
54
55#include "vtkDataSetAttributes.h" // Needed for CopyCells() method
56#include "vtkFiltersGeneralModule.h" // For export macro
58
59class vtkIdList;
60
65class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter : public vtkPolyDataAlgorithm
66{
67public:
72
74
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
81 vtkGetMacro(NumberOfIntersectionPoints, int);
82 vtkGetMacro(NumberOfIntersectionLines, int);
84
86
91 vtkGetMacro(NoIntersectionOutput, int);
92 vtkSetMacro(NoIntersectionOutput, int);
93 vtkBooleanMacro(NoIntersectionOutput, int);
95
96 // Union intersection, or difference
98 {
99 VTK_UNION = 0,
101 VTK_DIFFERENCE
102 };
103 // Output if no intersection
105 {
106 VTK_NEITHER = 0,
110 };
111
113
116 vtkSetClampMacro(Operation, int, VTK_UNION, VTK_DIFFERENCE);
117 vtkGetMacro(Operation, int);
118 void SetOperationToUnion() { this->SetOperation(VTK_UNION); }
119 void SetOperationToIntersection() { this->SetOperation(VTK_INTERSECTION); }
120 void SetOperationToDifference() { this->SetOperation(VTK_DIFFERENCE); }
122
124
129 vtkGetMacro(Status, int);
131
133
136 vtkGetMacro(Tolerance, double);
137 vtkSetMacro(Tolerance, double);
139
140protected:
143
146
147private:
149 void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
150
152
156 int Operation;
157 int NoIntersectionOutput;
158 int NumberOfIntersectionPoints;
159 int NumberOfIntersectionLines;
161
162 int Status;
163 double Tolerance;
164
165 class Impl;
166};
167
168#endif
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
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.