#include <FWViewContextMenuHandlerGL.h>
Public Types | |
enum | GLViewerAction { kAnnotate, kCameraCenter, kResetCameraCenter, kOrigin, kNone } |
Public Member Functions | |
FWViewContextMenuHandlerGL (FWEveView *v) | |
virtual void | select (int iEntryIndex, const FWModelId &id, int iX, int iY) |
virtual | ~FWViewContextMenuHandlerGL () |
Public Member Functions inherited from FWViewContextMenuHandlerBase | |
void | addTo (FWModelContextMenuHandler &, const FWModelId &id) |
FWViewContextMenuHandlerBase () | |
virtual | ~FWViewContextMenuHandlerBase () |
Private Member Functions | |
FWViewContextMenuHandlerGL (const FWViewContextMenuHandlerGL &) | |
virtual void | init (FWViewContextMenuHandlerBase::MenuEntryAdder &, const FWModelId &id) |
Called when have to add entries to the context menu. More... | |
const FWViewContextMenuHandlerGL & | operator= (const FWViewContextMenuHandlerGL &) |
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.
|
inlinevirtual |
Definition at line 15 of file FWViewContextMenuHandlerGL.h.
|
private |
|
privatevirtual |
Called when have to add entries to the context menu.
Implements FWViewContextMenuHandlerBase.
Definition at line 26 of file FWViewContextMenuHandlerGL.cc.
References FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry(), FWViewType::isProjected(), kAnnotate, kCameraCenter, kResetCameraCenter, m_view, AlCaHLTBitMon_ParallelJobs::p, and FWViewBase::typeId().
|
private |
|
virtual |
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(), FWViewBase::typeId(), v, FWItemValueGetter::valueFor(), FWEventItem::valueGetter(), FWEveView::viewerGL(), vdt::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().
|
private |
Definition at line 24 of file FWViewContextMenuHandlerGL.h.