Home › Forums › Software Development › WFP Gaze – Path edge not bounding box
- This topic has 2 replies, 2 voices, and was last updated 4 years, 1 month ago by
Grant [Tobii].
- AuthorPosts
- 22/08/2019 at 00:36 #11920
Robin Hunter
ParticipantHi all,
Working on a WPF gaze app with Tobii integration. I converted an SVG to XAML using inkscape, and this successfully renders nicely on screen.
However when I to link up a Path to a Behavior.HasGaze trigger, it seems to be checking for the ‘whole footprint area’ rectangular bounding box of the Path, rather than the actual (in this case curved) path edge.
Is there a way to overcome this and only activate a HasGaze behaviour when gaze is within the edge of the path, not simply in the bounding box?
Reading:
https://stackoverflow.com/questions/5104525/wpf-how-to-get-the-true-size-bounding-box-of-shapes
(the second answer here explores VisualContentBounds might be something)22/08/2019 at 00:40 #11921Robin Hunter
Participantperhaps alternative approach could be to use point stream to handle the checking?
unsure if this is feasible. would be great to have a ellipse where the current view point is though!
26/08/2019 at 11:57 #11931Grant [Tobii]
KeymasterHi @flyingrobin and thanks for your query. The Interaction Library (Core SDK) does support masks. You can specify a rectangle and a bitmask as referenced here @ https://tobii.github.io/CoreSDK/api/Tobii.Interaction.Model.Mask.html
I am afraid we do not have further samples on implementation, but hopefully this is enough to get you in the right direction.
Please try it out and let us know how you get on. Best wishes.
- AuthorPosts
- You must be logged in to reply to this topic.