ATLAS Offline Software
IParticleCollectionSettingsButton.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 #ifndef VP1AODSYSTEMS_IPARTICLECOLLSETTINGSBUTTON_H
6 #define VP1AODSYSTEMS_IPARTICLECOLLSETTINGSBUTTON_H
7 
9 
10 class SoDrawStyle;
11 class SoLightModel;
12 
14 
15  Q_OBJECT
16 
17 public:
18 
19  IParticleCollectionSettingsButton(QWidget * parent = 0, int dim = 25);//dim<=0 => Won't change sizepolicy
21 
22  void setDimension(int dim);
23  void initEditWindow();
24 
25  // The below are necessary to fulfill the interface, but will just be passed onto the VP1MaterialButton owned by the IParticleCollectionSettingsButton form
26  virtual bool setMaterial(SoMaterial*);
27  virtual void copyValuesFromMaterial(SoMaterial*);
28  virtual double lastAppliedTransparency() const ;
29  virtual double lastAppliedShininess() const ;
30  virtual double lastAppliedBrightness() const;
31 
32 
33  // GUI for cuts
34  VP1Interval cutAllowedPt() const;
35  VP1Interval cutAllowedEta() const;
36  QList<VP1Interval> cutAllowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
37 
38  //Overall drawstyles, complexities and light models:
39  SoDrawStyle * drawStyle() const;
40  SoLightModel * lightModel() const;
41 
42  QByteArray saveState() const;
43  void restoreFromState( const QByteArray& );
44 
45  signals:
46  void lastAppliedChanged(); // emitted when something related to material changes
47 
50  void cutAllowedPhiChanged(const QList<VP1Interval>&);
51 
52  public Q_SLOTS:
54  virtual void setText(const QString&);
55 
56  protected Q_SLOTS:
57  void updateButton();
58 
59  protected:
60  // void initEditWindow();//!< Make sure that edit window is constructed
61  void mousePressEvent(QMouseEvent *event);
62  void mouseMoveEvent(QMouseEvent *event);
63  void dropEvent(QDropEvent *event);
64  void dragEnterEvent(QDragEnterEvent *event);
65  private:
66 
67  class Imp;
68  Imp * m_d;
69 
70  private Q_SLOTS:
71  void updateDrawStyle();
72  void updateLightModel(bool);
76 };
77 
78 #endif
79 
80 
IParticleCollectionSettingsButton::lastAppliedShininess
virtual double lastAppliedShininess() const
Definition: IParticleCollectionSettingsButton.cxx:179
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
IParticleCollectionSettingsButton::cutAllowedEtaChanged
void cutAllowedEtaChanged(const VP1Interval &)
IParticleCollectionSettingsButton::initEditWindow
void initEditWindow()
Definition: IParticleCollectionSettingsButton.cxx:76
VP1MaterialButton.h
IParticleCollectionSettingsButton::cutAllowedPt
VP1Interval cutAllowedPt() const
Definition: IParticleCollectionSettingsButton.cxx:325
IParticleCollectionSettingsButton::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: IParticleCollectionSettingsButton.cxx:223
IParticleCollectionSettingsButton::lightModel
SoLightModel * lightModel() const
Definition: IParticleCollectionSettingsButton.cxx:216
IParticleCollectionSettingsButton::lastAppliedTransparency
virtual double lastAppliedTransparency() const
Definition: IParticleCollectionSettingsButton.cxx:174
IParticleCollectionSettingsButton::setDimension
void setDimension(int dim)
Definition: IParticleCollectionSettingsButton.cxx:143
IParticleCollectionSettingsButton::saveState
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
Definition: IParticleCollectionSettingsButton.cxx:298
IParticleCollectionSettingsButton::updateButton
void updateButton()
Definition: IParticleCollectionSettingsButton.cxx:135
IParticleCollectionSettingsButton::updateLightModel
void updateLightModel(bool)
Definition: IParticleCollectionSettingsButton.cxx:198
IParticleCollectionSettingsButton::updateDrawStyle
void updateDrawStyle()
Definition: IParticleCollectionSettingsButton.cxx:191
IParticleCollectionSettingsButton::possibleChange_cutAllowedPt
void possibleChange_cutAllowedPt()
Definition: IParticleCollectionSettingsButton.cxx:370
IParticleCollectionSettingsButton::m_d
Imp * m_d
Definition: IParticleCollectionSettingsButton.h:67
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
IParticleCollectionSettingsButton::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: IParticleCollectionSettingsButton.cxx:359
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IParticleCollectionSettingsButton::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: IParticleCollectionSettingsButton.cxx:365
IParticleCollectionSettingsButton
Definition: IParticleCollectionSettingsButton.h:13
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
IParticleCollectionSettingsButton::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
Definition: IParticleCollectionSettingsButton.cxx:388
IParticleCollectionSettingsButton::lastAppliedBrightness
virtual double lastAppliedBrightness() const
Definition: IParticleCollectionSettingsButton.cxx:184
IParticleCollectionSettingsButton::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
Definition: IParticleCollectionSettingsButton.cxx:380
IParticleCollectionSettingsButton::setText
virtual void setText(const QString &)
Definition: IParticleCollectionSettingsButton.cxx:82
IParticleCollectionSettingsButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: IParticleCollectionSettingsButton.cxx:231
IParticleCollectionSettingsButton::~IParticleCollectionSettingsButton
virtual ~IParticleCollectionSettingsButton()
Definition: IParticleCollectionSettingsButton.cxx:127
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
IParticleCollectionSettingsButton::IParticleCollectionSettingsButton
IParticleCollectionSettingsButton(QWidget *parent=0, int dim=25)
Definition: IParticleCollectionSettingsButton.cxx:90
IParticleCollectionSettingsButton::restoreFromState
void restoreFromState(const QByteArray &)
Definition: IParticleCollectionSettingsButton.cxx:312
VP1Interval
Definition: VP1Interval.h:23
IParticleCollectionSettingsButton::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: IParticleCollectionSettingsButton.cxx:238
IParticleCollectionSettingsButton::cutAllowedPtChanged
void cutAllowedPtChanged(const VP1Interval &)
IParticleCollectionSettingsButton::lastAppliedChanged
void lastAppliedChanged()
IParticleCollectionSettingsButton::showEditMaterialDialog
void showEditMaterialDialog()
Definition: IParticleCollectionSettingsButton.cxx:151
IParticleCollectionSettingsButton::setMaterial
virtual bool setMaterial(SoMaterial *)
Definition: IParticleCollectionSettingsButton.cxx:162
IParticleCollectionSettingsButton::cutAllowedPhiChanged
void cutAllowedPhiChanged(const QList< VP1Interval > &)
IParticleCollectionSettingsButton::copyValuesFromMaterial
virtual void copyValuesFromMaterial(SoMaterial *)
Definition: IParticleCollectionSettingsButton.cxx:169
IParticleCollectionSettingsButton::Imp
Definition: IParticleCollectionSettingsButton.cxx:36
IParticleCollectionSettingsButton::drawStyle
SoDrawStyle * drawStyle() const
Definition: IParticleCollectionSettingsButton.cxx:211
IParticleCollectionSettingsButton::dropEvent
void dropEvent(QDropEvent *event)
Definition: IParticleCollectionSettingsButton.cxx:290