-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmol3dview.h
More file actions
69 lines (56 loc) · 1.61 KB
/
mol3dview.h
File metadata and controls
69 lines (56 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef MOL3DVIEW_H
#define MOL3DVIEW_H
#include "molstruct.h"
#include "volumedata.h"
#include <QWidget>
class Mol3dViewPrivate;
class Mol3dView : public QWidget
{
Q_OBJECT
public:
explicit Mol3dView(QWidget *parent = nullptr);
~Mol3dView();
bool eventFilter(QObject *obj, QEvent *event);
QWindow *getViewWindow();
void showMolStruct(const MolStruct &ms);
void showVolumeData(const VolumeData &vol, float threshold = 0.0f);
void showAnimation(QVector<QVector3D> eigenvector, float intensity);
MolStruct getMolStruct();
void rotate(float pitch, float yaw, float roll);
enum class DrawStyle {
BallAndStick,
Stick
};
void setDrawStyle(DrawStyle s);
DrawStyle getDrawStyle();
enum ToolMode {
ToolModeNone,
ToolModeAdd,
ToolModeAddValence,
ToolModeDelete,
ToolModeBond,
ToolModeSelect
};
void setToolMode(ToolMode m);
ToolMode getToolMode();
void setSelectionLimit(int maxAtoms, int maxBonds);
struct Selection {
QList<int> atoms;
QList<int> bonds;
};
void setHighlight(Selection s);
Selection getSelection();
void setSelection(const Selection &selection);
void modifySelectionCharge(int newCharge);
void modifySelectionElement(int atomicNumber);
void setAddRGroup(MolStruct m);
signals:
void addUndoEvent(QString description = {});
void moleculeChanged();
void selectionChanged(Selection s);
void hoverInfo(QString info);
private:
QScopedPointer<Mol3dViewPrivate> const d_ptr;
Q_DECLARE_PRIVATE(Mol3dView)
};
#endif // MOL3DVIEW_H