ATLAS Offline Software
VP1CustomTourFrameWidget.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
23 class VP1CustomTourFrameWidget : public QFrame {
24 
25  Q_OBJECT
26 
27 public:
28 
29  VP1CustomTourFrameWidget(bool camPerspective, QByteArray camState, QWidget * parent = 0);
30  VP1CustomTourFrameWidget(QByteArray serialisedFrame, QWidget * parent = 0);
31  QByteArray serialise() const;
32 
33  virtual ~VP1CustomTourFrameWidget();
34 
37 
38  bool frameIsEnabled() const;
39  bool zoomToFrameWithVariableSpeed() 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  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 
51 signals:
54  void requestDelete();
55  void requestShow();
58 
59 protected:
60  void mousePressEvent(QMouseEvent *event);
61  void mouseMoveEvent(QMouseEvent *event);
62  void dropEvent(QDropEvent *event);
63  void dragEnterEvent(QDragEnterEvent *event);
64 
65 
66 private Q_SLOTS:
67  void buttonClicked();
68  void frameEnabledToggled();
69 private:
70 
73  class Imp;
74  Imp * m_d;
75 
76 };
77 
78 #endif
VP1CustomTourFrameWidget::frameEnableStateChanged
void frameEnableStateChanged()
VP1CustomTourFrameWidget::VP1CustomTourFrameWidget
VP1CustomTourFrameWidget(const VP1CustomTourFrameWidget &)
VP1CustomTourFrameWidget::zoomToFrameWithVariableSpeed
bool zoomToFrameWithVariableSpeed() const
Definition: VP1CustomTourFrameWidget.cxx:156
VP1CustomTourFrameWidget::snapShotWidth
static int snapShotWidth()
Definition: VP1CustomTourFrameWidget.h:48
VP1CustomTourFrameWidget::requestSwap
void requestSwap(VP1CustomTourFrameWidget *, VP1CustomTourFrameWidget *)
VP1CustomTourFrameWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: VP1CustomTourFrameWidget.cxx:217
VP1CustomTourFrameWidget::requestShow
void requestShow()
VP1CustomTourFrameWidget::setStepToLaterControlsEnabled
void setStepToLaterControlsEnabled(bool)
Definition: VP1CustomTourFrameWidget.cxx:203
VP1CustomTourFrameWidget::requestStepToLater
void requestStepToLater()
VP1CustomTourFrameWidget::zoomToFrameTime
double zoomToFrameTime() const
Definition: VP1CustomTourFrameWidget.cxx:167
VP1CustomTourFrameWidget::dropEvent
void dropEvent(QDropEvent *event)
Definition: VP1CustomTourFrameWidget.cxx:246
VP1CustomTourFrameWidget::requestDelete
void requestDelete()
VP1CustomTourFrameWidget::VP1CustomTourFrameWidget
VP1CustomTourFrameWidget(bool camPerspective, QByteArray camState, QWidget *parent=0)
Definition: VP1CustomTourFrameWidget.cxx:77
VP1CustomTourFrameWidget::frameEnabledToggled
void frameEnabledToggled()
Definition: VP1CustomTourFrameWidget.cxx:263
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
VP1CustomTourFrameWidget::Imp
Definition: VP1CustomTourFrameWidget.cxx:30
VP1CustomTourFrameWidget::zoomToFrameForcedCircular
bool zoomToFrameForcedCircular() const
Definition: VP1CustomTourFrameWidget.cxx:161
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1CustomTourFrameWidget::clipVolumePercentOfATLAS
double clipVolumePercentOfATLAS() const
Definition: VP1CustomTourFrameWidget.cxx:179
VP1CustomTourFrameWidget::serialise
QByteArray serialise() const
Definition: VP1CustomTourFrameWidget.cxx:110
VP1CustomTourFrameWidget::buttonClicked
void buttonClicked()
Definition: VP1CustomTourFrameWidget.cxx:136
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
VP1CustomTourFrameWidget::setStepToEarlierControlsEnabled
void setStepToEarlierControlsEnabled(bool)
Definition: VP1CustomTourFrameWidget.cxx:197
VP1CustomTourFrameWidget::m_d
Imp * m_d
Definition: VP1CustomTourFrameWidget.h:73
VP1CustomTourFrameWidget::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: VP1CustomTourFrameWidget.cxx:239
VP1CustomTourFrameWidget::requestStepToEarlier
void requestStepToEarlier()
VP1CustomTourFrameWidget::camState
QByteArray camState() const
Definition: VP1CustomTourFrameWidget.cxx:191
VP1CustomTourFrameWidget::stayOnFrameTime
double stayOnFrameTime() const
Definition: VP1CustomTourFrameWidget.cxx:173
VP1CustomTourFrameWidget::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: VP1CustomTourFrameWidget.cxx:209
VP1CustomTourFrameWidget::~VP1CustomTourFrameWidget
virtual ~VP1CustomTourFrameWidget()
Definition: VP1CustomTourFrameWidget.cxx:130
VP1CustomTourFrameWidget::setSnapshot
void setSnapshot(QPixmap)
Definition: VP1CustomTourFrameWidget.cxx:255
VP1CustomTourFrameWidget::operator=
VP1CustomTourFrameWidget & operator=(const VP1CustomTourFrameWidget &)
VP1CustomTourFrameWidget::frameIsEnabled
bool frameIsEnabled() const
Definition: VP1CustomTourFrameWidget.cxx:149
VP1CustomTourFrameWidget::snapShotHeight
static int snapShotHeight()
Definition: VP1CustomTourFrameWidget.h:49
VP1CustomTourFrameWidget
Definition: VP1CustomTourFrameWidget.h:23
VP1CustomTourFrameWidget::camStateIsPerspective
bool camStateIsPerspective() const
Definition: VP1CustomTourFrameWidget.cxx:185