ATLAS Offline Software
VertexCollectionSettingsButton.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_VERTEXCOLLSETTINGSBUTTON_H
6 #define VP1AODSYSTEMS_VERTEXCOLLSETTINGSBUTTON_H
7 
10 
11 class SoDrawStyle;
12 class SoLightModel;
13 
15 
16  Q_OBJECT
17 
18 public:
19 
20  VertexCollectionSettingsButton(QWidget * parent = 0, int dim = 25);//dim<=0 => Won't change sizepolicy
22 
23  void setDimension(int dim);
24 
25  // The below are necessary to fulfill the interface, but will just be passed onto the VP1MaterialButton owned by the VertexCollectionSettingsButton 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  // GUI for cuts
33  VP1Interval cutAllowedR() const;
34  VP1Interval cutAllowedY() const;
35  VP1Interval cutAllowedZ() const;
36 
37  //Overall drawstyles, complexities and light models:
38  SoDrawStyle * vertexDrawStyle() const;
39  SoLightModel * vertexLightModel() const;
40  int vertexSize() 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 
51  void vertexSizeChanged(int);
52 
53  public Q_SLOTS:
55  void setMaterialText(const QString&);
56 
57  protected Q_SLOTS:
58  void updateButton();
59 
60 protected:
61  // void initEditWindow();//!< Make sure that edit window is constructed
62  void mousePressEvent(QMouseEvent *event);
63  void mouseMoveEvent(QMouseEvent *event);
64  void dropEvent(QDropEvent *event);
65  void dragEnterEvent(QDragEnterEvent *event);
66 private:
67 
68  class Imp;
69  Imp * m_d;
70 
71  private Q_SLOTS:
72  void updateVertexDrawStyle();
73  void updateVertexLightModel(bool);
74  // void possibleChange_vertexSize();
78 
79 };
80 
81 #endif
82 
83 
VertexCollectionSettingsButton
Definition: VertexCollectionSettingsButton.h:14
VertexCollectionSettingsButton::setMaterial
virtual bool setMaterial(SoMaterial *)
Definition: VertexCollectionSettingsButton.cxx:181
VertexCollectionSettingsButton::m_d
Imp * m_d
Definition: VertexCollectionSettingsButton.h:68
VertexCollectionSettingsButton::possibleChange_cutAllowedR
void possibleChange_cutAllowedR()
Definition: VertexCollectionSettingsButton.cxx:479
VertexCollectionSettingsButton::cutAllowedY
VP1Interval cutAllowedY() const
Definition: VertexCollectionSettingsButton.cxx:429
VertexCollectionSettingsButton::vertexLightModel
SoLightModel * vertexLightModel() const
Definition: VertexCollectionSettingsButton.cxx:235
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
VertexCollectionSettingsButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event)
Definition: VertexCollectionSettingsButton.cxx:254
VertexCollectionSettingsButton::~VertexCollectionSettingsButton
virtual ~VertexCollectionSettingsButton()
Definition: VertexCollectionSettingsButton.cxx:146
VertexCollectionSettingsButton::setMaterialText
void setMaterialText(const QString &)
Definition: VertexCollectionSettingsButton.cxx:78
VertexCollectionSettingsButton::possibleChange_cutAllowedZ
void possibleChange_cutAllowedZ()
Definition: VertexCollectionSettingsButton.cxx:499
VP1MaterialButton.h
VertexCollectionSettingsButton::updateVertexDrawStyle
void updateVertexDrawStyle()
Definition: VertexCollectionSettingsButton.cxx:211
VertexCollectionSettingsButton::lastAppliedChanged
void lastAppliedChanged()
VertexCollectionSettingsButton::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: VertexCollectionSettingsButton.cxx:246
VertexCollectionSettingsButton::restoreFromState
void restoreFromState(const QByteArray &)
Definition: VertexCollectionSettingsButton.cxx:360
VertexCollectionSettingsButton::lastAppliedBrightness
virtual double lastAppliedBrightness() const
Definition: VertexCollectionSettingsButton.cxx:204
VertexCollectionSettingsButton::saveState
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
Definition: VertexCollectionSettingsButton.cxx:321
VertexCollectionSettingsButton::cutAllowedR
VP1Interval cutAllowedR() const
Definition: VertexCollectionSettingsButton.cxx:403
VertexCollectionSettingsButton::cutAllowedZ
VP1Interval cutAllowedZ() const
Definition: VertexCollectionSettingsButton.cxx:454
VertexCollectionSettingsButton::vertexSizeChanged
void vertexSizeChanged(int)
VertexCollectionSettingsButton::dropEvent
void dropEvent(QDropEvent *event)
Definition: VertexCollectionSettingsButton.cxx:313
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
VertexCollectionSettingsButton::cutAllowedZChanged
void cutAllowedZChanged(const VP1Interval &)
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VertexCollectionSettingsButton::cutAllowedRChanged
void cutAllowedRChanged(const VP1Interval &)
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
VertexCollectionSettingsButton::showEditMaterialDialog
void showEditMaterialDialog()
Definition: VertexCollectionSettingsButton.cxx:170
VertexCollectionSettingsButton::possibleChange_cutAllowedY
void possibleChange_cutAllowedY()
Definition: VertexCollectionSettingsButton.cxx:489
VertexCollectionSettingsButton::vertexDrawStyle
SoDrawStyle * vertexDrawStyle() const
Definition: VertexCollectionSettingsButton.cxx:230
VertexCollectionSettingsButton::updateVertexLightModel
void updateVertexLightModel(bool)
Definition: VertexCollectionSettingsButton.cxx:218
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
VertexCollectionSettingsButton::Imp
Definition: VertexCollectionSettingsButton.cxx:38
VertexCollectionSettingsButton::setDimension
void setDimension(int dim)
Definition: VertexCollectionSettingsButton.cxx:162
VertexCollectionSettingsButton::lastAppliedShininess
virtual double lastAppliedShininess() const
Definition: VertexCollectionSettingsButton.cxx:199
VertexCollectionSettingsButton::cutAllowedYChanged
void cutAllowedYChanged(const VP1Interval &)
VP1Interval
Definition: VP1Interval.h:23
VertexCollectionSettingsButton::lastAppliedTransparency
virtual double lastAppliedTransparency() const
Definition: VertexCollectionSettingsButton.cxx:194
VertexCollectionSettingsButton::copyValuesFromMaterial
virtual void copyValuesFromMaterial(SoMaterial *)
Definition: VertexCollectionSettingsButton.cxx:189
VertexCollectionSettingsButton::VertexCollectionSettingsButton
VertexCollectionSettingsButton(QWidget *parent=0, int dim=25)
Definition: VertexCollectionSettingsButton.cxx:86
VertexCollectionSettingsButton::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: VertexCollectionSettingsButton.cxx:261
TrackingPrimitives.h
VertexCollectionSettingsButton::updateButton
void updateButton()
Definition: VertexCollectionSettingsButton.cxx:154
VertexCollectionSettingsButton::vertexSize
int vertexSize() const
Definition: VertexCollectionSettingsButton.cxx:240