CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
CmsShowCommon Class Reference

#include <Fireworks/Core/interface/CmsShowCommon.h>

Inheritance diagram for CmsShowCommon:
FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

void addTo (FWConfiguration &) const override
 
 CmsShowCommon (fireworks::Context *)
 
int gamma ()
 
const TGLColorSet & getDarkColorSet () const
 
FWViewEnergyScalegetEnergyScale () const
 
void getEventCenter (float *inC) const
 
const TGLColorSet & getLightColorSet () const
 
UChar_t getProjTrackBreaking () const
 
bool getRnrPTBMarkers () const
 
void loopPalettes ()
 
void permuteColors ()
 
void randomizeColors ()
 
void resetEventCenter ()
 
void setDrawBreakMarkers ()
 
void setEventCenter (float, float, float)
 
void setFrom (const FWConfiguration &) override
 
void setGamma ()
 
void setGeomColor (FWGeomColorIndex, Color_t)
 
void setGeomTransparency (int val, bool projected)
 
void setTrackBreakMode ()
 
void setView (CmsShowCommonPopup *x)
 
void switchBackground ()
 
 ~CmsShowCommon () override
 
- Public Member Functions inherited from FWConfigurableParameterizable
void addTo (FWConfiguration &) const override
 
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
void setFrom (const FWConfiguration &) override
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Public Attributes

sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
 

Protected Member Functions

const FWColorManagercolorManager () const
 
void setPalette ()
 

Protected Attributes

FWLongParameter m_backgroundColor
 
fireworks::Contextm_context
 
TGLColorSet m_darkColorSet
 
FWBoolParameter m_drawBreakPoints
 
TEveVector m_externalEventCenter
 
FWLongParameter m_gamma
 
FWLongParameterm_geomColors [kFWGeomColorSize]
 
FWLongParameter m_geomTransparency2D
 
FWLongParameter m_geomTransparency3D
 
TGLColorSet m_lightColorSet
 
FWEnumParameter m_palette
 
FWEnumParameter m_trackBreak
 
bool m_useBeamSpot
 
CmsShowCommonPopupm_view
 
FWViewContext m_viewContext
 

Private Member Functions

 CmsShowCommon (const CmsShowCommon &)=delete
 
const CmsShowCommonoperator= (const CmsShowCommon &)=delete
 

Friends

class CmsShowCommonPopup
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector< FWParameterBase * >::const_iterator const_iterator
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 43 of file CmsShowCommon.h.

Constructor & Destructor Documentation

CmsShowCommon::CmsShowCommon ( fireworks::Context c)

Definition at line 40 of file CmsShowCommon.cc.

References FWEnumParameter::addEntry(), FWGenericParameter< T >::changed_, fireworks::Context::colorManager(), colorManager(), FWColorManager::getPalette(), mps_fire::i, FWColorManager::kArctic, FWColorManager::kClassic, FWColorManager::kFall, kFWGeomColorSize, FWColorManager::kPurple, FWColorManager::kSpring, cmsLHEtoEOSManager::l, m_context, m_darkColorSet, m_drawBreakPoints, m_gamma, m_geomColors, m_lightColorSet, m_palette, m_trackBreak, m_viewContext, Skims_PA_cff::name, FWGenericParameter< T >::set(), setDrawBreakMarkers(), FWViewContext::setEnergyScale(), setGamma(), and setTrackBreakMode().

42  m_view(nullptr),
43  m_context(c),
44  m_trackBreak(this, " ", 2l, 0l, 2l), // do not want to render text at setter
45  m_drawBreakPoints(this, "Show y=0 points as markers", false),
46  m_backgroundColor(this, "backgroundColIdx", 1l, 0l, 1000l),
47  m_gamma(this, "Brightness", 0l, -15l, 15l),
48  m_palette(this, "Palette", 1l, 0l, 2l),
49  m_geomTransparency2D(this, "Transparency 2D", long(colorManager()->geomTransparency(true)), 0l, 100l),
50  m_geomTransparency3D(this, "Transparency 3D", long(colorManager()->geomTransparency(false)), 0l, 100l),
51  m_useBeamSpot(true) {
53  // projections
54  m_trackBreak.addEntry(0, "Jump to proper hemisphere");
55  m_trackBreak.addEntry(1, "Stay on first point side");
56  m_trackBreak.addEntry(2, "Stay on last point side");
57 
63 
64  // colors
65  char name[32];
66  for (int i = 0; i < kFWGeomColorSize; ++i) {
67  snprintf(name, 31, "GeometryColor %d ", i);
68  m_geomColors[i] =
69  new FWLongParameter(this, name, long(colorManager()->geomColor(FWGeomColorIndex(i))), 1000l, 1100l);
70  }
71 
72  m_trackBreak.changed_.connect(boost::bind(&CmsShowCommon::setTrackBreakMode, this));
75  m_gamma.changed_.connect(boost::bind(&CmsShowCommon::setGamma, this));
76 
77  m_lightColorSet.StdLightBackground();
78  m_darkColorSet.StdDarkBackground();
79 }
TGLColorSet m_lightColorSet
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:95
FWConfigurableParameterizable(unsigned int iVersion=1)
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:98
FWColorManager * colorManager() const
Definition: Context.h:58
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
const FWColorManager * colorManager() const
FWLongParameter m_gamma
Definition: CmsShowCommon.h:99
bool addEntry(Long_t id, const std::string &txt)
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
FWLongParameter m_geomTransparency3D
void setDrawBreakMarkers()
FWViewContext m_viewContext
FWLongParameter m_geomTransparency2D
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:91
sigc::signal< void, T > changed_
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
Definition: FWParameters.h:34
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:94
EPalette getPalette() const
FWEnumParameter m_palette
void setEnergyScale(FWViewEnergyScale *)
CmsShowCommon::~CmsShowCommon ( )
override

Definition at line 81 of file CmsShowCommon.cc.

81 {}
CmsShowCommon::CmsShowCommon ( const CmsShowCommon )
privatedelete

Member Function Documentation

void CmsShowCommon::addTo ( FWConfiguration oTo) const
overridevirtual

Implements FWConfigurable.

Definition at line 199 of file CmsShowCommon.cc.

References FWConfigurableParameterizable::addTo(), colorManager(), FWViewContext::getEnergyScale(), m_backgroundColor, m_darkColorSet, m_lightColorSet, m_viewContext, and FWGenericParameter< T >::set().

199  {
200  m_backgroundColor.set(int(colorManager()->background()));
201 
204 
205  if (gEve) {
206  addGLColorToConfig("SelectionColorLight", m_lightColorSet.Selection(1), oTo);
207  addGLColorToConfig("HighlightColorLight", m_lightColorSet.Selection(3), oTo);
208  addGLColorToConfig("SelectionColorDark", m_darkColorSet.Selection(1), oTo);
209  addGLColorToConfig("HighlightColorDark", m_darkColorSet.Selection(3), oTo);
210  }
211 }
void addTo(FWConfiguration &) const override
TGLColorSet m_lightColorSet
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:98
FWViewEnergyScale * getEnergyScale() const
const FWColorManager * colorManager() const
FWViewContext m_viewContext
TGLColorSet m_darkColorSet
const FWColorManager * CmsShowCommon::colorManager ( ) const
protected
int CmsShowCommon::gamma ( )
inline
const TGLColorSet& CmsShowCommon::getDarkColorSet ( ) const
inline

Definition at line 73 of file CmsShowCommon.h.

Referenced by FWEveView::setFrom().

73 { return m_darkColorSet; }
TGLColorSet m_darkColorSet
FWViewEnergyScale* CmsShowCommon::getEnergyScale ( ) const
inline

Definition at line 70 of file CmsShowCommon.h.

Referenced by CmsShowCommonPopup::CmsShowCommonPopup(), FWEveViewManager::setContext(), and FWEveView::useGlobalEnergyScaleChanged().

70 { return m_viewContext.getEnergyScale(); }
FWViewEnergyScale * getEnergyScale() const
FWViewContext m_viewContext
void CmsShowCommon::getEventCenter ( float *  inC) const

Definition at line 294 of file CmsShowCommon.cc.

References pwdgSkimBPark_cfi::beamSpot, dqmMemoryStats::float, fireworks::Context::getBeamSpot(), fireworks::Context::getInstance(), m_externalEventCenter, m_useBeamSpot, FWBeamSpot::x0(), FWBeamSpot::y0(), and FWBeamSpot::z0().

Referenced by FWRPZView::eventBegin(), FWRPZView::eventEnd(), FWJetProxyBuilder::scaleProduct(), and FWRPZView::setupEventCenter().

294  {
295  if (m_useBeamSpot) {
297  iC[0] = float(beamSpot->x0());
298  iC[1] = float(beamSpot->y0());
299  iC[2] = float(beamSpot->z0());
300  } else {
301  iC[0] = m_externalEventCenter.fX;
302  iC[1] = m_externalEventCenter.fY;
303  iC[2] = m_externalEventCenter.fZ;
304  }
305 }
double x0() const
Definition: FWBeamSpot.cc:23
double z0() const
Definition: FWBeamSpot.cc:27
double y0() const
Definition: FWBeamSpot.cc:25
FWBeamSpot * getBeamSpot() const
Definition: Context.h:67
TEveVector m_externalEventCenter
static Context * getInstance()
Definition: Context.cc:193
const TGLColorSet& CmsShowCommon::getLightColorSet ( ) const
inline

Definition at line 72 of file CmsShowCommon.h.

Referenced by FWEveView::setFrom().

72 { return m_lightColorSet; }
TGLColorSet m_lightColorSet
UChar_t CmsShowCommon::getProjTrackBreaking ( ) const
inline

Definition at line 75 of file CmsShowCommon.h.

Referenced by fireworks::Context::initEveElements().

75 { return m_trackBreak.value(); }
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:94
bool CmsShowCommon::getRnrPTBMarkers ( ) const
inline

Definition at line 76 of file CmsShowCommon.h.

Referenced by fireworks::Context::initEveElements().

76 { return m_drawBreakPoints.value(); }
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:95
void CmsShowCommon::loopPalettes ( )

Definition at line 278 of file CmsShowCommon.cc.

References CmsShowCommonPopup::getCombo(), FWColorManager::kPaletteFirst, FWColorManager::kPaletteLast, m_palette, m_view, FWGenericParameter< T >::set(), setPalette(), heppy_batch::val, and FWGenericParameter< T >::value().

278  {
279  int val = m_palette.value();
280  val++;
281 
282  if (val >= FWColorManager::kPaletteLast)
284 
285  if (m_view) {
286  TGComboBox* combo = m_view->getCombo();
287  combo->Select(val, true);
288  } else {
289  m_palette.set(val);
290  setPalette();
291  }
292 }
TGComboBox * getCombo()
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:91
FWEnumParameter m_palette
const CmsShowCommon& CmsShowCommon::operator= ( const CmsShowCommon )
privatedelete
void CmsShowCommon::permuteColors ( )

Definition at line 113 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), mps_fire::i, m_context, and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::permuteColors().

113  {
114  // printf("Reverting order of existing colors ...\n");
115 
116  std::vector<Color_t> colv;
117  colv.reserve(64);
118 
120  i != m_context->eventItemsManager()->end();
121  ++i) {
122  colv.push_back((*i)->defaultDisplayProperties().color());
123  }
124 
125  int vi = colv.size() - 1;
127  i != m_context->eventItemsManager()->end();
128  ++i, --vi) {
129  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
130  prop.setColor(colv[vi]);
131  (*i)->setDefaultDisplayProperties(prop);
132 
133  (*i)->defaultDisplayPropertiesChanged_(*i);
134  }
135 }
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::randomizeColors ( )

Definition at line 137 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), cuy::col, FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), mps_fire::i, m_context, rand(), and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::randomizeColors().

137  {
138  // printf("Doing random_shuffle on existing colors ...\n");
139 
140  int vi = 0;
142  i != m_context->eventItemsManager()->end();
143  ++i, ++vi) {
144  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
145 
146  int col = rand() % 17; // randomize in first row of palette
147  prop.setColor(col);
148  (*i)->setDefaultDisplayProperties(prop);
149 
150  (*i)->defaultDisplayPropertiesChanged_(*i);
151  }
152 }
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
col
Definition: cuy.py:1010
Signal rand(Signal arg)
Definition: vlib.cc:379
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::resetEventCenter ( )

Definition at line 313 of file CmsShowCommon.cc.

References pwdgSkimBPark_cfi::beamSpot, fwLog, fireworks::Context::getBeamSpot(), fireworks::Context::getInstance(), fwlog::kInfo, m_useBeamSpot, setEventCenter(), FWBeamSpot::x0(), FWBeamSpot::y0(), and FWBeamSpot::z0().

Referenced by FWVertexProxyBuilder::build().

313  {
314  if (!m_useBeamSpot) {
315  fwLog(fwlog::kInfo) << "CmsShowCommon re-set event center to BeamSpot\n ";
316  m_useBeamSpot = true;
318  setEventCenter(beamSpot->x0(), beamSpot->y0(), beamSpot->z0());
319  }
320 }
double x0() const
Definition: FWBeamSpot.cc:23
double z0() const
Definition: FWBeamSpot.cc:27
double y0() const
Definition: FWBeamSpot.cc:25
FWBeamSpot * getBeamSpot() const
Definition: Context.h:67
static Context * getInstance()
Definition: Context.cc:193
void setEventCenter(float, float, float)
#define fwLog(_level_)
Definition: fwLog.h:45
void CmsShowCommon::setDrawBreakMarkers ( )

Definition at line 97 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_drawBreakPoints, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

97  {
98  if (m_context->getTrackPropagator()->GetRnrPTBMarkers() != m_drawBreakPoints.value()) {
99  m_context->getTrackPropagator()->SetRnrPTBMarkers(m_drawBreakPoints.value());
102  gEve->Redraw3D();
103  }
104 }
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:95
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:63
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:62
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:64
void CmsShowCommon::setEventCenter ( float  x,
float  y,
float  z 
)

Definition at line 307 of file CmsShowCommon.cc.

References eventCenterChanged_, m_externalEventCenter, and m_useBeamSpot.

Referenced by FWVertexProxyBuilder::build(), and resetEventCenter().

307  {
308  m_useBeamSpot = false;
309  m_externalEventCenter.Set(x, y, z);
310  eventCenterChanged_.emit(this);
311 }
sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
Definition: CmsShowCommon.h:84
TEveVector m_externalEventCenter
void CmsShowCommon::setFrom ( const FWConfiguration iFrom)
overridevirtual

Implements FWConfigurable.

Definition at line 213 of file CmsShowCommon.cc.

References FWParameterizable::begin(), fireworks::Context::colorManager(), fileCollector::convert(), FWParameterizable::end(), EgHLTOffHistBins_cfi::et, FWViewContext::getEnergyScale(), mps_fire::i, kFWGeomColorSize, m_backgroundColor, m_context, m_darkColorSet, m_gamma, m_geomColors, m_geomTransparency2D, m_geomTransparency3D, m_lightColorSet, m_viewContext, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, FWColorManager::setBackgroundAndBrightness(), FWViewEnergyScale::SetFromCmsShowCommonConfig(), FWColorManager::setGeomColor(), FWColorManager::setGeomTransparency(), setPalette(), FWConfiguration::value(), FWGenericParameter< T >::value(), relativeConstraints::value, and FWConfiguration::valueForKey().

213  {
214  for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) {
215  (*it)->setFrom(iFrom);
216  }
217 
218  if (iFrom.valueForKey("Palette"))
219  setPalette();
220 
221  // handle old and new energy scale configuration if existing
222  if (iFrom.valueForKey("ScaleMode")) {
223  long mode = atol(iFrom.valueForKey("ScaleMode")->value().c_str());
224 
225  float convert;
226  if (iFrom.valueForKey("EnergyToLength [GeV/m]"))
227  convert = atof(iFrom.valueForKey("EnergyToLength [GeV/m]")->value().c_str());
228  else
229  convert = atof(iFrom.valueForKey("ValueToHeight [GeV/m]")->value().c_str());
230 
231  float maxH;
232  if (iFrom.valueForKey("MaximumLength [m]"))
233  maxH = atof(iFrom.valueForKey("MaximumLength [m]")->value().c_str());
234  else
235  maxH = atof(iFrom.valueForKey("MaxTowerH [m]")->value().c_str());
236 
237  int et = atoi(iFrom.valueForKey("PlotEt")->value().c_str());
238  m_viewContext.getEnergyScale()->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
239  }
240 
241  // background
244 
245  // geom colors
248 
249  for (int i = 0; i < kFWGeomColorSize; ++i)
251 
252  if (gEve) {
253  setGLColorFromConfig(m_lightColorSet.Selection(1), iFrom.valueForKey("SelectionColorLight"));
254  setGLColorFromConfig(m_lightColorSet.Selection(3), iFrom.valueForKey("HighlightColorLight"));
255  setGLColorFromConfig(m_darkColorSet.Selection(1), iFrom.valueForKey("SelectionColorDark"));
256  setGLColorFromConfig(m_darkColorSet.Selection(3), iFrom.valueForKey("HighlightColorDark"));
257  }
258 }
TGLColorSet m_lightColorSet
const_iterator begin() const
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:98
FWColorManager * colorManager() const
Definition: Context.h:58
FWGeomColorIndex
FWViewEnergyScale * getEnergyScale() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
std::vector< FWParameterBase * >::const_iterator const_iterator
FWLongParameter m_gamma
Definition: CmsShowCommon.h:99
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(Color_t idx, bool projectedType)
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
const_iterator end() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
def convert(infile, ofile)
FWLongParameter m_geomTransparency3D
FWViewContext m_viewContext
const std::string & value(unsigned int iIndex=0) const
FWLongParameter m_geomTransparency2D
void setBackgroundAndBrightness(BackgroundColorIndex, int)
TGLColorSet m_darkColorSet
const FWConfiguration * valueForKey(const std::string &iKey) const
void CmsShowCommon::setGamma ( )

Definition at line 106 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_gamma, FWColorManager::setBrightness(), and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

FWColorManager * colorManager() const
Definition: Context.h:58
FWLongParameter m_gamma
Definition: CmsShowCommon.h:99
void setBrightness(int)
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
void CmsShowCommon::setGeomColor ( FWGeomColorIndex  cidx,
Color_t  iColor 
)

Definition at line 154 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_geomColors, FWGenericParameter< T >::set(), and FWColorManager::setGeomColor().

Referenced by CmsShowCommonPopup::changeGeomColor().

154  {
155  m_geomColors[cidx]->set(iColor);
156  m_context->colorManager()->setGeomColor(cidx, iColor);
157 }
FWColorManager * colorManager() const
Definition: Context.h:58
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
void CmsShowCommon::setGeomTransparency ( int  val,
bool  projected 
)
void CmsShowCommon::setPalette ( )
protected

Definition at line 260 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), fireworks::Context::colorManager(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), FWColorManager::geomColor(), mps_fire::i, kFWGeomColorSize, m_context, m_geomColors, m_palette, FWColorManager::propagatePaletteChanges(), FWGenericParameter< T >::set(), FWColorManager::setPalette(), and FWGenericParameter< T >::value().

Referenced by Vispa.Views.LineDecayView.LineDecayView::__init__(), loopPalettes(), setFrom(), and CmsShowCommonPopup::setPaletteGUI().

260  {
262  cm->setPalette(m_palette.value());
263 
264  for (int i = 0; i < kFWGeomColorSize; ++i) {
267  // m_colorSelectWidget[i]->SetColorByIndex(cm->geomColor(FWGeomColorIndex(i)), kFALSE);
268  }
269 
272  i != m_context->eventItemsManager()->end();
273  ++i) {
274  (*i)->resetColor();
275  }
276 }
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:56
FWColorManager * colorManager() const
Definition: Context.h:58
FWGeomColorIndex
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setPalette(long long)
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
void propagatePaletteChanges() const
Color_t geomColor(FWGeomColorIndex) const
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
FWEnumParameter m_palette
void CmsShowCommon::setTrackBreakMode ( )

Definition at line 88 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_trackBreak, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

88  {
89  if (m_context->getTrackPropagator()->GetProjTrackBreaking() != m_trackBreak.value()) {
90  m_context->getTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
91  m_context->getTrackerTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
92  m_context->getMuonTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
93  gEve->Redraw3D();
94  }
95 }
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:63
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:62
fireworks::Context * m_context
Definition: CmsShowCommon.h:92
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:64
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:94
void CmsShowCommon::setView ( CmsShowCommonPopup x)
inline

Definition at line 78 of file CmsShowCommon.h.

References x.

Referenced by FWGUIManager::showCommonPopup().

78 { m_view = x; }
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:91
void CmsShowCommon::switchBackground ( )

Definition at line 108 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), colorManager(), m_backgroundColor, m_context, FWGenericParameter< T >::set(), and FWColorManager::switchBackground().

Referenced by CmsShowCommonPopup::switchBackground().

108  {
110  m_backgroundColor.set(colorManager()->background());
111 }
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:98
FWColorManager * colorManager() const
Definition: Context.h:58
const FWColorManager * colorManager() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:92

Friends And Related Function Documentation

friend class CmsShowCommonPopup
friend

Definition at line 44 of file CmsShowCommon.h.

Member Data Documentation

sigc::signal<void, const CmsShowCommon*> CmsShowCommon::eventCenterChanged_
mutable

Definition at line 84 of file CmsShowCommon.h.

Referenced by FWEveViewManager::setContext(), and setEventCenter().

FWLongParameter CmsShowCommon::m_backgroundColor
mutableprotected

Definition at line 98 of file CmsShowCommon.h.

Referenced by addTo(), setFrom(), and switchBackground().

fireworks::Context* CmsShowCommon::m_context
protected
TGLColorSet CmsShowCommon::m_darkColorSet
protected
FWBoolParameter CmsShowCommon::m_drawBreakPoints
protected
TEveVector CmsShowCommon::m_externalEventCenter
protected

Definition at line 113 of file CmsShowCommon.h.

Referenced by getEventCenter(), and setEventCenter().

FWLongParameter CmsShowCommon::m_gamma
protected
FWLongParameter* CmsShowCommon::m_geomColors[kFWGeomColorSize]
protected

Definition at line 105 of file CmsShowCommon.h.

Referenced by CmsShowCommon(), setFrom(), setGeomColor(), and setPalette().

FWLongParameter CmsShowCommon::m_geomTransparency2D
protected

Definition at line 103 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

FWLongParameter CmsShowCommon::m_geomTransparency3D
protected

Definition at line 104 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

TGLColorSet CmsShowCommon::m_lightColorSet
protected
FWEnumParameter CmsShowCommon::m_palette
mutableprotected
FWEnumParameter CmsShowCommon::m_trackBreak
protected
bool CmsShowCommon::m_useBeamSpot
protected

Definition at line 112 of file CmsShowCommon.h.

Referenced by getEventCenter(), resetEventCenter(), and setEventCenter().

CmsShowCommonPopup* CmsShowCommon::m_view
protected

Definition at line 91 of file CmsShowCommon.h.

Referenced by loopPalettes().

FWViewContext CmsShowCommon::m_viewContext
protected

Definition at line 110 of file CmsShowCommon.h.

Referenced by addTo(), CmsShowCommon(), and setFrom().