support for nite push and swipe detectors

272 views
Skip to first unread message

dbu

unread,
Apr 11, 2011, 4:52:58 PM4/11/11
to simple-openni-discuss
hi,

thanks for sharing this cool library. i started playing with it and
then realized i want to use XnVPushDetector and XnVSwipeDetector. i
managed to adapt SimpleNite.i and the NITE_Helpers to make that happen
(with some copy-pasting and without much clue what i am exactly
doing). what is the best way to give you this code? open an issue on
google code with a patch file?

cheers,david

maxOh

unread,
Apr 12, 2011, 1:01:12 AM4/12/11
to simple-ope...@googlegroups.com
hi david,

you can send my the diff, i will implement those. At the moment i didn't
upload the newest version to the svn, do the same thing here, add new
NITE classes.

max

David Buchmann

unread,
Apr 12, 2011, 4:56:09 AM4/12/11
to simple-ope...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

here is the diff. i hope its usable as this. i work on linux and only
tested on linux. seems the line endings are funny...

cheers,david

btw: this patch could be used as sort of a minimal guideline if somebody
wants to add yet other classes.

- --
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2kE6UACgkQqBnXnqWBgIuD5QCgwbPGP2RAOZxz++jwSeJBLQno
AeMAn0wvyG7Y0tCDhU/KJu0j34oSfcIV
=PoiE
-----END PGP SIGNATURE-----

nite_push-and-swipe.diff
nite_push-and-swipe.diff.sig

maxOh

unread,
Apr 12, 2011, 5:23:29 AM4/12/11
to simple-ope...@googlegroups.com
hi david,

thanks!
Will implement this in the next release. The line ending stuff is a
windows problem, i started the hole stuff on windows and forgot to
convert this.
I will put a 'howto extend add new classes' to the wiki, but the code is
still heavy under development, specially the callbacks(nasty
preprocessors stuff like:
NITE_JNI_JAVA_CALLBACK_DECL,NITE_VIRTUAL_CALLBACK_FUNC).

max

polis

unread,
Apr 12, 2011, 5:42:09 AM4/12/11
to simple-openni-discuss


On 12 Apr., 11:23, maxOh <m...@paus.ch> wrote:
> hi david,
>
> thanks!
> Will implement this in the next release.

Excellent news.
I tried to use push in processing but was not able to set it up.

So does this mean that the pushdetector which is in 0.18 is not yet
fully supported ?

cheers polis

David Buchmann

unread,
Apr 12, 2011, 6:03:16 AM4/12/11
to simple-ope...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yes, it misses the onPush event, which is kind of what the dectector for
push events is all about :-)

you just need an onPush method on the class you register for the events.

cheers,david

- --

Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2kI2QACgkQqBnXnqWBgItyPACfePsPPIFhugpkYhNEPyzDTKzl
YxAAnifiHoEddKv/kjFu//EnAMZKqKw7
=XPeh
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages