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 "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 #include "vtkDataSetAttributes.h" // Needed for CopyCells() method
39 
40 class vtkIdList;
41 
46 class VTKFILTERSGENERAL_EXPORT vtkLoopBooleanPolyDataFilter :
48 {
49 public:
54 
55  vtkTypeMacro(vtkLoopBooleanPolyDataFilter,
57 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
64  vtkGetMacro(NumberOfIntersectionPoints, int);
65  vtkGetMacro(NumberOfIntersectionLines, int);
67 
69 
74  vtkGetMacro(NoIntersectionOutput, int);
75  vtkSetMacro(NoIntersectionOutput, int);
76  vtkBooleanMacro(NoIntersectionOutput, int);
78 
79  //Union intersection, or difference
81  {
82  VTK_UNION=0,
84  VTK_DIFFERENCE
85  };
86  //Output if no intersection
88  {
89  VTK_NEITHER=0,
93  };
94 
96 
99  vtkSetClampMacro( Operation, int, VTK_UNION, VTK_DIFFERENCE );
100  vtkGetMacro( Operation, int );
102  { this->SetOperation( VTK_UNION ); }
104  { this->SetOperation( VTK_INTERSECTION ); }
106  { this->SetOperation( VTK_DIFFERENCE ); }
108 
110 
115  vtkGetMacro(Status, int);
117 
119 
122  vtkGetMacro(Tolerance, double);
123  vtkSetMacro(Tolerance, double);
125 
126 protected:
128  ~vtkLoopBooleanPolyDataFilter() override;
129 
131  vtkInformationVector*) override;
132  int FillInputPortInformation(int, vtkInformation*) override;
133 
134 private:
136  void operator=(const vtkLoopBooleanPolyDataFilter&) = delete;
137 
139 
143  int Operation;
144  int NoIntersectionOutput;
145  int NumberOfIntersectionPoints;
146  int NumberOfIntersectionLines;
148 
149  int Status;
150  double Tolerance;
151 
152  class Impl;
153 
154 };
155 
156 #endif
vtkLoopBooleanPolyDataFilter
Filter to perform boolean operations.
Definition: vtkLoopBooleanPolyDataFilter.h:46
vtkLoopBooleanPolyDataFilter::OperationType
OperationType
Definition: vtkLoopBooleanPolyDataFilter.h:80
vtkLoopBooleanPolyDataFilter::VTK_SECOND
Definition: vtkLoopBooleanPolyDataFilter.h:91
vtkLoopBooleanPolyDataFilter::SetOperationToIntersection
void SetOperationToIntersection()
Definition: vtkLoopBooleanPolyDataFilter.h:103
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkLoopBooleanPolyDataFilter::VTK_INTERSECTION
Definition: vtkLoopBooleanPolyDataFilter.h:83
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:87
vtkLoopBooleanPolyDataFilter::VTK_BOTH
Definition: vtkLoopBooleanPolyDataFilter.h:92
vtkPolyDataAlgorithm.h
vtkLoopBooleanPolyDataFilter::SetOperationToDifference
void SetOperationToDifference()
Definition: vtkLoopBooleanPolyDataFilter.h:105
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkLoopBooleanPolyDataFilter::VTK_FIRST
Definition: vtkLoopBooleanPolyDataFilter.h:90
vtkLoopBooleanPolyDataFilter::SetOperationToUnion
void SetOperationToUnion()
Definition: vtkLoopBooleanPolyDataFilter.h:101
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:80
vtkDataSetAttributes.h
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41