ATLAS Offline Software
Loading...
Searching...
No Matches
VP1CustomTourFrameWidget.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Header file for class VP1CustomTourFrameWidget //
9// //
10// Description: Frame in user defined tours. //
11// //
12// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13// Initial version: September 2008 //
14// //
16
17#ifndef VP1CUSTOMTOURFRAMEWIDGET_H
18#define VP1CUSTOMTOURFRAMEWIDGET_H
19
20#include <QFrame>
21#include <QByteArray>
22
23class VP1CustomTourFrameWidget : public QFrame {
24
25 Q_OBJECT
26
27public:
28
29 VP1CustomTourFrameWidget(bool camPerspective, const QByteArray& camState, QWidget * parent = 0);
30 VP1CustomTourFrameWidget(const QByteArray& serialisedFrame, QWidget * parent = 0);
31 QByteArray serialise() const;
32
34
37
38 bool frameIsEnabled() const;
40 bool zoomToFrameForcedCircular() const;
41 double zoomToFrameTime() const;//in seconds
42 double stayOnFrameTime() const;//in seconds
43 double clipVolumePercentOfATLAS() const;//in percent
44 bool camStateIsPerspective() const;
45 const QByteArray& camState() const;
46
47 void setSnapshot(QPixmap);//Call whenever updating the pixmap.
48 static int snapShotWidth() { return 90; }
49 static int snapShotHeight() { return 90; }
50
51signals:
58
59protected:
60 void mousePressEvent(QMouseEvent *event);
61 void mouseMoveEvent(QMouseEvent *event);
62 void dropEvent(QDropEvent *event);
63 void dragEnterEvent(QDragEnterEvent *event);
64
65
66private Q_SLOTS:
67 void buttonClicked();
69private:
70
73 class Imp;
75
76};
77
78#endif
const QByteArray & camState() const
void requestSwap(VP1CustomTourFrameWidget *, VP1CustomTourFrameWidget *)
VP1CustomTourFrameWidget(const VP1CustomTourFrameWidget &)
void mouseMoveEvent(QMouseEvent *event)
VP1CustomTourFrameWidget & operator=(const VP1CustomTourFrameWidget &)
void dragEnterEvent(QDragEnterEvent *event)
VP1CustomTourFrameWidget(bool camPerspective, const QByteArray &camState, QWidget *parent=0)
void mousePressEvent(QMouseEvent *event)