Menu

Hit testing?

David Cuny
2012-06-10
2012-10-22
  • David Cuny

    David Cuny - 2012-06-10

    Using the Java interface, is there a way to perform hit testing with the
    mouse?

    Specifically, can I determine if position (x,y) is the position of an object
    in the score?

    Or (even better), is there a way to query the objects in the score for their
    bounding boxes? For example, the bounding box for a chord, or for a particular
    note in a chord?

     
  • Dominique Fober

    Dominique Fober - 2012-06-11

    Hi,
    Look at the guidoscore.GetxxxMap API. I think it's what you're looking for.
    The guidoviewer example shows how to use this API.
    --
    Dominique

     

Log in to post a comment.