Home Forums Software Development c# – FormsEyeXHost and EyeXHost together

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1479
    Martin Krizek
    Participant

    Hi,
    I have two questions:

    1. Is it possible to have active both FormsEyeXHost and EyeXHost in the same time? Or how I can work with BehaviorMap and gaze data stream? Because I need to specify if the user is looking at my object (e. g. rectangle) – FormsEyeXHost – and also if the user stops looking at my application at all – EyeXHost. Is there any way how I can get that user stops looking at the screen even from FormsEyeXHost?
    2. Is it correct to have active two BehaviorMaps at once?
      1. If I have two WinForms and one is on the other do I need to pause somehow first BehaviourMap?
      2. Is it correct if I have WinForm with BehaviourMap and UserControl belonging to this WinForm with its own BehaviourMap?

    Thanks for the answers.

    #1483
    Martin Kopecek
    Participant

    Hi folks,
    has somebody solved this problem? I have simmilar one.

    Thanks Martin

    #1499
    Anders
    Participant

    Hi Martin (x2!),
    the FormsEyeXHost class derives from EyeXHost, so when you use the FormsEyeXHost, then you already have access to all the EyeXHost functionality!

    It’s perfectly fine to mix region-bound interactors (provided by the BehaviorMap) with global interactors (=data streams).

    You can use as many BehaviorMaps as you wish as long as they don’t overlap (meaning that you cannot put the same control in two different BehaviorMaps).

    The case with the two forms should be handled automatically by the framework. No need for pausing.

    And yes, providing a UserControl with its own BehaviorMap is a good idea because it improves encapsulation. That’s how it’s done in the samples.

    #1503
    Anders
    Participant

    Hi again,
    looking through the WinForms samples again I noticed that the FormsEyeXHost is exposed as an IEyeXHost in the main class. In the next SDK release we’ll change that to FormsEyeXHost instead so that it’s more obvious how to access the data streams and states. You can make that change, too, if you don’t want to wait for the next release. Sorry about the confusion.

    #1506
    Martin Krizek
    Participant

    Hi,
    now it works like a charm.
    Thanks

    Martin

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.