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 <functional>
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(std::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 }
void populateFrame(TGCompositeFrame *frame)
size_t size() const
Definition: FWEventItem.cc:457
void fillEDIFrame()
Definition: CmsShowEDI.cc:250
void setColor(Color_t iColor)
sigc::connection m_displayChangedConn
Definition: CmsShowEDI.h:124
TGHSlider * m_opacitySlider
Definition: CmsShowEDI.h:108
void setType(const edm::TypeWithDict &)
void colorSetChanged()
Definition: CmsShowEDI.cc:501
void moveToBack()
Definition: FWEventItem.cc:299
void moveToFront()
Definition: FWEventItem.cc:278
FWColorSelect * m_cw
Definition: CmsShowEDI.h:116
TGCheckButton * m_isVisibleButton
Definition: CmsShowEDI.h:109
FWGUIValidatingTextEntry * m_filterExpressionEntry
Definition: CmsShowEDI.h:110
void moveToLayer(int layer)
Definition: FWEventItem.cc:320
void SetColorByIndex(Color_t iColor)
FWDialogBuilder & endTab(void)
T w() const
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
sigc::signal< void(const FWSelectionManager &)> itemSelectionChanged_
FWDialogBuilder & addTextButton(const char *text, TGTextButton **out=nullptr)
FWDialogBuilder & addHSlider(size_t size, TGHSlider **out=nullptr)
Char_t transparency() const
selection
main part
Definition: corrVsCorr.py:100
FWDialogBuilder & addTextView(const char *defaultText=nullptr, TGTextView **out=nullptr)
FWItemChangeSignal defaultDisplayPropertiesChanged_
Definition: FWEventItem.h:190
bool isInBack() const
returns true if item is behind all other items
Definition: FWEventItem.cc:420
TGLabel * m_objectLabel
Definition: CmsShowEDI.h:102
TGTab * m_tabs
Definition: CmsShowEDI.h:101
FWItemChangeSignal goingToBeDestroyed_
Definition: FWEventItem.h:197
FWModelChangeManager * changeManager() const
Definition: FWEventItem.h:123
const std::string & processName() const
Definition: FWEventItem.cc:444
void disconnectAll()
Definition: CmsShowEDI.cc:364
bool isInFront() const
returns true if item is in front of all other items
Definition: FWEventItem.cc:407
const std::string & moduleLabel() const
Definition: FWEventItem.cc:441
FWDialogBuilder & addLabel(const char *text, size_t fontSize=12, size_t weight=0, TGLabel **out=nullptr)
TGTextButton * m_selectAllButton
Definition: CmsShowEDI.h:114
void moveToLayer(Long_t)
Definition: CmsShowEDI.cc:357
FWDialogBuilder & addCheckbox(const char *text, TGCheckButton **out=nullptr)
void updateFilter()
Definition: CmsShowEDI.cc:362
static int maxLayerValue()
Definition: FWEventItem.cc:40
FWDialogBuilder & vSpacer(size_t size=0)
void moveToFront()
Definition: CmsShowEDI.cc:353
TGCompositeFrame * m_settersFrame
Definition: CmsShowEDI.h:133
void select(int iIndex) const
Definition: FWEventItem.cc:224
FWDialogBuilder & untabs(void)
TGTextEntry * m_instanceEntry
Definition: CmsShowEDI.h:120
FWSelectionManager * selectionManager() const
Definition: FWEventItem.h:124
const TClass * modelType() const
Definition: FWEventItem.cc:464
void removeItem()
Definition: CmsShowEDI.cc:313
void unselect(int iIndex) const
Definition: FWEventItem.cc:215
void setDefaultDisplayProperties(const FWDisplayProperties &)
Definition: FWEventItem.cc:138
void updateDisplay()
Definition: CmsShowEDI.cc:336
void changeItemColor(Color_t color)
Definition: CmsShowEDI.cc:410
TGNumberEntry * m_layerEntry
Definition: CmsShowEDI.h:106
const FWDisplayProperties & defaultDisplayProperties() const
Definition: FWEventItem.cc:403
void moveToBack()
Definition: CmsShowEDI.cc:349
TGTextButton * m_deselectAllButton
Definition: CmsShowEDI.h:115
void setValidator(FWValidatorBase *)
const std::string & filterExpression() const
Definition: FWEventItem.cc:491
TGTextButton * m_backButton
Definition: CmsShowEDI.h:105
double f[11][100]
TGTextEntry * m_moduleEntry
Definition: CmsShowEDI.h:119
void select(FWEventItem *iItem, const std::string &iExpression, Color_t iColor=-1) const
sigc::connection m_destroyedConn
Definition: CmsShowEDI.h:126
FWDialogBuilder & addHSeparator(size_t horizontalPadding=4, size_t verticalPadding=3)
static int minLayerValue()
Definition: FWEventItem.cc:38
FWDialogBuilder & tabs(TGTab **out)
void changeItemOpacity(Int_t opacity)
Definition: CmsShowEDI.cc:431
FWDialogBuilder & addValidatingTextEntry(const char *defaultText, FWGUIValidatingTextEntry **out)
TGTextView * m_selectError
Definition: CmsShowEDI.h:129
FWDialogBuilder & addTextEntry(const char *defaultText, TGTextEntry **out)
TGTextButton * m_removeButton
Definition: CmsShowEDI.h:103
int layer() const
Definition: FWEventItem.cc:405
FWDialogBuilder & floatLeft(size_t spacing=3)
FWExpressionValidator * m_validator
Definition: CmsShowEDI.h:130
const TClass * type() const
Definition: FWEventItem.cc:437
const std::string & name() const
Definition: FWEventItem.cc:435
void setFilterExpression(const std::string &)
Definition: FWEventItem.cc:180
TGTextView * m_filterError
Definition: CmsShowEDI.h:128
TGTextEntry * m_processEntry
Definition: CmsShowEDI.h:121
FWDialogBuilder & expand(size_t expandX=true, size_t expandY=false)
void setTransparency(Char_t transparency)
FWColorSelect * m_colorSelectWidget
Definition: CmsShowEDI.h:107
void runFilter()
Definition: CmsShowEDI.cc:437
FWModelChangeSignal changed_
Definition: FWEventItem.h:178
TGTextButton * m_filterButton
Definition: CmsShowEDI.h:112
CmsShowEDI(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, FWSelectionManager *selMgr=nullptr, FWColorManager *colorMgr=nullptr)
Definition: CmsShowEDI.cc:64
FWSelectionManager * m_selectionManager
Definition: CmsShowEDI.h:100
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
Definition: FWEventItem.cc:247
TGTextEntry * m_typeEntry
Definition: CmsShowEDI.h:118
void toggleItemVisible(Bool_t on=kTRUE)
Definition: CmsShowEDI.cc:418
FWDialogBuilder & beginTab(const char *label)
void runSelection()
Definition: CmsShowEDI.cc:453
void deselectAll()
Definition: CmsShowEDI.cc:481
const std::set< FWModelId > & selected() const
FWEventItem * m_item
Definition: CmsShowEDI.h:122
void setIsVisible(bool iSet)
~CmsShowEDI() override
Definition: CmsShowEDI.cc:201
sigc::connection m_modelChangedConn
Definition: CmsShowEDI.h:125
void destroy() const
Definition: FWEventItem.cc:493
void updateLayerControls()
Definition: CmsShowEDI.cc:344
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWGUIValidatingTextEntry * m_selectExpressionEntry
Definition: CmsShowEDI.h:111
TGTextEntry * m_nameEntry
Definition: CmsShowEDI.h:117
const std::string & productInstanceLabel() const
Definition: FWEventItem.cc:442
FWDialogBuilder & indent(int left=2, int right=-1)
FWDialogBuilder & addNumberEntry(float defaultValue, size_t digits, TGNumberFormat::EStyle style, int min, int max, TGNumberEntry **out)
FWDialogBuilder & addColorPicker(const FWColorManager *manager, FWColorSelect **out=nullptr)
const std::set< FWEventItem * > & selectedItems() const
void changeSelectionColor(Color_t color)
Definition: CmsShowEDI.cc:488
TGTextButton * m_frontButton
Definition: CmsShowEDI.h:104
void clearPBFrame()
Definition: CmsShowEDI.cc:239
void show(FWDataCategories)
Definition: CmsShowEDI.cc:498
TGTextButton * m_selectButton
Definition: CmsShowEDI.h:113
void selectAll()
Definition: CmsShowEDI.cc:475