#include <FWViewContextMenuHandlerGL.h>
Public Types | |
enum | GLViewerAction { kAnnotate, kCameraCenter, kResetCameraCenter, kOrigin, kNone } |
Public Member Functions | |
FWViewContextMenuHandlerGL (FWEveView *v) | |
void | select (int iEntryIndex, const FWModelId &id, int iX, int iY) override |
~FWViewContextMenuHandlerGL () override | |
Public Member Functions inherited from FWViewContextMenuHandlerBase | |
void | addTo (FWModelContextMenuHandler &, const FWModelId &id) |
FWViewContextMenuHandlerBase () | |
virtual | ~FWViewContextMenuHandlerBase () |
Private Member Functions | |
FWViewContextMenuHandlerGL (const FWViewContextMenuHandlerGL &)=delete | |
void | init (FWViewContextMenuHandlerBase::MenuEntryAdder &, const FWModelId &id) override |
Called when have to add entries to the context menu. More... | |
const FWViewContextMenuHandlerGL & | operator= (const FWViewContextMenuHandlerGL &)=delete |
Private Attributes | |
FWEveView * | m_view |
Definition at line 9 of file FWViewContextMenuHandlerGL.h.
Enumerator | |
---|---|
kAnnotate | |
kCameraCenter | |
kResetCameraCenter | |
kOrigin | |
kNone |
Definition at line 12 of file FWViewContextMenuHandlerGL.h.
FWViewContextMenuHandlerGL::FWViewContextMenuHandlerGL | ( | FWEveView * | v | ) |
Definition at line 21 of file FWViewContextMenuHandlerGL.cc.
Referenced by ~FWViewContextMenuHandlerGL().
|
inlineoverride |
Definition at line 15 of file FWViewContextMenuHandlerGL.h.
References FWViewContextMenuHandlerGL(), init(), operator=(), and select().
|
privatedelete |
|
overrideprivatevirtual |
Called when have to add entries to the context menu.
Implements FWViewContextMenuHandlerBase.
Definition at line 26 of file FWViewContextMenuHandlerGL.cc.
References FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry(), patPFMETCorrections_cff::enabled, FWViewType::isProjected(), kAnnotate, kCameraCenter, kResetCameraCenter, m_view, AlCaHLTBitMon_ParallelJobs::p, and FWViewBase::typeId().
Referenced by ~FWViewContextMenuHandlerGL().
|
privatedelete |
Referenced by ~FWViewContextMenuHandlerGL().
|
overridevirtual |
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(), FWViewType::isProjected(), FWModelId::item(), kAnnotate, kCameraCenter, kResetCameraCenter, m_view, FWEventItem::modelData(), dataset::name, MetAnalyzer::pv(), FWRPZView::resetOrigin(), FWSelectionManager::selected(), fireworks::Context::selectionManager(), FWRPZView::shiftOrigin(), AlCaHLTBitMon_QueryRunRegistry::string, FWViewBase::typeId(), findQualityFiles::v, FWItemValueGetter::valueFor(), FWEventItem::valueGetter(), FWEveView::viewerGL(), x, and 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(), Vispa.Views.AbstractView.AbstractView::restoreSelection(), and ~FWViewContextMenuHandlerGL().
|
private |
Definition at line 24 of file FWViewContextMenuHandlerGL.h.