#include <TrackCollWidget.h>
|
| | TrackCollWidget (QWidget *parent=0) |
| virtual | ~TrackCollWidget () |
| void | clear (bool deleteCollections=true, bool deleteGuiElements=false) |
| void | addStateInfo (const VP1CollStates &, bool overwritesExisting=true) |
| void | setCollections (const QList< VP1Collection * > &, bool applySavedStates=true) |
| template<class collT> |
| void | setCollections (const QList< collT * > &colls, bool applySavedStates=true) |
| void | addCollections (const QList< VP1Collection * > &, bool applySavedStates=true) |
| template<class collT> |
| void | addCollections (const QList< collT * > &colls, bool applySavedStates=true) |
| VP1CollStates | states () const |
| const QList< VP1Collection * > & | collections () const |
| template<class collT> |
| QList< collT * > | collections () const |
| int | appropriateFixedWidth () const |
| QList< qint32 > | visibleStdCollectionTypes () const |
| QList< VP1StdCollection * > | visibleStdCollections () const |
| 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) |
Definition at line 23 of file TrackCollWidget.h.
◆ TrackCollWidget()
| TrackCollWidget::TrackCollWidget |
( |
QWidget * | parent = 0 | ) |
|
|
inline |
◆ ~TrackCollWidget()
| virtual TrackCollWidget::~TrackCollWidget |
( |
| ) |
|
|
inlinevirtual |
◆ addCollections() [1/2]
template<class collT>
| void VP1CollectionWidget::addCollections |
( |
const QList< collT * > & | colls, |
|
|
bool | applySavedStates = true ) |
|
inlineinherited |
Definition at line 62 of file VP1CollectionWidget.h.
62 {
64 }
static QList< VP1Collection * > toBaseCollList(const QList< T * > &)
◆ addCollections() [2/2]
| void VP1CollectionWidget::addCollections |
( |
const QList< VP1Collection * > & | cols, |
|
|
bool | applySavedStates = true ) |
|
inherited |
Definition at line 237 of file VP1CollectionWidget.cxx.
238{
240
242
243 m_d->repopulateGUIFromCollections();
244
245 if (applySavedStates)
247
249 for (VP1Collection* col : cols) {
250 VP1StdCollection* stdcol = dynamic_cast<VP1StdCollection*>(col);
251 if (stdcol)
253 }
254
255}
static void applyStates(const QList< VP1Collection * > &, const VP1CollStates &)
void messageVerbose(const QString &) const
static QString str(const QString &s)
◆ addStateInfo()
| void VP1CollectionWidget::addStateInfo |
( |
const VP1CollStates & | newinfo, |
|
|
bool | overwritesExisting = true ) |
|
inherited |
Definition at line 289 of file VP1CollectionWidget.cxx.
290{
291 m_d->updateStatesWithCurrentInfo();
292 QMapIterator<QByteArray,QByteArray>
it(newinfo);
293 while (
it.hasNext()) {
295 if (!overwritesExisting&&
m_d->states.contains(
it.key()))
296 continue;
297 m_d->states.insert(
it.key(),
it.value());
298 }
299 if (overwritesExisting)
301}
◆ appropriateFixedWidth()
| int VP1CollectionWidget::appropriateFixedWidth |
( |
| ) |
const |
|
inherited |
◆ clear()
| void VP1CollectionWidget::clear |
( |
bool | deleteCollections = true, |
|
|
bool | deleteGuiElements = false ) |
|
inherited |
Definition at line 81 of file VP1CollectionWidget.cxx.
82{
83 m_d->updateStatesWithCurrentInfo();
84 m_d->clearGui(deleteGuiElements);
85 m_d->widgetsFromCollections.clear();
86
87 if (deleteCollections) {
88 for(VP1Collection*col :
m_d->collections)
89 delete col;
90 }
91 m_d->collections.clear();
92
93
94 m_d->appropriateFixedWidth = 0;
95
98}
◆ collections() [1/2]
| const QList< VP1Collection * > & VP1CollectionWidget::collections |
( |
| ) |
const |
|
inherited |
◆ collections() [2/2]
template<class collT>
| QList< collT * > VP1CollectionWidget::collections |
( |
| ) |
const |
|
inlineinherited |
Definition at line 70 of file VP1CollectionWidget.h.
70 {
73 collT*
c =
dynamic_cast<collT*
>(col);
75 }
77 }
l
Printing final latex table to .tex output file.
◆ ensureFirst()
| void VP1CollectionWidget::ensureFirst |
( |
const QString & | wildcard, |
|
|
QList< QString > & | strs ) |
|
staticprotectedinherited |
Definition at line 361 of file VP1CollectionWidget.cxx.
362{
363 QRegExp rx(
wildcard,Qt::CaseInsensitive,QRegExp::Wildcard);
365 for (
const QString&
str : strs)
366 if (rx.exactMatch(
str))
368 for (
const QString&
str : l)
370 for (
const QString&
str : strs)
372 strs = std::move(l);
373
374}
◆ ensureLast()
| void VP1CollectionWidget::ensureLast |
( |
const QString & | wildcard, |
|
|
QList< QString > & | strs ) |
|
staticprotectedinherited |
Definition at line 377 of file VP1CollectionWidget.cxx.
378{
379 QRegExp rx(
wildcard,Qt::CaseInsensitive,QRegExp::Wildcard);
381 for(
const QString&
str : strs)
382 if (rx.exactMatch(
str))
384 for (
const QString&
str : l)
387}
◆ helperClassName()
| const QString & VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ 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()
◆ 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}
◆ 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}
◆ possibleChange_visibleStdCollections
| void VP1CollectionWidget::possibleChange_visibleStdCollections |
( |
| ) |
|
|
protectedslotinherited |
Definition at line 341 of file VP1CollectionWidget.cxx.
342{
344 QList<qint32> vistypes =
m_d->visibleStdCollectionTypesFromVisStdCols(visstdcols);
345
346 if (
m_d->last_visibleStdCollections != visstdcols ) {
347 m_d->last_visibleStdCollections = visstdcols;
349 }
350
351 if (
m_d->last_visibleStdCollectionTypes != vistypes ) {
352 m_d->last_visibleStdCollectionTypes = vistypes;
354 }
355
356}
◆ setCollections() [1/2]
template<class collT>
| void VP1CollectionWidget::setCollections |
( |
const QList< collT * > & | colls, |
|
|
bool | applySavedStates = true ) |
|
inlineinherited |
◆ setCollections() [2/2]
| void VP1CollectionWidget::setCollections |
( |
const QList< VP1Collection * > & | cols, |
|
|
bool | applySavedStates = true ) |
|
inherited |
Definition at line 258 of file VP1CollectionWidget.cxx.
259{
261
262 m_d->repopulateGUIFromCollections();
263
264 if (applySavedStates)
266
268 for (VP1Collection* col : cols) {
269 VP1StdCollection* stdcol = dynamic_cast<VP1StdCollection*>(col);
270 if (stdcol)
272 }
273}
◆ setHelperClassName()
| void VP1HelperClassBase::setHelperClassName |
( |
const QString & | n | ) |
|
|
inlineprotectedinherited |
◆ 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
◆ sortSections()
| void TrackCollWidget::sortSections |
( |
QList< QString > & | sections | ) |
|
|
protectedvirtual |
Reimplemented from VP1CollectionWidget.
Definition at line 39 of file TrackCollWidget.cxx.
40{
44}
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
◆ states()
◆ 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 |
◆ verbose()
| bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ visibleContentsChanged
| void VP1CollectionWidget::visibleContentsChanged |
( |
| ) |
|
|
signalinherited |
◆ visibleStdCollections()
| QList< VP1StdCollection * > VP1CollectionWidget::visibleStdCollections |
( |
| ) |
const |
|
inherited |
◆ visibleStdCollectionsChanged
| void VP1CollectionWidget::visibleStdCollectionsChanged |
( |
const QList< VP1StdCollection * > & | | ) |
|
|
signalinherited |
◆ visibleStdCollectionTypes()
| QList< qint32 > VP1CollectionWidget::visibleStdCollectionTypes |
( |
| ) |
const |
|
inherited |
◆ visibleStdCollectionTypesChanged
| void VP1CollectionWidget::visibleStdCollectionTypesChanged |
( |
const QList< qint32 > & | | ) |
|
|
signalinherited |
◆ 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* VP1CollectionWidget::m_d |
|
privateinherited |
◆ m_helpername
| QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files: