#include <IVP13DChannelWidget.h>
|
| 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 25 of file IVP13DChannelWidget.h.
◆ State
◆ Type
| Enumerator |
|---|
| UNKNOWN | |
| THREEDIMENSIONAL | |
| TWODIMENSIONAL | |
| HISTOGRAM | |
| NUMBERS | |
Definition at line 46 of file IVP1ChannelWidget.h.
◆ IVP13DChannelWidget() [1/2]
| IVP13DChannelWidget::IVP13DChannelWidget |
( |
const QString & | name, |
|
|
const QString & | information, |
|
|
const QString & | contact_info ) |
◆ ~IVP13DChannelWidget()
| IVP13DChannelWidget::~IVP13DChannelWidget |
( |
| ) |
|
|
virtual |
Definition at line 53 of file IVP13DChannelWidget.cxx.
54{
56 m_d->it =
m_d->renderareas.begin();
58
59 VP1ExaminerViewer* ra = *(
m_d->it);
60 ra->setAutoRedraw(false);
64
65
66 SoLineHighlightRenderAction * trick = new SoLineHighlightRenderAction();
67 SoLineHighlightRenderAction * trick2 = new SoLineHighlightRenderAction();
68 ra->setGLRenderAction(trick);
69 ra->setOverlayGLRenderAction(trick2);
70
71
72 delete ra;
73
74
75 delete trick;
76 delete trick2;
78 }
80}
virtual void setSceneGraph(SoNode *)
virtual SoNode * getSceneGraph()
◆ IVP13DChannelWidget() [2/2]
◆ cloneID()
| unsigned IVP1ChannelWidget::cloneID |
( |
| ) |
const |
|
privateinherited |
◆ contact_info()
| const QString & IVP1ChannelWidget::contact_info |
( |
| ) |
const |
|
inherited |
◆ controllerWidget()
| QWidget * IVP1ChannelWidget::controllerWidget |
( |
| ) |
|
|
privateinherited |
◆ create()
| void IVP1ChannelWidget::create |
( |
| ) |
|
|
protectedvirtualinherited |
◆ deleteControllers()
| void IVP1ChannelWidget::deleteControllers |
( |
| ) |
|
|
privateinherited |
Definition at line 161 of file IVP1ChannelWidget.cxx.
162{
163 std::set<IVP1System *>::iterator
it,
itE =
m_d->systems.end();
164 for (it=
m_d->systems.begin();it!=itE;++it) {
165
166 if (*it)
167 (*it)->deleteController();
168 }
170 m_d->controller->deleteLater();
172}
◆ dockResized()
| void IVP1ChannelWidget::dockResized |
( |
| ) |
|
|
virtualinherited |
◆ emitRefreshInfoChanged()
| void IVP1ChannelWidget::emitRefreshInfoChanged |
( |
| ) |
|
|
privateinherited |
Definition at line 268 of file IVP1ChannelWidget.cxx.
269{
270 int nsysOn(0), nsysOnRefreshed(0);
271 QString sysrefreshing;
272 std::set<IVP1System *>::iterator
it,
itE =
m_d->systems.end();
273 for (it=
m_d->systems.begin();it!=itE;++it) {
275 ++nsysOn;
277 ++nsysOnRefreshed;
278 if ((*it)->isRefreshing()) {
279 assert(sysrefreshing.isEmpty());
280 sysrefreshing=(*it)->name();
281 }
282 }
283 }
284
286}
◆ getEvtTimestamp()
| void IVP1ChannelWidget::getEvtTimestamp |
( |
unsigned & | timestamp | ) |
|
|
protectedinherited |
◆ getRunEvtNumber()
| void IVP1ChannelWidget::getRunEvtNumber |
( |
int & | runnumber, |
|
|
unsigned long long & | eventnumber ) |
|
protectedinherited |
Definition at line 255 of file IVP1ChannelWidget.cxx.
256{
258 eventnumber =
m_d->eventnumber;
259}
static std::vector< uint32_t > runnumber
◆ getSnapshot()
| QPixmap IVP13DChannelWidget::getSnapshot |
( |
bool | transp = false, |
|
|
int | width = 0, |
|
|
bool | batch = false ) |
|
virtual |
Reimplemented from IVP1ChannelWidget.
Reimplemented in IVP13DStandardChannelWidget.
Definition at line 131 of file IVP13DChannelWidget.cxx.
132{
134
135
136 VP1Msg::messageVerbose(
"(currently, we are not using the values - transp: "+QString::number(transp)+
" - width: "+QString::number(
width)+
")");
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
155
156 QPainter painter;
157 painter.begin(&pm);
158 painter.drawPixmap(0,0,this->grab ( ));
159
160 m_d->it =
m_d->renderareas.begin();
162 VP1ExaminerViewer* ra = *(
m_d->it);
163 QWidget * ra_w = ra->getNormalWidget();
165 if (pmra.isNull()) {
166 message(
"Error rendering scene to QPixmap!");
167 return QPixmap();
168 }
169 QPoint
pos = ra_w->mapTo(
this, QPoint(0,0) );
170
171 painter.drawPixmap(
pos.x(),
pos.y(),pmra);
172
173 }
174 painter.end();
175
176 return pm;
177}
static void messageVerbose(const QString &)
static QPixmap renderToPixmap(VP1ExaminerViewer *ra, int pixels_x, int pixels_y, bool transparent_background=false, double actualRenderedSizeFact=1.0)
◆ goingToNextEvent()
| void IVP13DChannelWidget::goingToNextEvent |
( |
| ) |
|
|
virtual |
Reimplemented from IVP1ChannelWidget.
Definition at line 114 of file IVP13DChannelWidget.cxx.
115{
116
117 m_d->it =
m_d->renderareas.begin();
119 VP1ExaminerViewer* ra = *(
m_d->it);
120 if (ra->getTypeId().isDerivedFrom(SoQtViewer::getClassTypeId())) {
122 if (ra->getTypeId().isDerivedFrom(SoQtExaminerViewer::getClassTypeId())) {
123 if (static_cast<SoQtExaminerViewer*>(ra)->isAnimating())
124 static_cast<SoQtExaminerViewer*>(ra)->stopAnimating();
125 }
126 }
127 }
128}
static void abortAnyCurrentZoom(SoCamera *camera)
◆ hasRefreshingSystem()
| bool IVP1ChannelWidget::hasRefreshingSystem |
( |
| ) |
|
|
privateinherited |
Definition at line 289 of file IVP1ChannelWidget.cxx.
289 {
290 std::set<IVP1System *>::iterator
it,
itE =
m_d->systems.end();
291 for (it=
m_d->systems.begin();it!=itE;++it) {
292 if ((*it)->isRefreshing())
293 return true;
294 }
295 return false;
296}
◆ information()
| const QString & IVP1ChannelWidget::information |
( |
| ) |
const |
|
inherited |
◆ init()
| virtual void IVP1ChannelWidget::init |
( |
| ) |
|
|
pure virtualinherited |
Implemented in Example3DChannel1, Example3DChannel2, Example3DChannel3, Example3DChannel4, Example3DChannel5, VP13DCocktailChannel, VP1AODChannel, VP1BanksChannel, VP1CaloCellChannel, VP1GeometryChannel, VP1LegoChannel, VP1LightChannel, VP1MCChannel, VP1TrackCaloChannel, VP1TrackChannel, and VP1TriggerDecisionChannel.
◆ isAccumulator()
| bool IVP1ChannelWidget::isAccumulator |
( |
| ) |
const |
|
virtualinherited |
◆ isAntiAliasing()
| virtual bool IVP1ChannelWidget::isAntiAliasing |
( |
| ) |
|
|
inlinevirtualinherited |
◆ lastOfActiveSystemsRefreshed()
| void IVP1ChannelWidget::lastOfActiveSystemsRefreshed |
( |
| ) |
|
|
protectedvirtualinherited |
◆ message
| void IVP1ChannelWidget::message |
( |
QString | | ) |
|
|
signalinherited |
◆ name()
| const QString & IVP1ChannelWidget::name |
( |
| ) |
const |
|
inherited |
◆ operator=()
◆ registerController()
| void IVP1ChannelWidget::registerController |
( |
QWidget * | w | ) |
|
|
protectedinherited |
Definition at line 210 of file IVP1ChannelWidget.cxx.
211{
212 assert(
m_d->canregistercontroller&&
"Please only register controllers during create()");
214 assert(w&&"IVP1ChannelWidget::registerController(...) called with null pointer!!");
215 assert(!
m_d->controller&&
"IVP1ChannelWidget::registerController(...) called twice!!");
218}
◆ registerRenderArea()
Definition at line 94 of file IVP13DChannelWidget.cxx.
95{
96 if (!ra) {
97 message(
"Error - tried to register NULL render area!");
98 return;
99 }
100
102
103 m_d->renderareas.push_back(ra);
104 m_d->itE =
m_d->renderareas.end();
105
106
107
108
109 if (ra->getParentWidget()&&ra->getWidget())
110 ra->getParentWidget()->setFocusProxy(ra->getWidget());
111}
static void ensureInitLineWidthAndPointSize(SoQtRenderArea *)
◆ registerSystem()
| void IVP1ChannelWidget::registerSystem |
( |
IVP1System * | s | ) |
|
|
protectedinherited |
Definition at line 221 of file IVP1ChannelWidget.cxx.
222{
223 assert(
m_d->canregistersystem&&
"Please only register systems during the channel constructor");
225 assert(
m_d->systems.find(s)==
m_d->systems.end()&&
"IVP1ChannelWidget::registerSystem(...) called twice on the same system!!");
226 m_d->systems.insert(s);
228}
◆ restoreFromState()
| void IVP13DChannelWidget::restoreFromState |
( |
QByteArray | ba | ) |
|
|
virtual |
Reimplemented from IVP1ChannelWidget.
Reimplemented in IVP13DStandardChannelWidget.
Definition at line 214 of file IVP13DChannelWidget.cxx.
215{
216
218 buffer.open(QIODevice::ReadOnly);
219 QDataStream
state(&buffer);
220
223 if (version!=0&&version!=1) {
224 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
225 return;
226 }
227
228 QByteArray basestate;
231
232
233
234 if (version==0) {
237 } else {
238 QList<int> transptypes;
239 state >> transptypes;
240 if (transptypes.count()!=
static_cast<int>(
m_d->renderareas.size())) {
241 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
243 return;
244 }
245 m_d->it =
m_d->renderareas.begin();
248 }
249
250
251
252
253
255}
static SoGLRenderAction::TransparencyType intToTransparencyType(int)
◆ saveState()
| QByteArray IVP13DChannelWidget::saveState |
( |
| ) |
|
|
virtual |
Reimplemented from IVP1ChannelWidget.
Reimplemented in IVP13DStandardChannelWidget.
Definition at line 180 of file IVP13DChannelWidget.cxx.
181{
182
183 QByteArray byteArray;
184 QBuffer
buffer(&byteArray);
185 buffer.open(QIODevice::WriteOnly);
186 QDataStream
out(&buffer);
187
188
189
190
193
194
195
196
197 QList<int> transptypes;
198 m_d->it =
m_d->renderareas.begin();
202
203
204
205
206
207
209 return byteArray;
210
211}
static int transparencyTypeToInt(SoGLRenderAction::TransparencyType)
◆ setAntiAliasing()
| virtual bool IVP1ChannelWidget::setAntiAliasing |
( |
bool | aa | ) |
|
|
inlinevirtualinherited |
◆ setCanRegister()
| void IVP1ChannelWidget::setCanRegister |
( |
const bool & | controller, |
|
|
const bool & | system ) |
|
privateinherited |
◆ setCloneID()
| void IVP1ChannelWidget::setCloneID |
( |
unsigned | id | ) |
|
|
privateinherited |
◆ setEvtTimestamp()
| void IVP1ChannelWidget::setEvtTimestamp |
( |
unsigned | timestamp | ) |
|
|
protectedinherited |
◆ setRunEvtNumber()
| void IVP1ChannelWidget::setRunEvtNumber |
( |
int | runnumber, |
|
|
unsigned long long | eventnumber ) |
|
inherited |
◆ setState()
| void IVP1ChannelWidget::setState |
( |
const State & | s | ) |
|
|
privateinherited |
◆ setUpdatesEnabled()
| void IVP13DChannelWidget::setUpdatesEnabled |
( |
bool | enable | ) |
|
Definition at line 83 of file IVP13DChannelWidget.cxx.
84{
85 m_d->it =
m_d->renderareas.begin();
87 (*(
m_d->it))->setAutoRedraw(enable);
88 }
89 IVP1ChannelWidget::setUpdatesEnabled(enable);
90}
◆ state()
◆ str() [1/30]
Definition at line 98 of file VP1String.h.
98{
return "("+
str(
t.x())+
", "+
str(
t.y())+
", "+
str(
t.z())+
")"; }
static QString str(const QString &s)
◆ 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); }
◆ systemErased()
| void IVP1ChannelWidget::systemErased |
( |
IVP1System * | s | ) |
|
|
protectedvirtualinherited |
◆ systemRefreshed()
| void IVP1ChannelWidget::systemRefreshed |
( |
IVP1System * | s | ) |
|
|
protectedvirtualinherited |
◆ systemRefreshInfoChanged
| void IVP1ChannelWidget::systemRefreshInfoChanged |
( |
QString | sysrefreshing, |
|
|
int | nsysOn, |
|
|
int | nsysOnRefreshed ) |
|
signalinherited |
◆ systems()
| const std::set< IVP1System * > & IVP1ChannelWidget::systems |
( |
| ) |
|
|
privateinherited |
◆ turnOff()
| void IVP1ChannelWidget::turnOff |
( |
IVP1System * | s, |
|
|
const bool & | immediateErase = true ) |
|
protectedinherited |
◆ turnOn()
◆ type()
| Type IVP13DChannelWidget::type |
( |
| ) |
const |
|
inlinevirtual |
◆ uncreate()
| void IVP1ChannelWidget::uncreate |
( |
| ) |
|
|
protectedvirtualinherited |
◆ unique_name()
| const QString IVP1ChannelWidget::unique_name |
( |
| ) |
const |
|
inherited |
◆ uniqueNameChanged
| void IVP1ChannelWidget::uniqueNameChanged |
( |
const QString & | | ) |
|
|
signalinherited |
◆ m_d
| Imp* IVP13DChannelWidget::m_d |
|
private |
The documentation for this class was generated from the following files: