|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "ui_periparticlecollectionsettings_form.h"
9 #include "ui_settings_cuts_form.h"
17 #include "Inventor/nodes/SoDrawStyle.h"
18 #include "Inventor/nodes/SoLightModel.h"
24 #include <QDataStream>
25 #include <QMouseEvent>
26 #include <QDragEnterEvent>
71 editwindow =
new QWidget(0,Qt::WindowStaysOnTopHint);
116 setAcceptDrops(
true);
137 if (objectName().isEmpty())
138 setObjectName(
"IParticleCollectionSettingsButton");
200 if (
m_d->
lightModel->model.getValue()!=(
base?SoLightModel::BASE_COLOR:SoLightModel::PHONG)) {
225 if (
event->button() == Qt::LeftButton)
227 QPushButton::mousePressEvent(
event);
233 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
234 event->acceptProposedAction();
240 if (!(
event->buttons() & Qt::LeftButton))
243 < QApplication::startDragDistance())
246 QDrag *drag =
new QDrag(
this);
247 QMimeData *mimeData =
new QMimeData;
256 mimeData->setData(
"vp1/material", byteArray);
285 drag->setMimeData(mimeData);
286 drag->exec(Qt::CopyAction | Qt::MoveAction);
292 QByteArray
data =
event->mimeData()->data(
"vp1/material");
293 event->acceptProposedAction();
337 const double minFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_minpt_gev->value()*1000;
338 const double maxFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_maxpt_gev->value()*1000;
343 min = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
344 max = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
346 min = (
m_d->
editwindow_ui.checkBox_cut_maxpt->isChecked() ? -maxFromInterface : -std::numeric_limits<double>::infinity());
347 max = (
m_d->
editwindow_ui.checkBox_cut_minpt->isChecked() ? -minFromInterface : std::numeric_limits<double>::infinity());
372 messageVerbose(
"IParticleCollectionSettingsButton::possibleChange_cutAllowedPt() ");
virtual double lastAppliedShininess() const
char data[hepevt_bytes_allocation_ATLAS]
void cutAllowedEtaChanged(const VP1Interval &)
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
VP1Interval cutAllowedPt() const
void messageVerbose(const QString &) const
VP1Interval last_cutAllowedP
SoDrawStyle * trackDrawStyle
void mousePressEvent(QMouseEvent *event)
SoLightModel * lightModel() const
virtual double lastAppliedTransparency() const
void setDimension(int dim)
static QString str(const QString &s)
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
SoLightModel * lightModel
VP1Interval last_cutAllowedPt
QList< VP1Interval > last_cutAllowedPhi
void updateLightModel(bool)
void possibleChange_cutAllowedPt()
POOL::TEvent event(POOL::TEvent::kClassAccess)
VP1Interval cutAllowedEta() const
VP1Interval last_cutAllowedEta
Ui::IParticleCollectionSettingsForm editwindow_ui
QList< VP1Interval > cutAllowedPhi() const
void restore(QCheckBox *sb)
void possibleChange_cutAllowedPhi()
virtual double lastAppliedBrightness() const
void possibleChange_cutAllowedEta()
IVP1System * systemBase() const
virtual void setText(const QString &)
void dragEnterEvent(QDragEnterEvent *event)
void widgetHandled(QWidget *)
IParticleCollectionSettingsButton * theclass
virtual ~IParticleCollectionSettingsButton()
IParticleCollectionSettingsButton(QWidget *parent=0, int dim=25)
void warnUnrestored(QObject *)
void restoreFromState(const QByteArray &)
void mouseMoveEvent(QMouseEvent *event)
void cutAllowedPtChanged(const VP1Interval &)
void lastAppliedChanged()
void showEditMaterialDialog()
virtual bool setMaterial(SoMaterial *)
void cutAllowedPhiChanged(const QList< VP1Interval > &)
VP1MaterialButton * matButton
virtual void copyValuesFromMaterial(SoMaterial *)
SoDrawStyle * drawStyle() const
void dropEvent(QDropEvent *event)