Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multitouch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
multitouch
Commits
973a3b30
Commit
973a3b30
authored
12 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Moved hand tracker from source package to test applications.
parent
0c55af10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/__init__.py
+1
-0
1 addition, 0 deletions
src/__init__.py
src/trackers/__init__.py
+4
-6
4 additions, 6 deletions
src/trackers/__init__.py
tests/hand.py
+1
-1
1 addition, 1 deletion
tests/hand.py
tests/testapp.py
+3
-0
3 additions, 0 deletions
tests/testapp.py
with
9 additions
and
7 deletions
src/__init__.py
+
1
−
0
View file @
973a3b30
from
logger
import
Logger
from
drivers
import
create_driver
from
tracker
import
GestureTracker
,
Gesture
from
trackers
import
register_tracker
from
geometry
import
Positionable
from
areas
import
*
This diff is collapsed.
Click to expand it.
src/trackers/__init__.py
+
4
−
6
View file @
973a3b30
from
basic
import
BasicEventTracker
from
tap
import
TapTracker
from
transform
import
TransformationTracker
from
hand
import
HandTracker
# Map of gesture type to tracker type
_tracker_types
=
{}
def
_
register_tracker
(
tracker_type
):
def
register_tracker
(
tracker_type
):
tracker_type
.
gesture_types
=
\
[
gesture
.
_type
for
gesture
in
tracker_type
.
supported_gestures
]
...
...
@@ -29,7 +28,6 @@ def create_tracker(gesture_type, widget):
return
_tracker_types
[
gesture_type
](
widget
)
_register_tracker
(
BasicEventTracker
)
_register_tracker
(
TapTracker
)
_register_tracker
(
TransformationTracker
)
_register_tracker
(
HandTracker
)
register_tracker
(
BasicEventTracker
)
register_tracker
(
TapTracker
)
register_tracker
(
TransformationTracker
)
This diff is collapsed.
Click to expand it.
src/tracker
s/hand.py
→
test
s/hand.py
+
1
−
1
View file @
973a3b30
from
.
.tracker
import
GestureTracker
,
Gesture
from
src
.tracker
import
GestureTracker
,
Gesture
class
HandGesture
(
Gesture
):
...
...
This diff is collapsed.
Click to expand it.
tests/testapp.py
+
3
−
0
View file @
973a3b30
...
...
@@ -6,6 +6,9 @@ from math import pi, tan
import
src
as
mt
from
utils
import
BoundingBoxArea
,
Flick
,
FlickThread
,
GtkEventWindow
from
hand
import
HandTracker
mt
.
register_tracker
(
HandTracker
)
RED
=
1
,
0
,
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment