VTK  9.0.2
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 =========================================================================*/
33 #ifndef vtkLoopBooleanPolyDataFilter_h
34 #define vtkLoopBooleanPolyDataFilter_h
35 
36 #include "vtkDataSetAttributes.h" // Needed for CopyCells() method
37 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class vtkIdList;
41 
46 class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter : public vtkPolyDataAlgorithm
47 {
48 public:
53 
55 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkGetMacro(NumberOfIntersectionPoints, int);
63  vtkGetMacro(NumberOfIntersectionLines, int);
65 
67 
72  vtkGetMacro(NoIntersectionOutput, int);
73  vtkSetMacro(NoIntersectionOutput, int);
74  vtkBooleanMacro(NoIntersectionOutput, int);
76 
77  // Union intersection, or difference
79  {
80  VTK_UNION = 0,
82  VTK_DIFFERENCE
83  };
84  // Output if no intersection
86  {
87  VTK_NEITHER = 0,
91  };
92 
94 
97  vtkSetClampMacro(Operation, int, VTK_UNION, VTK_DIFFERENCE);
98  vtkGetMacro(Operation, int);
99  void SetOperationToUnion() { this->SetOperation(VTK_UNION); }
100  void SetOperationToIntersection() { this->SetOperation(VTK_INTERSECTION); }
101  void SetOperationToDifference() { this->SetOperation(VTK_DIFFERENCE); }
103 
105 
110  vtkGetMacro(Status, int);
112 
114 
117  vtkGetMacro(Tolerance, double);
118  vtkSetMacro(Tolerance, double);
120 
121 protected:
124 
127 
128 private:
130  void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
131 
133 
137  int Operation;
138  int NoIntersectionOutput;
139  int NumberOfIntersectionPoints;
140  int NumberOfIntersectionLines;
142 
143  int Status;
144  double Tolerance;
145 
146  class Impl;
147 };
148 
149 #endif
list of point or cell ids
Definition: vtkIdList.h:31
a simple class to control print indentation
Definition: vtkIndent.h:34
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.
static vtkLoopBooleanPolyDataFilter * New()
Construct object that computes the boolean surface.
~vtkLoopBooleanPolyDataFilter() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.