report.tex 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. \documentclass[10pt,a4paper]{article}
  2. \usepackage[english]{babel}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{amsmath,hyperref,graphicx,booktabs,float}
  5. % Link colors
  6. \hypersetup{colorlinks=true,linkcolor=black,urlcolor=blue}
  7. % Paragraph indentation
  8. \setlength{\parindent}{0pt}
  9. \setlength{\parskip}{1.5ex plus 0.5ex minus 0.2ex}
  10. \title{Bachelor thesis\\Universal multi-touch event mechanism}
  11. \author{\begin{tabular}{ll}
  12. Name: & Taddeüs Kroes\\
  13. Student number: & 6054129\\
  14. E-mail address: & \texttt{taddeus.kroes@student.uva.nl}\\
  15. Address: & Wethouder van Wijckstraat 40, 1107 BR Amsterdam\\
  16. Phone number: & 06-23437025\\
  17. Supervisor: & Dr. R.G. Belleman (UvA)\\
  18. \end{tabular}}
  19. \begin{document}
  20. \maketitle
  21. \abstract{
  22. % TODO
  23. }
  24. \pagebreak
  25. \tableofcontents
  26. \pagebreak
  27. \section{Introduction}
  28. % Ruwe probleemstelling
  29. Multi-touch interaction is becoming increasingly common, mostly due to the wide
  30. use of touch screens in phones and tablets. When programming applications using
  31. this method of interaction, the programmer needs an abstraction of the raw data
  32. provided by the touch driver of the device. This abstraction exists in several
  33. multi-touch application frameworks like Nokia's
  34. Qt\footnote{\url{http://qt.nokia.com/}}. However, applications that do not use
  35. these frameworks have no access to their multi-touch events.
  36. % Aanleiding
  37. This problem was observed during an attempt to create a multi-touch
  38. ``interactor'' class for the Visualization Toolkit
  39. (VTK\footnote{\url{http://www.vtk.org/}}). Because VTK provides the application
  40. framework here, it is undesirable to use an entire framework like QT
  41. simultaneously only for its multi-touch support.
  42. % Ruw doel
  43. The goal of this project is to define a universal multi-touch event triggering
  44. mechanism. To test the definition, a reference implementation is written in
  45. Python.
  46. % Setting/afbakening
  47. To tests multi-touch interaction properly, a multi-touch device is required.
  48. The University of Amsterdam (UvA) has provided access to a multi-touch table
  49. from PQlabs. The table uses the TUIO
  50. protocol\footnote{\url{http://www.tuio.org/}} to communicate touch events.
  51. The scope of this thesis includes the design of an multi-touch triggering
  52. mechanism, a reference implementation of this design, and its integration into
  53. a VTK interactor.
  54. To be successful, the design should allow for extensions to be added to any
  55. implementation. The reference implementation is a Proof of Concept with some
  56. simple touch gestures that are used by the VTK interactor.
  57. \subsection{Structure of this document}
  58. % TODO
  59. \section{Definition of the problem}
  60. % Hoofdvraag
  61. The goal of this thesis is to create a multi-touch event triggering mechanism
  62. for use in a VTK interactor. The design of the mechanism must be universal.
  63. % Deelvragen
  64. To design such a mechanism properly, the following questions are relevant:
  65. \begin{itemize}
  66. \item What is the input of the mechanism? Different touch drivers have
  67. different API's. To be able to support different drivers (which is
  68. highly desirable), there should probably be a translation from the
  69. driver API to a fixed input format.
  70. \item How can extendability be accomplished? The set of supported events
  71. should not be limited to a single implementation, but an application
  72. should be able to define its own custom events.
  73. \item Can events be shared with multiple processes at the same time? For
  74. example, a network implementation could run as a service instead of
  75. within a single application, triggering events in any application that
  76. needs it.
  77. \item Is performance an issue? For example, an event loop with rotation
  78. detection could swallow up more processing resources than desirable.
  79. \end{itemize}
  80. \section{Hypothesis}
  81. To accomplish extendability, an object-oriented approach is an obvious choice.
  82. % TODO
  83. \section{Related work}
  84. % TODO
  85. \section{Methods}
  86. % TODO
  87. \subsection{Preliminary inquiries}
  88. \subsubsection{The TUIO protocol}
  89. % TODO
  90. % Vertellen dat het met UDP werkt
  91. % wat komt er dan binnen?
  92. % wat doet de implementatie ermee?
  93. \subsection{Experiments}
  94. % testimplementatie met taps, rotatie en pinch. Hieruit bleek:
  95. % - dat het gebruik van threads soms onvermijdelijk is
  96. % - dat er verschillende manieren zijn om bijv. "rotatie" te
  97. % detecteren, (en dat daartussen onderscheid moet kunnen worden
  98. % gemaakt)
  99. % - dat detectie van verschillende soorten gestures moet kunnen
  100. % worden gescheiden, anders wordt het een chaos.
  101. % -
  102. % Tekenprogramma dat de huidige state tekent en waarmee
  103. % transformatie kan worden getest
  104. % Link naar appendix "supported events"
  105. % Proof of Concept: VTK interactor
  106. % -------
  107. % Results
  108. % -------
  109. \section{Server structure}
  110. \subsection{Input server}
  111. % TODO
  112. % vertaling driver naar point down, move, up
  113. % TUIO in reference implementation
  114. \subsection{Gesture server}
  115. \subsubsection{Windows}
  116. % TODO
  117. % toewijzen even aan deel v/h scherm:
  118. % TUIO coördinaten zijn over het hele scherm en van 0.0 tot 1.0, dus moeten
  119. % worden vertaald naar pixelcoördinaten binnen een ``window''
  120. \subsubsection{Trackers}
  121. % TODO
  122. % event binding/triggering
  123. % extendability
  124. \section{Reference implementation}
  125. % TODO
  126. % draw.py
  127. % VTK interactor
  128. \section{Conclusions}
  129. % TODO
  130. % Windows zijn een manier om globale events toe te wijzen aan vensters
  131. % Trackers zijn een effectieve manier om gebaren te detecteren
  132. % Trackers zijn uitbreidbaar door object-orientatie
  133. \section{References}
  134. % TODO: BibTex
  135. \appendix
  136. \section{Schema of mechanism structure}
  137. \label{app:schema}
  138. % TODO: "dia"
  139. \section{Supported events in reference implementation}
  140. \label{app:supported-events}
  141. % TODO
  142. \end{document}