test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
CmsShowCommon Class Reference

#include <Fireworks/Core/interface/CmsShowCommon.h>

Inheritance diagram for CmsShowCommon:
FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

virtual void addTo (FWConfiguration &) const
 
 CmsShowCommon (fireworks::Context *)
 
int gamma ()
 
const TGLColorSet & getDarkColorSet () const
 
FWViewEnergyScalegetEnergyScale () const
 
const TGLColorSet & getLightColorSet () const
 
UChar_t getProjTrackBreaking () const
 
bool getRnrPTBMarkers () const
 
void loopPalettes ()
 
void permuteColors ()
 
void randomizeColors ()
 
void setDrawBreakMarkers ()
 
virtual void setFrom (const FWConfiguration &)
 
void setGamma ()
 
void setGeomColor (FWGeomColorIndex, Color_t)
 
void setGeomTransparency (int val, bool projected)
 
void setTrackBreakMode ()
 
void setView (CmsShowCommonPopup *x)
 
void switchBackground ()
 
virtual ~CmsShowCommon ()
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
unsigned int version () const
 
virtual ~FWConfigurableParameterizable ()
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Protected Member Functions

const FWColorManagercolorManager () const
 
void setPalette ()
 

Protected Attributes

FWLongParameter m_backgroundColor
 
fireworks::Contextm_context
 
TGLColorSet m_darkColorSet
 
FWBoolParameter m_drawBreakPoints
 
std::auto_ptr< FWViewEnergyScalem_energyScale
 
FWLongParameter m_gamma
 
FWLongParameterm_geomColors [kFWGeomColorSize]
 
FWLongParameter m_geomTransparency2D
 
FWLongParameter m_geomTransparency3D
 
TGLColorSet m_lightColorSet
 
FWEnumParameter m_palette
 
FWEnumParameter m_trackBreak
 
CmsShowCommonPopupm_view
 

Private Member Functions

 CmsShowCommon (const CmsShowCommon &)
 
const CmsShowCommonoperator= (const CmsShowCommon &)
 

Friends

class CmsShowCommonPopup
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector
< FWParameterBase * >
::const_iterator 
const_iterator
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 41 of file CmsShowCommon.h.

Constructor & Destructor Documentation

CmsShowCommon::CmsShowCommon ( fireworks::Context c)

Definition at line 38 of file CmsShowCommon.cc.

References FWEnumParameter::addEntry(), FWGenericParameter< T >::changed_, fireworks::Context::colorManager(), colorManager(), FWColorManager::getPalette(), i, FWColorManager::kArctic, FWColorManager::kClassic, FWColorManager::kFall, kFWGeomColorSize, FWColorManager::kPurple, FWColorManager::kSpring, cmsLHEtoEOSManager::l, m_context, m_darkColorSet, m_drawBreakPoints, m_gamma, m_geomColors, m_lightColorSet, m_palette, m_trackBreak, mergeVDriftHistosByStation::name, FWGenericParameter< T >::set(), setDrawBreakMarkers(), setGamma(), and setTrackBreakMode().

38  :
40  m_view(0),
41  m_context(c),
42  m_trackBreak(this, " ", 2l, 0l, 2l), // do not want to render text at setter
43  m_drawBreakPoints(this, "Show y=0 points as markers", false),
44  m_backgroundColor(this, "backgroundColIdx", 1l, 0l, 1000l),
45  m_gamma(this, "Brightness", 0l, -15l, 15l),
46  m_palette(this, "Palette", 1l, 0l, 2l ),
47  m_geomTransparency2D(this, "Transparency 2D", long(colorManager()->geomTransparency(true)), 0l, 100l),
48  m_geomTransparency3D(this, "Transparency 3D", long(colorManager()->geomTransparency(false)), 0l, 100l),
49  m_energyScale(new FWViewEnergyScale("global", 2))
50 {
51  // projections
52  m_trackBreak.addEntry(0, "Jump to proper hemisphere");
53  m_trackBreak.addEntry(1, "Stay on first point side");
54  m_trackBreak.addEntry(2, "Stay on last point side");
55 
61 
62  // colors
63  char name[32];
64  for (int i = 0; i < kFWGeomColorSize; ++i)
65  {
66  snprintf(name, 31, "GeometryColor %d ", i);
67  m_geomColors[i] = new FWLongParameter(this, name , long(colorManager()->geomColor(FWGeomColorIndex(i))), 1000l, 1100l);
68  }
69 
70  m_trackBreak.changed_.connect(boost::bind(&CmsShowCommon::setTrackBreakMode, this));
73  m_gamma.changed_.connect(boost::bind(&CmsShowCommon::setGamma, this));
74 
75  m_lightColorSet.StdLightBackground();
76  m_darkColorSet .StdDarkBackground();
77 }
int i
Definition: DBlmapReader.cc:9
TGLColorSet m_lightColorSet
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:91
FWConfigurableParameterizable(unsigned int iVersion=1)
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:94
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
sigc::signal< void, T > changed_
const FWColorManager * colorManager() const
FWLongParameter m_gamma
Definition: CmsShowCommon.h:95
bool addEntry(Long_t id, const std::string &txt)
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
FWLongParameter m_geomTransparency3D
void setDrawBreakMarkers()
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:99
std::auto_ptr< FWViewEnergyScale > m_energyScale
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:87
TGLColorSet m_darkColorSet
FWParameters::Long FWLongParameter
Definition: FWParameters.h:35
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:90
EPalette getPalette() const
FWEnumParameter m_palette
Definition: CmsShowCommon.h:96
CmsShowCommon::~CmsShowCommon ( )
virtual

Definition at line 79 of file CmsShowCommon.cc.

80 {
81 }
CmsShowCommon::CmsShowCommon ( const CmsShowCommon )
private

Member Function Documentation

void CmsShowCommon::addTo ( FWConfiguration oTo) const
virtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 231 of file CmsShowCommon.cc.

References FWConfigurableParameterizable::addTo(), colorManager(), m_backgroundColor, m_darkColorSet, m_energyScale, m_lightColorSet, and FWGenericParameter< T >::set().

232 {
233  m_backgroundColor.set(int(colorManager()->background()));
234 
236  m_energyScale->addTo(oTo);
237 
238  if (gEve)
239  {
240  addGLColorToConfig("SelectionColorLight", m_lightColorSet.Selection(1), oTo);
241  addGLColorToConfig("HighlightColorLight", m_lightColorSet.Selection(3), oTo);
242  addGLColorToConfig("SelectionColorDark", m_darkColorSet .Selection(1), oTo);
243  addGLColorToConfig("HighlightColorDark", m_darkColorSet .Selection(3), oTo);
244  }
245 }
TGLColorSet m_lightColorSet
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:94
const FWColorManager * colorManager() const
std::auto_ptr< FWViewEnergyScale > m_energyScale
TGLColorSet m_darkColorSet
virtual void addTo(FWConfiguration &) const
const FWColorManager * CmsShowCommon::colorManager ( ) const
protected
int CmsShowCommon::gamma ( )
inline

Definition at line 60 of file CmsShowCommon.h.

References m_gamma, and FWGenericParameter< T >::value().

60 { return m_gamma.value(); }
FWLongParameter m_gamma
Definition: CmsShowCommon.h:95
const TGLColorSet& CmsShowCommon::getDarkColorSet ( ) const
inline

Definition at line 73 of file CmsShowCommon.h.

References m_darkColorSet.

Referenced by FWEveView::setFrom().

73 { return m_darkColorSet; }
TGLColorSet m_darkColorSet
FWViewEnergyScale* CmsShowCommon::getEnergyScale ( ) const
inline

Definition at line 70 of file CmsShowCommon.h.

References m_energyScale.

Referenced by FWEveViewManager::setContext(), and FWEveView::useGlobalEnergyScaleChanged().

70 { return m_energyScale.get(); }
std::auto_ptr< FWViewEnergyScale > m_energyScale
const TGLColorSet& CmsShowCommon::getLightColorSet ( ) const
inline

Definition at line 72 of file CmsShowCommon.h.

References m_lightColorSet.

Referenced by FWEveView::setFrom().

72 { return m_lightColorSet; }
TGLColorSet m_lightColorSet
UChar_t CmsShowCommon::getProjTrackBreaking ( ) const
inline

Definition at line 76 of file CmsShowCommon.h.

References m_trackBreak, and FWGenericParameter< T >::value().

Referenced by fireworks::Context::initEveElements().

76 { return m_trackBreak.value(); }
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:90
bool CmsShowCommon::getRnrPTBMarkers ( ) const
inline

Definition at line 77 of file CmsShowCommon.h.

References m_drawBreakPoints, and FWGenericParameter< T >::value().

Referenced by fireworks::Context::initEveElements().

77 { return m_drawBreakPoints.value(); }
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:91
void CmsShowCommon::loopPalettes ( )

Definition at line 324 of file CmsShowCommon.cc.

References CmsShowCommonPopup::getCombo(), FWColorManager::kPaletteFirst, FWColorManager::kPaletteLast, m_palette, m_view, FWGenericParameter< T >::set(), setPalette(), and FWGenericParameter< T >::value().

325 {
326  int val = m_palette.value();
327  val++;
328 
329  if (val >= FWColorManager::kPaletteLast)
331 
332  if (m_view)
333  {
334  TGComboBox* combo = m_view->getCombo();
335  combo->Select(val, true);
336  }
337  else
338  {
339  m_palette.set(val);
340  setPalette();
341  }
342 }
TGComboBox * getCombo()
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:87
FWEnumParameter m_palette
Definition: CmsShowCommon.h:96
const CmsShowCommon& CmsShowCommon::operator= ( const CmsShowCommon )
private
void CmsShowCommon::permuteColors ( )

Definition at line 135 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), i, m_context, and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::permuteColors().

136 {
137  // printf("Reverting order of existing colors ...\n");
138 
139  std::vector<Color_t> colv;
140  colv.reserve(64);
141 
143  i != m_context->eventItemsManager()->end(); ++i)
144  {
145  colv.push_back((*i)->defaultDisplayProperties().color());
146  }
147 
148  int vi = colv.size() - 1;
150  i != m_context->eventItemsManager()->end(); ++i, --vi)
151  {
152  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
153  prop.setColor(colv[vi]);
154  (*i)->setDefaultDisplayProperties(prop);
155 
156  (*i)->defaultDisplayPropertiesChanged_(*i);
157  }
158  }
int i
Definition: DBlmapReader.cc:9
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::randomizeColors ( )

Definition at line 161 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), cuy::col, FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), i, m_context, rand(), and FWDisplayProperties::setColor().

Referenced by CmsShowCommonPopup::randomizeColors().

162 {
163  // printf("Doing random_shuffle on existing colors ...\n");
164 
165  int vi = 0;
167  i != m_context->eventItemsManager()->end(); ++i, ++vi)
168  {
169  FWDisplayProperties prop = (*i)->defaultDisplayProperties();
170 
171  int col = rand() % 17; // randomize in first row of palette
172  prop.setColor(col);
173  (*i)->setDefaultDisplayProperties(prop);
174 
175  (*i)->defaultDisplayPropertiesChanged_(*i);
176  }
177 }
int i
Definition: DBlmapReader.cc:9
void setColor(Color_t iColor)
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
Signal rand(Signal arg)
Definition: vlib.cc:442
int col
Definition: cuy.py:1008
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
void CmsShowCommon::setDrawBreakMarkers ( )

Definition at line 109 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_drawBreakPoints, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

110 {
111  if (m_context->getTrackPropagator()->GetRnrPTBMarkers() != m_drawBreakPoints.value())
112  {
113  m_context->getTrackPropagator()->SetRnrPTBMarkers(m_drawBreakPoints.value());
116  gEve->Redraw3D();
117  }
118 }
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:91
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:74
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:73
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:75
void CmsShowCommon::setFrom ( const FWConfiguration iFrom)
virtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 248 of file CmsShowCommon.cc.

References FWParameterizable::begin(), fireworks::Context::colorManager(), fileCollector::convert(), FWParameterizable::end(), i, kFWGeomColorSize, m_backgroundColor, m_context, m_darkColorSet, m_energyScale, m_gamma, m_geomColors, m_geomTransparency2D, m_geomTransparency3D, m_lightColorSet, alignBH_cfg::mode, FWColorManager::setBackgroundAndBrightness(), FWColorManager::setGeomColor(), FWColorManager::setGeomTransparency(), setPalette(), FWConfiguration::value(), relativeConstraints::value, FWGenericParameter< T >::value(), and FWConfiguration::valueForKey().

249 {
250  for(const_iterator it =begin(), itEnd = end();
251  it != itEnd;
252  ++it) {
253  (*it)->setFrom(iFrom);
254  }
255 
256  if (iFrom.valueForKey("Palette"))
257  setPalette();
258 
259  // handle old and new energy scale configuration if existing
260  if (iFrom.valueForKey("ScaleMode"))
261  {
262  long mode = atol(iFrom.valueForKey("ScaleMode")->value().c_str());
263 
264  float convert;
265  if (iFrom.valueForKey("EnergyToLength [GeV/m]"))
266  convert = atof(iFrom.valueForKey("EnergyToLength [GeV/m]")->value().c_str());
267  else
268  convert = atof(iFrom.valueForKey("ValueToHeight [GeV/m]")->value().c_str());
269 
270  float maxH;
271  if (iFrom.valueForKey("MaximumLength [m]"))
272  maxH = atof(iFrom.valueForKey("MaximumLength [m]")->value().c_str());
273  else
274  maxH = atof(iFrom.valueForKey("MaxTowerH [m]")->value().c_str());
275 
276  int et = atoi(iFrom.valueForKey("PlotEt")->value().c_str());
277  m_energyScale->SetFromCmsShowCommonConfig(mode, convert, maxH, et);
278  }
279 
280  // background
283 
284  // geom colors
287 
288  for (int i = 0; i < kFWGeomColorSize; ++i)
290 
291  if (gEve)
292  {
293  setGLColorFromConfig(m_lightColorSet.Selection(1), iFrom.valueForKey("SelectionColorLight"));
294  setGLColorFromConfig(m_lightColorSet.Selection(3), iFrom.valueForKey("HighlightColorLight"));
295  setGLColorFromConfig(m_darkColorSet .Selection(1), iFrom.valueForKey("SelectionColorDark"));
296  setGLColorFromConfig(m_darkColorSet .Selection(3), iFrom.valueForKey("HighlightColorDark"));
297  }
298 }
int i
Definition: DBlmapReader.cc:9
TGLColorSet m_lightColorSet
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:94
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
FWLongParameter * m_geomColors[kFWGeomColorSize]
FWLongParameter m_gamma
Definition: CmsShowCommon.h:95
void setGeomColor(FWGeomColorIndex, Color_t)
void setGeomTransparency(Color_t idx, bool projectedType)
const_iterator end() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
FWLongParameter m_geomTransparency3D
const std::string & value(unsigned int iIndex=0) const
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:99
std::auto_ptr< FWViewEnergyScale > m_energyScale
void setBackgroundAndBrightness(BackgroundColorIndex, int)
TGLColorSet m_darkColorSet
const FWConfiguration * valueForKey(const std::string &iKey) const
void CmsShowCommon::setGamma ( )

Definition at line 121 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_gamma, FWColorManager::setBrightness(), and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

122 {
124 }
FWColorManager * colorManager() const
Definition: Context.h:65
FWLongParameter m_gamma
Definition: CmsShowCommon.h:95
void setBrightness(int)
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
void CmsShowCommon::setGeomColor ( FWGeomColorIndex  cidx,
Color_t  iColor 
)

Definition at line 180 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_geomColors, FWGenericParameter< T >::set(), and FWColorManager::setGeomColor().

Referenced by CmsShowCommonPopup::changeGeomColor().

181 {
182  m_geomColors[cidx]->set(iColor);
183  m_context->colorManager()->setGeomColor(cidx, iColor);
184 }
FWColorManager * colorManager() const
Definition: Context.h:65
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
void CmsShowCommon::setGeomTransparency ( int  val,
bool  projected 
)

Definition at line 187 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), m_context, m_geomTransparency2D, m_geomTransparency3D, FWGenericParameter< T >::set(), and FWColorManager::setGeomTransparency().

Referenced by CmsShowCommonPopup::changeGeomTransparency2D(), and CmsShowCommonPopup::changeGeomTransparency3D().

188 {
189  if (projected)
190  m_geomTransparency2D.set(iTransp);
191  else
192  m_geomTransparency3D.set(iTransp);
193 
194  m_context->colorManager()->setGeomTransparency(iTransp, projected);
195 }
FWColorManager * colorManager() const
Definition: Context.h:65
void setGeomTransparency(Color_t idx, bool projectedType)
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
FWLongParameter m_geomTransparency3D
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:99
void CmsShowCommon::setPalette ( )
protected

Definition at line 303 of file CmsShowCommon.cc.

References FWEventItemsManager::begin(), fireworks::Context::colorManager(), FWEventItemsManager::end(), fireworks::Context::eventItemsManager(), FWColorManager::geomColor(), i, kFWGeomColorSize, m_context, m_geomColors, m_palette, FWColorManager::propagatePaletteChanges(), FWGenericParameter< T >::set(), FWColorManager::setPalette(), and FWGenericParameter< T >::value().

Referenced by Vispa.Views.LineDecayView.LineDecayView::__init__(), loopPalettes(), setFrom(), and CmsShowCommonPopup::setPaletteGUI().

304 {
306  cm->setPalette(m_palette.value());
307 
308  for (int i = 0 ; i < kFWGeomColorSize; ++i) {
311  // m_colorSelectWidget[i]->SetColorByIndex(cm->geomColor(FWGeomColorIndex(i)), kFALSE);
312  }
313 
316  i != m_context->eventItemsManager()->end(); ++i)
317  {
318  (*i)->resetColor();
319  }
320 }
int i
Definition: DBlmapReader.cc:9
const FWEventItemsManager * eventItemsManager() const
Definition: Context.h:61
FWColorManager * colorManager() const
Definition: Context.h:65
FWGeomColorIndex
FWLongParameter * m_geomColors[kFWGeomColorSize]
void setPalette(long long)
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
void propagatePaletteChanges() const
Color_t geomColor(FWGeomColorIndex) const
std::vector< FWEventItem * >::const_iterator const_iterator
const_iterator end() const
FWEnumParameter m_palette
Definition: CmsShowCommon.h:96
void CmsShowCommon::setTrackBreakMode ( )

Definition at line 94 of file CmsShowCommon.cc.

References fireworks::Context::getMuonTrackPropagator(), fireworks::Context::getTrackerTrackPropagator(), fireworks::Context::getTrackPropagator(), m_context, m_trackBreak, and FWGenericParameter< T >::value().

Referenced by CmsShowCommon().

95 {
96  if (m_context->getTrackPropagator()->GetProjTrackBreaking() != m_trackBreak.value())
97  {
98  m_context->getTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
99  m_context->getTrackerTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
100  m_context->getMuonTrackPropagator()->SetProjTrackBreaking(m_trackBreak.value());
101  gEve->Redraw3D();
102  }
103 }
TEveTrackPropagator * getTrackerTrackPropagator() const
Definition: Context.h:74
TEveTrackPropagator * getTrackPropagator() const
Definition: Context.h:73
fireworks::Context * m_context
Definition: CmsShowCommon.h:88
TEveTrackPropagator * getMuonTrackPropagator() const
Definition: Context.h:75
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:90
void CmsShowCommon::setView ( CmsShowCommonPopup x)
inline

Definition at line 79 of file CmsShowCommon.h.

References m_view, and x.

Referenced by FWGUIManager::showCommonPopup().

79 { m_view= x;}
CmsShowCommonPopup * m_view
Definition: CmsShowCommon.h:87
void CmsShowCommon::switchBackground ( )

Definition at line 127 of file CmsShowCommon.cc.

References fireworks::Context::colorManager(), colorManager(), m_backgroundColor, m_context, FWGenericParameter< T >::set(), and FWColorManager::switchBackground().

Referenced by CmsShowCommonPopup::switchBackground().

128 {
130  m_backgroundColor.set(colorManager()->background());
131 }
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:94
FWColorManager * colorManager() const
Definition: Context.h:65
const FWColorManager * colorManager() const
fireworks::Context * m_context
Definition: CmsShowCommon.h:88

Friends And Related Function Documentation

friend class CmsShowCommonPopup
friend

Definition at line 43 of file CmsShowCommon.h.

Member Data Documentation

FWLongParameter CmsShowCommon::m_backgroundColor
mutableprotected

Definition at line 94 of file CmsShowCommon.h.

Referenced by addTo(), setFrom(), and switchBackground().

fireworks::Context* CmsShowCommon::m_context
protected
TGLColorSet CmsShowCommon::m_darkColorSet
protected
FWBoolParameter CmsShowCommon::m_drawBreakPoints
protected
std::auto_ptr<FWViewEnergyScale> CmsShowCommon::m_energyScale
protected
FWLongParameter CmsShowCommon::m_gamma
protected
FWLongParameter* CmsShowCommon::m_geomColors[kFWGeomColorSize]
protected

Definition at line 101 of file CmsShowCommon.h.

Referenced by CmsShowCommon(), setFrom(), setGeomColor(), and setPalette().

FWLongParameter CmsShowCommon::m_geomTransparency2D
protected

Definition at line 99 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

FWLongParameter CmsShowCommon::m_geomTransparency3D
protected

Definition at line 100 of file CmsShowCommon.h.

Referenced by setFrom(), and setGeomTransparency().

TGLColorSet CmsShowCommon::m_lightColorSet
protected
FWEnumParameter CmsShowCommon::m_palette
mutableprotected
FWEnumParameter CmsShowCommon::m_trackBreak
protected
CmsShowCommonPopup* CmsShowCommon::m_view
protected

Definition at line 87 of file CmsShowCommon.h.

Referenced by loopPalettes(), and setView().