![]() |
![]() |
#include <Fireworks/Core/interface/FWColorManager.h>
Public Types | |
enum | BackgroundColorIndex { kWhiteIndex = kWhite, kBlackIndex = kBlack } |
enum | EPalette { kPaletteFirst = 0, kClassic = 0, kPurple, kFall, kSpring, kArctic, kPaletteLast } |
Static Public Member Functions | |
static Color_t | getDefaultStartColorIndex () |
static Bool_t | setColorSetViewer (TGLViewer *, Color_t) |
Public Attributes | |
sigc::signal< void > | colorsHaveChanged_ |
sigc::signal< void > | colorsHaveChangedFinished_ |
sigc::signal< void > | geomColorsHaveChanged_ |
sigc::signal< void, bool > | geomTransparencyHaveChanged_ |
Private Member Functions | |
FWColorManager (const FWColorManager &)=delete | |
void | initColorTable () |
const FWColorManager & | operator= (const FWColorManager &)=delete |
void | updateColors () |
Private Attributes | |
Color_t | m_background |
FWModelChangeManager * | m_changeManager |
Color_t | m_foreground |
Float_t | m_gammaOff |
Color_t | m_geomColor [kFWGeomColorSize] |
Char_t | m_geomTransparency2D |
Char_t | m_geomTransparency3D |
Color_t | m_numColorIndices |
EPalette | m_paletteId |
Color_t | m_startColorIndex |
Static Private Attributes | |
static const Color_t | s_defaultStartColorIndex = 1000 |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 47 of file FWColorManager.h.
Enumerator | |
---|---|
kWhiteIndex | |
kBlackIndex |
Definition at line 76 of file FWColorManager.h.
Enumerator | |
---|---|
kPaletteFirst | |
kClassic | |
kPurple | |
kFall | |
kSpring | |
kArctic | |
kPaletteLast |
Definition at line 50 of file FWColorManager.h.
FWColorManager::FWColorManager | ( | FWModelChangeManager * | iManager | ) |
Definition at line 78 of file FWColorManager.cc.
References setDefaultGeomColors().
|
virtual |
Definition at line 92 of file FWColorManager.cc.
|
privatedelete |
|
inline |
Definition at line 58 of file FWColorManager.h.
References m_background.
Referenced by FWTableViewTableManager::cellRenderer(), FWDetailViewManager::colorsChanged(), FWEveViewManager::finishViewCreate(), FWTableView::FWTableView(), FWDetailViewManager::openDetailViewFor(), FWTableView::resetColors(), FWTableViewTableManager::rowHeader(), and FWTableView::toggleShowHide().
FWColorManager::BackgroundColorIndex FWColorManager::backgroundColorIndex | ( | ) | const |
Definition at line 310 of file FWColorManager.cc.
References kBlackIndex, kWhiteIndex, and m_background.
Referenced by CmsShowViewPopup::backgroundColorWasChanged(), FWGeometryTableViewBase::cellClicked(), CmsShowViewPopup::changeBackground(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWSummaryManager::colorsChanged(), FWColorSelect::HandleButton(), FWCollectionSummaryWidget::itemColorClicked(), FWSummaryManager::newItem(), FWGeometryTableViewBase::setBackgroundColor(), and setBackgroundColorIndex().
|
inline |
Definition at line 65 of file FWColorManager.h.
References colorHasIndex(), cuy::cv, fillLimitedColors(), geomColor(), m_numColorIndices, m_startColorIndex, oldColorToIndex(), and jets_cff::version.
Referenced by fillLimitedColors().
int FWColorManager::brightness | ( | ) |
Definition at line 221 of file FWColorManager.cc.
References m_gammaOff.
Referenced by getPalette().
bool FWColorManager::colorHasIndex | ( | Color_t | iColor | ) | const |
Definition at line 319 of file FWColorManager.cc.
References m_numColorIndices, and m_startColorIndex.
Referenced by FWEventItemsManager::add(), and borderOfLimitedColors().
void FWColorManager::defaultBrightness | ( | ) |
Definition at line 227 of file FWColorManager.cc.
References m_gammaOff, and updateColors().
Referenced by getPalette().
void FWColorManager::fillLimitedColors | ( | std::vector< Color_t > & | cv | ) | const |
Definition at line 300 of file FWColorManager.cc.
References borderOfLimitedColors(), mps_fire::i, m_numColorIndices, and m_startColorIndex.
Referenced by borderOfLimitedColors(), FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWModelContextMenuHandler::createColorPopup(), FWCollectionSummaryWidget::createColorPopup(), FWColorSelect::FWColorSelect(), FWColorSelect::HandleButton(), and FWCollectionSummaryWidget::itemColorClicked().
|
inline |
Definition at line 59 of file FWColorManager.h.
References m_foreground.
Referenced by FWTableView::resetColors().
Color_t FWColorManager::geomColor | ( | FWGeomColorIndex | iIndex | ) | const |
Definition at line 326 of file FWColorManager.cc.
References m_geomColor.
Referenced by borderOfLimitedColors(), CmsShowCommonPopup::CmsShowCommonPopup(), CmsShowCommonPopup::colorSetChanged(), FWViewGeometryList::FWViewGeometryList(), FWRPZViewGeometry::makeCaloOutlineRhoPhi(), CmsShowCommon::setPalette(), CmsShowCommonPopup::setPaletteGUI(), and FWViewGeometryList::updateColors().
|
inline |
Definition at line 100 of file FWColorManager.h.
References m_geomTransparency2D, m_geomTransparency3D, propagatePaletteChanges(), and setDefaultGeomColors().
Referenced by CmsShowCommonPopup::CmsShowCommonPopup(), FWViewGeometryList::FWViewGeometryList(), FWViewGeometryList::updateColors(), and FWViewGeometryList::updateTransparency().
|
static |
Definition at line 39 of file FWColorManager.cc.
References s_defaultStartColorIndex.
Referenced by FWEventItemsManager::add(), and getPalette().
|
inline |
Definition at line 79 of file FWColorManager.h.
References brightness(), defaultBrightness(), getDefaultStartColorIndex(), training_settings::idx, m_paletteId, setBackgroundAndBrightness(), setBackgroundColorIndex(), setBrightness(), setColorSetViewer(), setGeomColor(), setGeomTransparency(), setPalette(), and switchBackground().
Referenced by CmsShowCommon::CmsShowCommon().
|
private |
Definition at line 171 of file FWColorManager.cc.
References ev, objects.autophobj::float, fireworks::GetColorValuesForPaletteExtra(), isColorSetLight(), m_gammaOff, m_paletteId, m_startColorIndex, and resetColors().
Referenced by setPalette(), and updateColors().
void FWColorManager::initialize | ( | ) |
Definition at line 136 of file FWColorManager.cc.
References objects.autophobj::float, m_numColorIndices, m_startColorIndex, and s_defaultStartColorIndex.
|
inline |
Definition at line 60 of file FWColorManager.h.
References kBlackIndex, and m_background.
Referenced by CmsShowCommonPopup::changeSelectionColorSet(), CmsShowCommonPopup::getColorSetColors(), FWEveLegoView::setContext(), and switchBackground().
|
inline |
Definition at line 61 of file FWColorManager.h.
References kWhiteIndex, and m_background.
Referenced by FWSummaryManager::colorsChanged(), and initColorTable().
|
inline |
|
inline |
Color_t FWColorManager::oldColorToIndex | ( | Color_t | iColor, |
int | version | ||
) | const |
Definition at line 335 of file FWColorManager.cc.
Referenced by borderOfLimitedColors(), and FWEventItemsManager::setFrom().
|
privatedelete |
void FWColorManager::propagatePaletteChanges | ( | ) | const |
Definition at line 203 of file FWColorManager.cc.
References colorsHaveChanged_, colorsHaveChangedFinished_, geomColorsHaveChanged_, and m_changeManager.
Referenced by geomTransparency(), CmsShowCommon::setPalette(), and updateColors().
void FWColorManager::setBackgroundAndBrightness | ( | BackgroundColorIndex | iIndex, |
int | b | ||
) |
Definition at line 255 of file FWColorManager.cc.
References m_gammaOff, and setBackgroundColorIndex().
Referenced by getPalette(), and CmsShowCommon::setFrom().
void FWColorManager::setBackgroundColorIndex | ( | BackgroundColorIndex | iIndex | ) |
Definition at line 240 of file FWColorManager.cc.
References backgroundColorIndex(), kBlackIndex, kWhiteIndex, m_background, m_foreground, and updateColors().
Referenced by CmsShowViewPopup::changeBackground(), getPalette(), setBackgroundAndBrightness(), and switchBackground().
void FWColorManager::setBrightness | ( | int | b | ) |
Definition at line 212 of file FWColorManager.cc.
References m_gammaOff, and updateColors().
Referenced by getPalette(), and CmsShowCommon::setGamma().
|
static |
Definition at line 262 of file FWColorManager.cc.
References kBlackIndex, and kWhiteIndex.
Referenced by FWEveViewManager::finishViewCreate(), getPalette(), FWTrackHitsDetailView::setBackgroundColor(), and FWEveView::setBackgroundColor().
void FWColorManager::setDefaultGeomColors | ( | ) |
Definition at line 100 of file FWColorManager.cc.
References kArctic, kFall, kFwHGCalEEColorIndex, kFwHGCalHScColorIndex, kFwHGCalHSiColorIndex, kFWMuonBarrelLineColorIndex, kFWMuonEndcapLineColorIndex, kFWPixelBarrelColorIndex, kFWPixelEndcapColorIndex, kFWTrackerBarrelColorIndex, kFWTrackerEndcapColorIndex, kPurple, kSpring, m_geomColor, and m_paletteId.
Referenced by FWColorManager(), geomTransparency(), and setPalette().
void FWColorManager::setGeomColor | ( | FWGeomColorIndex | idx, |
Color_t | iColor | ||
) |
Definition at line 274 of file FWColorManager.cc.
References geomColorsHaveChanged_, training_settings::idx, and m_geomColor.
Referenced by getPalette(), CmsShowCommon::setFrom(), and CmsShowCommon::setGeomColor().
void FWColorManager::setGeomTransparency | ( | Color_t | idx, |
bool | projectedType | ||
) |
Definition at line 282 of file FWColorManager.cc.
References geomTransparencyHaveChanged_, m_geomTransparency2D, and m_geomTransparency3D.
Referenced by getPalette(), FW3DViewBase::setFrom(), CmsShowCommon::setFrom(), and CmsShowCommon::setGeomTransparency().
void FWColorManager::setPalette | ( | long long | x | ) |
Definition at line 159 of file FWColorManager.cc.
References initColorTable(), m_changeManager, m_paletteId, and setDefaultGeomColors().
Referenced by Vispa.Views.LineDecayView.LineDecayView::__init__(), getPalette(), and CmsShowCommon::setPalette().
void FWColorManager::switchBackground | ( | ) |
Definition at line 234 of file FWColorManager.cc.
References isColorSetDark(), kBlackIndex, kWhiteIndex, and setBackgroundColorIndex().
Referenced by FWGUIManager::FWGUIManager(), getPalette(), and CmsShowCommon::switchBackground().
|
private |
Definition at line 197 of file FWColorManager.cc.
References initColorTable(), and propagatePaletteChanges().
Referenced by defaultBrightness(), setBackgroundColorIndex(), and setBrightness().
|
mutable |
Definition at line 104 of file FWColorManager.h.
Referenced by CmsShowViewPopup::CmsShowViewPopup(), FWColorSelect::FWColorSelect(), FWDetailViewManager::FWDetailViewManager(), FWSummaryManager::FWSummaryManager(), propagatePaletteChanges(), and FWViewManagerBase::setColorManager().
|
mutable |
Definition at line 109 of file FWColorManager.h.
Referenced by FWGUIManager::FWGUIManager(), and propagatePaletteChanges().
|
mutable |
Definition at line 105 of file FWColorManager.h.
Referenced by FWViewGeometryList::FWViewGeometryList(), propagatePaletteChanges(), and setGeomColor().
|
mutable |
Definition at line 106 of file FWColorManager.h.
Referenced by FWViewGeometryList::FWViewGeometryList(), and setGeomTransparency().
|
private |
Definition at line 123 of file FWColorManager.h.
Referenced by background(), backgroundColorIndex(), isColorSetDark(), isColorSetLight(), and setBackgroundColorIndex().
|
private |
Definition at line 125 of file FWColorManager.h.
Referenced by propagatePaletteChanges(), and setPalette().
|
private |
Definition at line 124 of file FWColorManager.h.
Referenced by foreground(), and setBackgroundColorIndex().
|
private |
Definition at line 121 of file FWColorManager.h.
Referenced by brightness(), defaultBrightness(), initColorTable(), setBackgroundAndBrightness(), and setBrightness().
|
private |
Definition at line 130 of file FWColorManager.h.
Referenced by geomColor(), setDefaultGeomColors(), and setGeomColor().
|
private |
Definition at line 131 of file FWColorManager.h.
Referenced by geomTransparency(), and setGeomTransparency().
|
private |
Definition at line 132 of file FWColorManager.h.
Referenced by geomTransparency(), and setGeomTransparency().
|
private |
Definition at line 128 of file FWColorManager.h.
Referenced by borderOfLimitedColors(), colorHasIndex(), fillLimitedColors(), initialize(), and numberOfLimitedColors().
|
private |
Definition at line 119 of file FWColorManager.h.
Referenced by getPalette(), initColorTable(), setDefaultGeomColors(), and setPalette().
|
private |
Definition at line 127 of file FWColorManager.h.
Referenced by borderOfLimitedColors(), colorHasIndex(), fillLimitedColors(), initColorTable(), initialize(), and offsetOfLimitedColors().
|
staticprivate |
Definition at line 134 of file FWColorManager.h.
Referenced by getDefaultStartColorIndex(), and initialize().