Called when a menu item was selected iEntryIndex: the index of the selected menu item. Same as returned from 'addEntry' iX, iY: Screen coordinates of where mouse was clicked
Implements FWViewContextMenuHandlerBase.
Definition at line 44 of file FWViewContextMenuHandlerGL.cc.
References FWEveView::context(), f, FWModelId::index(), getHLTprescales::index, FWViewType::isProjected(), FWModelId::item(), kAnnotate, kCameraCenter, kResetCameraCenter, m_view, FWEventItem::modelData(), mergeVDriftHistosByStation::name, FWRPZView::resetOrigin(), FWSelectionManager::selected(), fireworks::Context::selectionManager(), FWRPZView::shiftOrigin(), AlCaHLTBitMon_QueryRunRegistry::string, FWViewBase::typeId(), findQualityFiles::v, FWItemValueGetter::valueFor(), FWEventItem::valueGetter(), FWEveView::viewerGL(), x, and detailsBasic3DVector::y.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().
50 gVirtualX->TranslateCoordinates(gClient->GetDefaultRoot()->GetId(), v->GetGLWidget()->GetId(), iX, iY,
x,
y, wdummy);
52 TGLVector3 pnt(x, y, 0.5*v->GetSelRec().GetMinZ());
53 v->CurrentCamera().WindowToViewport(pnt);
54 pnt = v->CurrentCamera().ViewportToWorld(pnt);
60 TGFrame*
f = v->GetGLWidget();
61 gVirtualX->TranslateCoordinates(gClient->GetDefaultRoot()->GetId(), f->GetId(), iX, iY,
x,
y, wdummy);
64 if (
id.item()->haveInterestingValue())
65 name +=
", " +
id.item()->modelInterestingValueAsString(
id.
index());
67 TGLAnnotation *an =
new TGLAnnotation(v, name.c_str(), x*1.f/f->GetWidth(), 1 - y*1.f/f->GetHeight(), pnt);
68 an->SetUseColorSet(
true);
69 an->SetTextSize(0.03);
88 v->CurrentCamera().SetExternalCenter(
true);
89 v->CurrentCamera().SetCenterVec(pnt.X(), pnt.Y(), pnt.Z());
90 v->SetDrawCameraCenter(
true);
102 v->CurrentCamera().SetExternalCenter(
false);
103 v->SetDrawCameraCenter(
false);
const std::set< FWModelId > & selected() const
const FWItemValueGetter & valueGetter() const
one value from the model which is normally used for the popup
TGLViewer * viewerGL() const
static bool isProjected(int)
FWSelectionManager * selectionManager() const
void shiftOrigin(TEveVector ¢er)
const fireworks::Context & context()
double valueFor(const void *, int idx) const
const void * modelData(int iIndex) const
const FWEventItem * item() const
FWViewType::EType typeId() const