CMS 3D CMS Logo

FWGeometryTableViewBase.cc
Go to the documentation of this file.
1 #include <iostream>
2 
3 #include <boost/bind.hpp>
4 #include <boost/regex.hpp>
5 
19 
20 #include "TGFileDialog.h"
21 #include "TGeoNode.h"
22 #include "TGeoMatrix.h"
23 #include "TGStatusBar.h"
24 #include "TGButton.h"
25 #include "TGLabel.h"
26 #include "TGLPhysicalShape.h"
27 #include "TGMenu.h"
28 #include "TGComboBox.h"
29 // #define PERFTOOL_BROWSER
30 #include "TGeoShape.h"
31 #include "TGeoBBox.h"
32 #include "TEveManager.h"
33 #include "TEveGeoNode.h"
34 #include "TEveScene.h"
35 #include "TEveSceneInfo.h"
36 #include "TEveViewer.h"
37 #include "TGLViewer.h"
38 #include "TGLCamera.h"
39 #include "TEveSelection.h"
40 #include "TVirtualX.h"
41 #ifdef PERFTOOL_BROWSER
42 #include <google/profiler.h>
43 #endif
44 
45 //______________________________________________________________________________
46 //==============================================================================
47 //==============================================================================
48 //==============================================================================
49 //==============================================================================
50 
52  if (event->fType == kButtonPress) {
53  bool map = false;
54 
55  FWPopupMenu* m_viewPopup = new FWPopupMenu(nullptr);
56 
57  TEveElementList* views = gEve->GetViewers();
58  int idx = 0;
59 
60  for (TEveElement::List_i it = views->BeginChildren(); it != views->EndChildren(); ++it) {
61  TEveViewer* v = ((TEveViewer*)(*it));
62  if (strstr(v->GetElementName(), "3D")) {
63  bool added = false;
64  m_viewPopup->AddEntry(v->GetElementName(), idx);
65 
66  for (TEveElement::List_i eit = v->BeginChildren(); eit != v->EndChildren(); ++eit) {
67  TEveScene* s = ((TEveSceneInfo*)*eit)->GetScene();
68  if (m_el && s->HasChildren() && s->FirstChild() == m_el) {
69  added = true;
70  break;
71  }
72  }
73  map = true;
74  if (added)
75  m_viewPopup->CheckEntry(idx);
76  }
77  ++idx;
78  }
79 
80  if (map) {
81  Window_t wdummy;
82  Int_t ax, ay;
83  gVirtualX->TranslateCoordinates(GetId(),
84  gClient->GetDefaultRoot()->GetId(),
85  event->fX,
86  event->fY, //0,0 in local coordinates
87  ax,
88  ay, //coordinates of screen
89  wdummy);
90 
91  m_viewPopup->PlaceMenu(ax, ay, true, true);
92  m_viewPopup->Connect("Activated(Int_t)",
93  "FWGeometryTableViewBase",
94  const_cast<FWGeometryTableViewBase*>(m_tableView),
95  "selectView(Int_t)");
96  } else {
97  fwLog(fwlog::kInfo) << "No 3D View added. \n";
98  }
99  }
100  return true;
101 }
102 
103 //==============================================================================
104 //==============================================================================
105 // workaround to get ESC key event
106 
107 namespace {
108  class FWGeometryVF : public TGVerticalFrame {
109  public:
110  FWGeometryVF(const TGWindow* p, FWGeometryTableViewBase* tv) : TGVerticalFrame(p), m_tv(tv) {
111  m_tv = tv;
112  gVirtualX->SelectInput(GetId(),
113  kKeyPressMask | kKeyReleaseMask | kExposureMask | kPointerMotionMask |
114  kStructureNotifyMask | kFocusChangeMask | kEnterWindowMask | kLeaveWindowMask);
115  }
116 
117  ~FWGeometryVF() override{};
118 
119  Bool_t HandleKey(Event_t* event) override {
120  if (event->fCode == (UInt_t)gVirtualX->KeysymToKeycode(kKey_Escape)) {
121  m_tv->getTableManager()->cancelEditor(true);
122  }
123  return TGCompositeFrame::HandleKey(event);
124  }
125 
127  };
128 
129  class FWTranspEntry : public TGTextEntry {
130  public:
131  FWTranspEntry(const TGWindow* p, FWGeometryTableViewBase* tv) : TGTextEntry(p), m_tv(tv) {}
132  ~FWTranspEntry() override {}
133 
134  Bool_t HandleKey(Event_t* event) override {
135  if (event->fCode == (UInt_t)gVirtualX->KeysymToKeycode(kKey_Escape)) {
136  m_tv->getTableManager()->cancelEditor(true);
137  }
138  return TGTextEntry::HandleKey(event);
139  }
141  };
142 } // namespace
143 //==============================================================================
144 //==============================================================================
145 //==============================================================================
146 //==============================================================================
147 //==============================================================================
150  FWColorManager* colMng)
151  : FWViewBase(type),
152  m_topNodeIdx(this, "TopNodeIndex", -1l, 0, 1e7),
153  m_autoExpand(this, "ExpandList:", 1l, 0l, 100l),
154  m_enableHighlight(this, "EnableHighlight", true),
155  m_parentTransparencyFactor(this, "ParentTransparencyFactor", 1l, 0l, 100l),
156  m_leafTransparencyFactor(this, "LeafTransparencyFactor", 1l, 0l, 100l),
157  m_minParentTransparency(this, "MinParentTransparency", type == FWViewType::kOverlapTable ? 0l : 90l, 0l, 100l),
158  m_minLeafTransparency(this, "MinLeafTransparency", 0l, 0l, 100l),
159  m_colorManager(colMng),
160  m_colorPopup(nullptr),
161  m_eveWindow(nullptr),
162  m_frame(nullptr),
163  m_viewBox(nullptr),
164  m_viewersConfig(nullptr),
166  m_marker(nullptr),
167  m_eveTopNode(nullptr),
168  m_eveScene(nullptr),
170  m_eveWindow = iParent->MakeFrame(nullptr);
171  TGCompositeFrame* xf = m_eveWindow->GetGUICompositeFrame();
172 
173  m_frame = new FWGeometryVF(xf, this);
174 
175  xf->AddFrame(m_frame, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
176 
181 }
182 
185  m_frame->AddFrame(m_tableWidget, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 2, 2, 0, 0));
189  m_tableWidget->Connect("cellClicked(Int_t,Int_t,Int_t,Int_t,Int_t,Int_t)",
190  "FWGeometryTableViewBase",
191  this,
192  "cellClicked(Int_t,Int_t,Int_t,Int_t,Int_t,Int_t)");
194  // resetSetters();
195 
196  FWTranspEntry* editor = new FWTranspEntry(m_tableWidget->body(), this);
197  editor->SetBackgroundColor(gVirtualX->GetPixel(kYellow - 7));
198  editor->SetFrameDrawn(false);
199  editor->Connect("ReturnPressed()", "FWGeometryTableViewBase", this, "transparencyChanged()");
201 
202  m_frame->MapSubwindows();
203  editor->UnmapWindow();
204  m_frame->Layout();
205  m_eveWindow->GetGUICompositeFrame()->Layout();
206  m_frame->MapWindow();
207 }
208 //______________________________________________________________________________
209 
211  // take out composite frame and delete it directly (zwithout the timeout)
212  TGCompositeFrame* frame = m_eveWindow->GetGUICompositeFrame();
213  frame->RemoveFrame(m_frame);
214  delete m_frame;
215 
216  m_eveWindow->DestroyWindowAndSlot();
217  delete getTableManager();
218 }
219 
220 namespace {
221  TEveScene* getMarkerScene(TEveViewer* v) {
222  TEveElement* si = v->FindChild(Form("SI - EventScene %s", v->GetElementName()));
223  if (si)
224  return ((TEveSceneInfo*)(si))->GetScene();
225  else
226  return nullptr;
227  }
228 } // namespace
229 //==============================================================================
230 
232  std::string p;
234  setPath(idx, p);
235 }
236 
238  std::string path = "/";
239  path += getTableManager()->refEntries().at(0).name();
240  setPath(-1, path);
241 }
242 
244  if (getTopNodeIdx() != -1) {
245  int pIdx = getTableManager()->refEntries()[getTopNodeIdx()].m_parent;
246  std::string p;
247  getTableManager()->getNodePath(pIdx, p);
248  setPath(pIdx, p);
249  }
250 }
251 
254 
255  // printf("set path %d \n", parentIdx);
256  m_topNodeIdx.set(parentIdx);
257  // getTableManager()->refEntries().at(getTopNodeIdx()).setBitVal(FWGeometryTableManagerBase::kVisNodeSelf,!m_disableTopNode.value() );
258  getTableManager()->setLevelOffset(getTableManager()->refEntries().at(getTopNodeIdx()).m_level);
259 
261  refreshTable3D();
262 }
263 
264 //------------------------------------------------------------------------------
265 
267  // check expand state
268  int ae = m_autoExpand.value();
269  if (m_topNodeIdx.value() > 0)
270  ae += getTableManager()->refEntries().at(m_topNodeIdx.value()).m_level;
271 
273  i != getTableManager()->refEntries().end();
274  ++i) {
275  if (i->m_level < ae)
277  else
279  }
280 }
281 
282 //==============================================================================
283 
285  // post-config
286  if (m_viewersConfig) {
287  TEveElementList* viewers = gEve->GetViewers();
289 
290  if (nullptr != keyVals) {
291  for (FWConfiguration::KeyValuesIt it = keyVals->begin(); it != keyVals->end(); ++it) {
292  TString sname = it->first;
293  TEveViewer* v = dynamic_cast<TEveViewer*>(viewers->FindChild(sname.Data()));
294  if (!v) {
295  fwLog(fwlog::kError) << "FWGeometryTableViewBase::populate3DViewsFromConfig no viewer found " << it->first
296  << std::endl;
297  return;
298  }
299  v->AddScene(m_eveScene);
301  if (m_marker)
302  getMarkerScene(v)->AddElement(m_marker);
303 
304  gEve->FullRedraw3D(false, true);
305  }
306  }
307  }
308 }
309 
310 //==============================================================================
311 
313  // callback from sleclect view popup menu
314 
316 
317  TEveElement::List_i it = gEve->GetViewers()->BeginChildren();
318  std::advance(it, idx);
319  TEveViewer* v = (TEveViewer*)(*it);
320 
321  for (TEveElement::List_i eit = v->BeginChildren(); eit != v->EndChildren(); ++eit) {
322  if ((((TEveSceneInfo*)(*eit))->GetScene()) == m_eveScene) {
323  v->RemoveElement(*eit);
324  if (m_marker)
325  getMarkerScene(v)->RemoveElement(m_marker);
326  gEve->Redraw3D();
327  return;
328  }
329  }
330 
331  if (m_marker)
332  getMarkerScene(v)->AddElement(m_marker);
333  v->AddScene(m_eveScene);
334  gEve->Redraw3D();
335 }
336 
337 //==============================================================================
338 
340  // printf("cell clicled top node %p\n", (void*)m_eveTopNode);
341  if (gEve->GetSelection()->HasChild(m_eveTopNode))
342  gEve->GetSelection()->RemoveElement(m_eveTopNode);
343 
344  if (gEve->GetHighlight()->HasChild(m_eveTopNode))
345  gEve->GetHighlight()->RemoveElement(m_eveTopNode);
346 
347  // reset bits and sets for old selected table entry
350 
352  gEve->GetSelection()->AddElement(m_eveTopNode);
353 
356  gEve->Redraw3D();
357 }
358 //______________________________________________________________________________
359 
360 void FWGeometryTableViewBase::cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t x, Int_t y) {
361  int idx = getTableManager()->rowToIndex()[iRow];
363 
364  if (iColumn != 2)
365  getTableManager()->cancelEditor(false);
366 
367  bool elementChanged = false;
368  if (iButton == kButton1) {
369  if (iColumn == 0) {
370  Window_t wdummy;
371  Int_t xLoc, yLoc;
372  gVirtualX->TranslateCoordinates(
373  gClient->GetDefaultRoot()->GetId(), m_tableWidget->GetId(), x, y, xLoc, yLoc, wdummy);
374 
375  if (getTableManager()->firstColumnClicked(iRow, xLoc))
377  } else if (iColumn == 1) {
378  std::vector<Color_t> colors;
380 
381  if (!m_colorPopup) {
382  m_colorPopup = new FWColorPopup(gClient->GetDefaultRoot(), colors.front());
384  m_colorPopup->Connect("ColorSelected(Color_t)",
385  "FWGeometryTableViewBase",
386  const_cast<FWGeometryTableViewBase*>(this),
387  "nodeColorChangeRequested(Color_t");
388  }
390  m_colorPopup->SetName("Selected");
392  m_colorPopup->PlacePopup(x, y, m_colorPopup->GetDefaultWidth(), m_colorPopup->GetDefaultHeight());
393  return;
394  } else if (iColumn == 2) {
395  // transparency edit
397  } else if (iColumn == 3) {
398  // vis self
399  getTableManager()->setVisibility(ni, !getTableManager()->getVisibility(ni));
400  elementChanged = true;
401  } else if (iColumn == 4) {
402  // vis children
403  getTableManager()->setVisibilityChld(ni, !getTableManager()->getVisibilityChld(ni));
404  elementChanged = true;
405  } else if (iColumn == 6) {
406  // used in overlaps for RnrMarker column
407  ni.switchBit(BIT(5));
408  elementChanged = true;
409  } else {
411  }
412 
413  if (elementChanged) {
414  refreshTable3D();
415  // getTableManager()->dataChanged();
416  }
417  } else if (iColumn == 0) {
419  m_eveTopNode->popupMenu(x, y, nullptr);
420  }
421 }
422 
424  bool backgroundIsWhite = m_colorManager->backgroundColorIndex() == FWColorManager::kWhiteIndex;
425  if (backgroundIsWhite) {
428  } else {
431  }
432  getTableManager()->setBackgroundToWhite(backgroundIsWhite);
433  gClient->NeedRedraw(m_tableWidget);
434 }
435 
436 //______________________________________________________________________________
437 
439  // AMT: need to add virtual FWGeometryTableView::nodeColorChangeRequested() for volume mode
440 
441  // printf("color change %d \n", m_tableRowIndexForColorPopup);
442  if (m_tableRowIndexForColorPopup >= 0) {
444  ni.m_color = col;
445  ni.m_node->GetVolume()->SetLineColor(col);
446  refreshTable3D();
448  }
449 }
450 
451 //______________________________________________________________________________
453  int selectedIdx = m_eveTopNode->getFirstSelectedTableIndex();
455  // printf("chosen item %s %d\n", ni.name(), menuIdx);
456 
457  TGeoVolume* gv = ni.m_node->GetVolume();
458  bool resetHome = false;
459  if (gv) {
460  switch (menuIdx) {
462  getTableManager()->setVisibility(ni, false);
463  refreshTable3D();
464  break;
465 
467  getTableManager()->setDaughtersSelfVisibility(selectedIdx, false);
468  refreshTable3D();
469  break;
470 
472  getTableManager()->setDaughtersSelfVisibility(selectedIdx, true);
473  refreshTable3D();
474  break;
475 
477  getTableManager()->applyColorTranspToDaughters(selectedIdx, false);
478  refreshTable3D();
479  break;
480 
482  getTableManager()->applyColorTranspToDaughters(selectedIdx, true);
483  refreshTable3D();
484  break;
485 
487  gv->InspectMaterial();
488  break;
489 
491  gv->InspectShape();
492  break;
493 
495  std::string ps;
496  getTableManager()->getNodePath(selectedIdx, ps);
497  std::cout << ps << std::endl;
498  break;
499  }
501  cdNode(selectedIdx);
502  break;
503 
505  cdNode(selectedIdx);
506  resetHome = true;
507  break;
508 
509  case FWGeoTopNode::kCamera: {
510  TGLViewer* v = FWGeoTopNode::s_pickedViewer;
511  v->CurrentCamera().SetExternalCenter(true);
512  v->CurrentCamera().SetCenterVec(FWGeoTopNode::s_pickedCamera3DCenter.X(),
515  v->SetDrawCameraCenter(true);
516  // resetHome = true;
517  break;
518  }
519  default:
520  return;
521  }
522  }
523 
524  if (resetHome)
525  gEve->FullRedraw3D(true, true);
526 }
527 //______________________________________________________________________________
530  refreshTable3D();
531 }
532 
533 //______________________________________________________________________________
534 
536  if (m_enableRedraw) {
537  if (gEve->GetSelection()->HasChild(m_eveTopNode))
538  gEve->GetSelection()->RemoveElement(m_eveTopNode);
539 
540  if (gEve->GetHighlight()->HasChild(m_eveTopNode))
541  gEve->GetHighlight()->RemoveElement(m_eveTopNode);
542 
543  m_eveTopNode->m_scene->PadPaint(m_eveTopNode->m_scene->GetPad());
544  gEve->Redraw3D();
545 
547  }
548 }
549 
550 //______________________________________________________________________________
551 
554 
555  FWConfiguration viewers(1);
556  FWConfiguration tempArea;
557 
558  for (TEveElement::List_i k = gEve->GetViewers()->BeginChildren(); k != gEve->GetViewers()->EndChildren(); ++k) {
559  for (TEveElement::List_i eit = (*k)->BeginChildren(); eit != (*k)->EndChildren(); ++eit) {
560  TEveScene* s = ((TEveSceneInfo*)*eit)->GetScene();
561  if (s->GetGLScene() == m_eveTopNode->m_scene) {
562  viewers.addKeyValue((*k)->GetElementName(), tempArea);
563  break;
564  }
565  }
566  }
567 
568  iTo.addKeyValue("Viewers", viewers, true);
569 }
570 
571 //______________________________________________________________________________
572 
574  int tn;
576  if (!value)
577  return;
578 
579  std::istringstream s(value->value());
580  s >> tn;
581  int lastIdx = getTableManager()->refEntries().size() - 1;
582  if (tn >= lastIdx) {
583  fwLog(fwlog::kWarning) << Form(
584  "Ignoring node path from confugration file -- %s value larger than number of nodes \n",
585  m_topNodeIdx.name().c_str());
586  return;
587  }
588  // std::cerr << "set top node " << ;
589  m_topNodeIdx.set(tn);
590 }
591 
592 //______________________________________________________________________________
593 
595  // printf("relaodColors \n");
597  i != getTableManager()->refEntries().end();
598  ++i) {
599  i->m_color = i->m_node->GetVolume()->GetLineColor();
600  }
601 
602  refreshTable3D();
603 }
604 
605 //______________________________________________________________________________
606 
608  gui.requestTab("Style")
609  .separator()
610  .
611  //addParam(&m_parentTransparencyFactor).
612  // addParam(&m_leafTransparencyFactor).
613  addParam(&m_minParentTransparency)
615  .separator();
616  TGTextButton* butt = new TGTextButton(gui.getTabContainer(), "ReloadColors");
617  gui.getTabContainer()->AddFrame(butt);
618  butt->Connect("Clicked()", "FWGeometryTableViewBase", (FWGeometryTableViewBase*)this, "reloadColors()");
619 }
FWGeometryTableViewBase::m_tableWidget
FWTableWidget * m_tableWidget
Definition: FWGeometryTableViewBase.h:122
FWGeometryTableViewBase::reloadColors
void reloadColors()
Definition: FWGeometryTableViewBase.cc:594
FWGeoTopNode::kApplyChldColRec
Definition: FWGeoTopNode.h:52
FWColorPopup::ResetColors
void ResetColors(const std::vector< Color_t > &colors, bool backgroundIsBlack=true)
Definition: FWColorSelect.cc:216
DDAxes::y
FWGeometryTableManagerBase::kExpanded
Definition: FWGeometryTableManagerBase.h:43
FWTableWidget::SetBackgroundColor
void SetBackgroundColor(Pixel_t) override
Definition: FWTableWidget.cc:173
fwLog
#define fwLog(_level_)
Definition: fwLog.h:45
FWGeometryTableViewBase::getTableManager
virtual FWGeometryTableManagerBase * getTableManager()
Definition: FWGeometryTableViewBase.h:78
mps_fire.i
i
Definition: mps_fire.py:355
FWGeometryTableViewBase::m_viewersConfig
const FWConfiguration * m_viewersConfig
Definition: FWGeometryTableViewBase.h:133
FWGeometryTableViewBase::FWViewCombo::m_tableView
FWGeometryTableViewBase * m_tableView
Definition: FWGeometryTableViewBase.h:50
FWGeoTopNode.h
FWGeometryTableViewBase::FWViewCombo::setElement
void setElement(TEveElement *x)
Definition: FWGeometryTableViewBase.h:64
colors
vector< Color_t > colors
Definition: trackSplitPlot.h:37
colors
Definition: colors.py:1
FWGeometryTableViewBase::FWViewCombo::m_el
TEveElement * m_el
Definition: FWGeometryTableViewBase.h:51
FWGeometryTableViewBase::chosenItem
virtual void chosenItem(int)
Definition: FWGeometryTableViewBase.cc:452
FWViewType::EType
EType
Definition: FWViewType.h:31
FWColorPopup::SetName
void SetName(const char *iName) override
Definition: FWColorSelect.cc:274
FWGeometryTableViewBase::m_eveTopNode
FWGeoTopNode * m_eveTopNode
Definition: FWGeometryTableViewBase.h:138
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
X
#define X(str)
Definition: MuonsGrabber.cc:38
FWGeoTopNode::getFirstSelectedTableIndex
int getFirstSelectedTableIndex()
Definition: FWGeoTopNode.cc:164
FWGeometryTableViewBase::setColumnSelected
void setColumnSelected(int idx)
Definition: FWGeometryTableViewBase.cc:339
FWGeometryTableViewBase.h
FWGeometryTableManagerBase::showEditor
void showEditor(int)
Definition: FWGeometryTableManagerBase.cc:215
FWGeoTopNode::UnHighlighted
void UnHighlighted() override
Definition: FWGeoTopNode.cc:327
FWGeometryTableViewBase::m_enableHighlight
FWBoolParameter m_enableHighlight
Definition: FWGeometryTableViewBase.h:113
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FWGeometryTableManagerBase::firstColumnClicked
bool firstColumnClicked(int row, int xPos)
Definition: FWGeometryTableManagerBase.cc:135
cuy.col
col
Definition: cuy.py:1010
gather_cfg.cout
cout
Definition: gather_cfg.py:144
FWGeometryTableViewBase::refreshTable3D
virtual void refreshTable3D()
Definition: FWGeometryTableViewBase.cc:535
FWEveDigitSetScalableMarker.h
FWGeometryTableViewBase::m_autoExpand
FWLongParameter m_autoExpand
Definition: FWGeometryTableViewBase.h:112
FWGeometryTableViewBase::postConst
void postConst()
Definition: FWGeometryTableViewBase.cc:183
FWGeometryTableViewBase::m_parentTransparencyFactor
FWLongParameter m_parentTransparencyFactor
Definition: FWGeometryTableViewBase.h:115
FWGeometryTableViewBase::selectView
void selectView(int)
Definition: FWGeometryTableViewBase.cc:312
FWGeoTopNode::kVisChldOff
Definition: FWGeoTopNode.h:50
FWGeometryTableViewBase::m_minParentTransparency
FWLongParameter m_minParentTransparency
Definition: FWGeometryTableViewBase.h:117
charmTagsComputerCvsB_cfi.idx
idx
Definition: charmTagsComputerCvsB_cfi.py:108
FWGeometryTableManagerBase::cancelEditor
void cancelEditor(bool)
Definition: FWGeometryTableManagerBase.cc:244
FWGeoTopNode::clearSelection
void clearSelection()
Definition: FWGeoTopNode.h:76
FWGeometryTableViewBase::setTopNodePathFromConfig
void setTopNodePathFromConfig(const FWConfiguration &iFrom)
Definition: FWGeometryTableViewBase.cc:573
FWGenericParameter::set
void set(T iValue)
Definition: FWGenericParameter.h:70
FWColorManager::backgroundColorIndex
BackgroundColorIndex backgroundColorIndex() const
Definition: FWColorManager.cc:260
DDAxes::x
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FWColorSelect.h
FWGeometryTableManagerBase.h
FWParameterizable::begin
const_iterator begin() const
Definition: FWParameterizable.h:36
FWGeoTopNode::kVisChldOn
Definition: FWGeoTopNode.h:49
FWGeometryTableViewBase::checkExpandLevel
void checkExpandLevel()
Definition: FWGeometryTableViewBase.cc:266
FWGeometryTableManagerBase::setLevelOffset
void setLevelOffset(int x)
Definition: FWGeometryTableManagerBase.h:152
FWConfiguration::KeyValues
std::vector< std::pair< std::string, FWConfiguration > > KeyValues
Definition: FWConfiguration.h:40
FWGeometryTableManagerBase::rowToIndex
std::vector< int > rowToIndex()
Definition: FWGeometryTableManagerBase.h:133
FWGeometryTableViewBase::addTo
void addTo(FWConfiguration &) const override
Definition: FWGeometryTableViewBase.cc:552
FWGeometryTableManagerBase::NodeInfo::m_color
Color_t m_color
Definition: FWGeometryTableManagerBase.h:60
FWGeometryTableViewBase::m_leafTransparencyFactor
FWLongParameter m_leafTransparencyFactor
Definition: FWGeometryTableViewBase.h:116
FWGeoTopNode::kSetTopNodeCam
Definition: FWGeoTopNode.h:47
FWGeometryTableViewBase::m_marker
FWEveDigitSetScalableMarker * m_marker
Definition: FWGeometryTableViewBase.h:137
FWGeoTopNode::kPrintPath
Definition: FWGeoTopNode.h:55
FWGeometryTableManagerBase::NodeInfo::switchBit
void switchBit(UChar_t f)
Definition: FWGeometryTableManagerBase.h:75
FWGeometryTableViewBase::nodeColorChangeRequested
void nodeColorChangeRequested(Color_t)
Definition: FWGeometryTableViewBase.cc:438
FWTableWidget::disableGrowInWidth
void disableGrowInWidth()
Definition: FWTableWidget.cc:498
alignCSCRings.s
s
Definition: alignCSCRings.py:92
FWGenericParameter::changed_
sigc::signal< void, T > changed_
Definition: FWGenericParameter.h:75
FWGeometryTableViewBase::setPath
virtual void setPath(int, std::string &)
Definition: FWGeometryTableViewBase.cc:252
FWGeometryTableViewBase::cdTop
virtual void cdTop()
Definition: FWGeometryTableViewBase.cc:237
ViewerParameterGUI::separator
ViewerParameterGUI & separator()
Definition: CmsShowViewPopup.cc:232
FWGeoTopNode::popupMenu
virtual void popupMenu(int x, int y, TGLViewer *)
Definition: FWGeoTopNode.h:82
FWGeometryTableManagerBase::getNodePath
void getNodePath(int, std::string &) const
Definition: FWGeometryTableManagerBase.cc:192
FWColorManager.h
FWGeometryTableViewBase::populate3DViewsFromConfig
void populate3DViewsFromConfig()
Definition: FWGeometryTableViewBase.cc:284
FWGeometryTableManagerBase::NodeInfo::m_node
TGeoNode * m_node
Definition: FWGeometryTableManagerBase.h:58
FWTableWidget
Definition: FWTableWidget.h:35
FWTableWidget.h
FWGeoTopNode::kApplyChldCol
Definition: FWGeoTopNode.h:51
vertices_cff.x
x
Definition: vertices_cff.py:29
FWGeometryTableViewBase
Definition: FWGeometryTableViewBase.h:41
FWGeometryTableViewBase::m_tableRowIndexForColorPopup
int m_tableRowIndexForColorPopup
Definition: FWGeometryTableViewBase.h:154
FWGeometryTableManagerBase::applyColorTranspToDaughters
virtual void applyColorTranspToDaughters(int selectedIdx, bool recurse)
Definition: FWGeometryTableManagerBase.cc:289
FWConfiguration::KeyValuesIt
KeyValues::const_iterator KeyValuesIt
Definition: FWConfiguration.h:41
FWConfiguration::valueForKey
const FWConfiguration * valueForKey(const std::string &iKey) const
Definition: FWConfiguration.cc:121
FWGeometryTableViewBase::setBackgroundColor
void setBackgroundColor()
Definition: FWGeometryTableViewBase.cc:423
FWGeometryTableViewBase::m_frame
TGCompositeFrame * m_frame
Definition: FWGeometryTableViewBase.h:129
FWGeometryTableViewBase::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FWGeometryTableViewBase.cc:607
dqmdumpme.k
k
Definition: dqmdumpme.py:60
FWGeometryTableViewBase::m_eveScene
TEveScene * m_eveScene
Definition: FWGeometryTableViewBase.h:139
FWGeometryTableViewBase::cdNode
void cdNode(int)
Definition: FWGeometryTableViewBase.cc:231
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
funct::true
true
Definition: Factorize.h:173
FWGeometryTableManagerBase::setVisibilityChld
virtual void setVisibilityChld(NodeInfo &, bool)
Definition: FWGeometryTableManagerBase.cc:260
ViewerParameterGUI::getTabContainer
TGCompositeFrame * getTabContainer()
Definition: CmsShowViewPopup.cc:240
FWGeoTopNode::s_pickedViewer
static TGLViewer * s_pickedViewer
Definition: FWGeoTopNode.h:88
FWGeometryTableManagerBase::setBackgroundToWhite
void setBackgroundToWhite(bool)
Definition: FWGeometryTableManagerBase.cc:125
FWGeometryTableViewBase::m_topNodeIdx
FWLongParameter m_topNodeIdx
Definition: FWGeometryTableViewBase.h:111
FWGeoTopNode::UnSelected
void UnSelected() override
Definition: FWGeoTopNode.cc:318
FWParameterSetterBase.h
FWPopupMenu
Definition: FWPopupMenu.cc:5
FWGeoTopNode::m_scene
FWGeoTopNodeGLScene * m_scene
Definition: FWGeoTopNode.h:66
FWGeometryTableViewBase::transparencyChanged
void transparencyChanged()
Definition: FWGeometryTableViewBase.cc:528
FWGeometryTableViewBase::FWGeometryTableViewBase
FWGeometryTableViewBase(TEveWindowSlot *, FWViewType::EType, FWColorManager *)
Definition: FWGeometryTableViewBase.cc:148
FWColorPopup::PlacePopup
void PlacePopup(Int_t x, Int_t y, UInt_t w, UInt_t h)
Definition: FWColorSelect.cc:229
FWGeometryTableManagerBase::setDaughtersSelfVisibility
void setDaughtersSelfVisibility(bool)
FWPopupMenu.cc
FWGeometryTableViewBase::m_enableRedraw
bool m_enableRedraw
Definition: FWGeometryTableViewBase.h:135
FWParameterBase::name
const std::string & name() const
Definition: FWParameterBase.h:39
value
Definition: value.py:1
DOFs::Z
Definition: AlignPCLThresholdsWriter.cc:37
FWGeoTopNode::kPrintMaterial
Definition: FWGeoTopNode.h:54
FWGeometryTableViewBase::m_colorPopup
FWColorPopup * m_colorPopup
Definition: FWGeometryTableViewBase.h:126
fwlog::kWarning
Definition: fwLog.h:35
fwLog.h
FWGeometryTableViewBase::cdUp
virtual void cdUp()
Definition: FWGeometryTableViewBase.cc:243
FWColorManager
Definition: FWColorManager.h:45
FWGeometryTableManagerBase::applyTransparencyFromEditor
void applyTransparencyFromEditor()
Definition: FWGeometryTableManagerBase.cc:224
FWColorPopup
Definition: FWColorSelect.h:68
FWGeometryTableManagerBase::refEntries
Entries_v & refEntries()
Definition: FWGeometryTableManagerBase.h:143
FWGeometryTableViewBase::getTopNodeIdx
int getTopNodeIdx() const
Definition: FWGeometryTableViewBase.h:97
FWGeometryTableManagerBase::kSelected
Definition: FWGeometryTableManagerBase.h:49
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
FWGeometryTableManagerBase::NodeInfo
Definition: FWGeometryTableManagerBase.h:52
FWGeometryTableManagerBase::setCellValueEditor
void setCellValueEditor(TGTextEntry *editor)
Definition: FWGeometryTableManagerBase.cc:210
FWGenericParameter::value
T value() const
Definition: FWGenericParameter.h:50
FWGeometryTableManagerBase::setVisibility
virtual void setVisibility(NodeInfo &, bool)
Definition: FWGeometryTableManagerBase.cc:256
FWConfiguration::addKeyValue
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
Definition: FWConfiguration.cc:57
FWColorManager::kWhiteIndex
Definition: FWColorManager.h:73
fwlog::kInfo
Definition: fwLog.h:35
FWGeometryTableViewBase::m_minLeafTransparency
FWLongParameter m_minLeafTransparency
Definition: FWGeometryTableViewBase.h:118
type
type
Definition: HCALResponse.h:21
FWTableWidget::SetLineSeparatorColor
void SetLineSeparatorColor(Pixel_t)
Definition: FWTableWidget.cc:209
DOFs::Y
Definition: AlignPCLThresholdsWriter.cc:37
FWGeoTopNode::s_pickedCamera3DCenter
static TGLVector3 s_pickedCamera3DCenter
Definition: FWGeoTopNode.h:87
FWConfigurableParameterizable::addTo
void addTo(FWConfiguration &) const override
Definition: FWConfigurableParameterizable.cc:67
FWGeometryTableViewBase::m_colorManager
FWColorManager * m_colorManager
Definition: FWGeometryTableViewBase.h:121
FWTableWidget::body
FWTabularWidget * body()
Definition: FWTableWidget.h:90
FWGeometryTableManagerBase::redrawTable
void redrawTable(bool setExpand=false)
Definition: FWGeometryTableManagerBase.cc:177
amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12
FWConfiguration::keyValues
const KeyValues * keyValues() const
Definition: FWConfiguration.h:51
FWColorManager::fillLimitedColors
void fillLimitedColors(std::vector< Color_t > &cv) const
Definition: FWColorManager.cc:253
CmsShowViewPopup.h
detailsBasic3DVector::y
float float y
Definition: extBasic3DVector.h:14
FWColorManager::kBlackIndex
Definition: FWColorManager.h:73
FWGeometryTableManagerBase::refEntry
NodeInfo & refEntry(int i)
Definition: FWGeometryTableManagerBase.h:144
FWTableWidget::SetHeaderBackgroundColor
void SetHeaderBackgroundColor(Pixel_t)
Definition: FWTableWidget.cc:188
fwlog::kError
Definition: fwLog.h:35
FWGeometryTableViewBase::m_viewBox
FWViewCombo * m_viewBox
Definition: FWGeometryTableViewBase.h:131
FWConfiguration
Definition: FWConfiguration.h:31
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FWGeoTopNode::kCamera
Definition: FWGeoTopNode.h:53
FWGeometryTableManagerBase::Entries_i
Entries_v::iterator Entries_i
Definition: FWGeometryTableManagerBase.h:88
event
Definition: event.py:1
FWViewBase
Definition: FWViewBase.h:36
FWViewType
Definition: FWViewType.h:22
FWGeoTopNode::selectPhysicalFromTable
bool selectPhysicalFromTable(int)
Definition: FWGeoTopNode.cc:141
FWGeoTopNodeScene.h
FWGeometryTableViewBase::~FWGeometryTableViewBase
~FWGeometryTableViewBase() override
Definition: FWGeometryTableViewBase.cc:210
FWGeometryTableViewBase::m_eveWindow
TEveWindowFrame * m_eveWindow
Definition: FWGeometryTableViewBase.h:128
FWColorPopup::InitContent
void InitContent(const char *name, const std::vector< Color_t > &colors, bool backgroundIsBlack=true)
Definition: FWColorSelect.cc:165
FWGeoTopNode::kSetTopNode
Definition: FWGeoTopNode.h:46
FWGeometryTableViewBase::cellClicked
virtual void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
Definition: FWGeometryTableViewBase.cc:360
ViewerParameterGUI::addParam
ViewerParameterGUI & addParam(const FWParameterBase *)
Definition: CmsShowViewPopup.cc:212
FWGeoTopNode::kPrintShape
Definition: FWGeoTopNode.h:56
FWGUIManager.h
FWGeoTopNode::kVisSelfOff
Definition: FWGeoTopNode.h:48
ViewerParameterGUI::requestTab
ViewerParameterGUI & requestTab(const char *)
Definition: CmsShowViewPopup.cc:197
FWGeometryTableViewBase::FWViewCombo::HandleButton
Bool_t HandleButton(Event_t *event) override
Definition: FWGeometryTableViewBase.cc:51
FWGeometryTableManagerBase::NodeInfo::setBit
void setBit(UChar_t f)
Definition: FWGeometryTableManagerBase.h:68