/libs/tuio_as3_v_0_7_1/org/tuio/legacy/TUIOPropInterface.as

https://github.com/robertoriccardi/openKinect-as3-experiments
ActionScript | 73 lines | 13 code | 9 blank | 51 comment | 0 complexity | 8c6dab0ead01a6257c6b40a78726fcad MD5 | raw file
  1. /*
  2. NOTE: Creative Commons Attribution 3.0 License (http://creativecommons.org/licenses/by/3.0/)
  3. You are free: to Share — to copy, distribute and transmit the work
  4. You are free: to Remix — to adapt the work
  5. Under the following conditions:
  6. Attribution. You must attribute the work in the manner specified by the author or licensor
  7. (but not in any way that suggests that they endorse you or your use of the work).
  8. Feel free to download and modify the code for any use as long as our name is in there somewhere.
  9. You may also use it in comercial projects without any licensing fees.
  10. */
  11. package org.tuio.legacy{
  12. import flash.display.Sprite;
  13. /**
  14. * @class TUIOPropInterface.as
  15. * @namespace org.tuio.legacy
  16. * @author Frederic Friess and Johannes Luderschmidt (http://johannesluderschmidt.de/tuio-actionscript-3-open-source-fiducial-object-interaction-implementation/552/)
  17. *
  18. * interfaces all possible events that can be dispatched for a fiducial. This interface should
  19. * be implemented by a Tuio object handler (e.g. TestFiducialHandler).
  20. *
  21. * Legacy PropObject from fiducialtuioas3 (http://code.google.com/p/fiducialtuioas3/).
  22. *
  23. * For a newer version of a fiducial callback implementation see <code>org.tuio.fiducial.TuioFiducialDispatcher</code> and
  24. * <code>org.tuio.fiducial.ITuioFiducialReceiver</code>.
  25. */
  26. public interface TUIOPropInterface{
  27. /**
  28. * will be executed everytime a fiducial to which this handler is applied is being
  29. * added on the table/simulator.
  30. */
  31. function onAdd(evt:PropEvent):void;
  32. /**
  33. * will be executed everytime a fiducial to which this handler is applied is being
  34. * removed from the table/simulator.
  35. */
  36. function onRemove(evt:PropEvent):void;
  37. /**
  38. * will be executed everytime a fiducial to which this handler is applied is being
  39. * moved on the table / in the simulator.
  40. */
  41. function onMove(evt:PropEvent):void;
  42. /**
  43. * will be executed everytime a fiducial to which this handler is applied is being
  44. * rotated on the table / in the simulator.
  45. */
  46. function onRotate(evt:PropEvent):void;
  47. /**
  48. * represents a standard Tuio property, added for completeness. Not used so far.
  49. */
  50. function onMoveVelocety(evt:PropEvent):void;
  51. /**
  52. * represents a standard Tuio property, added for completeness. Not used so far.
  53. */
  54. function onRotateVelocety(evt:PropEvent):void;
  55. /**
  56. * represents a standard Tuio property, added for completeness. Not used so far.
  57. */
  58. function onMoveAccel(evt:PropEvent):void;
  59. /**
  60. * represents a standard Tuio property, added for completeness. Not used so far.
  61. */
  62. function onRotateAccel(evt:PropEvent):void;
  63. }
  64. }