-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathoccQt.h
87 lines (61 loc) · 1.91 KB
/
occQt.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
IsoAlgo3d - PCF format 3d visualization tool.
Copyright (C) 2016 Shing Liu
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 2 of the License, or any later
version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Copy of the GNU General Public License is in LICENSE.txt and
on <http://www.gnu.org/licenses/>.
*/
#ifndef OCCQT_H
#define OCCQT_H
#include "ui_occQt.h"
#include "IsoComponent.h"
#include <TopoDS_Shape.hxx>
class QProgressBar;
class OccView;
//! Qt main window which include OpenCASCADE for its central widget.
class occQt : public QMainWindow
{
Q_OBJECT
public:
//! constructor/destructor.
occQt(QWidget *parent = 0);
~occQt();
protected:
//! create all the actions.
void createActions(void);
//! create all the menus.
void createMenus(void);
//! create the toolbar.
void createToolBars(void);
protected:
//! read PCF file.
void readPcfFile(const QString& thePcfName);
//! build component shape.
TopoDS_Shape buildShape(const IsoAlgo::IsoComponent* theComponent);
//! build pipe model.
void buildPipe(const IsoAlgo::IsoComponent* theComponent, TopoDS_Shape& theShape);
//! build elbow model.
void buildElbow(const IsoAlgo::IsoComponent* theComponent, TopoDS_Shape& theShape);
private slots:
//! load PCF file.
void loadPcf(void);
//! show about box.
void about(void);
private:
Ui::occQtClass ui;
private:
//! the toolbars of IsoAlgo3d.
QToolBar* myToolbar;
//! the progress bar.
QProgressBar* myProgressBar;
// wrapped the widget for occ.
OccView* myOccView;
};
#endif // OCCQT_H