Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::view::GraphicsView Class Reference

Detailed Description

a QGraphicsView with additional support for mouse and gesture events. re-implements a couple of event handling routines.

Definition at line 23 of file baseview.h.

#include <baseview.h>

Inherits QGraphicsView.

Public Member Functions

 GraphicsView (BaseView *view)
 default constructor More...
 

Protected Member Functions

bool event (QEvent *) override
 
void mousePressEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
bool gestureEvent (QGestureEvent *)
 
void mouseMoveEvent (QMouseEvent *event)
 

Protected Attributes

BaseViewview
 parent widget More...
 
int rot0
 initial rotation angle More...
 

Constructor & Destructor Documentation

◆ GraphicsView()

GraphicsView::GraphicsView ( BaseView view)

default constructor

Parameters
viewenclosing widget

Definition at line 35 of file baseview.cpp.

Member Function Documentation

◆ event()

bool GraphicsView::event ( QEvent *  event)
overrideprotected

Definition at line 42 of file baseview.cpp.

◆ gestureEvent()

bool GraphicsView::gestureEvent ( QGestureEvent *  event)
protected

Definition at line 115 of file baseview.cpp.

◆ keyPressEvent()

void GraphicsView::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 90 of file baseview.cpp.

◆ mouseMoveEvent()

void GraphicsView::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 68 of file baseview.cpp.

◆ mousePressEvent()

void GraphicsView::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 63 of file baseview.cpp.

◆ wheelEvent()

void GraphicsView::wheelEvent ( QWheelEvent *  event)
overrideprotected

Definition at line 74 of file baseview.cpp.

Member Data Documentation

◆ rot0

int frechet::view::GraphicsView::rot0
protected

initial rotation angle

Definition at line 44 of file baseview.h.

◆ view

BaseView* frechet::view::GraphicsView::view
protected

parent widget

Definition at line 42 of file baseview.h.


The documentation for this class was generated from the following files: