CMS 3D CMS Logo

CmsShowEDI.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : CmsShowEDI
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Joshua Berger
10 // Created: Mon Jun 23 15:48:11 EDT 2008
11 //
12 
13 // system include files
14 #include <iostream>
15 #include <sstream>
16 #include <sigc++/sigc++.h>
17 #include <boost/bind.hpp>
18 #include "TClass.h"
19 #include "TGFrame.h"
20 #include "TGTab.h"
21 #include "TGButton.h"
22 #include "TGLabel.h"
23 #include "TGString.h"
24 #include "TColor.h"
25 #include "TG3DLine.h"
26 #include "TGNumberEntry.h"
27 #include "TGTextEntry.h"
28 #include "TGTextView.h"
29 #include "TGLayout.h"
30 #include "TGFont.h"
31 #include "TEveManager.h"
32 #include "TGSlider.h"
33 #include "TGMsgBox.h"
34 #include "TGComboBox.h"
35 #include "TVirtualX.h"
36 
37 // user include files
52 
53 //
54 // constants, enums and typedefs
56 
57 //
58 // static data member definitions
59 //
60 
61 //
62 // constructors and destructor
63 //
64 CmsShowEDI::CmsShowEDI(const TGWindow* p, UInt_t w, UInt_t h, FWSelectionManager* selMgr, FWColorManager* colorMgr)
65  : TGTransientFrame(gClient->GetDefaultRoot(), p, w, h),
66  m_item(nullptr),
67  m_validator(new FWExpressionValidator),
68  m_colorManager(colorMgr),
69  m_settersFrame(nullptr) {
70  m_selectionManager = selMgr;
71  SetCleanup(kDeepCleanup);
72 
74 
75  TGVerticalFrame* vf = new TGVerticalFrame(this);
76  AddFrame(vf, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0));
77  FWDialogBuilder builder(vf, nullptr, true);
78 
79  builder.indent(0)
80  .expand(true, false)
81  .addLabel(" ", 14, 2, &m_objectLabel)
82  // .vSpacer()
83  .tabs(&m_tabs)
84  .beginTab("Graphics")
85  .indent(3)
86  .addLabel("Color", 8)
88  .expand(false)
89  .addHSeparator()
90  .addLabel("Opacity", 8)
92  .addHSeparator()
93  .addCheckbox("Visible", &m_isVisibleButton)
94  .addHSeparator()
95  .addLabel("Drawing order", 8)
96  .addTextButton("To back", &m_backButton)
97  .floatLeft()
98  .expand(false)
100  0.0, 4, TGNumberFormat::kNESInteger, FWEventItem::minLayerValue(), FWEventItem::maxLayerValue(), &m_layerEntry)
101  .expand(false)
102  .floatLeft()
103  .addTextButton("To front", &m_frontButton)
104  .expand(false)
105  .vSpacer()
106  .addHSeparator()
107  .endTab()
108  .beginTab("Filter")
109  .indent(3)
110  .addLabel("Expression", 8)
112  .floatLeft()
113  .addTextButton("Filter", &m_filterButton)
114  .expand(false)
116  .vSpacer()
117  .endTab()
118  .beginTab("Select")
119  .indent(3)
120  .addLabel("Expression", 8)
122  .addTextButton("Select", &m_selectButton)
123  .floatLeft()
124  .expand(false)
125  .addTextButton("Select all", &m_selectAllButton)
126  .expand(false)
127  .floatLeft()
128  .addTextButton("Unselect all", &m_deselectAllButton)
129  .expand(false)
130  .indent(3)
131  .addLabel("Color Selection", 8)
132  .addColorPicker(colorMgr, &m_cw)
133  .expand(false)
135  .vSpacer()
136  .endTab()
137  .beginTab("Data")
138  .indent(3)
139  .addLabel("Name:", 8)
140  .addTextEntry("None", &m_nameEntry)
141  .addLabel("Labels:", 8)
142  .addLabel("Type:", 8)
143  .addTextEntry("None", &m_typeEntry)
144  .addLabel("Module:", 8)
145  .addTextEntry("None", &m_moduleEntry)
146  .addLabel("Instance:", 8)
147  .addTextEntry("None", &m_instanceEntry)
148  .addLabel("Process:", 8)
149  .addTextEntry("None", &m_processEntry)
150  .addHSeparator()
151  .addTextButton("Remove collection", &m_removeButton)
152  .expand(false)
153  .vSpacer()
154  .endTab()
155  .untabs();
156 
157  m_filterError->SetForegroundColor(gVirtualX->GetPixel(kRed));
158  m_filterError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
159  m_filterError->ChangeOptions(0);
160 
161  m_selectError->SetForegroundColor(gVirtualX->GetPixel(kRed));
162  m_selectError->SetBackgroundColor(TGFrame::GetDefaultFrameBackground());
163  m_selectError->ChangeOptions(0);
164 
167 
168  m_colorSelectWidget->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeItemColor(Color_t)");
169  m_cw->Connect("ColorChosen(Color_t)", "CmsShowEDI", this, "changeSelectionColor(Color_t)");
170  m_opacitySlider->Connect("PositionChanged(Int_t)", "CmsShowEDI", this, "changeItemOpacity(Int_t)");
171  m_isVisibleButton->Connect("Toggled(Bool_t)", "CmsShowEDI", this, "toggleItemVisible(Bool_t)");
172  m_filterExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runFilter()");
173  m_filterButton->Connect("Clicked()", "CmsShowEDI", this, "runFilter()");
174  m_selectExpressionEntry->Connect("ReturnPressed()", "CmsShowEDI", this, "runSelection()");
175  m_selectButton->Connect("Clicked()", "CmsShowEDI", this, "runSelection()");
176  m_removeButton->Connect("Clicked()", "CmsShowEDI", this, "removeItem()");
177  m_selectAllButton->Connect("Clicked()", "CmsShowEDI", this, "selectAll()");
178  m_deselectAllButton->Connect("Clicked()", "CmsShowEDI", this, "deselectAll()");
179  m_frontButton->Connect("Clicked()", "CmsShowEDI", this, "moveToFront()");
180  m_backButton->Connect("Clicked()", "CmsShowEDI", this, "moveToBack()");
181  m_layerEntry->Connect("ValueSet(Long_t)", "CmsShowEDI", this, "moveToLayer(Long_t)");
182 
183  TGCompositeFrame* cf = m_tabs->GetTabContainer(0);
184  m_settersFrame = new TGVerticalFrame(cf);
185  m_settersFrame->SetCleanup(kDeepCleanup);
186  cf->AddFrame(m_settersFrame, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
187 
188  SetWindowName("Collection Controller");
189  MapSubwindows();
190  Resize(GetDefaultSize());
191  Layout();
192 
193  fillEDIFrame();
194 }
195 
196 // CmsShowEDI::CmsShowEDI(const CmsShowEDI& rhs)
197 // {
198 // // do actual copying here;
199 // }
200 
202  disconnectAll();
203  m_colorSelectWidget->Disconnect("ColorSelected(Pixel_t)", this, "changeItemColor(Pixel_t)");
204  m_cw->Disconnect("ColorSelected(Pixel_t)", this, "changeSelectionColor(Pixel_t)");
205  m_opacitySlider->Disconnect("PositionChanged(Int_t)", this, "changeItemColor");
206  m_isVisibleButton->Disconnect("Toggled(Bool_t)", this, "toggleItemVisible(Bool_t)");
207  m_filterExpressionEntry->Disconnect("ReturnPressed()", this, "runFilter()");
208  m_selectExpressionEntry->Disconnect("ReturnPressed()", this, "runSelection()");
209  m_filterButton->Disconnect("Clicked()", this, "runFilter()");
210  m_selectButton->Disconnect("Clicked()", this, "runSelection()");
211  m_selectAllButton->Disconnect("Clicked()", this, "selectAll()");
212  m_deselectAllButton->Disconnect("Clicked()", this, "deselectAll()");
213  m_removeButton->Disconnect("Clicked()", this, "removeItem()");
214  m_frontButton->Disconnect("Clicked()", this, "moveToFront()");
215  m_backButton->Disconnect("Clicked()", this, "moveToBack()");
216  m_layerEntry->Disconnect("ValueSet(Long_t)", this, "moveToLayer(Long_t)");
217  // delete m_objectLabel;
218  // delete m_colorSelectWidget;
219  // delete m_isVisibleButton;
220  delete m_validator;
221 }
222 
223 //
224 // assignment operators
225 //
226 // const CmsShowEDI& CmsShowEDI::operator=(const CmsShowEDI& rhs)
227 // {
228 // //An exception safe implementation is
229 // CmsShowEDI temp(rhs);
230 // swap(rhs);
231 //
232 // return *this;
233 // }
234 
235 //
236 // member functions
237 //
238 
240  if (!m_settersFrame->GetList()->IsEmpty()) {
241  // printf("remove FRAME \n");
242  TGFrameElement* el = (TGFrameElement*)m_settersFrame->GetList()->First();
243  TGFrame* f = el->fFrame;
244  f->UnmapWindow();
245  m_settersFrame->RemoveFrame(f);
246  f->DestroyWindow();
247  }
248 }
249 
251  FWEventItem* iItem = nullptr;
252  bool multipleCollections = false;
253  if (!m_selectionManager->selectedItems().empty()) {
254  if (m_selectionManager->selectedItems().size() == 1) {
255  iItem = *(m_selectionManager->selectedItems().begin());
256  } else {
257  multipleCollections = true;
258  }
259  }
260  //m_item can be zero because we had 0 or many collections selected
261  if (nullptr == m_item || iItem != m_item) {
262  disconnectAll();
263  m_item = iItem;
264  if (nullptr != m_item) {
266  m_objectLabel->SetText(iItem->name().c_str());
267  m_colorSelectWidget->SetColorByIndex(p.color(), kFALSE);
268  m_opacitySlider->SetPosition(100 - p.transparency());
269  m_isVisibleButton->SetDisabledAndSelected(p.isVisible());
270  m_validator->setType(edm::TypeWithDict(*(iItem->modelType()->GetTypeInfo())));
271  m_filterExpressionEntry->SetText(iItem->filterExpression().c_str());
272  m_filterError->Clear();
273  m_selectError->Clear();
274  m_nameEntry->SetText(iItem->name().c_str());
275  m_typeEntry->SetText(iItem->type()->GetName());
276  m_moduleEntry->SetText(iItem->moduleLabel().c_str());
277  m_instanceEntry->SetText(iItem->productInstanceLabel().c_str());
278  m_processEntry->SetText(iItem->processName().c_str());
279  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
280  m_colorSelectWidget->SetEnabled(kTRUE);
281  m_opacitySlider->SetEnabled(kTRUE);
282  m_isVisibleButton->SetEnabled(kTRUE);
283  m_filterExpressionEntry->SetEnabled(kTRUE);
284  m_selectExpressionEntry->SetEnabled(kTRUE);
285  m_filterButton->SetEnabled(kTRUE);
286  m_selectButton->SetEnabled(kTRUE);
287  m_selectAllButton->SetEnabled(kTRUE);
288  m_deselectAllButton->SetEnabled(kTRUE);
289  m_cw->SetColorByIndex(p.color(), kFALSE);
290  m_cw->SetEnabled(kTRUE);
291  m_removeButton->SetEnabled(kTRUE);
293  m_layerEntry->SetState(kTRUE);
296  m_modelChangedConn = m_item->changed_.connect(boost::bind(&CmsShowEDI::updateFilter, this));
297  // m_selectionChangedConn = m_selectionManager->selectionChanged_.connect(boost::bind(&CmsShowEDI::updateSelection, this));
299 
300  clearPBFrame();
302  } else if (multipleCollections) {
303  std::ostringstream s;
304  s << m_selectionManager->selectedItems().size() << " Collections Selected";
305  m_objectLabel->SetText(s.str().c_str());
306  }
307 
308  Resize(GetDefaultSize());
309  Layout();
310  }
311 }
312 
314  Int_t chosen = 0;
315  std::string message("This action will remove the ");
316  message += m_item->name();
317  message +=
318  " collection from the display."
319  "\nIf you wish to return the collection you would have to use the 'Add Collection' window.";
320  new TGMsgBox(gClient->GetDefaultRoot(),
321  this,
322  "Remove Collection Confirmation",
323  message.c_str(),
324  kMBIconExclamation,
325  kMBCancel | kMBApply,
326  &chosen);
327  if (kMBApply == chosen) {
328  m_item->destroy();
329  m_item = nullptr;
330  //make sure the ROOT global editor does not try to use this
331  gEve->EditElement(nullptr);
332  gEve->Redraw3D();
333  }
334 }
335 
337  //std::cout<<"Updating display"<<std::endl;
339  m_colorSelectWidget->SetColorByIndex(props.color(), kFALSE);
340  m_opacitySlider->SetPosition(100 - props.transparency());
341  m_isVisibleButton->SetState(props.isVisible() ? kButtonDown : kButtonUp, kFALSE);
342 }
343 
345  m_backButton->SetEnabled(!m_item->isInBack());
346  m_frontButton->SetEnabled(!m_item->isInFront());
347  m_layerEntry->SetIntNumber(m_item->layer());
348 }
350  m_item->moveToBack();
352 }
354  m_item->moveToFront();
356 }
358  m_item->moveToLayer(static_cast<Int_t>(m_layerEntry->GetIntNumber()));
360 }
361 
363 
365  m_objectLabel->SetText("No Collection Selected");
366  clearPBFrame();
367  if (nullptr != m_item) {
368  m_displayChangedConn.disconnect();
369  m_modelChangedConn.disconnect();
370  m_destroyedConn.disconnect();
371  m_item = nullptr;
373  m_opacitySlider->SetPosition(100);
374  m_isVisibleButton->SetDisabledAndSelected(kTRUE);
375  m_filterExpressionEntry->SetText(nullptr);
376  m_selectExpressionEntry->SetText(nullptr);
377  m_nameEntry->SetText(nullptr);
378  m_typeEntry->SetText(nullptr);
379  m_moduleEntry->SetText(nullptr);
380  m_instanceEntry->SetText(nullptr);
381  m_processEntry->SetText(nullptr);
382  // else m_isVisibleButton->SetState(kButtonDown, kFALSE);
383  m_colorSelectWidget->SetEnabled(kFALSE);
384  m_opacitySlider->SetEnabled(kFALSE);
385 
386  m_isVisibleButton->SetEnabled(kFALSE);
387  m_filterExpressionEntry->SetEnabled(kFALSE);
388  m_filterButton->SetEnabled(kFALSE);
389  m_selectExpressionEntry->SetEnabled(kFALSE);
390  m_selectButton->SetEnabled(kFALSE);
391  m_selectAllButton->SetEnabled(kFALSE);
392  m_deselectAllButton->SetEnabled(kFALSE);
393  m_removeButton->SetEnabled(kFALSE);
394  m_backButton->SetEnabled(kFALSE);
395  m_frontButton->SetEnabled(kFALSE);
396  m_layerEntry->SetIntNumber(0);
397  m_layerEntry->SetState(kFALSE);
398  m_layerEntry->GetNumberEntry()->SetEnabled(kFALSE);
399  m_layerEntry->GetButtonUp()->SetEnabled(kFALSE);
400  m_layerEntry->GetButtonDown()->SetEnabled(kFALSE);
401  }
402 }
403 
410 void CmsShowEDI::changeItemColor(Color_t color) {
412  changeProperties.setColor(color);
413  m_item->setDefaultDisplayProperties(changeProperties);
414  m_cw->SetColorByIndex(color, kFALSE);
415 }
416 
420  changeProperties.setIsVisible(on);
421  m_item->setDefaultDisplayProperties(changeProperties);
422 }
423 
431 void CmsShowEDI::changeItemOpacity(Int_t opacity) {
433  changeProperties.setTransparency(100 - opacity);
434  m_item->setDefaultDisplayProperties(changeProperties);
435 }
436 
438  const std::string filter(m_filterExpressionEntry->GetText());
439  if (m_item != nullptr) {
440  try {
441  m_filterError->Clear();
443  } catch (const FWExpressionException& e) {
444  m_filterError->AddLine(e.what().c_str());
445  m_filterError->Update();
446  if (e.column() > -1) {
447  m_filterExpressionEntry->SetCursorPosition(e.column());
448  }
449  }
450  }
451 }
452 
454  FWModelExpressionSelector selector;
456  if (m_item != nullptr) {
457  try {
458  m_selectError->Clear();
459  //NOTE call clearModelSelectionLeaveItem so that the item does not get deselected
460  // just for safety use a copy of the pointer to m_item
462  item->selectionManager()->clearModelSelectionLeaveItem();
463 
464  selector.select(item, selection, TColor::GetColor(m_cw->GetColor()));
465  } catch (const FWExpressionException& e) {
466  m_selectError->AddLine(e.what().c_str());
467  m_selectError->Update();
468  if (e.column() > -1) {
469  m_selectExpressionEntry->SetCursorPosition(e.column());
470  }
471  }
472  }
473 }
474 
476  FWChangeSentry sentry(*(m_item->changeManager()));
477  for (int i = 0; i < static_cast<int>(m_item->size()); i++) {
478  m_item->select(i);
479  }
480 }
482  FWChangeSentry sentry(*(m_item->changeManager()));
483  for (int i = 0; i < static_cast<int>(m_item->size()); i++) {
484  m_item->unselect(i);
485  }
486 }
487 
489  FWChangeSentry sentry(*(m_item->changeManager()));
490  const std::set<FWModelId>& ss = m_item->selectionManager()->selected();
492  dp.setColor(c);
493  for (std::set<FWModelId>::const_iterator i = ss.begin(); i != ss.end(); ++i) {
494  m_item->setDisplayProperties(i->index(), dp);
495  }
496 }
497 
498 void CmsShowEDI::show(FWDataCategories iToView) { m_tabs->SetTab(iToView); }
499 
500 /* Called by FWGUIManager when change background/colorset. */
502  if (m_item) {
504  m_colorSelectWidget->SetColorByIndex(p.color(), kFALSE);
505  m_cw->SetColorByIndex(p.color(), kFALSE);
506  }
507 }
FWColorSelect::SetColorByIndex
void SetColorByIndex(Color_t iColor)
Definition: FWColorSelect.cc:352
CmsShowEDI::disconnectAll
void disconnectAll()
Definition: CmsShowEDI.cc:364
FWDialogBuilder::endTab
FWDialogBuilder & endTab(void)
Definition: FWDialogBuilder.cc:402
FWGUIValidatingTextEntry::setValidator
void setValidator(FWValidatorBase *)
Definition: FWGUIValidatingTextEntry.cc:78
FWModelChangeManager.h
FWModelExpressionSelector.h
CmsShowEDI::updateLayerControls
void updateLayerControls()
Definition: CmsShowEDI.cc:344
FWDialogBuilder::addHSeparator
FWDialogBuilder & addHSeparator(size_t horizontalPadding=4, size_t verticalPadding=3)
Definition: FWDialogBuilder.cc:345
FWDisplayProperties::isVisible
bool isVisible() const
Definition: FWDisplayProperties.h:51
mps_fire.i
i
Definition: mps_fire.py:355
FWEventItem::productInstanceLabel
const std::string & productInstanceLabel() const
Definition: FWEventItem.cc:442
FWDialogBuilder::addTextView
FWDialogBuilder & addTextView(const char *defaultText=nullptr, TGTextView **out=nullptr)
Definition: FWDialogBuilder.cc:240
CmsShowEDI::m_selectionManager
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
FWEventItem::getConfig
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
CmsShowEDI::m_displayChangedConn
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:124
FWEventItem::processName
const std::string & processName() const
Definition: FWEventItem.cc:444
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
FWEventItem::isInFront
bool isInFront() const
returns true if item is in front of all other items
Definition: FWEventItem.cc:407
CmsShowEDI::m_modelChangedConn
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:125
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowEDI::runSelection
void runSelection()
Definition: CmsShowEDI.cc:453
FWEventItem::moveToBack
void moveToBack()
Definition: FWEventItem.cc:299
CmsShowEDI::m_selectExpressionEntry
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:111
CmsShowEDI::m_filterExpressionEntry
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:110
CmsShowEDI::m_isVisibleButton
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:109
FWEventItem::maxLayerValue
static int maxLayerValue()
Definition: FWEventItem.cc:40
FWExpressionException.h
CmsShowEDI::m_filterButton
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
FWDisplayProperties::setIsVisible
void setIsVisible(bool iSet)
Definition: FWDisplayProperties.h:71
CmsShowEDI::moveToLayer
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:357
FWDialogBuilder::tabs
FWDialogBuilder & tabs(TGTab **out)
Definition: FWDialogBuilder.cc:372
FWEventItem::goingToBeDestroyed_
FWItemChangeSignal goingToBeDestroyed_
Definition: FWEventItem.h:197
FWExpressionValidator
Definition: FWExpressionValidator.h:34
CmsShowEDI::m_settersFrame
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:133
FWDialogBuilder::indent
FWDialogBuilder & indent(int left=2, int right=-1)
Definition: FWDialogBuilder.cc:202
FWDialogBuilder::addNumberEntry
FWDialogBuilder & addNumberEntry(float defaultValue, size_t digits, TGNumberFormat::EStyle style, int min, int max, TGNumberEntry **out)
Definition: FWDialogBuilder.cc:309
CmsShowEDI::m_deselectAllButton
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:115
FWEventItem::moduleLabel
const std::string & moduleLabel() const
Definition: FWEventItem.cc:441
FWEventItem::selectionManager
FWSelectionManager * selectionManager() const
Definition: FWEventItem.h:124
FWDialogBuilder::floatLeft
FWDialogBuilder & floatLeft(size_t spacing=3)
Definition: FWDialogBuilder.cc:408
CmsShowEDI::m_tabs
TGTab * m_tabs
Definition: CmsShowEDI.h:101
CmsShowEDI::m_instanceEntry
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:120
FWDialogBuilder::untabs
FWDialogBuilder & untabs(void)
Definition: FWDialogBuilder.cc:383
CmsShowEDI::m_nameEntry
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:117
FWColorSelect.h
CmsShowEDI::m_item
FWEventItem * m_item
Definition: CmsShowEDI.h:122
FWDisplayProperties::color
Color_t color() const
Definition: FWDisplayProperties.h:47
FWEventItem::setDefaultDisplayProperties
void setDefaultDisplayProperties(const FWDisplayProperties &)
Definition: FWEventItem.cc:138
FWModelExpressionSelector
Definition: FWModelExpressionSelector.h:30
FWEventItem::defaultDisplayPropertiesChanged_
FWItemChangeSignal defaultDisplayPropertiesChanged_
Definition: FWEventItem.h:190
FWExpressionException
Definition: FWExpressionException.h:28
CmsShowEDI::moveToFront
void moveToFront()
Definition: CmsShowEDI.cc:353
FWEventItem::select
void select(int iIndex) const
Definition: FWEventItem.cc:224
FWDialogBuilder::addTextButton
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=nullptr)
Definition: FWDialogBuilder.cc:285
FWEventItem::changeManager
FWModelChangeManager * changeManager() const
Definition: FWEventItem.h:123
CmsShowEDI::updateDisplay
void updateDisplay()
Definition: CmsShowEDI.cc:336
CmsShowEDI::m_moduleEntry
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:119
FWEventItem::defaultDisplayProperties
const FWDisplayProperties & defaultDisplayProperties() const
Definition: FWEventItem.cc:403
CmsShowEDI::show
void show(FWDataCategories)
Definition: CmsShowEDI.cc:498
FWSelectionManager::itemSelectionChanged_
sigc::signal< void, const FWSelectionManager & > itemSelectionChanged_
Definition: FWSelectionManager.h:54
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
CmsShowEDI::colorSetChanged
void colorSetChanged()
Definition: CmsShowEDI.cc:501
FWModelChangeSignal.h
FWDialogBuilder::addValidatingTextEntry
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
Definition: FWDialogBuilder.cc:293
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CmsShowEDI::removeItem
void removeItem()
Definition: CmsShowEDI.cc:313
FWSelectionManager.h
FWEventItem::isInBack
bool isInBack() const
returns true if item is behind all other items
Definition: FWEventItem.cc:420
FWDialogBuilder
Definition: FWDialogBuilder.h:93
FWColorManager.h
FWDataCategories
Calorimetry_cff.dp
dp
Definition: Calorimetry_cff.py:157
CmsShowEDI::m_processEntry
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:121
CmsShowEDI::m_colorSelectWidget
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:107
w
const double w
Definition: UKUtility.cc:23
FWChangeSentry
Definition: FWModelChangeManager.h:68
FWGUIValidatingTextEntry.h
FWSelectionManager::selected
const std::set< FWModelId > & selected() const
Definition: FWSelectionManager.cc:168
corrVsCorr.selection
selection
main part
Definition: corrVsCorr.py:100
FWEventItem::modelType
const TClass * modelType() const
Definition: FWEventItem.cc:464
FWDialogBuilder::vSpacer
FWDialogBuilder & vSpacer(size_t size=0)
Definition: FWDialogBuilder.cc:484
CmsShowEDI::CmsShowEDI
CmsShowEDI(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=nullptr, FWColorManager *colorMgr=nullptr)
Definition: CmsShowEDI.cc:64
FWModelExpressionSelector::select
void select(FWEventItem *iItem, const std::string &iExpression, Color_t iColor=-1) const
Definition: FWModelExpressionSelector.cc:72
h
FWDisplayProperties::transparency
Char_t transparency() const
Definition: FWDisplayProperties.h:49
FWDialogBuilder.h
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27
FWDialogBuilder::expand
FWDialogBuilder & expand(size_t expandX=true, size_t expandY=false)
Definition: FWDialogBuilder.cc:479
FWDialogBuilder::addHSlider
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=nullptr)
Definition: FWDialogBuilder.cc:275
FWDialogBuilder::addColorPicker
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=nullptr)
Definition: FWDialogBuilder.cc:265
CmsShowEDI::runFilter
void runFilter()
Definition: CmsShowEDI.cc:437
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWSelectionManager::selectedItems
const std::set< FWEventItem * > & selectedItems() const
Definition: FWSelectionManager.cc:170
edm::TypeWithDict
Definition: TypeWithDict.h:38
FWDisplayProperties::setColor
void setColor(Color_t iColor)
Definition: FWDisplayProperties.h:62
CmsShowEDI::m_selectAllButton
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:114
FWEventItem::filterExpression
const std::string & filterExpression() const
Definition: FWEventItem.cc:491
CmsShowEDI::updateFilter
void updateFilter()
Definition: CmsShowEDI.cc:362
FWSelectionManager
Definition: FWSelectionManager.h:34
FWEventItem::unselect
void unselect(int iIndex) const
Definition: FWEventItem.cc:215
CmsShowEDI::m_frontButton
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
FWProxyBuilderConfiguration.h
CmsShowEDI::changeSelectionColor
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:488
CmsShowEDI::moveToBack
void moveToBack()
Definition: CmsShowEDI.cc:349
CmsShowEDI::m_destroyedConn
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:126
CmsShowEDI::m_removeButton
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
FWEventItem::layer
int layer() const
Definition: FWEventItem.cc:405
FWDisplayProperties.h
FWEventItem::type
const TClass * type() const
Definition: FWEventItem.cc:437
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FWDisplayProperties::setTransparency
void setTransparency(Char_t transparency)
Definition: FWDisplayProperties.h:65
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
FWColorManager
Definition: FWColorManager.h:45
CmsShowEDI::changeItemOpacity
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:431
FWEventItem::setDisplayProperties
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
Definition: FWEventItem.cc:247
CmsShowEDI::m_filterError
TGTextView * m_filterError
Definition: CmsShowEDI.h:128
FWEventItem.h
CmsShowEDI::m_layerEntry
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
FWDisplayProperties
Definition: FWDisplayProperties.h:28
CmsShowEDI::changeItemColor
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:410
CmsShowEDI::m_validator
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:130
CmsShowEDI::clearPBFrame
void clearPBFrame()
Definition: CmsShowEDI.cc:239
FWDialogBuilder::beginTab
FWDialogBuilder & beginTab(const char *label)
Definition: FWDialogBuilder.cc:393
FWEventItem
Definition: FWEventItem.h:56
CmsShowEDI::m_cw
FWColorSelect * m_cw
Definition: CmsShowEDI.h:116
FWEventItem::minLayerValue
static int minLayerValue()
Definition: FWEventItem.cc:38
CmsShowEDI::fillEDIFrame
void fillEDIFrame()
Definition: CmsShowEDI.cc:250
CmsShowEDI::m_typeEntry
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:118
CmsShowEDI::toggleItemVisible
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:418
CmsShowEDI::m_opacitySlider
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
CmsShowEDI::m_selectButton
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:113
FWExpressionValidator.h
FWEventItem::name
const std::string & name() const
Definition: FWEventItem.cc:435
CmsShowEDI::m_objectLabel
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:102
FWExpressionValidator::setType
void setType(const edm::TypeWithDict &)
Definition: FWExpressionValidator.cc:191
FWEventItem::setFilterExpression
void setFilterExpression(const std::string &)
Definition: FWEventItem.cc:180
CmsShowEDI::m_backButton
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
CmsShowEDI::selectAll
void selectAll()
Definition: CmsShowEDI.cc:475
CmsShowEDI::deselectAll
void deselectAll()
Definition: CmsShowEDI.cc:481
CmsShowEDI::~CmsShowEDI
~CmsShowEDI() override
Definition: CmsShowEDI.cc:201
FWProxyBuilderConfiguration::populateFrame
void populateFrame(TGCompositeFrame *frame)
Definition: FWProxyBuilderConfiguration.cc:66
CmsShowEDI.h
FWEventItem::changed_
FWModelChangeSignal changed_
Definition: FWEventItem.h:178
FWEventItem::destroy
void destroy() const
Definition: FWEventItem.cc:493
FWEventItem::moveToFront
void moveToFront()
Definition: FWEventItem.cc:278
FWEventItem::moveToLayer
void moveToLayer(int layer)
Definition: FWEventItem.cc:320
FWDialogBuilder::addTextEntry
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
Definition: FWDialogBuilder.cc:301
FWDialogBuilder::addLabel
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=nullptr)
Definition: FWDialogBuilder.cc:212
FWEventItem::size
size_t size() const
Definition: FWEventItem.cc:457
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CmsShowEDI::m_selectError
TGTextView * m_selectError
Definition: CmsShowEDI.h:129
FWDialogBuilder::addCheckbox
FWDialogBuilder & addCheckbox(const char *text, TGCheckButton **out=nullptr)
Definition: FWDialogBuilder.cc:327