10 #include "ui_periparticlecollectionsettings_form.h"
11 #include "ui_percaloclustercollectionsettings_form.h"
20 #include "Inventor/nodes/SoDrawStyle.h"
21 #include "Inventor/nodes/SoLightModel.h"
22 #include "Inventor/nodes/SoMaterial.h"
28 #include <QDataStream>
29 #include <QMouseEvent>
30 #include <QDragEnterEvent>
38 #include "GeoModelKernel/Units.h"
39 #define SYSTEM_OF_UNITS GeoModelKernelUnits // --> 'GeoModelKernelUnits::cm'
41 #include "GaudiKernel/SystemOfUnits.h"
42 #define SYSTEM_OF_UNITS Gaudi::Units // --> 'Gaudi::Units::cm'
118 editwindow =
new QWidget(0,Qt::WindowStaysOnTopHint);
122 auto customsettings =
new QWidget();
292 setAcceptDrops(
true);
318 if (objectName().isEmpty())
319 setObjectName(
"CaloClusterCollectionSettingsButton");
377 if (
event->button() == Qt::LeftButton)
379 QPushButton::mousePressEvent(
event);
385 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
386 event->acceptProposedAction();
392 if (!(
event->buttons() & Qt::LeftButton))
395 < QApplication::startDragDistance())
398 QDrag *drag =
new QDrag(
this);
399 QMimeData *mimeData =
new QMimeData;
408 mimeData->setData(
"vp1/material", byteArray);
437 drag->setMimeData(mimeData);
438 drag->exec(Qt::CopyAction | Qt::MoveAction);
444 QByteArray
data =
event->mimeData()->data(
"vp1/material");
445 event->acceptProposedAction();
452 messageDebug(
"CaloClusterCollectionSettingsButton::saveState()");
502 messageDebug(
"CaloClusterCollectionSettingsButton::restoreFromState()");
623 min = (
m_d->
ui_commonsettings.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
624 max = (
m_d->
ui_commonsettings.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
686 messageDebug(
"CaloClusterCollectionSettingsButton::possibleChange_scale() ");
709 messageVerbose(
"CaloClusterCollectionSettingsButton::possibleChange_showVolumeOutLines() ");
711 message(
"CaloCluster - possibleChange_showVolumeOutLines(). to be implemented...");
718 messageVerbose(
"CaloClusterCollectionSettingsButton::possibleChange_useTransverseEnergies() ");
720 message(
"CaloCluster - possibleChange_useTransverseEnergies(). to be implemented...");
737 if ( highestvisibleenergy < m_d->coll->highestVisibleClusterEnergy() )
758 if (scl!=scl||scl>maxscale)
762 return QPair<bool,double>(logscale,scl);