8 #include "ui_pertrackparticlecollectionsettings_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
198 setAcceptDrops(
true);
219 if (objectName().isEmpty())
220 setObjectName(
"TrackParticleCollectionSettingsButton");
367 messageVerbose(
"TrackParticleCollectionSettingsButton::colourParametersByType returning "+
str(
m_d->
editwindow_ui.checkBox_parameters_colourByType->isChecked()));
382 if (
event->button() == Qt::LeftButton)
384 QPushButton::mousePressEvent(
event);
390 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
391 event->acceptProposedAction();
397 if (!(
event->buttons() & Qt::LeftButton))
400 < QApplication::startDragDistance())
403 QDrag *drag =
new QDrag(
this);
404 QMimeData *mimeData =
new QMimeData;
413 mimeData->setData(
"vp1/material", byteArray);
442 drag->setMimeData(mimeData);
443 drag->exec(Qt::CopyAction | Qt::MoveAction);
449 QByteArray
data =
event->mimeData()->data(
"vp1/material");
450 event->acceptProposedAction();
517 const double minFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_minpt_gev->value()*1000;
518 const double maxFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_maxpt_gev->value()*1000;
523 min = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
524 max = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
526 min = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
527 max = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
564 if (!npixel&&!nsct&&!ntrt&&!nmuon)
566 l << npixel << nsct << ntrt << nmuon;
615 messageVerbose(
"TrackParticleCollectionSettingsButton::possibleChange_showParameters emitting showParametersChanged ");
621 messageVerbose(
"TrackParticleCollectionSettingsButton::possibleChange_parameterColours emitting colourParametersByTypeChanged ");