ATLAS Offline Software
Loading...
Searching...
No Matches
MissingEtCollectionSettingsButton.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_MISSINGETCOLLSETTINGSBUTTON_H
6#define VP1AODSYSTEMS_MISSINGETCOLLSETTINGSBUTTON_H
7
8//#include "VP1Base/VP1MaterialButton.h"
10
12
13class SoDrawStyle;
14class SoLightModel;
15
16//class MissingEtCollectionSettingsButton : public VP1MaterialButtonBase {
18
19 Q_OBJECT
20
21public:
22
23 MissingEtCollectionSettingsButton(QWidget * parent = 0, int dim = 25);//dim<=0 => Won't change sizepolicy
25
26 void setDimension(int dim);
27
28 // The below are necessary to fulfill the interface, but will just be passed onto the VP1MaterialButton owned by the MissingEtCollectionSettingsButton form
29 virtual bool setMaterial(SoMaterial*);
30 virtual void copyValuesFromMaterial(SoMaterial*);
31 virtual double lastAppliedTransparency() const ;
32 virtual double lastAppliedShininess() const ;
33 virtual double lastAppliedBrightness() const;
34
35 // GUI for cuts
38
39 //Overall drawstyles, complexities and light models:
40// SoDrawStyle * vertexDrawStyle() const;
41// SoLightModel * vertexLightModel() const;
42
43 // Getters
44 float metLength() const;
45 float metThickness() const;
46 QList<VP1Interval> cutAllowedPhi() const;
47
48 QByteArray saveState() const;
49 void restoreFromState( const QByteArray& );
50
51signals:
52 void lastAppliedChanged(); // emitted when something related to material changes
53 void cutAllowedPhiChanged(const QList<VP1Interval>&);
54
55// void cutAllowedRChanged(const VP1Interval&);
56// void cutAllowedZChanged(const VP1Interval&);
57 void metSizeChanged(int);
58
59public Q_SLOTS:
61 void setMaterialText(const QString&);
62
63protected Q_SLOTS:
64 void updateButton();
65
66protected:
67 // void initEditWindow();//!< Make sure that edit window is constructed
68 void mousePressEvent(QMouseEvent *event);
69 void mouseMoveEvent(QMouseEvent *event);
70 void dropEvent(QDropEvent *event);
71 void dragEnterEvent(QDragEnterEvent *event);
72private:
73
74 class Imp;
76
77 private Q_SLOTS:
79 void updateVertexLightModel(bool);
80// void possibleChange_vertexSize();
81// void possibleChange_cutAllowedR();
82// void possibleChange_cutAllowedZ();
83
84};
85
86#endif
87
88
VP1Interval cutAllowedZ() const
VP1Interval cutAllowedR() const
MissingEtCollectionSettingsButton(QWidget *parent=0, int dim=25)
void cutAllowedPhiChanged(const QList< VP1Interval > &)
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
VP1CollectionSettingsButtonBase(QWidget *parent=0, int dim=25)