#include <Fireworks/Core/interface/FWColorManager.h>
Public Types | |
enum | BackgroundColorIndex { kWhiteIndex = kWhite, kBlackIndex = kBlack } |
Public Member Functions | |
Color_t | background () const |
BackgroundColorIndex | backgroundColorIndex () const |
int | borderOfLimitedColors () const |
int | brightness () |
bool | colorHasIndex (Color_t) const |
void | defaultBrightness () |
void | fillLimitedColors (std::vector< Color_t > &cv) const |
Color_t | foreground () const |
FWColorManager (FWModelChangeManager *) | |
Color_t | geomColor (FWGeomColorIndex) const |
Color_t | geomTransparency (bool projected) const |
void | initialize () |
Bool_t | isColorSetDark () const |
Bool_t | isColorSetLight () const |
int | numberOfLimitedColors () const |
int | offsetOfLimitedColors () const |
Color_t | oldColorToIndex (Color_t, int version) const |
void | setBackgroundAndBrightness (BackgroundColorIndex, int) |
void | setBackgroundColorIndex (BackgroundColorIndex) |
void | setBrightness (int) |
void | setGeomColor (FWGeomColorIndex, Color_t) |
void | setGeomTransparency (Color_t idx, bool projectedType) |
void | switchBackground () |
virtual | ~FWColorManager () |
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 &) | |
const FWColorManager & | operator= (const FWColorManager &) |
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 |
Color_t | m_startColorIndex |
Static Private Attributes | |
static const Color_t | s_defaultStartColorIndex = 1000 |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 45 of file FWColorManager.h.
Enumerator | |
---|---|
kWhiteIndex | |
kBlackIndex |
Definition at line 72 of file FWColorManager.h.
FWColorManager::FWColorManager | ( | FWModelChangeManager * | iManager | ) |
Definition at line 186 of file FWColorManager.cc.
References kFWMuonBarrelLineColorIndex, kFWMuonEndcapLineColorIndex, kFWPixelBarrelColorIndex, kFWPixelEndcapColorIndex, kFWTrackerBarrelColorIndex, kFWTrackerEndcapColorIndex, and m_geomColor.
|
virtual |
Definition at line 206 of file FWColorManager.cc.
|
private |
|
inline |
Definition at line 54 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 352 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(), setBackgroundColorIndex(), and updateColors().
|
inline |
Definition at line 61 of file FWColorManager.h.
References m_numColorIndices, and m_startColorIndex.
Referenced by fillLimitedColors().
int FWColorManager::brightness | ( | ) |
bool FWColorManager::colorHasIndex | ( | Color_t | iColor | ) | const |
Definition at line 361 of file FWColorManager.cc.
References m_numColorIndices, and m_startColorIndex.
Referenced by FWEventItemsManager::add().
void FWColorManager::defaultBrightness | ( | ) |
void FWColorManager::fillLimitedColors | ( | std::vector< Color_t > & | cv | ) | const |
Definition at line 342 of file FWColorManager.cc.
References borderOfLimitedColors(), i, m_numColorIndices, and m_startColorIndex.
Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWModelContextMenuHandler::createColorPopup(), FWCollectionSummaryWidget::createColorPopup(), FWColorSelect::FWColorSelect(), FWColorSelect::HandleButton(), and FWCollectionSummaryWidget::itemColorClicked().
|
inline |
Definition at line 55 of file FWColorManager.h.
References m_foreground.
Referenced by FWTableView::resetColors().
Color_t FWColorManager::geomColor | ( | FWGeomColorIndex | iIndex | ) | const |
Definition at line 368 of file FWColorManager.cc.
References m_geomColor.
Referenced by CmsShowCommonPopup::CmsShowCommonPopup(), CmsShowCommonPopup::colorSetChanged(), FWViewGeometryList::FWViewGeometryList(), FWRPZViewGeometry::makeCaloOutlineRhoPhi(), and FWViewGeometryList::updateColors().
|
inline |
Definition at line 93 of file FWColorManager.h.
References m_geomTransparency2D, and m_geomTransparency3D.
Referenced by CmsShowCommonPopup::CmsShowCommonPopup(), FWViewGeometryList::FWViewGeometryList(), FWViewGeometryList::updateColors(), and FWViewGeometryList::updateTransparency().
|
static |
Definition at line 40 of file FWColorManager.cc.
References s_defaultStartColorIndex.
Referenced by FWEventItemsManager::add().
void FWColorManager::initialize | ( | ) |
Definition at line 214 of file FWColorManager.cc.
References getHLTprescales::index, m_numColorIndices, m_startColorIndex, s_defaultStartColorIndex, s_forBlack, and s_size.
|
inline |
Definition at line 56 of file FWColorManager.h.
References kBlackIndex, and m_background.
Referenced by CmsShowCommonPopup::changeSelectionColorSet(), CmsShowCommonPopup::getColorSetColors(), FWEveLegoView::setContext(), and switchBackground().
|
inline |
Definition at line 57 of file FWColorManager.h.
References kWhiteIndex, and m_background.
Referenced by FWSummaryManager::colorsChanged().
|
inline |
|
inline |
Color_t FWColorManager::oldColorToIndex | ( | Color_t | iColor, |
int | version | ||
) | const |
Definition at line 377 of file FWColorManager.cc.
References kFWBlue, kFWCyan, kFWGreen, kFWMagenta, kFWOrange, kFWRed, and kFWYellow.
Referenced by FWEventItemsManager::setFrom().
|
private |
void FWColorManager::setBackgroundAndBrightness | ( | BackgroundColorIndex | iIndex, |
int | b | ||
) |
Definition at line 297 of file FWColorManager.cc.
References m_gammaOff, and setBackgroundColorIndex().
Referenced by CmsShowCommon::setFrom().
void FWColorManager::setBackgroundColorIndex | ( | BackgroundColorIndex | iIndex | ) |
Definition at line 282 of file FWColorManager.cc.
References backgroundColorIndex(), kBlackIndex, kWhiteIndex, m_background, m_foreground, and updateColors().
Referenced by CmsShowViewPopup::changeBackground(), setBackgroundAndBrightness(), and switchBackground().
void FWColorManager::setBrightness | ( | int | b | ) |
Definition at line 254 of file FWColorManager.cc.
References m_gammaOff, and updateColors().
Referenced by CmsShowCommon::setGamma().
|
static |
Definition at line 304 of file FWColorManager.cc.
References kBlackIndex, and kWhiteIndex.
Referenced by FWEveViewManager::finishViewCreate(), FWTrackHitsDetailView::setBackgroundColor(), and FWEveView::setBackgroundColor().
void FWColorManager::setGeomColor | ( | FWGeomColorIndex | idx, |
Color_t | iColor | ||
) |
Definition at line 316 of file FWColorManager.cc.
References geomColorsHaveChanged_, and m_geomColor.
Referenced by CmsShowCommon::setFrom(), and CmsShowCommon::setGeomColor().
void FWColorManager::setGeomTransparency | ( | Color_t | idx, |
bool | projectedType | ||
) |
Definition at line 324 of file FWColorManager.cc.
References geomTransparencyHaveChanged_, m_geomTransparency2D, and m_geomTransparency3D.
Referenced by FW3DViewBase::setFrom(), CmsShowCommon::setFrom(), and CmsShowCommon::setGeomTransparency().
void FWColorManager::switchBackground | ( | ) |
Definition at line 276 of file FWColorManager.cc.
References isColorSetDark(), kBlackIndex, kWhiteIndex, and setBackgroundColorIndex().
Referenced by FWGUIManager::FWGUIManager(), and CmsShowCommon::switchBackground().
|
private |
Definition at line 235 of file FWColorManager.cc.
References backgroundColorIndex(), colorsHaveChanged_, colorsHaveChangedFinished_, kBlackIndex, m_changeManager, m_gammaOff, m_startColorIndex, resetColors(), s_forBlack, s_forWhite, and s_size.
Referenced by defaultBrightness(), setBackgroundColorIndex(), and setBrightness().
|
mutable |
Definition at line 95 of file FWColorManager.h.
Referenced by CmsShowViewPopup::CmsShowViewPopup(), FWColorSelect::FWColorSelect(), FWDetailViewManager::FWDetailViewManager(), FWSummaryManager::FWSummaryManager(), FWViewManagerBase::setColorManager(), and updateColors().
|
mutable |
Definition at line 100 of file FWColorManager.h.
Referenced by FWGUIManager::FWGUIManager(), and updateColors().
|
mutable |
Definition at line 96 of file FWColorManager.h.
Referenced by FWViewGeometryList::FWViewGeometryList(), and setGeomColor().
|
mutable |
Definition at line 97 of file FWColorManager.h.
Referenced by FWViewGeometryList::FWViewGeometryList(), and setGeomTransparency().
|
private |
Definition at line 112 of file FWColorManager.h.
Referenced by background(), backgroundColorIndex(), isColorSetDark(), isColorSetLight(), and setBackgroundColorIndex().
|
private |
Definition at line 114 of file FWColorManager.h.
Referenced by updateColors().
|
private |
Definition at line 113 of file FWColorManager.h.
Referenced by foreground(), and setBackgroundColorIndex().
|
private |
Definition at line 110 of file FWColorManager.h.
Referenced by brightness(), defaultBrightness(), setBackgroundAndBrightness(), setBrightness(), and updateColors().
|
private |
Definition at line 119 of file FWColorManager.h.
Referenced by FWColorManager(), geomColor(), and setGeomColor().
|
private |
Definition at line 120 of file FWColorManager.h.
Referenced by geomTransparency(), and setGeomTransparency().
|
private |
Definition at line 121 of file FWColorManager.h.
Referenced by geomTransparency(), and setGeomTransparency().
|
private |
Definition at line 117 of file FWColorManager.h.
Referenced by borderOfLimitedColors(), colorHasIndex(), fillLimitedColors(), initialize(), and numberOfLimitedColors().
|
private |
Definition at line 116 of file FWColorManager.h.
Referenced by borderOfLimitedColors(), colorHasIndex(), fillLimitedColors(), initialize(), offsetOfLimitedColors(), and updateColors().
|
staticprivate |
Definition at line 123 of file FWColorManager.h.
Referenced by getDefaultStartColorIndex(), and initialize().