ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GraphicsView Class Reference

#include <VP1EventDisplaySceneView.h>

Inheritance diagram for GraphicsView:
Collaboration diagram for GraphicsView:

Public Member Functions

 GraphicsView (VP1EventDisplaySceneView *v)
 

Protected Member Functions

void wheelEvent (QWheelEvent *)
 

Private Attributes

VP1EventDisplaySceneViewm_view
 

Detailed Description

Definition at line 44 of file VP1EventDisplaySceneView.h.

Constructor & Destructor Documentation

◆ GraphicsView()

GraphicsView::GraphicsView ( VP1EventDisplaySceneView v)
inline

Definition at line 48 of file VP1EventDisplaySceneView.h.

48 : QGraphicsView(), m_view(v) { }

Member Function Documentation

◆ wheelEvent()

void GraphicsView::wheelEvent ( QWheelEvent *  e)
protected

Definition at line 28 of file VP1EventDisplaySceneView.cxx.

29 {
30  if (e->modifiers() & Qt::ControlModifier) {
31  if (e->angleDelta().y() > 0)
32  m_view->zoomIn(6);
33  else
34  m_view->zoomOut(6);
35  e->accept();
36  } else {
37  QGraphicsView::wheelEvent(e);
38  }
39 }

Member Data Documentation

◆ m_view

VP1EventDisplaySceneView* GraphicsView::m_view
private

Definition at line 54 of file VP1EventDisplaySceneView.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
VP1EventDisplaySceneView::zoomOut
void zoomOut(int level=1)
Definition: VP1EventDisplaySceneView.cxx:358
GraphicsView::m_view
VP1EventDisplaySceneView * m_view
Definition: VP1EventDisplaySceneView.h:54
python.PyAthena.v
v
Definition: PyAthena.py:154
VP1EventDisplaySceneView::zoomIn
void zoomIn(int level=1)
Definition: VP1EventDisplaySceneView.cxx:353