-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBooleanOperationsGUI.h
More file actions
35 lines (27 loc) · 840 Bytes
/
BooleanOperationsGUI.h
File metadata and controls
35 lines (27 loc) · 840 Bytes
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
#ifndef BOOLEAN_OPERATIONS_GUI_H
#define BOOLEAN_OPERATIONS_GUI_H
#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsItem>
#include <QComboBox>
#include "BooleanOperations.h"
class BooleanOperationsWindow : public QMainWindow {
Q_OBJECT
public:
BooleanOperationsWindow(QWidget* parent = nullptr);
private slots:
void executeOperation();
void resetScene();
private:
void initializeScene();
void displayPolygon(const Polygon_2& poly, const QColor& color);
void displayPolygonWithHoles(const Polygon_with_holes_2& poly, const QColor& color);
QGraphicsScene* scene;
QGraphicsView* view;
QComboBox* operationCombo;
QGraphicsItem* resultItem = nullptr;
Polygon_2 poly1;
Polygon_2 poly2;
};
#endif // BOOLEAN_OPERATIONS_GUI_H