#include <Fireworks/Core/interface/FWDisplayProperties.h>
Public Member Functions | |
Color_t | color () const |
FWDisplayProperties (Color_t iColor, bool isVisible, Char_t transparency) | |
bool | isVisible () const |
bool | operator!= (const FWDisplayProperties &iRHS) const |
bool | operator== (const FWDisplayProperties &iRHS) const |
void | setColor (Color_t iColor) |
void | setIsVisible (bool iSet) |
void | setTransparency (Char_t transparency) |
Char_t | transparency () const |
Static Public Attributes | |
static const FWDisplayProperties | defaultProperties |
Private Attributes | |
Color_t | m_color |
bool | m_isVisible |
Char_t | m_transparency |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 28 of file FWDisplayProperties.h.
FWDisplayProperties::FWDisplayProperties | ( | Color_t | iColor, |
bool | isVisible, | ||
Char_t | transparency | ||
) |
Note that I removed the default values to make sure that properties do not get copied around via the not so uncommon paradigm:
FWDisplayProperties new(old.color(), old.isVisible());
or similar which has the drawback of not carring over transparency information.
In general it's a good idea to have a copy and modify approach when changing updating only one value.
Definition at line 22 of file FWDisplayProperties.cc.
|
inline |
Definition at line 47 of file FWDisplayProperties.h.
References m_color.
Referenced by FWInteractionList::added(), FWTrackHitsDetailView::addHits(), FWConvTrackHitsDetailView::addHits(), FWConvTrackHitsDetailView::addModules(), FWTrackHitsDetailView::addModules(), FWPFCandidateWithHitsProxyBuilder::build(), FWCollectionSummaryWidget::colorClicked(), FWCollectionSummaryWidget::createColorPopup(), FWProxyBuilderBase::createCompound(), FWCollectionSummaryWidget::displayChanged(), CmsShowModelPopup::fillModelPopup(), FWEventItem::FWEventItem(), FWCollectionSummaryWidget::itemColorClicked(), fireworks::makeRhoPhiSuperCluster(), FWTableViewTableManager::rowHeader(), FWCollectionSummaryWidget::setBackgroundToWhite(), FWCollectionSummaryModelCellRenderer::setData(), FWEventItem::setDefaultDisplayProperties(), FWProxyBuilderBase::setupElement(), and CmsShowEDI::updateDisplay().
|
inline |
Definition at line 51 of file FWDisplayProperties.h.
References m_isVisible.
Referenced by FWInteractionList::added(), FWSimpleProxyBuilderTemplate< TrajectorySeed >::build(), FWSimpleProxyBuilderTemplate< TrajectorySeed >::buildViewType(), FWTableViewTableManager::cellRenderer(), FWFromSliceSelector::clear(), FWTableViewTableManager::dataChanged(), FWCollectionSummaryWidget::displayChanged(), FWHistSliceSelector::doSelect(), FWHFTowerSliceSelector::doSelect(), FWHGTowerSliceSelector::doSelect(), FWHistSliceSelector::doUnselect(), FWHGTowerSliceSelector::doUnselect(), FWHFTowerSliceSelector::doUnselect(), CmsShowModelPopup::fillModelPopup(), FWEventItem::modelInfo(), FWTableViewTableManager::rowHeader(), FWCollectionSummaryModelCellRenderer::setData(), FWEventItem::setDefaultDisplayProperties(), FWEventItem::setDisplayProperties(), and CmsShowEDI::updateDisplay().
|
inline |
Definition at line 56 of file FWDisplayProperties.h.
|
inline |
Definition at line 53 of file FWDisplayProperties.h.
References m_color, m_isVisible, and m_transparency.
|
inline |
Definition at line 62 of file FWDisplayProperties.h.
References m_color.
Referenced by CmsShowEDI::changeItemColor(), CmsShowModelPopup::changeModelColor(), FWModelContextMenuHandler::colorChangeRequested(), FWCollectionSummaryWidget::colorChangeRequested(), CmsShowCommon::permuteColors(), CmsShowCommon::randomizeColors(), FWEventItem::resetColor(), FWModelExpressionSelector::select(), and FWEventItem::setDefaultDisplayProperties().
|
inline |
Definition at line 71 of file FWDisplayProperties.h.
References m_isVisible.
Referenced by FWEventItem::setDisplayProperties(), FWCollectionSummaryWidget::toggleItemVisible(), CmsShowEDI::toggleItemVisible(), and CmsShowModelPopup::toggleModelVisible().
|
inline |
Notice that transparency in root is in the range [0, 100]
Definition at line 65 of file FWDisplayProperties.h.
References m_transparency, and transparency().
Referenced by CmsShowEDI::changeItemOpacity(), CmsShowModelPopup::changeModelOpacity(), and FWEventItem::setDefaultDisplayProperties().
|
inline |
Definition at line 49 of file FWDisplayProperties.h.
References m_transparency.
Referenced by FWInteractionList::added(), FWTracksterHitsProxyBuilder::build(), FWProxyBuilderBase::createCompound(), CmsShowModelPopup::fillModelPopup(), FWProxyBuilderBase::increaseComponentTransparency(), FWEventItem::setDefaultDisplayProperties(), setTransparency(), FWProxyBuilderBase::setupElement(), and CmsShowEDI::updateDisplay().
|
static |
Definition at line 30 of file FWDisplayProperties.h.
Referenced by FWGUIEventDataAdder::addNewItem().
|
private |
Definition at line 80 of file FWDisplayProperties.h.
Referenced by color(), operator==(), and setColor().
|
private |
Definition at line 81 of file FWDisplayProperties.h.
Referenced by isVisible(), operator==(), and setIsVisible().
|
private |
Definition at line 82 of file FWDisplayProperties.h.
Referenced by operator==(), setTransparency(), and transparency().