#include <FWGLEventHandler.h>
Definition at line 11 of file FWGLEventHandler.h.
◆ FWGLEventHandler() [1/2]
FWGLEventHandler::FWGLEventHandler |
( |
TGWindow * |
w, |
|
|
TObject * |
obj, |
|
|
TEveCaloLego * |
l = nullptr |
|
) |
| |
◆ ~FWGLEventHandler()
FWGLEventHandler::~FWGLEventHandler |
( |
| ) |
|
|
inlineoverride |
◆ FWGLEventHandler() [2/2]
◆ HandleButton()
Bool_t FWGLEventHandler::HandleButton |
( |
Event_t * |
event | ) |
|
|
override |
Definition at line 46 of file FWGLEventHandler.cc.
47 Bool_t
res = TEveLegoEventHandler::HandleButton(
event);
51 gVirtualX->TranslateCoordinates(
52 gClient->GetDefaultRoot()->GetId(), fGLViewer->GetGLWidget()->GetId(),
event->fX,
event->fY,
x,
y, childdum);
53 fGLViewer->RequestSelect(
event->fX,
event->fY);
54 if (fGLViewer->GetSelRec().GetN() > 0) {
55 TGLVector3
v(
event->fX,
event->fY, 0.5 * fGLViewer->GetSelRec().GetMinZ());
56 fGLViewer->CurrentCamera().WindowToViewport(
v);
57 v = fGLViewer->CurrentCamera().ViewportToWorld(
v);
References m_viewer, FWEveView::requestGLHandlerPick(), FW3DViewBase::setCurrentDMTVertex(), findQualityFiles::v, x, and y.
◆ HandleCrossing()
Bool_t FWGLEventHandler::HandleCrossing |
( |
Event_t * |
event | ) |
|
|
override |
◆ HandleFocusChange()
Bool_t FWGLEventHandler::HandleFocusChange |
( |
Event_t * |
event | ) |
|
|
override |
◆ HandleKey()
Bool_t FWGLEventHandler::HandleKey |
( |
Event_t * |
event | ) |
|
|
override |
Definition at line 66 of file FWGLEventHandler.cc.
69 gVirtualX->LookupString(
event,
tmp,
sizeof(
tmp), keysym);
71 if (
m_viewer && (keysym == kKey_Enter || keysym == kKey_Return || keysym == kKey_Space)) {
72 if (
event->fType == kGKeyPress) {
75 gVirtualX->TranslateCoordinates(
76 fGLViewer->GetGLWidget()->GetId(), gClient->GetDefaultRoot()->GetId(),
event->fX,
event->fY,
x,
y, childdum);
78 fGLViewer->RequestSelect(
event->fX,
event->fY);
83 return TEveLegoEventHandler::HandleKey(
event);
References edmPickEvents::event, m_viewer, PopupContextMenu(), createJobs::tmp, x, and y.
◆ operator=()
◆ PopupContextMenu()
void FWGLEventHandler::PopupContextMenu |
( |
TGLPhysicalShape * |
pshp, |
|
|
Event_t * |
event, |
|
|
Int_t |
gx, |
|
|
Int_t |
gy |
|
) |
| |
|
override |
◆ setViewer()
void FWGLEventHandler::setViewer |
( |
FWEveView * |
ev | ) |
|
|
inline |
◆ m_viewer
◆ openSelectedModelContextMenu_
sigc::signal<void, Int_t, Int_t> FWGLEventHandler::openSelectedModelContextMenu_ |