VTK
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:
123  ~vtkLoopBooleanPolyDataFilter() override;
124 
126  int FillInputPortInformation(int, vtkInformation*) override;
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
vtkLoopBooleanPolyDataFilter
Filter to perform boolean operations.
Definition: vtkLoopBooleanPolyDataFilter.h:46
vtkLoopBooleanPolyDataFilter::OperationType
OperationType
Definition: vtkLoopBooleanPolyDataFilter.h:78
vtkLoopBooleanPolyDataFilter::VTK_SECOND
Definition: vtkLoopBooleanPolyDataFilter.h:89
vtkLoopBooleanPolyDataFilter::SetOperationToIntersection
void SetOperationToIntersection()
Definition: vtkLoopBooleanPolyDataFilter.h:100
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkLoopBooleanPolyDataFilter::VTK_INTERSECTION
Definition: vtkLoopBooleanPolyDataFilter.h:81
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLoopBooleanPolyDataFilter::NoIntersectionOutputType
NoIntersectionOutputType
Definition: vtkLoopBooleanPolyDataFilter.h:85
vtkLoopBooleanPolyDataFilter::VTK_BOTH
Definition: vtkLoopBooleanPolyDataFilter.h:90
vtkPolyDataAlgorithm.h
vtkLoopBooleanPolyDataFilter::SetOperationToDifference
void SetOperationToDifference()
Definition: vtkLoopBooleanPolyDataFilter.h:101
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkLoopBooleanPolyDataFilter::VTK_FIRST
Definition: vtkLoopBooleanPolyDataFilter.h:88
vtkLoopBooleanPolyDataFilter::SetOperationToUnion
void SetOperationToUnion()
Definition: vtkLoopBooleanPolyDataFilter.h:99
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkDataSetAttributes.h
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41