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=========================================================================*/
42#ifndef vtkLoopBooleanPolyDataFilter_h
43#define vtkLoopBooleanPolyDataFilter_h
44
45#include "vtkDataSetAttributes.h" // Needed for CopyCells() method
46#include "vtkFiltersGeneralModule.h" // For export macro
48
49class vtkIdList;
50
55class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter : public vtkPolyDataAlgorithm
56{
57public:
62
64
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
71 vtkGetMacro(NumberOfIntersectionPoints, int);
72 vtkGetMacro(NumberOfIntersectionLines, int);
74
76
81 vtkGetMacro(NoIntersectionOutput, int);
82 vtkSetMacro(NoIntersectionOutput, int);
83 vtkBooleanMacro(NoIntersectionOutput, int);
85
86 // Union intersection, or difference
88 {
89 VTK_UNION = 0,
91 VTK_DIFFERENCE
92 };
93 // Output if no intersection
95 {
96 VTK_NEITHER = 0,
100 };
101
103
106 vtkSetClampMacro(Operation, int, VTK_UNION, VTK_DIFFERENCE);
107 vtkGetMacro(Operation, int);
108 void SetOperationToUnion() { this->SetOperation(VTK_UNION); }
109 void SetOperationToIntersection() { this->SetOperation(VTK_INTERSECTION); }
110 void SetOperationToDifference() { this->SetOperation(VTK_DIFFERENCE); }
112
114
119 vtkGetMacro(Status, int);
121
123
126 vtkGetMacro(Tolerance, double);
127 vtkSetMacro(Tolerance, double);
129
130protected:
133
136
137private:
139 void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
140
142
146 int Operation;
147 int NoIntersectionOutput;
148 int NumberOfIntersectionPoints;
149 int NumberOfIntersectionLines;
151
152 int Status;
153 double Tolerance;
154
155 class Impl;
156};
157
158#endif
list of point or cell ids
Definition: vtkIdList.h:40
a simple class to control print indentation
Definition: vtkIndent.h:43
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.