Open Morpheu5 opened 11 years ago
I added a new branch named fiducials to track these ideas. The code is untested; I don't have any markers for my touch screen.
So, the Qt API doesn't specifically support fiducial markers, so the information must be passed out of band. 207d0e68e42477a57201339023a0686f10e4308c sets the QTouchEvent::TouchPoint::Pen flag in touch points that originate from /tuio/2Dobj profile updates. This tells you that there is marker, but it doesn't pass along the marker ID.
You mentioned subclassing the QTouchEvent::TouchPoint struct on the qt-interest mailing list. That isn't possible because the TouchPoint structs are passed by value through the event system. The extra data would get sliced. Do you have any other ideas?
I was thinking about this some more. QTouchEvent could be subclassed and the fiducial information could be added.
Yes, I think that's what I meant, I must have made some confusion between the class and its contained struct. To me, subclassing QTouchEvent is what makes the most sense, although a fiducial is conceptually not a proper "touch event". It's close enough, though.
Hi, such an interesting project, but from the code it doesn't seem to support items other than cursors (e.g. objects with fiduciary markers). Can you confirm? I suppose your company has no interest in this, but do you think this is likely to happen in the future or am I better off adding the support myself?