Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
test-DxfWindow.h
Go to the documentation of this file.
1#pragma once
2#include <QDialog>
3#include <dxf/GraphicsScene.h>
4#include <dxf/GraphicsView.h>
5#include <dxf/Reader.h>
6
7namespace Ui
8{
9class DxfWindow;
10}
11
12class DxfWindow final : public QDialog
13{
14 Q_OBJECT
15
16 public:
17 explicit DxfWindow(QWidget* parent = nullptr);
18
19 private Q_SLOTS:
20 void onLoadDxf();
21
22 private:
23 // Pointer to the main window.
24 Ui::DxfWindow* ui;
25 //
26 sf::dxf::Reader* _reader;
27 sf::dxf::GraphicsScene* _graphicsScene2D;
28 sf::dxf::GraphicsScene* _graphicsScene3D;
29 sf::dxf::GraphicsView* _graphicsView2D;
30 sf::dxf::GraphicsView* _graphicsView3D;
31 QPushButton* _openFileButton;
32};
DxfWindow(QWidget *parent=nullptr)
The GraphicsScene class is a custom QGraphicsScene for rendering DXF entities.
Definition GraphicsScene.h:15
The GraphicsView class provides a custom QGraphicsView with panning and zooming capabilities.
Definition GraphicsView.h:13
The Reader class parses DXF files using 'dxflib' and stores entities by layer.
Definition Reader.h:13
Definition ApplicationPropertyPage.h:7