VTK  9.2.6
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 =========================================================================*/
45 #ifndef vtkLoopBooleanPolyDataFilter_h
46 #define vtkLoopBooleanPolyDataFilter_h
47 
48 #include "vtkDataSetAttributes.h" // Needed for CopyCells() method
49 #include "vtkFiltersGeneralModule.h" // For export macro
50 #include "vtkPolyDataAlgorithm.h"
51 
52 class vtkIdList;
53 
58 class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter : public vtkPolyDataAlgorithm
59 {
60 public:
65 
67 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
74  vtkGetMacro(NumberOfIntersectionPoints, int);
75  vtkGetMacro(NumberOfIntersectionLines, int);
77 
79 
84  vtkGetMacro(NoIntersectionOutput, int);
85  vtkSetMacro(NoIntersectionOutput, int);
86  vtkBooleanMacro(NoIntersectionOutput, int);
88 
89  // Union intersection, or difference
91  {
92  VTK_UNION = 0,
94  VTK_DIFFERENCE
95  };
96  // Output if no intersection
98  {
99  VTK_NEITHER = 0,
103  };
104 
106 
109  vtkSetClampMacro(Operation, int, VTK_UNION, VTK_DIFFERENCE);
110  vtkGetMacro(Operation, int);
111  void SetOperationToUnion() { this->SetOperation(VTK_UNION); }
112  void SetOperationToIntersection() { this->SetOperation(VTK_INTERSECTION); }
113  void SetOperationToDifference() { this->SetOperation(VTK_DIFFERENCE); }
115 
117 
122  vtkGetMacro(Status, int);
124 
126 
129  vtkGetMacro(Tolerance, double);
130  vtkSetMacro(Tolerance, double);
132 
133 protected:
136 
139 
140 private:
142  void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
143 
145 
149  int Operation;
150  int NoIntersectionOutput;
151  int NumberOfIntersectionPoints;
152  int NumberOfIntersectionLines;
154 
155  int Status;
156  double Tolerance;
157 
158  class Impl;
159 };
160 
161 #endif
list of point or cell ids
Definition: vtkIdList.h:43
a simple class to control print indentation
Definition: vtkIndent.h:49
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.
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 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.