17 #include "TEveDigitSet.h"
18 #include "TEveBoxSet.h"
19 #include "TEveManager.h"
20 #include "TEveSelection.h"
48 const TEveSecondarySelectable::SelectionSet_t&
m_selected;
54 for (
size_t i = 0;
i <
size; ++
i)
57 TEveSecondarySelectable::SelectionSet_ci si =
m_selected.find(
i);
83 TEveElement* el =
static_cast<TEveElement*
>(set);
90 assert(!product->HasChildren());
92 TEveBoxSet* boxSet =
new TEveBoxSet();
94 boxSet->Reset(TEveBoxSet::kBT_FreeBox,
true, 256);
96 boxSet->SetUserData(sel);
97 boxSet->SetPickable(1);
98 boxSet->SetAlwaysSecSelect(1);
100 product->AddElement(boxSet);
107 assert(product->NumChildren() == 1);
108 return static_cast<TEveDigitSet*
>(*product->BeginChildren());
113 boxSet->AddBox(pnts);
128 TEveSecondarySelectable::SelectionSet_t& selected = (TEveSecondarySelectable::SelectionSet_t&)(digits->RefSelectedSet());
130 for (std::set<FWModelId>::const_iterator it = iIds.begin(); it != iIds.end(); ++it)
136 digits->SetCurrentDigit(it->index());
142 TEveSecondarySelectable::SelectionSet_ci si = selected.find(it->index());
145 if (si == selected.end())
146 selected.insert(it->index());
150 if ( si != selected.end())
155 if(!selected.empty()) {
156 if(0==digits->GetSelectedLevel()) {
157 gEve->GetSelection()->AddElement(digits);
160 if(1==digits->GetSelectedLevel()||2==digits->GetSelectedLevel()) {
161 gEve->GetSelection()->RemoveElement(digits);
165 digits->StampObjProps();
const FWDisplayProperties & displayProperties() const
FWSecondarySelectableSelector(const TEveSecondarySelectable::SelectionSet_t &s, const FWEventItem *i)
const std::string & name() const
virtual void doUnselect()
void unselect(int iIndex) const
const FWEventItem * item() const
static TString getTooltip(TEveDigitSet *set, int idx)
TEveElementList * m_elements
Char_t transparency() const
virtual void modelChanges(const FWModelIds &, Product *)
std::set< FWModelId > FWModelIds
const std::string & modelInterestingValueAsString(int iIndex) const
const FWEventItem * item() const
const TEveSecondarySelectable::SelectionSet_t & m_selected
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
const FWEventItem * m_item
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
void select(int iIndex) const
~FWSecondarySelectableSelector()
ModelInfo modelInfo(int iIndex) const
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
virtual ~FWDigitSetProxyBuilder()
TEveDigitSet * digitSet(TEveElement *product)
tuple size
Write out results.