14 #include <boost/bind.hpp>
18 #include "TEveManager.h"
19 #include "TEveTrackPropagator.h"
20 #include "TGLViewer.h"
21 #include "TEveViewer.h"
22 #include "TGComboBox.h"
24 #include "TGTextEntry.h"
42 m_trackBreak(this,
" ", 2
l, 0
l, 2
l),
43 m_drawBreakPoints(this,
"Show y=0 points as markers",
false),
44 m_backgroundColor(this,
"backgroundColIdx", 1
l, 0
l, 1000
l),
45 m_gamma(this,
"Brightness", 0
l, -15
l, 15
l),
46 m_palette(this,
"Palette", 1
l, 0
l, 2
l ),
47 m_geomTransparency2D(this,
"Transparency 2D", long(colorManager()->geomTransparency(
true)), 0
l, 100
l),
48 m_geomTransparency3D(this,
"Transparency 3D", long(colorManager()->geomTransparency(
false)), 0
l, 100
l),
66 snprintf(name, 31,
"GeometryColor %d ",
i);
139 std::vector<Color_t> colv;
145 colv.push_back((*i)->defaultDisplayProperties().color());
148 int vi = colv.size() - 1;
154 (*i)->setDefaultDisplayProperties(prop);
156 (*i)->defaultDisplayPropertiesChanged_(*
i);
173 (*i)->setDefaultDisplayProperties(prop);
175 (*i)->defaultDisplayPropertiesChanged_(*
i);
201 void addGLColorToConfig(
const char* cname,
const TGLColor&
c,
FWConfiguration& oTo)
205 std::ostringstream sRed;
206 sRed << (int)c.GetRed();
209 std::ostringstream sGreen;
210 sGreen << (int)c.GetGreen();
213 std::ostringstream sBlue;
214 sBlue << (int)c.GetBlue();
240 addGLColorToConfig(
"SelectionColorLight",
m_lightColorSet.Selection(1), oTo);
241 addGLColorToConfig(
"HighlightColorLight",
m_lightColorSet.Selection(3), oTo);
253 (*it)->setFrom(iFrom);
266 convert = atof(iFrom.
valueForKey(
"EnergyToLength [GeV/m]")->
value().c_str());
268 convert = atof(iFrom.
valueForKey(
"ValueToHeight [GeV/m]")->
value().c_str());
277 m_energyScale->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
335 combo->Select(val,
true);
void setColor(Color_t iColor)
TGLColorSet m_lightColorSet
std::vector< FWParameterBase * >::const_iterator const_iterator
const FWEventItemsManager * eventItemsManager() const
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)
void setPalette(long long)
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
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
std::auto_ptr< FWViewEnergyScale > m_energyScale
virtual void addTo(FWConfiguration &) const
CmsShowCommonPopup * m_view
void setBackgroundAndBrightness(BackgroundColorIndex, int)
void propagatePaletteChanges() const
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
Color_t geomColor(FWGeomColorIndex) const
EPalette getPalette() const
std::vector< FWEventItem * >::const_iterator const_iterator
CmsShowCommon(fireworks::Context *)
const_iterator end() const
virtual void addTo(FWConfiguration &) const
FWEnumParameter m_palette