-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickVtkBooleanOperationPolyDataFilter.h
More file actions
47 lines (37 loc) · 1.68 KB
/
Copy pathquickVtkBooleanOperationPolyDataFilter.h
File metadata and controls
47 lines (37 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "quickVtkPolyDataAlgorithm.h"
#include <vtkBooleanOperationPolyDataFilter.h>
class vtkBooleanOperationPolyDataFilter;
namespace quick { namespace vtk {
class BooleanOperationPolyDataFilter : public PolyDataAlgorithm {
Q_OBJECT
public:
BooleanOperationPolyDataFilter(QObject* parent = nullptr) ;
enum Operation {
Union = vtkBooleanOperationPolyDataFilter::VTK_UNION,
Intersection = vtkBooleanOperationPolyDataFilter::VTK_INTERSECTION,
Difference = vtkBooleanOperationPolyDataFilter::VTK_DIFFERENCE
};
Q_ENUM(Operation);
Q_PROPERTY(quick::vtk::BooleanOperationPolyDataFilter::Operation operation READ operation WRITE setOperation NOTIFY operationChanged)
Operation operation() const;
void setOperation(Operation, bool=false);
Q_SIGNAL void operationChanged(Operation);
Operation m_operation = Union;
Q_PROPERTY(qreal tolerance READ tolerance WRITE setTolerance NOTIFY toleranceChanged)
qreal tolerance() const;
void setTolerance(qreal, bool=false);
Q_SIGNAL void toleranceChanged(qreal);
qreal m_tolerance = 1.0;
Q_PROPERTY(bool reorientDifferentCells READ reorientDifferentCells WRITE setReorientDifferentCells NOTIFY reorientDifferentCellsChanged)
bool reorientDifferentCells() const;
void setReorientDifferentCells(bool, bool=false);
Q_SIGNAL void reorientDifferentCellsChanged(bool);
bool m_reorientDifferentCellsChanged = false;
public:
vtkUserData initializeVTK(vtkRenderWindow*, vtkUserData) override;
vtkBooleanOperationPolyDataFilter* myVtkObject(Object::vtkUserData) const override;
private:
vtkBooleanOperationPolyDataFilter* makeAlgorithm() override;
};
} }