|
|
Go to the documentation of this file.
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);
fireworks::Context * m_context
std::vector< FWParameterBase * >::const_iterator const_iterator
CmsShowCommonPopup * m_view
TEveTrackPropagator * getMuonTrackPropagator() const
FWColorManager * colorManager() const
FWLongParameter * m_geomColors[kFWGeomColorSize]
FWParameters::Long FWLongParameter
TEveVector m_externalEventCenter
bool addEntry(Long_t id, const std::string &txt)
const_iterator end() const
FWBeamSpot * getBeamSpot() const
Color_t geomColor(FWGeomColorIndex) const
const_iterator begin() const
FWEnumParameter m_palette
FWLongParameter m_geomTransparency3D
sigc::signal< void, T > changed_
const FWEventItemsManager * eventItemsManager() const
void setGeomTransparency(int val, bool projected)
void setEventCenter(float, float, float)
void setPalette(long long)
const FWConfiguration * valueForKey(const std::string &iKey) const
const std::string & value(unsigned int iIndex=0) const
def convert(infile, ofile)
void setColor(Color_t iColor)
void setDrawBreakMarkers()
const_iterator end() const
EPalette getPalette() const
void setGeomTransparency(Color_t idx, bool projectedType)
void propagatePaletteChanges() const
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
std::vector< FWEventItem * >::const_iterator const_iterator
void addTo(FWConfiguration &) const override
FWLongParameter m_backgroundColor
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
const FWColorManager * colorManager() const
void addTo(FWConfiguration &) const override
void setEnergyScale(FWViewEnergyScale *)
TGLColorSet m_darkColorSet
void setBackgroundAndBrightness(BackgroundColorIndex, int)
TEveTrackPropagator * getTrackPropagator() const
FWLongParameter m_geomTransparency2D
static Context * getInstance()
FWBoolParameter m_drawBreakPoints
TEveTrackPropagator * getTrackerTrackPropagator() const
TGLColorSet m_lightColorSet
CmsShowCommon(fireworks::Context *)
void setGeomColor(FWGeomColorIndex, Color_t)
void setFrom(const FWConfiguration &) override
void setGeomColor(FWGeomColorIndex, Color_t)
FWViewEnergyScale * getEnergyScale() const
FWEnumParameter m_trackBreak
sigc::signal< void, const CmsShowCommon * > eventCenterChanged_
void getEventCenter(float *inC) const
~CmsShowCommon() override
FWViewContext m_viewContext