MythTV  master
Classes | Functions | Variables
mythgesture.cpp File Reference

A C++ ripoff of the stroke library, modified for MythTV. More...

#include "mythgesture.h"
#include <cmath>
#include <algorithm>
#include <complex>
#include <QMutex>
#include <QMap>
Include dependency graph for mythgesture.cpp:

Go to the source code of this file.

Classes

class  MythGesturePrivate
 Private information used only by a stroke class. More...
 

Functions

static int determineBin (const QPoint &p, int x1, int x2, int y1, int y2)
 

Variables

static const char * gesturename []
 

Detailed Description

A C++ ripoff of the stroke library, modified for MythTV.

Author
Micah F. Galizia mfgal.nosp@m.izi@.nosp@m.csd.u.nosp@m.wo.c.nosp@m.a Copyright (C) 2005 Micah Galizia

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

This library contains code originally obtained from the libstroke library, which was written by Mark F. Willey. If I am in offense of any copyright or anything, please let me know and I will make the appropriate fixes.

Definition in file mythgesture.cpp.

Function Documentation

◆ determineBin()

static int determineBin ( const QPoint &  p,
int  x1,
int  x2,
int  y1,
int  y2 
)
static

Definition at line 152 of file mythgesture.cpp.

Referenced by MythGesture::translate().

Variable Documentation

◆ gesturename

const char* gesturename[]
static
Initial value:
= {
"Unknown",
"Up",
"Down",
"Left",
"Right",
"UpLeft",
"UpRight",
"DownLeft",
"DownRight",
"UpThenLeft",
"UpThenRight",
"DownThenLeft",
"DownThenRight",
"LeftThenUp",
"LeftThenDown",
"RightThenUp",
"RightThenDown",
"RightThenLeft",
"LeftThenRight",
"UpThenDown",
"DownThenUp",
"Click",
"MaxGesture"
}

Definition at line 336 of file mythgesture.cpp.

Referenced by MythGestureEvent::operator QString().