ATLAS Offline Software
Classes | Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
IVP13DChannelWidget Class Referenceabstract

#include <IVP13DChannelWidget.h>

Inheritance diagram for IVP13DChannelWidget:
Collaboration diagram for IVP13DChannelWidget:

Classes

class  Imp
 

Public Types

enum  Type {
  UNKNOWN = 0, THREEDIMENSIONAL, TWODIMENSIONAL, HISTOGRAM,
  NUMBERS
}
 

Signals

void message (QString)
 
void uniqueNameChanged (const QString &)
 
void systemRefreshInfoChanged (QString sysrefreshing, int nsysOn, int nsysOnRefreshed)
 

Public Member Functions

 IVP13DChannelWidget (const QString &name, const QString &information, const QString &contact_info)
 
virtual ~IVP13DChannelWidget ()
 
Type type () const
 
void setUpdatesEnabled (bool enable)
 
virtual QPixmap getSnapshot (bool transp=false, int width=0, bool batch=false)
 
virtual QByteArray saveState ()
 
virtual void restoreFromState (QByteArray)
 
virtual void goingToNextEvent ()
 
virtual void init ()=0
 
virtual bool isAccumulator () const
 
void setRunEvtNumber (int runnumber, unsigned long long eventnumber)
 
const QString & name () const
 
const QString unique_name () const
 
const QString & information () const
 
const QString & contact_info () const
 
virtual bool setAntiAliasing (bool aa)
 
virtual bool isAntiAliasing ()
 
virtual void dockResized ()
 

Static Public Member Functions

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)
 

Protected Member Functions

void registerRenderArea (VP1ExaminerViewer *)
 
virtual void create ()
 
virtual void systemRefreshed (IVP1System *)
 
virtual void systemErased (IVP1System *)
 
virtual void uncreate ()
 
virtual void lastOfActiveSystemsRefreshed ()
 
void turnOn (IVP1System *)
 
void turnOff (IVP1System *, const bool &immediateErase=true)
 
void getRunEvtNumber (int &runnumber, unsigned long long &eventnumber)
 
void setEvtTimestamp (unsigned timestamp)
 
void getEvtTimestamp (unsigned &timestamp)
 
void registerController (QWidget *)
 
void registerSystem (IVP1System *)
 

Private Types

enum  State { CONSTRUCTED =0, READY, UNCREATED }
 

Private Member Functions

 IVP13DChannelWidget (const IVP13DChannelWidget &)
 
IVP13DChannelWidgetoperator= (const IVP13DChannelWidget &)
 
unsigned cloneID () const
 
QWidget * controllerWidget ()
 
void emitRefreshInfoChanged ()
 
bool hasRefreshingSystem ()
 
void setCloneID (unsigned id)
 
const std::set< IVP1System * > & systems ()
 
void deleteControllers ()
 
State state () const
 
void setState (const State &)
 
void setCanRegister (const bool &controller, const bool &system)
 

Private Attributes

Impm_d
 

Detailed Description

Definition at line 25 of file IVP13DChannelWidget.h.

Member Enumeration Documentation

◆ State

enum IVP1ChannelWidget::State
privateinherited
Enumerator
CONSTRUCTED 
READY 
UNCREATED 

Definition at line 130 of file IVP1ChannelWidget.h.

130 { CONSTRUCTED=0, READY, UNCREATED };

◆ Type

enum IVP1ChannelWidget::Type
inherited
Enumerator
UNKNOWN 
THREEDIMENSIONAL 
TWODIMENSIONAL 
HISTOGRAM 
NUMBERS 

Definition at line 46 of file IVP1ChannelWidget.h.

Constructor & Destructor Documentation

◆ IVP13DChannelWidget() [1/2]

IVP13DChannelWidget::IVP13DChannelWidget ( const QString &  name,
const QString &  information,
const QString &  contact_info 
)

Definition at line 45 of file IVP13DChannelWidget.cxx.

47 {
48  m_d->itE = m_d->renderareas.end();
49 
50 }

◆ ~IVP13DChannelWidget()

IVP13DChannelWidget::~IVP13DChannelWidget ( )
virtual

Definition at line 53 of file IVP13DChannelWidget.cxx.

54 {
55  setUpdatesEnabled(false);
56  m_d->it = m_d->renderareas.begin();
57  for (;m_d->it!=m_d->itE;++(m_d->it)) {
58  // SoQtRenderArea* ra = *(m_d->it);
59  VP1ExaminerViewer* ra = *(m_d->it);
60  ra->setAutoRedraw(false);//extra
61  SoNode * root = ra->getSceneGraph();
62  root->ref();
63  ra->setSceneGraph(0);
64  // SoGLRenderAction * renderaction1 = ra->getGLRenderAction();
65  // SoGLRenderAction * renderaction2 = ra->getOverlayGLRenderAction();
66  SoLineHighlightRenderAction * trick = new SoLineHighlightRenderAction();
67  SoLineHighlightRenderAction * trick2 = new SoLineHighlightRenderAction();
68  ra->setGLRenderAction(trick);
69  ra->setOverlayGLRenderAction(trick2);
70  // ra->setGLRenderAction(0);
71  // ra->setOverlayGLRenderAction(0);
72  delete ra;
73  // delete renderaction1;
74  // delete renderaction2;
75  delete trick;
76  delete trick2;
77  root->unref();
78  }
79  delete m_d;
80 }

◆ IVP13DChannelWidget() [2/2]

IVP13DChannelWidget::IVP13DChannelWidget ( const IVP13DChannelWidget )
private

Member Function Documentation

◆ cloneID()

unsigned IVP1ChannelWidget::cloneID ( ) const
privateinherited

Definition at line 197 of file IVP1ChannelWidget.cxx.

198 {
199  return m_d->cloneid;
200 }

◆ contact_info()

const QString & IVP1ChannelWidget::contact_info ( ) const
inherited

Definition at line 191 of file IVP1ChannelWidget.cxx.

192 {
193  return m_d->contact_info;
194 }

◆ controllerWidget()

QWidget * IVP1ChannelWidget::controllerWidget ( )
privateinherited

Definition at line 77 of file IVP1ChannelWidget.cxx.

78 {
79  return m_d->controller;
80 }

◆ create()

void IVP1ChannelWidget::create ( )
protectedvirtualinherited

◆ deleteControllers()

void IVP1ChannelWidget::deleteControllers ( )
privateinherited

Definition at line 161 of file IVP1ChannelWidget.cxx.

162 {
164  for (it=m_d->systems.begin();it!=itE;++it) {
165  // assert((*it)->state()==IVP1System::ERASED);
166  if (*it)
167  (*it)->deleteController();
168  }
169  if (m_d->controller)
170  m_d->controller->deleteLater();
171  m_d->controller = 0;
172 }

◆ dockResized()

void IVP1ChannelWidget::dockResized ( )
virtualinherited

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 315 of file IVP1ChannelWidget.cxx.

316 {
317 }

◆ emitRefreshInfoChanged()

void IVP1ChannelWidget::emitRefreshInfoChanged ( )
privateinherited

Definition at line 268 of file IVP1ChannelWidget.cxx.

269 {
270  int nsysOn(0), nsysOnRefreshed(0);
271  QString sysrefreshing;
273  for (it=m_d->systems.begin();it!=itE;++it) {
274  if ((*it)->activeState()==IVP1System::ON) {
275  ++nsysOn;
276  if((*it)->state()==IVP1System::REFRESHED)
277  ++nsysOnRefreshed;
278  if ((*it)->isRefreshing()) {
279  assert(sysrefreshing.isEmpty());
280  sysrefreshing=(*it)->name();
281  }
282  }
283  }
284  //Fixme: Only emit if actually changed.
285  systemRefreshInfoChanged(sysrefreshing, nsysOn, nsysOnRefreshed);
286 }

◆ getEvtTimestamp()

void IVP1ChannelWidget::getEvtTimestamp ( unsigned &  timestamp)
protectedinherited

Definition at line 262 of file IVP1ChannelWidget.cxx.

263 {
264  timestamp = m_d->timestamp;
265 }

◆ 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 }

◆ 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 {
133  VP1Msg::messageVerbose("IVP13DChannelWidget::getSnapshot()");
134 
135  // TODO: check if transp and width can be used in this implementation of the method
136  VP1Msg::messageVerbose("(currently, we are not using the values - transp: "+QString::number(transp)+" - width: "+QString::number(width)+")");
137 
138  //Unfortunately, the renderer's areas does not render properly by a
139  //simple grabWidget. We remedy this the hard way...
140  // m_d->it = m_d->renderareas.begin();
141  // message("Have "+QString::number(m_d->renderareas.size())+" ras");
142  // for (;m_d->it!=m_d->itE;++(m_d->it)) {
143  // SoQtRenderArea* ra = *(m_d->it);
144  // if (ra->isDoubleBuffer()) message("doublebuffer");
145  // if (ra->isDrawToFrontBufferEnable()) message("isDrawToFrontBufferEnable");
146  // if (ra->isQuadBufferStereo()) message("isQuadBufferStereo");
147  // if (ra->getAccumulationBuffer()) message("getAccumulationBuffer");
148  // if (ra->isOverlayRender()) message("isOverlayRender");
149  // if (ra->isClearBeforeRender()) message("isClearBeforeRender");
150  // ra->render();
151  // }
152  // return QPixmap::grabWidget ( this );
153 
154  QPixmap pm(geometry().size());
155 
156  QPainter painter;
157  painter.begin(&pm);
158  painter.drawPixmap(0,0,this->grab ( ));
159 
160  m_d->it = m_d->renderareas.begin();
161  for (;m_d->it!=m_d->itE;++(m_d->it)) {
162  VP1ExaminerViewer* ra = *(m_d->it);
163  QWidget * ra_w = ra->getNormalWidget();
164  QPixmap pmra = VP1QtInventorUtils::renderToPixmap(ra, ra_w->geometry().width(),ra_w->geometry().height());
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 }

◆ goingToNextEvent()

void IVP13DChannelWidget::goingToNextEvent ( )
virtual

Reimplemented from IVP1ChannelWidget.

Definition at line 114 of file IVP13DChannelWidget.cxx.

115 {
116  //Stop spinning and abort any ongoing animations:
117  m_d->it = m_d->renderareas.begin();
118  for (;m_d->it!=m_d->itE;++(m_d->it)) {
119  VP1ExaminerViewer* ra = *(m_d->it);
120  if (ra->getTypeId().isDerivedFrom(SoQtViewer::getClassTypeId())) {
121  VP1CameraHelper::abortAnyCurrentZoom(static_cast<SoQtViewer*>(ra)->getCamera());
122  if (ra->getTypeId().isDerivedFrom(SoQtExaminerViewer::getClassTypeId())) {
123  if (static_cast<SoQtExaminerViewer*>(ra)->isAnimating())
124  static_cast<SoQtExaminerViewer*>(ra)->stopAnimating();
125  }
126  }
127  }
128 }

◆ hasRefreshingSystem()

bool IVP1ChannelWidget::hasRefreshingSystem ( )
privateinherited

Definition at line 289 of file IVP1ChannelWidget.cxx.

289  {
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

Definition at line 185 of file IVP1ChannelWidget.cxx.

186 {
187  return m_d->information;
188 }

◆ init()

virtual void IVP1ChannelWidget::init ( )
pure virtualinherited

◆ isAccumulator()

bool IVP1ChannelWidget::isAccumulator ( ) const
virtualinherited

Definition at line 83 of file IVP1ChannelWidget.cxx.

84 {
85  return false;
86 }

◆ isAntiAliasing()

virtual bool IVP1ChannelWidget::isAntiAliasing ( )
inlinevirtualinherited

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 105 of file IVP1ChannelWidget.h.

105 {VP1Msg::messageVerbose("You should not call this function directly, but one of its implementations in derived classes..."); return false; };

◆ lastOfActiveSystemsRefreshed()

void IVP1ChannelWidget::lastOfActiveSystemsRefreshed ( )
protectedvirtualinherited

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 334 of file IVP1ChannelWidget.cxx.

335 {
336  VP1Msg::messageVerbose("IVP1ChannelWidget base lastOfActiveSystemsRefreshed called");
337 }

◆ message

void IVP1ChannelWidget::message ( QString  )
signalinherited

◆ name()

const QString & IVP1ChannelWidget::name ( ) const
inherited

Definition at line 180 of file IVP1ChannelWidget.cxx.

181 {
182  return m_d->name;
183 }

◆ operator=()

IVP13DChannelWidget& IVP13DChannelWidget::operator= ( const IVP13DChannelWidget )
private

◆ 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()");
213  assert(m_d->state==CONSTRUCTED);
214  assert(w&&"IVP1ChannelWidget::registerController(...) called with null pointer!!");
215  assert(!m_d->controller&&"IVP1ChannelWidget::registerController(...) called twice!!");
216  m_d->controller = w;
217  w->setParent(0);
218 }

◆ registerRenderArea()

void IVP13DChannelWidget::registerRenderArea ( VP1ExaminerViewer ra)
protected

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  //To make sure that it is the actual 3D widget that gets focus when
107  //we e.g. click anywhere else in the widget where the render area is
108  //placed within:
109  if (ra->getParentWidget()&&ra->getWidget())
110  ra->getParentWidget()->setFocusProxy(ra->getWidget());
111 }

◆ 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");
224  assert(m_d->state==CONSTRUCTED);
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);
227  s->setChannel(this);
228 }

◆ restoreFromState()

void IVP13DChannelWidget::restoreFromState ( QByteArray  ba)
virtual

Reimplemented from IVP1ChannelWidget.

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 214 of file IVP13DChannelWidget.cxx.

215 {
216  // ===> Setup stream for getting the contents of the byteArray:
217  QBuffer buffer(&ba);
218  buffer.open(QIODevice::ReadOnly);
219  QDataStream state(&buffer);
220  // ===> Check version and pass on state info to base class:
221  qint32 version;
222  state >> version;
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;
229  state >> basestate;
231  // ===> Decode the state info:
232 
233  //Transparency types:
234  if (version==0) {
235  QStringList dummy;
236  state >> dummy;
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!");
242  buffer.close();
243  return;
244  }
245  m_d->it = m_d->renderareas.begin();
246  for (;m_d->it!=m_d->itE;++(m_d->it))
247  (*(m_d->it))->setTransparencyType(VP1QtInventorUtils::intToTransparencyType(transptypes.takeFirst()));
248  }
249 
250  //Camera angles:
251  //todo..
252 
253  // ===> Finish up:
254  buffer.close();
255 }

◆ saveState()

QByteArray IVP13DChannelWidget::saveState ( )
virtual

Reimplemented from IVP1ChannelWidget.

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 180 of file IVP13DChannelWidget.cxx.

181 {
182  // ===> Setup stream writing to a byteArray:
183  QByteArray byteArray;
184  QBuffer buffer(&byteArray);
185  buffer.open(QIODevice::WriteOnly);
186  QDataStream out(&buffer);
187 
188  // ===> Write Data:
189 
190  //Version & base state:
191  out << (qint32)1; //version
192  out << IVP1ChannelWidget::saveState();//Always include state info from the base class.
193 
194  // Data from this class:
195 
196  //Transparency types (version 0 saved as strings instead of ints):
197  QList<int> transptypes;
198  m_d->it = m_d->renderareas.begin();
199  for (;m_d->it!=m_d->itE;++(m_d->it))
200  transptypes << VP1QtInventorUtils::transparencyTypeToInt((*(m_d->it))->getTransparencyType());
201  out << transptypes;
202 
203  //For any render area that can be casted as an SoQtViewer, we store the camera type and parameters.
204  //SoQtViewer::toggleCameraType()
205  //todo...
206 
207  // ===> Finish up:
208  buffer.close();
209  return byteArray;
210 
211 }

◆ setAntiAliasing()

virtual bool IVP1ChannelWidget::setAntiAliasing ( bool  aa)
inlinevirtualinherited

Reimplemented in IVP13DStandardChannelWidget.

Definition at line 104 of file IVP1ChannelWidget.h.

104 {VP1Msg::messageVerbose("You should not call this function directly, but one of its implementations in derived classes..."); return aa; };

◆ setCanRegister()

void IVP1ChannelWidget::setCanRegister ( const bool &  controller,
const bool &  system 
)
privateinherited

Definition at line 299 of file IVP1ChannelWidget.cxx.

300 {
303 }

◆ setCloneID()

void IVP1ChannelWidget::setCloneID ( unsigned  id)
privateinherited

Definition at line 203 of file IVP1ChannelWidget.cxx.

204 {
205  m_d->cloneid=id;
207 }

◆ setEvtTimestamp()

void IVP1ChannelWidget::setEvtTimestamp ( unsigned  timestamp)
protectedinherited

Definition at line 96 of file IVP1ChannelWidget.cxx.

97 {
98  m_d->timestamp = timestamp;
99 }

◆ setRunEvtNumber()

void IVP1ChannelWidget::setRunEvtNumber ( int  runnumber,
unsigned long long  eventnumber 
)
inherited

Definition at line 89 of file IVP1ChannelWidget.cxx.

90 {
92  m_d->eventnumber = eventnumber;
93 }

◆ setState()

void IVP1ChannelWidget::setState ( const State s)
privateinherited

Definition at line 108 of file IVP1ChannelWidget.cxx.

109 {
110 
111 #ifndef NDEBUG
112  assert(s!=CONSTRUCTED);
113  if (s==READY) {
114  assert(m_d->state==CONSTRUCTED);
115  }
116  if (s==UNCREATED) {
117  assert(m_d->state==READY);
118  }
119 #endif
120  m_d->state = s;
121 }

◆ setUpdatesEnabled()

void IVP13DChannelWidget::setUpdatesEnabled ( bool  enable)

Definition at line 83 of file IVP13DChannelWidget.cxx.

84 {
85  m_d->it = m_d->renderareas.begin();
86  for (;m_d->it!=m_d->itE;++(m_d->it)) {
87  (*(m_d->it))->setAutoRedraw(enable);
88  }
89  IVP1ChannelWidget::setUpdatesEnabled(enable);
90 }

◆ state()

IVP1ChannelWidget::State IVP1ChannelWidget::state ( ) const
privateinherited

Definition at line 102 of file IVP1ChannelWidget.cxx.

103 {
104  return m_d->state;
105 }

◆ str() [1/30]

static QString VP1String::str ( const Amg::Vector3D t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [2/30]

static QString VP1String::str ( const bool  b)
inlinestaticinherited

Definition at line 53 of file VP1String.h.

53 { return b?"True":"False"; }

◆ str() [3/30]

static QString VP1String::str ( const char *  c)
inlinestaticinherited

Definition at line 50 of file VP1String.h.

50 { return c; }

◆ str() [4/30]

static QString VP1String::str ( const double &  d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81 { return QString::number(d); }

◆ str() [5/30]

static QString VP1String::str ( const float &  f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82 { return QString::number(f); }

◆ str() [6/30]

template<class T >
static QString VP1String::str ( const HepGeom::BasicVector3D< T > &  t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ 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 >
static 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 >
static 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]

static QString VP1String::str ( const QString &  s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49 { return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor &  c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37 {
39 }

◆ str() [12/30]

QString VP1String::str ( const SbVec2d &  v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61 { double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [13/30]

QString VP1String::str ( const SbVec2f &  v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62 { float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s &  v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63 { short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d &  v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64 { double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [16/30]

QString VP1String::str ( const SbVec3f &  v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65 { float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s &  v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66 { short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d &  v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67 { double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f &  v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68 { float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [20/30]

template<class T >
static 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) {
51  std::ostringstream s;
52  s << p;
53  // Explicitly naming QString here avoids a cppcheck warning.
54  return QString (s.str().c_str());
55  } else {
56  return "NULL";
57  }
58 }

◆ str() [22/30]

QString VP1String::str ( const VP1Interval i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43 {
44  return i.toString();
45 }

◆ str() [23/30]

static QString VP1String::str ( int  n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77 { return QString::number(n); }

◆ str() [24/30]

static QString VP1String::str ( long  n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75 { return QString::number(n); }

◆ str() [25/30]

static QString VP1String::str ( qlonglong  n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79 { return QString::number(n); }

◆ str() [26/30]

static QString VP1String::str ( qulonglong  n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80 { return QString::number(n); }

◆ str() [27/30]

static QString VP1String::str ( short int  n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73 { return QString::number(n); }

◆ str() [28/30]

static QString VP1String::str ( uint  n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78 { return QString::number(n); }

◆ str() [29/30]

static QString VP1String::str ( ulong  n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76 { return QString::number(n); }

◆ str() [30/30]

static 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

Reimplemented in IVP12DDetViewsChannelWidget, IVP13DStandardChannelWidget, IVP12DStandardChannelWidget, and VP1TriggerDecisionChannel.

Definition at line 142 of file IVP1ChannelWidget.cxx.

143 {
144  assert(m_d->state==READY);
145  bool isErased = (s->state()==IVP1System::ERASED) ? true : false;
146  if(!isErased) {
147  VP1Msg::messageVerbose("s->state() != IVP1System::ERASED!");
148  }
149  assert(isErased);
150 // s = 0;//get rid of compile warning in opt mode
151  VP1Msg::messageDebug("systemErased: "+s->name());
152 }

◆ systemRefreshed()

void IVP1ChannelWidget::systemRefreshed ( IVP1System s)
protectedvirtualinherited

Reimplemented in IVP12DDetViewsChannelWidget, IVP13DStandardChannelWidget, IVP12DStandardChannelWidget, and VP1TriggerDecisionChannel.

Definition at line 130 of file IVP1ChannelWidget.cxx.

131 {
132  assert(m_d->state==READY);
133  if( ! (s->state()==IVP1System::REFRESHED) ) {
134  VP1Msg::messageVerbose("s->state() != IVP1System::REFRESHED!");
135  }
136  assert(s->state()==IVP1System::REFRESHED);
137 // s = 0;//get rid of compile warning in opt mode
138  VP1Msg::messageDebug("systemRefreshed: "+s->name());
139 }

◆ systemRefreshInfoChanged

void IVP1ChannelWidget::systemRefreshInfoChanged ( QString  sysrefreshing,
int  nsysOn,
int  nsysOnRefreshed 
)
signalinherited

◆ systems()

const std::set< IVP1System * > & IVP1ChannelWidget::systems ( )
privateinherited

Definition at line 231 of file IVP1ChannelWidget.cxx.

232 {
233  return m_d->systems;
234 }

◆ turnOff()

void IVP1ChannelWidget::turnOff ( IVP1System s,
const bool &  immediateErase = true 
)
protectedinherited

Definition at line 246 of file IVP1ChannelWidget.cxx.

247 {
248  assert(s->channel()==this);
249  assert(m_d->systems.find(s)!=m_d->systems.end());
250  s->setActiveState(IVP1System::OFF,!immediateErase);
252 }

◆ turnOn()

void IVP1ChannelWidget::turnOn ( IVP1System s)
protectedinherited

Definition at line 237 of file IVP1ChannelWidget.cxx.

238 {
239  assert(s->channel()==this);
240  assert(m_d->systems.find(s)!=m_d->systems.end());
241  s->setActiveState(IVP1System::ON);
243 }

◆ type()

Type IVP13DChannelWidget::type ( ) const
inlinevirtual

Implements IVP1ChannelWidget.

Definition at line 40 of file IVP13DChannelWidget.h.

40 { return THREEDIMENSIONAL; };

◆ uncreate()

void IVP1ChannelWidget::uncreate ( )
protectedvirtualinherited

Definition at line 155 of file IVP1ChannelWidget.cxx.

156 {
157  assert(m_d->state==READY);
158 }

◆ unique_name()

const QString IVP1ChannelWidget::unique_name ( ) const
inherited

Definition at line 175 of file IVP1ChannelWidget.cxx.

176 {
177  return m_d->name+(m_d->cloneid?" ["+QString::number(m_d->cloneid)+"]":QString(""));//Fixme: make sure that it is forbidden to end a name with ' [.*]'!
178 }

◆ uniqueNameChanged

void IVP1ChannelWidget::uniqueNameChanged ( const QString &  )
signalinherited

Member Data Documentation

◆ m_d

Imp* IVP13DChannelWidget::m_d
private

Definition at line 57 of file IVP13DChannelWidget.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
IVP1ChannelWidget::Imp::canregistersystem
bool canregistersystem
Definition: IVP1ChannelWidget.cxx:39
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
IVP1ChannelWidget::Imp::systems
std::set< IVP1System * > systems
Definition: IVP1ChannelWidget.cxx:35
hist_file_dump.d
d
Definition: hist_file_dump.py:137
IVP1ChannelWidget::contact_info
const QString & contact_info() const
Definition: IVP1ChannelWidget.cxx:191
IVP1ChannelWidget::TWODIMENSIONAL
@ TWODIMENSIONAL
Definition: IVP1ChannelWidget.h:46
IVP1ChannelWidget::Imp::information
const QString information
Definition: IVP1ChannelWidget.cxx:32
VP1ExaminerViewer::setSceneGraph
virtual void setSceneGraph(SoNode *)
Definition: VP1ExaminerViewer.cxx:3115
skel.it
it
Definition: skel.GENtoEVGEN.py:396
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
IVP13DChannelWidget::m_d
Imp * m_d
Definition: IVP13DChannelWidget.h:56
IVP1ChannelWidget::NUMBERS
@ NUMBERS
Definition: IVP1ChannelWidget.h:46
IVP1ChannelWidget::Imp::contact_info
const QString contact_info
Definition: IVP1ChannelWidget.cxx:33
sendEI_SPB.root
root
Definition: sendEI_SPB.py:34
IVP1ChannelWidget::emitRefreshInfoChanged
void emitRefreshInfoChanged()
Definition: IVP1ChannelWidget.cxx:268
IVP1ChannelWidget::HISTOGRAM
@ HISTOGRAM
Definition: IVP1ChannelWidget.h:46
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IVP1ChannelWidget::unique_name
const QString unique_name() const
Definition: IVP1ChannelWidget.cxx:175
IVP1ChannelWidget::Imp::state
State state
Definition: IVP1ChannelWidget.cxx:37
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
IVP1ChannelWidget::systemRefreshInfoChanged
void systemRefreshInfoChanged(QString sysrefreshing, int nsysOn, int nsysOnRefreshed)
TruthTest.itE
itE
Definition: TruthTest.py:25
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
IVP13DChannelWidget::Imp::it
std::vector< VP1ExaminerViewer * >::iterator it
Definition: IVP13DChannelWidget.cxx:39
IVP1ChannelWidget::Imp::controller
QWidget * controller
Definition: IVP1ChannelWidget.cxx:36
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
createCoolChannelIdFile.buffer
buffer
Definition: createCoolChannelIdFile.py:12
VP1CameraHelper::abortAnyCurrentZoom
static void abortAnyCurrentZoom(SoCamera *camera)
Definition: VP1CameraHelper.cxx:265
IVP1ChannelWidget::UNKNOWN
@ UNKNOWN
Definition: IVP1ChannelWidget.h:46
VP1ExaminerViewer::getSceneGraph
virtual SoNode * getSceneGraph()
Definition: VP1ExaminerViewer.cxx:3138
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
IVP13DChannelWidget::Imp::itE
std::vector< VP1ExaminerViewer * >::iterator itE
Definition: IVP13DChannelWidget.cxx:39
IVP1ChannelWidget::Imp::canregistercontroller
bool canregistercontroller
Definition: IVP1ChannelWidget.cxx:38
IVP1ChannelWidget::CONSTRUCTED
@ CONSTRUCTED
Definition: IVP1ChannelWidget.h:130
beamspotman.n
n
Definition: beamspotman.py:731
IVP1ChannelWidget::UNCREATED
@ UNCREATED
Definition: IVP1ChannelWidget.h:130
IVP1ChannelWidget::Imp::timestamp
unsigned timestamp
Definition: IVP1ChannelWidget.cxx:42
IVP1System::REFRESHED
@ REFRESHED
Definition: IVP1System.h:143
LArG4GenerateShowerLib.geometry
geometry
Definition: LArG4GenerateShowerLib.py:19
python.xAODType.dummy
dummy
Definition: xAODType.py:4
IVP1ChannelWidget::Imp::name
const QString name
Definition: IVP1ChannelWidget.cxx:31
IVP1ChannelWidget::message
void message(QString)
hist_file_dump.f
f
Definition: hist_file_dump.py:135
IVP1ChannelWidget::uniqueNameChanged
void uniqueNameChanged(const QString &)
IVP13DChannelWidget::Imp::renderareas
RenderAreaList renderareas
Definition: IVP13DChannelWidget.cxx:41
DeMoScan.runnumber
runnumber
Definition: DeMoScan.py:266
IVP1System::ON
@ ON
Definition: IVP1System.h:144
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
IVP1ChannelWidget::state
State state() const
Definition: IVP1ChannelWidget.cxx:102
IVP1ChannelWidget::restoreFromState
virtual void restoreFromState(QByteArray)
Definition: IVP1ChannelWidget.cxx:326
IVP1ChannelWidget::saveState
virtual QByteArray saveState()
Definition: IVP1ChannelWidget.cxx:320
IVP1ChannelWidget::IVP1ChannelWidget
IVP1ChannelWidget(const QString &name, const QString &information, const QString &contact_info)
Definition: IVP1ChannelWidget.cxx:46
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
python.selection.number
number
Definition: selection.py:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
IVP1ChannelWidget::Imp::eventnumber
unsigned long long eventnumber
Definition: IVP1ChannelWidget.cxx:41
VP1QtInventorUtils::transparencyTypeToInt
static int transparencyTypeToInt(SoGLRenderAction::TransparencyType)
Definition: VP1QtInventorUtils.cxx:665
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
IVP1ChannelWidget::Imp::runnumber
int runnumber
Definition: IVP1ChannelWidget.cxx:40
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.PyAthena.v
v
Definition: PyAthena.py:154
get_generator_info.version
version
Definition: get_generator_info.py:33
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
y
#define y
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
IVP13DChannelWidget::setUpdatesEnabled
void setUpdatesEnabled(bool enable)
Definition: IVP13DChannelWidget.cxx:83
IVP1ChannelWidget::READY
@ READY
Definition: IVP1ChannelWidget.h:130
VP1QtInventorUtils::intToTransparencyType
static SoGLRenderAction::TransparencyType intToTransparencyType(int)
Definition: VP1QtInventorUtils.cxx:685
VP1QtInventorUtils::renderToPixmap
static QPixmap renderToPixmap(VP1ExaminerViewer *ra, int pixels_x, int pixels_y, bool transparent_background=false, double actualRenderedSizeFact=1.0)
Definition: VP1QtInventorUtils.cxx:595
IVP1ChannelWidget::Imp::cloneid
unsigned cloneid
Definition: IVP1ChannelWidget.cxx:34
IVP1ChannelWidget::name
const QString & name() const
Definition: IVP1ChannelWidget.cxx:180
IVP1ChannelWidget::m_d
Imp * m_d
Definition: IVP1ChannelWidget.h:119
VP1QtInventorUtils::ensureInitLineWidthAndPointSize
static void ensureInitLineWidthAndPointSize(SoQtRenderArea *)
Definition: VP1QtInventorUtils.cxx:1518
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
IVP1ChannelWidget::THREEDIMENSIONAL
@ THREEDIMENSIONAL
Definition: IVP1ChannelWidget.h:46
test_AnalysisBaseEventLoopJob.aa
aa
Definition: test_AnalysisBaseEventLoopJob.py:37
python.compressB64.c
def c
Definition: compressB64.py:93
IVP1System::OFF
@ OFF
Definition: IVP1System.h:144
IVP1System::ERASED
@ ERASED
Definition: IVP1System.h:143
VP1ExaminerViewer
Definition: VP1ExaminerViewer.h:30
IVP1ChannelWidget::information
const QString & information() const
Definition: IVP1ChannelWidget.cxx:185