14 #include <boost/bind.hpp>
18 #include "TEveManager.h"
19 #include "TEveTrackPropagator.h"
20 #include "TGLViewer.h"
21 #include "TEveViewer.h"
34 m_trackBreak(this,
" ", 2
l, 0
l, 2
l),
35 m_drawBreakPoints(this,
"Show y=0 points as markers",
false),
36 m_backgroundColor(this,
"backgroundColIdx", 1
l, 0
l, 1000
l),
37 m_gamma(this,
"Brightness", 0
l, -15
l, 15
l),
38 m_geomTransparency2D(this,
"Transparency 2D", long(colorManager()->geomTransparency(
true)), 0
l, 100
l),
39 m_geomTransparency3D(this,
"Transparency 3D", long(colorManager()->geomTransparency(
false)), 0
l, 100
l),
51 snprintf(name, 31,
"GeometryColor %d ",
i);
137 void addGLColorToConfig(
const char* cname,
const TGLColor&
c,
FWConfiguration& oTo)
141 std::ostringstream sRed;
142 sRed << (int)c.GetRed();
145 std::ostringstream sGreen;
146 sGreen << (int)c.GetGreen();
149 std::ostringstream sBlue;
150 sBlue << (int)c.GetBlue();
176 addGLColorToConfig(
"SelectionColorLight",
m_lightColorSet.Selection(1), oTo);
177 addGLColorToConfig(
"HighlightColorLight",
m_lightColorSet.Selection(3), oTo);
189 (*it)->setFrom(iFrom);
199 convert = atof(iFrom.
valueForKey(
"EnergyToLength [GeV/m]")->
value().c_str());
201 convert = atof(iFrom.
valueForKey(
"ValueToHeight [GeV/m]")->
value().c_str());
210 m_energyScale->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
TGLColorSet m_lightColorSet
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
FWBoolParameter m_drawBreakPoints
TEveTrackPropagator * getTrackerTrackPropagator() const
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
TEveTrackPropagator * getTrackPropagator() const
sigc::signal< void, T > changed_
const FWColorManager * colorManager() const
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(int val, bool projected)
void setGeomTransparency(Color_t idx, bool projectedType)
const_iterator end() const
bool addEntry(Long_t id, const std::string &txt)
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
FWLongParameter m_geomTransparency3D
void setDrawBreakMarkers()
TEveTrackPropagator * getMuonTrackPropagator() const
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const std::string & value(unsigned int iIndex=0) const
FWLongParameter m_geomTransparency2D
std::auto_ptr< FWViewEnergyScale > m_energyScale
virtual void addTo(FWConfiguration &) const
void setBackgroundAndBrightness(BackgroundColorIndex, int)
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
virtual void setFrom(const FWConfiguration &)
const FWConfiguration * valueForKey(const std::string &iKey) const
FWEnumParameter m_trackBreak
volatile std::atomic< bool > shutdown_flag false
CmsShowCommon(fireworks::Context *)
virtual void addTo(FWConfiguration &) const