#include <IParticleCollectionSettingsButton.h>
|
| | IParticleCollectionSettingsButton (QWidget *parent=0, int dim=25) |
| virtual | ~IParticleCollectionSettingsButton () |
| void | setDimension (int dim) |
| void | initEditWindow () |
| virtual bool | setMaterial (SoMaterial *) |
| virtual void | copyValuesFromMaterial (SoMaterial *) |
| virtual double | lastAppliedTransparency () const |
| virtual double | lastAppliedShininess () const |
| virtual double | lastAppliedBrightness () const |
| VP1Interval | cutAllowedPt () const |
| VP1Interval | cutAllowedEta () const |
| QList< VP1Interval > | cutAllowedPhi () const |
| SoDrawStyle * | drawStyle () const |
| SoLightModel * | lightModel () const |
| QByteArray | saveState () const |
| | fill out with the state of the object (used for drag and drop etc)
|
| void | restoreFromState (const QByteArray &) |
| void | setSystemBasePointer (IVP1System *sys) |
| void | message (const QString &) const |
| void | message (const QStringList &, const QString &addtoend="") const |
| void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
| void | messageDebug (const QString &) const |
| void | messageDebug (const QStringList &, const QString &addtoend="") const |
| void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
| void | messageVerbose (const QString &) const |
| void | messageVerbose (const QStringList &, const QString &addtoend="") const |
| void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
| IVP1System * | systemBase () const |
| const QString & | helperClassName () const |
|
| static bool | verbose () |
| static void | warnUndeletedInstances () |
| static QString | str (const QString &s) |
| static QString | str (const char *c) |
| static QString | str (const bool b) |
| static QString | str (const QColor &) |
| static QString | str (const SbColor &) |
| static QString | str (const VP1Interval &) |
| static QString | str (const SbVec2d &) |
| static QString | str (const SbVec2f &) |
| static QString | str (const SbVec2s &) |
| static QString | str (const SbVec3d &) |
| static QString | str (const SbVec3f &) |
| static QString | str (const SbVec3s &) |
| static QString | str (const SbVec4d &) |
| static QString | str (const SbVec4f &) |
| static QString | str (short int n) |
| static QString | str (unsigned short int n) |
| static QString | str (long n) |
| static QString | str (ulong n) |
| static QString | str (int n) |
| static QString | str (uint n) |
| static QString | str (qlonglong n) |
| static QString | str (qulonglong n) |
| static QString | str (const double &d) |
| static QString | str (const float &f) |
| static QString | str (const void *) |
| template<class T> |
| static QString | str (const T *t) |
| template<class T> |
| static QString | str (const QFlags< T > &f) |
| template<class T> |
| static QString | str (const HepGeom::BasicVector3D< T > &t) |
| static QString | str (const Amg::Vector3D &t) |
| template<class T> |
| static QString | str (const QList< T > &t) |
◆ IParticleCollectionSettingsButton()
| IParticleCollectionSettingsButton::IParticleCollectionSettingsButton |
( |
QWidget * | parent = 0, |
|
|
int | dim = 25 ) |
Definition at line 90 of file IParticleCollectionSettingsButton.cxx.
92{
94
96 m_d->initEditWindow();
97
98
105
106
108
109
111
116 setAcceptDrops(true);
117
119
120}
void lastAppliedChanged()
void possibleChange_cutAllowedPt()
void possibleChange_cutAllowedEta()
void possibleChange_cutAllowedPhi()
void showEditMaterialDialog()
◆ ~IParticleCollectionSettingsButton()
| IParticleCollectionSettingsButton::~IParticleCollectionSettingsButton |
( |
| ) |
|
|
virtual |
◆ copyValuesFromMaterial()
| void IParticleCollectionSettingsButton::copyValuesFromMaterial |
( |
SoMaterial * | mat | ) |
|
|
virtual |
◆ cutAllowedEta()
| VP1Interval IParticleCollectionSettingsButton::cutAllowedEta |
( |
| ) |
const |
◆ cutAllowedEtaChanged
| void IParticleCollectionSettingsButton::cutAllowedEtaChanged |
( |
const VP1Interval & | | ) |
|
|
signal |
◆ cutAllowedPhi()
| QList< VP1Interval > IParticleCollectionSettingsButton::cutAllowedPhi |
( |
| ) |
const |
◆ cutAllowedPhiChanged
| void IParticleCollectionSettingsButton::cutAllowedPhiChanged |
( |
const QList< VP1Interval > & | | ) |
|
|
signal |
◆ cutAllowedPt()
| VP1Interval IParticleCollectionSettingsButton::cutAllowedPt |
( |
| ) |
const |
Definition at line 325 of file IParticleCollectionSettingsButton.cxx.
326{
327 if (!
m_d->editwindow_ui.checkBox_cut_minpt)
328 return VP1Interval();
329
330
331
332
333
334
335 bool isPCut =
m_d->editwindow_ui.comboBox_momtype->currentText()==
"P";
336
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;
339
341 if (!isPCut) {
342
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());
345 } else {
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());
348 }
349
350
351
353 return VP1Interval();
354
355 return VP1Interval(
min,
max );
356}
◆ cutAllowedPtChanged
| void IParticleCollectionSettingsButton::cutAllowedPtChanged |
( |
const VP1Interval & | | ) |
|
|
signal |
◆ dragEnterEvent()
| void IParticleCollectionSettingsButton::dragEnterEvent |
( |
QDragEnterEvent * | event | ) |
|
|
protected |
◆ drawStyle()
| SoDrawStyle * IParticleCollectionSettingsButton::drawStyle |
( |
| ) |
const |
◆ dropEvent()
| void IParticleCollectionSettingsButton::dropEvent |
( |
QDropEvent * | event | ) |
|
|
protected |
Definition at line 290 of file IParticleCollectionSettingsButton.cxx.
291{
292 QByteArray
data =
event->mimeData()->data(
"vp1/material");
293 event->acceptProposedAction();
295}
char data[hepevt_bytes_allocation_ATLAS]
void restoreFromState(const QByteArray &)
◆ helperClassName()
| const QString & VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ initEditWindow()
| void IParticleCollectionSettingsButton::initEditWindow |
( |
| ) |
|
◆ lastAppliedBrightness()
| double IParticleCollectionSettingsButton::lastAppliedBrightness |
( |
| ) |
const |
|
virtual |
◆ lastAppliedChanged
| void IParticleCollectionSettingsButton::lastAppliedChanged |
( |
| ) |
|
|
signal |
◆ lastAppliedShininess()
| double IParticleCollectionSettingsButton::lastAppliedShininess |
( |
| ) |
const |
|
virtual |
◆ lastAppliedTransparency()
| double IParticleCollectionSettingsButton::lastAppliedTransparency |
( |
| ) |
const |
|
virtual |
◆ lightModel()
| SoLightModel * IParticleCollectionSettingsButton::lightModel |
( |
| ) |
const |
◆ message() [1/3]
| void VP1HelperClassBase::message |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 49 of file VP1HelperClassBase.cxx.
50{
54 else
56 } else {
59 else
61 }
62}
static const char * prefix_msg()
static QString str(const QString &s)
◆ message() [2/3]
| void VP1HelperClassBase::message |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 131 of file VP1HelperClassBase.cxx.
132{
133 if (addtostart.isEmpty()) {
135 return;
136 }
137 if (addtoend.isEmpty()) {
138 for (const QString& s : l)
140 } else {
141 for (const QString& s : l)
142 message(addtostart+s+addtoend);
143 }
144}
void message(const QString &) const
◆ message() [3/3]
| void VP1HelperClassBase::message |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 91 of file VP1HelperClassBase.cxx.
92{
93 if (addtoend.isEmpty()) {
94 for (const QString& s : l)
96 } else {
97 for (const QString& s : l)
99 }
100}
◆ messageDebug() [1/3]
| void VP1HelperClassBase::messageDebug |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 65 of file VP1HelperClassBase.cxx.
66{
68 return;
69 std::string sysstring(
m_system ?
" in "+
m_system->name().toStdString() : std::string(
""));
72 } else {
74 }
75}
static const char * prefix_debug()
◆ messageDebug() [2/3]
| void VP1HelperClassBase::messageDebug |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 147 of file VP1HelperClassBase.cxx.
148{
150 return;
151 if (addtostart.isEmpty()) {
153 return;
154 }
155 if (addtoend.isEmpty()) {
156 for (const QString& s : l)
158 } else {
159 for (const QString& s : l)
161 }
162}
void messageDebug(const QString &) const
◆ messageDebug() [3/3]
| void VP1HelperClassBase::messageDebug |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 103 of file VP1HelperClassBase.cxx.
104{
106 return;
107 if (addtoend.isEmpty()) {
108 for (const QString& s : l)
110 } else {
111 for (const QString& s : l)
113 }
114}
◆ messageVerbose() [1/3]
| void VP1HelperClassBase::messageVerbose |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 78 of file VP1HelperClassBase.cxx.
79{
81 return;
82 std::string sysstring(
m_system ?
" in "+
m_system->name().toStdString() : std::string(
""));
85 } else {
87 }
88}
static const char * prefix_verbose()
◆ messageVerbose() [2/3]
| void VP1HelperClassBase::messageVerbose |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 165 of file VP1HelperClassBase.cxx.
166{
168 return;
169 if (addtostart.isEmpty()) {
171 return;
172 }
173 if (addtoend.isEmpty()) {
174 for (const QString& s : l)
176 } else {
177 for (const QString& s : l)
179 }
180}
void messageVerbose(const QString &) const
◆ messageVerbose() [3/3]
| void VP1HelperClassBase::messageVerbose |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 117 of file VP1HelperClassBase.cxx.
118{
120 return;
121 if (addtoend.isEmpty()) {
122 for (const QString& s : l)
124 } else {
125 for (const QString& s : l)
127 }
128}
◆ mouseMoveEvent()
| void IParticleCollectionSettingsButton::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
protected |
Definition at line 238 of file IParticleCollectionSettingsButton.cxx.
239{
240 if (!(
event->buttons() & Qt::LeftButton))
241 return;
242 if ((
event->pos() -
m_d->dragStartPosition).manhattanLength()
243 < QApplication::startDragDistance())
244 return;
245
246 QDrag *drag = new QDrag(this);
247 QMimeData *mimeData = new QMimeData;
248
250
252
254
255
256 mimeData->setData("vp1/material", byteArray);
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285 drag->setMimeData(mimeData);
286 drag->exec(Qt::CopyAction | Qt::MoveAction);
287}
QByteArray saveState() const
fill out with the state of the object (used for drag and drop etc)
◆ mousePressEvent()
| void IParticleCollectionSettingsButton::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
protected |
◆ possibleChange_cutAllowedEta
| void IParticleCollectionSettingsButton::possibleChange_cutAllowedEta |
( |
| ) |
|
|
privateslot |
◆ possibleChange_cutAllowedPhi
| void IParticleCollectionSettingsButton::possibleChange_cutAllowedPhi |
( |
| ) |
|
|
privateslot |
◆ possibleChange_cutAllowedPt
| void IParticleCollectionSettingsButton::possibleChange_cutAllowedPt |
( |
| ) |
|
|
privateslot |
◆ restoreFromState()
| void IParticleCollectionSettingsButton::restoreFromState |
( |
const QByteArray & | ba | ) |
|
|
virtual |
◆ saveState()
| QByteArray IParticleCollectionSettingsButton::saveState |
( |
| ) |
const |
|
virtual |
fill out with the state of the object (used for drag and drop etc)
Implements VP1MaterialButtonBase.
Definition at line 298 of file IParticleCollectionSettingsButton.cxx.
298 {
299
300
302
304
305
306
310}
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
◆ setDimension()
| void IParticleCollectionSettingsButton::setDimension |
( |
int | dim | ) |
|
◆ setHelperClassName()
| void VP1HelperClassBase::setHelperClassName |
( |
const QString & | n | ) |
|
|
inlineprotectedinherited |
◆ setMaterial()
| bool IParticleCollectionSettingsButton::setMaterial |
( |
SoMaterial * | mat | ) |
|
|
virtual |
◆ setSystemBasePointer()
| void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * | sys | ) |
|
|
inherited |
Definition at line 197 of file VP1HelperClassBase.cxx.
198{
202 }
203}
static std::map< VP1HelperClassBase *, QString > vp1helperclassbase_instanceMap
◆ setText
| void IParticleCollectionSettingsButton::setText |
( |
const QString & | t | ) |
|
|
virtualslot |
◆ showEditMaterialDialog
| void IParticleCollectionSettingsButton::showEditMaterialDialog |
( |
| ) |
|
|
slot |
◆ str() [1/30]
◆ str() [2/30]
| QString VP1String::str |
( |
const bool | b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53{
return b?
"True":
"False"; }
◆ str() [3/30]
| QString VP1String::str |
( |
const char * | c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
| QString VP1String::str |
( |
const double & | d | ) |
|
|
inlinestaticinherited |
Definition at line 81 of file VP1String.h.
81{ return QString::number(d); }
◆ str() [5/30]
| QString VP1String::str |
( |
const float & | f | ) |
|
|
inlinestaticinherited |
Definition at line 82 of file VP1String.h.
82{ return QString::number(f); }
◆ str() [6/30]
◆ str() [7/30]
| QString VP1String::str |
( |
const QColor & | c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
31{
32 return c.isValid() ?
c.name() :
"Invalid";
33}
◆ str() [8/30]
template<class T>
| QString VP1String::str |
( |
const QFlags< T > & | f | ) |
|
|
inlinestaticinherited |
Definition at line 91 of file VP1String.h.
91{ return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }
◆ str() [9/30]
template<class T>
| QString VP1String::str |
( |
const QList< T > & | t | ) |
|
|
inlinestaticinherited |
Definition at line 102 of file VP1String.h.
102{
return "QList of size"+QString::number(
t.size()); }
◆ str() [10/30]
| QString VP1String::str |
( |
const QString & | s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
| QString VP1String::str |
( |
const SbColor & | c | ) |
|
|
staticinherited |
Definition at line 36 of file VP1String.cxx.
37{
39}
static QColor sbcol2qcol(const SbColor &)
◆ str() [12/30]
| QString VP1String::str |
( |
const SbVec2d & | v | ) |
|
|
staticinherited |
◆ str() [13/30]
| QString VP1String::str |
( |
const SbVec2f & | v | ) |
|
|
staticinherited |
◆ str() [14/30]
| QString VP1String::str |
( |
const SbVec2s & | v | ) |
|
|
staticinherited |
◆ str() [15/30]
| QString VP1String::str |
( |
const SbVec3d & | v | ) |
|
|
staticinherited |
◆ str() [16/30]
| QString VP1String::str |
( |
const SbVec3f & | v | ) |
|
|
staticinherited |
◆ str() [17/30]
| QString VP1String::str |
( |
const SbVec3s & | v | ) |
|
|
staticinherited |
◆ str() [18/30]
| QString VP1String::str |
( |
const SbVec4d & | v | ) |
|
|
staticinherited |
◆ str() [19/30]
| QString VP1String::str |
( |
const SbVec4f & | v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T>
| QString VP1String::str |
( |
const T * | t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87{
return str(
static_cast<const void*
>(t)); }
◆ str() [21/30]
| QString VP1String::str |
( |
const void * | p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
49{
50 if (p) {
53
54 return QString (
s.str().c_str());
55 } else {
56 return "NULL";
57 }
58}
◆ str() [22/30]
◆ str() [23/30]
| QString VP1String::str |
( |
int | n | ) |
|
|
inlinestaticinherited |
Definition at line 77 of file VP1String.h.
77{ return QString::number(n); }
◆ str() [24/30]
| QString VP1String::str |
( |
long | n | ) |
|
|
inlinestaticinherited |
Definition at line 75 of file VP1String.h.
75{ return QString::number(n); }
◆ str() [25/30]
| QString VP1String::str |
( |
qlonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 79 of file VP1String.h.
79{ return QString::number(n); }
◆ str() [26/30]
| QString VP1String::str |
( |
qulonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 80 of file VP1String.h.
80{ return QString::number(n); }
◆ str() [27/30]
| QString VP1String::str |
( |
short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 73 of file VP1String.h.
73{ return QString::number(n); }
◆ str() [28/30]
| QString VP1String::str |
( |
uint | n | ) |
|
|
inlinestaticinherited |
Definition at line 78 of file VP1String.h.
78{ return QString::number(n); }
◆ str() [29/30]
| QString VP1String::str |
( |
ulong | n | ) |
|
|
inlinestaticinherited |
Definition at line 76 of file VP1String.h.
76{ return QString::number(n); }
◆ str() [30/30]
| QString VP1String::str |
( |
unsigned short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 74 of file VP1String.h.
74{ return QString::number(n); }
◆ systemBase()
| IVP1System * VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ updateButton
| void IParticleCollectionSettingsButton::updateButton |
( |
| ) |
|
|
protectedslot |
◆ updateDrawStyle
| void IParticleCollectionSettingsButton::updateDrawStyle |
( |
| ) |
|
|
privateslot |
◆ updateLightModel
| void IParticleCollectionSettingsButton::updateLightModel |
( |
bool | base | ) |
|
|
privateslot |
Definition at line 198 of file IParticleCollectionSettingsButton.cxx.
199{
200 if (
m_d->lightModel->model.getValue()!=(
base?SoLightModel::BASE_COLOR:SoLightModel::PHONG)) {
203 m_d->lightModel->model.setValue(SoLightModel::BASE_COLOR);
204 else
205 m_d->lightModel->model.setValue(SoLightModel::PHONG);
206 }
207}
◆ verbose()
| bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnUndeletedInstances()
| void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
184{
186 return;
188
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->second+
")").toStdString()<<std::endl;
193 }
194}
◆ m_d
| Imp* IParticleCollectionSettingsButton::m_d |
|
private |
◆ m_helpername
| QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files: