ATLAS Offline Software
Loading...
Searching...
No Matches
graphics
VP1
VP1Base
VP1Base
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
18
#include "
VP1Base/IVP13DChannelWidget.h
"
19
class
IVP13DSystem
;
20
class
IVP13DSystemSimple
;
21
class
QResizeEvent;
22
class
QPaintEvent;
23
24
class
IVP13DStandardChannelWidget
:
public
IVP13DChannelWidget
{
25
26
Q_OBJECT
27
28
public
:
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
32
protected
:
33
enum
SystemOption
{
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,
39
DisallowCameraAccess
= 0x0060
40
};
41
public
:
//public instead of protected due to compilation problems on SLC3
42
Q_DECLARE_FLAGS(SystemOptions,
SystemOption
)
43
protected
:
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
53
public
:
54
void
create
();
55
virtual
~IVP13DStandardChannelWidget
();
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
67
private
:
68
IVP13DStandardChannelWidget
(
const
IVP13DStandardChannelWidget
& );
69
IVP13DStandardChannelWidget
&
operator=
(
const
IVP13DStandardChannelWidget
& );
70
class
Imp
;
71
Imp
*
m_d
;
72
73
private
Q_SLOTS:
74
void
toggleSystemActive
();
75
void
updateSnapshotDim
();
76
void
setImageFromPresets
();
77
78
protected
Q_SLOTS:
79
void
showControlsForSystem
();
80
protected
:
81
void
dockResized
();
82
void
stopSpinning
();
83
84
};
85
86
Q_DECLARE_OPERATORS_FOR_FLAGS(IVP13DStandardChannelWidget::SystemOptions)
87
88
#endif
IVP13DChannelWidget.h
width
const double width
Definition
TTileTripReader.cxx:24
IVP13DChannelWidget::IVP13DChannelWidget
IVP13DChannelWidget(const QString &name, const QString &information, const QString &contact_info)
Definition
IVP13DChannelWidget.cxx:45
IVP13DStandardChannelWidget::Imp
Definition
IVP13DStandardChannelWidget.cxx:46
IVP13DStandardChannelWidget::m_d
Imp * m_d
Definition
IVP13DStandardChannelWidget.h:71
IVP13DStandardChannelWidget::restoreFromState
virtual void restoreFromState(QByteArray)
Definition
IVP13DStandardChannelWidget.cxx:771
IVP13DStandardChannelWidget::isAntiAliasing
bool isAntiAliasing()
Definition
IVP13DStandardChannelWidget.cxx:100
IVP13DStandardChannelWidget::systemErased
virtual void systemErased(IVP1System *)
Definition
IVP13DStandardChannelWidget.cxx:360
IVP13DStandardChannelWidget::SystemOption
SystemOption
Definition
IVP13DStandardChannelWidget.h:33
IVP13DStandardChannelWidget::DisallowCameraAccess
@ DisallowCameraAccess
Definition
IVP13DStandardChannelWidget.h:39
IVP13DStandardChannelWidget::StartDisabled
@ StartDisabled
Definition
IVP13DStandardChannelWidget.h:38
IVP13DStandardChannelWidget::DisallowSwitchable
@ DisallowSwitchable
Definition
IVP13DStandardChannelWidget.h:36
IVP13DStandardChannelWidget::DisallowExtraDisplayWidget
@ DisallowExtraDisplayWidget
Definition
IVP13DStandardChannelWidget.h:35
IVP13DStandardChannelWidget::DisallowController
@ DisallowController
Definition
IVP13DStandardChannelWidget.h:37
IVP13DStandardChannelWidget::AllowAll
@ AllowAll
Definition
IVP13DStandardChannelWidget.h:34
IVP13DStandardChannelWidget::setImageFromPresets
void setImageFromPresets()
Definition
IVP13DStandardChannelWidget.cxx:502
IVP13DStandardChannelWidget::stopSpinning
void stopSpinning()
Definition
IVP13DStandardChannelWidget.cxx:436
IVP13DStandardChannelWidget::IVP13DStandardChannelWidget
IVP13DStandardChannelWidget(const QString &name, const QString &information, const QString &contact_info, bool detectorViewButtons=true)
Definition
IVP13DStandardChannelWidget.cxx:106
IVP13DStandardChannelWidget::toggleSystemActive
void toggleSystemActive()
Definition
IVP13DStandardChannelWidget.cxx:368
IVP13DStandardChannelWidget::saveState
virtual QByteArray saveState()
Definition
IVP13DStandardChannelWidget.cxx:628
IVP13DStandardChannelWidget::IVP13DStandardChannelWidget
IVP13DStandardChannelWidget(const IVP13DStandardChannelWidget &)
IVP13DStandardChannelWidget::setAntiAliasing
bool setAntiAliasing(bool)
Definition
IVP13DStandardChannelWidget.cxx:93
IVP13DStandardChannelWidget::getSnapshot
virtual QPixmap getSnapshot(bool transp=false, int width=0, bool batch=false)
Definition
IVP13DStandardChannelWidget.cxx:443
IVP13DStandardChannelWidget::showControlsForSystem
void showControlsForSystem()
Definition
IVP13DStandardChannelWidget.cxx:882
IVP13DStandardChannelWidget::addSystem
void addSystem(IVP13DSystem *, const SystemOptions &options=AllowAll)
Definition
IVP13DStandardChannelWidget.cxx:135
IVP13DStandardChannelWidget::launchStereoEditor
void launchStereoEditor()
Definition
IVP13DStandardChannelWidget.cxx:86
IVP13DStandardChannelWidget::~IVP13DStandardChannelWidget
virtual ~IVP13DStandardChannelWidget()
Definition
IVP13DStandardChannelWidget.cxx:128
IVP13DStandardChannelWidget::updateSnapshotDim
void updateSnapshotDim()
Definition
IVP13DStandardChannelWidget.cxx:538
IVP13DStandardChannelWidget::lastOfActiveSystemsRefreshed
virtual void lastOfActiveSystemsRefreshed()
Definition
IVP13DStandardChannelWidget.cxx:331
IVP13DStandardChannelWidget::create
void create()
Definition
IVP13DStandardChannelWidget.cxx:168
IVP13DStandardChannelWidget::systemRefreshed
virtual void systemRefreshed(IVP1System *)
Definition
IVP13DStandardChannelWidget.cxx:355
IVP13DStandardChannelWidget::operator=
IVP13DStandardChannelWidget & operator=(const IVP13DStandardChannelWidget &)
IVP13DStandardChannelWidget::dockResized
void dockResized()
Definition
IVP13DStandardChannelWidget.cxx:620
IVP13DSystemSimple
Definition
IVP13DSystemSimple.h:24
IVP13DSystem
Definition
IVP13DSystem.h:31
IVP1ChannelWidget::information
const QString & information() const
Definition
IVP1ChannelWidget.cxx:185
IVP1ChannelWidget::name
const QString & name() const
Definition
IVP1ChannelWidget.cxx:180
IVP1ChannelWidget::contact_info
const QString & contact_info() const
Definition
IVP1ChannelWidget.cxx:191
IVP1System
Definition
IVP1System.h:36
Generated on
for ATLAS Offline Software by
1.14.0