8 #include "ui_perelectroncollectionsettings_form.h"
9 #include "ui_settings_cuts_form.h"
18 #include "Inventor/nodes/SoDrawStyle.h"
19 #include "Inventor/nodes/SoLightModel.h"
20 #include "Inventor/nodes/SoMaterial.h"
26 #include <QDataStream>
27 #include <QMouseEvent>
28 #include <QDragEnterEvent>
79 editwindow =
new QWidget(0,Qt::WindowStaysOnTopHint);
84 SoMaterial* defParamMat =
new SoMaterial;
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));
103 for (
unsigned int i=0;
i<6;++
i){
148 #if defined BUILDVP1LIGHT
153 m_d->
editwindow_ui.radioButton_extrapolate->setToolTip(
"Not available in VP1 Light");
156 #endif //BUILDVP1LIGHT
199 setAcceptDrops(
true);
220 if (objectName().isEmpty())
221 setObjectName(
"ElectronCollectionSettingsButton");
383 if (
event->button() == Qt::LeftButton)
385 QPushButton::mousePressEvent(
event);
391 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
392 event->acceptProposedAction();
398 if (!(
event->buttons() & Qt::LeftButton))
401 < QApplication::startDragDistance())
404 QDrag *drag =
new QDrag(
this);
405 QMimeData *mimeData =
new QMimeData;
414 mimeData->setData(
"vp1/material", byteArray);
443 drag->setMimeData(mimeData);
444 drag->exec(Qt::CopyAction | Qt::MoveAction);
450 QByteArray
data =
event->mimeData()->data(
"vp1/material");
451 event->acceptProposedAction();
518 const double minFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_minpt_gev->value()*1000;
519 const double maxFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_maxpt_gev->value()*1000;
524 min = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
525 max = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
527 min = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
528 max = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
565 if (!npixel&&!nsct&&!ntrt&&!nmuon)
567 l << npixel << nsct << ntrt << nmuon;
616 messageVerbose(
"ElectronCollectionSettingsButton::possibleChange_showParameters emitting showParametersChanged ");
622 messageVerbose(
"ElectronCollectionSettingsButton::possibleChange_parameterColours emitting colourParametersByTypeChanged ");