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),
67 snprintf(
name, 31,
"GeometryColor %d ",
i);
116 std::vector<Color_t> colv;
122 colv.push_back((*i)->defaultDisplayProperties().color());
125 int vi = colv.size() - 1;
131 (*i)->setDefaultDisplayProperties(prop);
133 (*i)->defaultDisplayPropertiesChanged_(*
i);
146 int col = rand() % 17;
148 (*i)->setDefaultDisplayProperties(prop);
150 (*i)->defaultDisplayPropertiesChanged_(*
i);
171 void addGLColorToConfig(
const char* cname,
const TGLColor&
c,
FWConfiguration& oTo) {
174 std::ostringstream sRed;
175 sRed << (
int)
c.GetRed();
178 std::ostringstream sGreen;
179 sGreen << (
int)
c.GetGreen();
182 std::ostringstream sBlue;
183 sBlue << (
int)
c.GetBlue();
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);
215 (*it)->setFrom(iFrom);
287 combo->Select(
val,
true);
void setColor(Color_t iColor)
TGLColorSet m_lightColorSet
const_iterator begin() const
TEveTrackPropagator * getTrackPropagator() const
FWBoolParameter m_drawBreakPoints
const FWEventItemsManager * eventItemsManager() const
FWLongParameter m_backgroundColor
FWBeamSpot * getBeamSpot() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setFrom(const FWConfiguration &) override
TEveTrackPropagator * getMuonTrackPropagator() const
std::vector< FWParameterBase * >::const_iterator const_iterator
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(int val, bool projected)
const_iterator end() const
void setGeomTransparency(Color_t idx, bool projectedType)
FWViewEnergyScale * getEnergyScale() const
void setPalette(long long)
Color_t geomColor(FWGeomColorIndex) const
const std::string & value(unsigned int iIndex=0) const
TEveVector m_externalEventCenter
TEveTrackPropagator * getTrackerTrackPropagator() const
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
bool addEntry(Long_t id, const std::string &txt)
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
const FWColorManager * colorManager() const
FWLongParameter m_geomTransparency3D
static Context * getInstance()
void setDrawBreakMarkers()
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
FWViewContext m_viewContext
~CmsShowCommon() override
void setEventCenter(float, float, float)
FWLongParameter m_geomTransparency2D
EPalette getPalette() const
CmsShowCommonPopup * m_view
const FWConfiguration * valueForKey(const std::string &iKey) const
void setBackgroundAndBrightness(BackgroundColorIndex, int)
void propagatePaletteChanges() const
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
sigc::signal< void(T)> changed_
FWEnumParameter m_trackBreak
const_iterator end() const
void getEventCenter(float *inC) const
void addTo(FWConfiguration &) const override
std::vector< FWEventItem * >::const_iterator const_iterator
sigc::signal< void(const CmsShowCommon *)> eventCenterChanged_
FWColorManager * colorManager() const
CmsShowCommon(fireworks::Context *)
void addTo(FWConfiguration &) const override
FWEnumParameter m_palette
void setEnergyScale(FWViewEnergyScale *)