Home Forums Software Development dev Change the occluder dimension of a control (C#, WPF)

This topic contains 5 replies, has 2 voices, and was last updated by Profile photo of Grant [Tobii] Grant [Tobii] 4 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7512
    Profile photo of Nicola
    Nicola
    Participant

    Hello,
    I’m sorry if you will also find the duplicate of this topic, I’ve opened it with another account, but I’m now retyring because I cannot see it on the forum nor I got any notification nor signal that it has been effectively published. I think something is wrong with my old account 🙂

    Anyway,
    my issue is subtle, and it’s about the dimension of the “gazeable” area (I read somewhere it’s called “occluder”, am I right?) of a WPF control, in particular “RadioButton”.
    I’m using the eyetracker as an input controller, and in the software I’m developing I’ve got a grid of radiobuttons like this, with which I have to precisely interact:

    Grid of radiobuttons

    Those radiobuttons get selected with a GazeAwareBehavior.
    The problem is that the default occluder is too big. So, when I have to pass from a Radiobutton to another doing a movement like this drawn in white:

    Movement on the grid

    The blue or pink RadioButton (which area is drawn in blue and pink) get selected, unless I do a VERY fast eye movement. I don’t want this, I want precise selections. And I cannot afford to introduce even small delays to fix this.

    So the question is:
    in order to fix this, is there a way to change the default occluder assigned to a RadioButton, or simply reduce its size, which is my final goal?

    Thank you all for your attention.

    #7519
    Profile photo of Grant [Tobii]
    Grant [Tobii]
    Moderator

    Hi @eyerpheus, whilst the Gaze Aware area is something that can be reconfigured for polygonal elements such as buttons, shapes, etc, this may not be possible to adjust for WPF components such as radio buttons.
    However, I am in touch with the developers and we will try to find out if there is a workaround to suit your needs.

    It might also be handy if you could kindly share with us the code if possible to speed up resolution. Many thanks.

    #7528
    Profile photo of Nicola
    Nicola
    Participant

    Thank you for your answer,
    given that it may be impossible to change the occluder of a WPF control, how can I design my own object defining the occluder? Can you give me an example? It will be fine enough for me 🙂

    I would like to share the code with you, but since this is an university degree thesis, I’m still a bit hesitant about sharing the whole code publicly to the world. Maybe I can publish there on the forum only the part of the code (with comments) which is responsible for drawing the grid, or I can share the code of the whole project if you can give me an email where to send it.

    Thank you again

    #7529
    Profile photo of Grant [Tobii]
    Grant [Tobii]
    Moderator

    Hi @eyerpheus, that’s okay, I understand your reluctance to share the code publicly.

    You can upload the project to the cloud and PM a private link thereafter I can confer with the developers regarding
    the best way we can help you achieve your need with the minimum of modification to your existing code.. certainly
    replacing all the radio buttons with a polygonal shape might prove necessary in the end, but I just want to double
    check we can’t alter the parameters for the WPF control Gaze Aware Area to save you this inconvenience. Thanks.

    #7533
    Profile photo of Nicola
    Nicola
    Participant

    Whole project sent via PM!
    Thank you.

    #7585
    Profile photo of Grant [Tobii]
    Grant [Tobii]
    Moderator

    Hi @eyerpheus, an update ont this issue.

    After conferring with colleagues, I can confirm that unfortunately it is not possible to alter the gaze aware region for the radio button WPF component.

    Accordingly you can either separate the distance between existing radio buttons (which would seem the route involving the least coding) or alternatively choose instead a polygonal shape as the WPF component for which you can more easily adjust the gaze aware area. (the Gaze aware area is automatically configured as the polygon shape area by default).
    An example of how you can accomplish this in included with the Core SDK samples, specifically the “Interaction_VirtualWindows_101” sample application.

    Sorry to bring you disappointing news, but hopefully you can alter your program without too much issue. Please let us know if we can be of further assistance.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.