-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocumentCommon.h
74 lines (58 loc) · 2.41 KB
/
DocumentCommon.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
#ifndef DOCUMENTCOMMON_H
#define DOCUMENTCOMMON_H
#include "MDIWindow.h"
//#include "IESample.h"
#include <QObject>
#include <QList>
#include <AIS_InteractiveContext.hxx>
#include <V3d_Viewer.hxx>
class ApplicationCommonWindow;
//class COMMONSAMPLE_EXPORT DocumentCommon : public QObject
class DocumentCommon : public QObject
{
Q_OBJECT
public:
DocumentCommon( const int, ApplicationCommonWindow* );
~DocumentCommon();
ApplicationCommonWindow* getApplication();
Handle(AIS_InteractiveContext) getContext();
void removeView( MDIWindow* );
void removeViews();
int countOfWindow();
void fitAll();
void DisplayGrid(gp_Pln const& aPlane, Quantity_Length XOrigin, Quantity_Length YOrigin,
Quantity_Length XStep, Quantity_Length YStep, int Type, Quantity_Length Rotation,
Quantity_Length XSize, Quantity_Length YSize, Quantity_Length Offset);
protected:
virtual MDIWindow* createNewMDIWindow();
signals:
void selectionChanged();
void sendCloseDocument( DocumentCommon* );
public slots:
virtual void onCloseView( MDIWindow* );
virtual void onCreateNewView();
virtual void onMaterial();
virtual void onMaterial( int );
virtual void onDelete();
void onWireframe();
void onShading();
void onColor();
void onTransparency();
void onTransparency( int );
private:
Handle(V3d_Viewer) Viewer( const Standard_CString aDisplay,
const Standard_ExtString aName,
const Standard_CString aDomain,
const Standard_Real ViewSize,
const V3d_TypeOfOrientation ViewProj,
const Standard_Boolean ComputedMode,
const Standard_Boolean aDefaultComputedMode );
protected:
ApplicationCommonWindow* myApp;
QList<MDIWindow*> myViews;
Handle(V3d_Viewer) myViewer;
Handle(AIS_InteractiveContext) myContext;
int myIndex;
int myNbViews;
};
#endif