ATLAS Offline Software
Loading...
Searching...
No Matches
IVP13DStandardChannelWidget.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// Header file for class IVP13DStandardChannelWidget //
8// //
9// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10// //
11// Initial version: April 2007 //
12// //
14
15#ifndef IVP13DSTANDARDCHANNELWIDGET_H
16#define IVP13DSTANDARDCHANNELWIDGET_H
17
19class IVP13DSystem;
21class QResizeEvent;
22class QPaintEvent;
23
25
26 Q_OBJECT
27
28public:
29 IVP13DStandardChannelWidget(const QString & name, const QString & information, const QString & contact_info, bool detectorViewButtons = true);
30 //Fixme: Pass along default backgroundcolor as an option?
31
32protected:
34 AllowAll = 0x0000,
35 DisallowExtraDisplayWidget = 0x0002,//Any extra display widget provided by this wont be present in the GUI
36 DisallowSwitchable=0x0004,//User can not turn 3d objects from this system on/off.
37 DisallowController = 0x0008,//Any custom controller provided by this wont be present in the GUI
38 StartDisabled = 0x0010,
40 };
41public: //public instead of protected due to compilation problems on SLC3
42 Q_DECLARE_FLAGS(SystemOptions, SystemOption)
43protected:
44
45 //Call the following in constructor of a derived class. Do not delete the systems in the derived class.
46 void addSystem(IVP13DSystem*, const SystemOptions& options = AllowAll );
47
49
50 //Convenience so users dont need to cast themselves (needed due to private inheritance in IVP13DSystemSimple):
51 void addSystem(IVP13DSystemSimple*, const SystemOptions& options = AllowAll );
52
53public:
54 void create();
56 virtual QPixmap getSnapshot(bool transp = false, int width = 0, bool batch = false);
57 //If overriding the following, remember to call this implementation:
58 virtual void lastOfActiveSystemsRefreshed();
59 virtual void systemRefreshed(IVP1System*);
60 virtual void systemErased(IVP1System*);
61 virtual QByteArray saveState();
62 virtual void restoreFromState(QByteArray);
63 void launchStereoEditor();
64 bool isAntiAliasing();
65 bool setAntiAliasing(bool);
66
67private:
70 class Imp;
72
73private Q_SLOTS:
74 void toggleSystemActive();
75 void updateSnapshotDim();
77
78protected Q_SLOTS:
80protected:
81 void dockResized();
82 void stopSpinning();
83
84};
85
86Q_DECLARE_OPERATORS_FOR_FLAGS(IVP13DStandardChannelWidget::SystemOptions)
87
88#endif
const double width
IVP13DChannelWidget(const QString &name, const QString &information, const QString &contact_info)
IVP13DStandardChannelWidget(const QString &name, const QString &information, const QString &contact_info, bool detectorViewButtons=true)
IVP13DStandardChannelWidget(const IVP13DStandardChannelWidget &)
virtual QPixmap getSnapshot(bool transp=false, int width=0, bool batch=false)
void addSystem(IVP13DSystem *, const SystemOptions &options=AllowAll)
virtual void systemRefreshed(IVP1System *)
IVP13DStandardChannelWidget & operator=(const IVP13DStandardChannelWidget &)
const QString & information() const
const QString & name() const
const QString & contact_info() const