56void REveSecondarySelectable::ProcessGLSelectionInternal(TGLSelectRecord& rec,
59 Int_t id = (rec.GetN() > 1) ? (Int_t) rec.GetItem(1) : -1;
66 rec.SetSecSelResult(TGLSelectRecord::kEnteringSelection);
73 if (rec.GetMultiple())
75 if (sset.find(id) == sset.end())
78 rec.SetSecSelResult(TGLSelectRecord::kModifyingInternalSelection);
84 rec.SetSecSelResult(TGLSelectRecord::kLeavingSelection);
86 rec.SetSecSelResult(TGLSelectRecord::kModifyingInternalSelection);
91 if (sset.size() != 1 || sset.find(id) == sset.end())
95 rec.SetSecSelResult(TGLSelectRecord::kModifyingInternalSelection);
101 if (!rec.GetMultiple())
104 rec.SetSecSelResult(TGLSelectRecord::kLeavingSelection);
109 if (rec.GetSecSelResult() != TGLSelectRecord::kNone)
111 dynamic_cast<REveElement*>(this)->StampColorSelection();