15 #include <boost/bind.hpp>
42 m_changeManager(iManager),
96 temp, showFilteredInTable, pbc));
162 for(std::vector<FWEventItem*>::const_iterator it =
m_items.begin();
177 std::ostringstream os;
178 os << (*it)->defaultDisplayProperties().color();
183 std::ostringstream os;
184 os << (*it)->layer();
189 std::ostringstream os;
190 os << static_cast<int>((*it)->defaultDisplayProperties().transparency());
197 (*it)->getConfig()->addTo(pbTmp);
216 if (keyValues == 0)
return;
218 for (FWConfiguration::KeyValues::const_iterator it = keyValues->begin();
219 it != keyValues->end();
227 const std::string& moduleLabel = (*keyValues)[1].second.value();
228 const std::string& productInstanceLabel = (*keyValues)[2].second.value();
230 const std::string& filterExpression = (*keyValues)[4].second.value();
231 const std::string& sColor = (*keyValues)[5].second.value();
232 const bool isVisible = (*keyValues)[6].second.value() ==
kTrue;
234 unsigned int colorIndex;
237 std::istringstream is(sColor);
248 std::istringstream is(sColor);
252 int transparency = 0;
257 transparency = strtol((*keyValues)[9].second.value().c_str(), 0, 10);
261 unsigned int layer = strtol((*keyValues)[7].
second.value().c_str(), 0, 10);
266 purpose = (*keyValues)[8].second.value();
274 if (purpose ==
"VerticesWithTracks")
276 purpose =
"Vertices";
283 bool showFilteredInTable =
true;
285 showFilteredInTable = (*keyValues)[10].second.
value() ==
kTrue;
289 TClass::GetClass(type.c_str()),
293 productInstanceLabel,
298 add(desc, showFilteredInTable, proxyConfig );
347 if (item && item->
name() == iName)
FWModelChangeManager * m_changeManager
std::vector< std::pair< std::string, FWConfiguration > > KeyValues
const KeyValues * keyValues() const
void removeItem(const FWEventItem *)
const FWDisplayProperties & displayProperties() const
static const std::string kModuleLabel("moduleLabel")
void setEvent(const edm::EventBase *iEvent)
const std::string & name() const
boost::shared_ptr< FWItemAccessorFactory > m_accessorFactory
void setFrom(const FWConfiguration &)
FWColorManager * colorManager() const
static const std::string kTrue("t")
static Color_t getDefaultStartColorIndex()
unsigned int version() const
Color_t oldColorToIndex(Color_t, int version) const
static const std::string kType("type")
void setContext(fireworks::Context *)
const TClass * type() const
bool colorHasIndex(Color_t) const
static const std::string kColor("color")
static const std::string kProductInstanceLabel("productInstanceLabel")
U second(std::pair< T, U > const &p)
static const std::string kFilterExpression("filterExpression")
static const std::string kProcessName("processName")
static const std::string kFalse("f")
void setDisplayProperties(const FWDisplayProperties &)
sigc::signal< void, FWEventItem * > newItem_
const FWEventItem * find(const std::string &iName) const
static const std::string kLayer("layer")
static const std::string kShowFilteredEntriesInTable("showFilteredEntriesInTable")
FWConfiguration & addKeyValue(const std::string &, const FWConfiguration &)
const edm::EventBase * m_event
const std::string & value(unsigned int iIndex=0) const
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
static const std::string kTransparency("transparency")
void newEvent(const edm::EventBase *iEvent)
static const std::string kIsVisible("isVisible")
static const std::string kPurpose("purpose")
virtual ~FWEventItemsManager()
fireworks::Context * m_context
const FWConfiguration * valueForKey(const std::string &iKey) const
std::vector< FWEventItem * > m_items
const FWEventItem * add(const FWPhysicsObjectDesc &iItem, bool showFilteredInTable=true, const FWConfiguration *pbConf=0)
void addTo(FWConfiguration &) const
std::vector< FWEventItem * >::const_iterator const_iterator
sigc::signal< void > goingToClearItems_
FWEventItemsManager(FWModelChangeManager *)
const_iterator end() const