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" 44 m_trackBreak(this,
" ", 2
l, 0
l, 2
l),
45 m_drawBreakPoints(this,
"Show y=0 points as markers",
false),
46 m_backgroundColor(this,
"backgroundColIdx", 1
l, 0
l, 1000
l),
47 m_gamma(this,
"Brightness", 0
l, -15
l, 15
l),
48 m_palette(this,
"Palette", 1
l, 0
l, 2
l ),
49 m_geomTransparency2D(this,
"Transparency 2D", long(colorManager()->geomTransparency(
true)), 0
l, 100
l),
50 m_geomTransparency3D(this,
"Transparency 3D", long(colorManager()->geomTransparency(
false)), 0
l, 100
l),
69 snprintf(name, 31,
"GeometryColor %d ",
i);
142 std::vector<Color_t> colv;
148 colv.push_back((*i)->defaultDisplayProperties().color());
151 int vi = colv.size() - 1;
157 (*i)->setDefaultDisplayProperties(prop);
159 (*i)->defaultDisplayPropertiesChanged_(*
i);
176 (*i)->setDefaultDisplayProperties(prop);
178 (*i)->defaultDisplayPropertiesChanged_(*
i);
204 void addGLColorToConfig(
const char* cname,
const TGLColor&
c,
FWConfiguration& oTo)
208 std::ostringstream sRed;
209 sRed << (
int)c.GetRed();
212 std::ostringstream sGreen;
213 sGreen << (
int)c.GetGreen();
216 std::ostringstream sBlue;
217 sBlue << (
int)c.GetBlue();
243 addGLColorToConfig(
"SelectionColorLight",
m_lightColorSet.Selection(1), oTo);
244 addGLColorToConfig(
"HighlightColorLight",
m_lightColorSet.Selection(3), oTo);
256 (*it)->setFrom(iFrom);
269 convert = atof(iFrom.
valueForKey(
"EnergyToLength [GeV/m]")->
value().c_str());
271 convert = atof(iFrom.
valueForKey(
"ValueToHeight [GeV/m]")->
value().c_str());
338 combo->Select(val,
true);
void addTo(FWConfiguration &) const override
void setColor(Color_t iColor)
TGLColorSet m_lightColorSet
std::vector< FWParameterBase * >::const_iterator const_iterator
sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
const FWEventItemsManager * eventItemsManager() const
const_iterator begin() const
FWBoolParameter m_drawBreakPoints
TEveTrackPropagator * getTrackerTrackPropagator() const
FWLongParameter m_backgroundColor
FWColorManager * colorManager() const
FWViewEnergyScale * getEnergyScale() const
void getEventCenter(float *inC) const
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setFrom(const FWConfiguration &) override
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)
FWBeamSpot * getBeamSpot() const
TEveVector m_externalEventCenter
void addTo(FWConfiguration &) const override
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
const_iterator end() const
bool addEntry(Long_t id, const std::string &txt)
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
def convert(infile, ofile)
FWLongParameter m_geomTransparency3D
static Context * getInstance()
void setDrawBreakMarkers()
TEveTrackPropagator * getMuonTrackPropagator() const
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
FWViewContext m_viewContext
~CmsShowCommon() override
void setEventCenter(float, float, float)
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.
CmsShowCommonPopup * m_view
et
define resolution functions of each parameter
void setBackgroundAndBrightness(BackgroundColorIndex, int)
void propagatePaletteChanges() const
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
const FWConfiguration * valueForKey(const std::string &iKey) const
FWEnumParameter m_trackBreak
Color_t geomColor(FWGeomColorIndex) const
EPalette getPalette() const
std::vector< FWEventItem * >::const_iterator const_iterator
CmsShowCommon(fireworks::Context *)
const_iterator end() const
FWEnumParameter m_palette
void setEnergyScale(FWViewEnergyScale *)