ATLAS Offline Software
Loading...
Searching...
No Matches
ElectronCollectionSettingsButton::Imp Class Reference
Collaboration diagram for ElectronCollectionSettingsButton::Imp:

Public Member Functions

 Imp ()
void initEditWindow ()

Public Attributes

ElectronCollectionSettingsButtontheclass
QWidget * editwindow
Ui::ElectronCollectionSettingsForm editwindow_ui {}
VP1MaterialButtonmatButton
VP1MaterialButtondefaultParametersMatButton
QList< VP1MaterialButton * > parameterTypeMatButtons
SoDrawStyle * trackDrawStyle
SoLightModel * trackLightModel
double last_trackTubeRadius
VP1Interval last_cutAllowedPt
VP1Interval last_cutAllowedP
VP1Interval last_cutAllowedEta
QList< VP1Intervallast_cutAllowedPhi
QList< unsigned > last_cutRequiredNHits
bool last_cutOnlyVertexAssocTracks
bool last_useDefaultCuts
int dim
QPoint dragStartPosition

Detailed Description

Definition at line 38 of file ElectronCollectionSettingsButton.cxx.

Constructor & Destructor Documentation

◆ Imp()

ElectronCollectionSettingsButton::Imp::Imp ( )
inline

Definition at line 40 of file ElectronCollectionSettingsButton.cxx.

43 //nop
44 }

Member Function Documentation

◆ initEditWindow()

void ElectronCollectionSettingsButton::Imp::initEditWindow ( )

Definition at line 74 of file ElectronCollectionSettingsButton.cxx.

75{
76 if (editwindow)
77 return;
78 theclass->messageVerbose("Initialising material editor dialog");
79 editwindow = new QWidget(0,Qt::WindowStaysOnTopHint);
81 matButton = editwindow_ui.pushButton_matButton;
82
83 defaultParametersMatButton = editwindow_ui.matButton_parametersDefaultColour;
84 SoMaterial* defParamMat = new SoMaterial; // Default (for the moment)
85 defaultParametersMatButton->setMaterial(defParamMat);
86 editwindow_ui.frame_parameterTypeColours->hide();
87
88 // Set the default colours for the "colour by parameter type" section
89 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_2);
90 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_3);
91 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_4);
92 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_5);
93 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_6);
94 parameterTypeMatButtons.append(editwindow_ui.pushButton_matButton_parameters_default_colour_7);
95 QList<QColor> colours;
96 colours.append(QColor(0.0, 170.0, 255.0));
97 colours.append(QColor(170, 85, 255));
98 colours.append(QColor(255, 85, 0));
99 colours.append(QColor(170, 0, 127));
100 colours.append(QColor(170, 255, 0));
101 colours.append(QColor(85, 0, 255));
102
103 for (unsigned int i=0; i<6;++i){
104 SoMaterial * mat = VP1MaterialButton::createMaterial(colours.at(i));
105 (parameterTypeMatButtons.at(i))->setMaterial(mat);
106 }
107}
static SoMaterial * createMaterial(const QColor &, const double &brightness=0.0, const double &transp=0.0)
int colours[6]
Definition computils.cxx:46

Member Data Documentation

◆ defaultParametersMatButton

VP1MaterialButton* ElectronCollectionSettingsButton::Imp::defaultParametersMatButton

Definition at line 50 of file ElectronCollectionSettingsButton.cxx.

◆ dim

int ElectronCollectionSettingsButton::Imp::dim

Definition at line 67 of file ElectronCollectionSettingsButton.cxx.

◆ dragStartPosition

QPoint ElectronCollectionSettingsButton::Imp::dragStartPosition

Definition at line 68 of file ElectronCollectionSettingsButton.cxx.

◆ editwindow

QWidget* ElectronCollectionSettingsButton::Imp::editwindow

Definition at line 46 of file ElectronCollectionSettingsButton.cxx.

◆ editwindow_ui

Ui::ElectronCollectionSettingsForm ElectronCollectionSettingsButton::Imp::editwindow_ui {}

Definition at line 47 of file ElectronCollectionSettingsButton.cxx.

47{};

◆ last_cutAllowedEta

VP1Interval ElectronCollectionSettingsButton::Imp::last_cutAllowedEta

Definition at line 61 of file ElectronCollectionSettingsButton.cxx.

◆ last_cutAllowedP

VP1Interval ElectronCollectionSettingsButton::Imp::last_cutAllowedP

Definition at line 60 of file ElectronCollectionSettingsButton.cxx.

◆ last_cutAllowedPhi

QList<VP1Interval> ElectronCollectionSettingsButton::Imp::last_cutAllowedPhi

Definition at line 62 of file ElectronCollectionSettingsButton.cxx.

◆ last_cutAllowedPt

VP1Interval ElectronCollectionSettingsButton::Imp::last_cutAllowedPt

Definition at line 59 of file ElectronCollectionSettingsButton.cxx.

◆ last_cutOnlyVertexAssocTracks

bool ElectronCollectionSettingsButton::Imp::last_cutOnlyVertexAssocTracks

Definition at line 64 of file ElectronCollectionSettingsButton.cxx.

◆ last_cutRequiredNHits

QList<unsigned> ElectronCollectionSettingsButton::Imp::last_cutRequiredNHits

Definition at line 63 of file ElectronCollectionSettingsButton.cxx.

◆ last_trackTubeRadius

double ElectronCollectionSettingsButton::Imp::last_trackTubeRadius

Definition at line 58 of file ElectronCollectionSettingsButton.cxx.

◆ last_useDefaultCuts

bool ElectronCollectionSettingsButton::Imp::last_useDefaultCuts

Definition at line 65 of file ElectronCollectionSettingsButton.cxx.

◆ matButton

VP1MaterialButton* ElectronCollectionSettingsButton::Imp::matButton

Definition at line 49 of file ElectronCollectionSettingsButton.cxx.

◆ parameterTypeMatButtons

QList<VP1MaterialButton*> ElectronCollectionSettingsButton::Imp::parameterTypeMatButtons

Definition at line 52 of file ElectronCollectionSettingsButton.cxx.

◆ theclass

ElectronCollectionSettingsButton* ElectronCollectionSettingsButton::Imp::theclass

Definition at line 45 of file ElectronCollectionSettingsButton.cxx.

◆ trackDrawStyle

SoDrawStyle* ElectronCollectionSettingsButton::Imp::trackDrawStyle

Definition at line 54 of file ElectronCollectionSettingsButton.cxx.

◆ trackLightModel

SoLightModel* ElectronCollectionSettingsButton::Imp::trackLightModel

Definition at line 55 of file ElectronCollectionSettingsButton.cxx.


The documentation for this class was generated from the following file: