|
|
Go to the documentation of this file.
47 std::shared_ptr<FWItemAccessorBase> iAccessor,
50 : m_context(iContext),
55 m_accessor(iAccessor),
56 m_displayProperties(iDesc.displayProperties()),
57 m_layer(iDesc.layer()),
59 m_productInstanceLabel(iDesc.productInstanceLabel()),
62 m_interestingValueGetter(
edm::TypeWithDict(*(m_accessor->modelType()->GetTypeInfo())), m_purpose),
63 m_filter(iDesc.filterExpression(),
""),
64 m_printedErrorThisEvent(
false),
67 m_proxyBuilderConfig(nullptr) {
143 if (!visChange && !colorChanged && !transparencyChanged) {
155 bool changed =
false;
156 changed = visChange &&
vis;
164 if (transparencyChanged) {
191 std::vector<ModelInfo>::iterator itInfo =
m_itemInfos.begin();
194 bool changed =
false;
195 bool wasVisible = itInfo->m_displayProperties.isVisible();
197 itInfo->m_displayProperties.setIsVisible(
false);
198 changed = wasVisible ==
true;
200 itInfo->m_displayProperties.setIsVisible(
true);
201 changed = wasVisible ==
false;
210 std::cerr <<
"Exception occurred while running filter on " <<
name() <<
"\n" << iException.what() << std::endl;
232 const_cast<FWEventItem*>(
this)->selectItem();
250 if (prop != iProps) {
260 std::vector<ModelInfo>::iterator itInfo =
m_itemInfos.begin();
262 if (itInfo->m_displayProperties.isVisible()) {
263 itInfo->m_displayProperties.setIsVisible(
false);
268 m_itemInfos.at(iIndex).m_displayProperties.setIsVisible(
true);
271 const_cast<FWEventItem*>(
this)->m_displayProperties.setIsVisible(
true);
280 int largest =
layer();
285 if ((*it) && (*it !=
this) && (*it)->layer() > largest) {
286 largest = (*it)->layer();
290 if (largest >=
layer()) {
301 int smallest =
layer();
306 if ((*it) && (*it !=
this) && (*it)->layer() < smallest) {
307 smallest = (*it)->layer();
311 if (smallest <=
layer()) {
374 std::ostringstream
s;
375 s <<
"Failed to get " <<
name() <<
" because \n" << iException.what();
413 if ((*it) && (*it !=
this) && (*it)->layer() >=
layer()) {
426 if ((*it) && (*it !=
this) && (*it)->layer() <=
layer()) {
452 dp.setIsVisible(
false);
472 std::ostringstream
s;
473 size_t lastChar =
name().size();
475 if (
name()[lastChar - 1] ==
's') {
478 s <<
name().substr(0, lastChar) <<
" " << iIndex;
498 const_cast<FWEventItem*>(
this)->unselectItem();
ModelInfo modelInfo(int iIndex) const
const std::string & productInstanceLabel() const
void setData(const edm::ObjectWithDict &) const
const std::string & expression() const
void unselect(const FWModelId &iId)
FWItemChangeSignal preItemChanged_
void setEvent(const edm::EventBase *iEvent)
const std::string & errorMessage() const
returns error string if there was a problem this event
bool getByLabel(InputTag const &, Handle< T > &) const
const std::string & processName() const
const fireworks::Context * m_context
bool isInFront() const
returns true if item is in front of all other items
void toggleSelect(int iIndex) const
std::string m_moduleLabel
static int maxLayerValue()
const std::string & modelInterestingValueAsString(int iIndex) const
FWItemChangeSignal goingToBeDestroyed_
bool passesFilter(const void *) const
void setExpression(const std::string &)
void proxyConfigChanged(bool k=false)
const void * modelData(int iIndex) const
bool itemIsSelected() const
const std::string & moduleLabel() const
FWSelectionManager * selectionManager() const
void setClassName(const std::string &)
std::shared_ptr< FWItemAccessorBase > m_accessor
void setDefaultDisplayProperties(const FWDisplayProperties &)
FWItemChangeSignal defaultDisplayPropertiesChanged_
void select(int iIndex) const
FWModelChangeManager * changeManager() const
void getPrimaryData() const
void select(const FWModelId &iId)
const FWDisplayProperties & defaultDisplayProperties() const
FWItemValueGetter m_interestingValueGetter
void setLabels(const std::string &iModule, const std::string &iProductInstance, const std::string &iProcess)
bool isInBack() const
returns true if item is behind all other items
const FWEventItemsManager * eventItemsManager() const
const TClass * modelType() const
const void * data(const std::type_info &) const
Char_t transparency() const
bool m_printedErrorThisEvent
const std::string & getToolTip(const void *iObject) const
void selectItem(FWEventItem *)
void setColor(Color_t iColor)
const std::string & filterExpression() const
void unselect(int iIndex) const
std::string modelName(int iIndex) const
std::string m_processName
const_iterator end() const
FWGeometry * getGeom() const
std::vector< FWEventItem * >::const_iterator const_iterator
FWProxyBuilderConfiguration * m_proxyBuilderConfig
bool hasError() const
returns true if failed to get data for this event
const TClass * type() const
void setTransparency(Char_t transparency)
void setDisplayProperties(int iIndex, const FWDisplayProperties &) const
const std::string & purpose() const
const FWGeometry * getGeom() const
FWDisplayProperties m_displayProperties
const FWDisplayProperties & displayProperties() const
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
static int minLayerValue()
bool haveInterestingValue() const
void changed(const FWModelId &)
FWItemChangeSignal filterChanged_
bool isCollection() const
std::vector< ModelInfo > m_itemInfos
void setName(const std::string &iName)
const std::string & name() const
void setFilterExpression(const std::string &)
std::string m_productInstanceLabel
void unselectItem(FWEventItem *)
const edm::EventBase * m_event
FWEventItem(fireworks::Context *iContext, unsigned int iItemId, std::shared_ptr< FWItemAccessorBase > iAccessor, const FWPhysicsObjectDesc &iDesc, const FWConfiguration *pbConf=nullptr)
std::string m_errorMessage
void moveToLayer(int layer)