ATLAS Offline Software
Loading...
Searching...
No Matches
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
11class SoDrawStyle;
12class SoLightModel;
13
15
16 Q_OBJECT
17
18public:
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
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
52
53 public Q_SLOTS:
55 void setMaterialText(const QString&);
56
57 protected Q_SLOTS:
58 void updateButton();
59
60protected:
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);
66private:
67
68 class Imp;
70
71 private Q_SLOTS:
73 void updateVertexLightModel(bool);
74 // void possibleChange_vertexSize();
78
79};
80
81#endif
82
83
VP1MaterialButtonBase(QWidget *parent, IVP1System *sys=0, const QString &helpername="")
void cutAllowedZChanged(const VP1Interval &)
void cutAllowedYChanged(const VP1Interval &)
void cutAllowedRChanged(const VP1Interval &)
VertexCollectionSettingsButton(QWidget *parent=0, int dim=25)
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)