Detecting if vertex is in rectangle

2012-06-27
2013-05-29
  • Andrew Beam
    Andrew Beam
    2012-06-27

    Hello all,

    I am working with a Directed Sparse Multigraph and I would like to incorporate the following functionality. Using the annotation plugin for an EditingModalGraphMouse, I currently have the ability to draw rectangle on my graph. However, I need to to know which vertices are inside the rectangle that was drawn. Also, I need the ability to fire some sort of listener if the border of the annotation rectangle was clicked. Ideally I would also like the ability to move and resize the rectangle dynamically.

    Does anyone have a suggestion?

    Many thanks,
    Andrew

     
  • Andrew Beam
    Andrew Beam
    2012-06-28

    I suppose what I really need to know is where the rectangles that the Annotation Manager draws are stored. Thus far I haven't been able to get to the AnnotationManager (it's a protected field) or any annotation accessor methods from my AnnotatingGraphMousePlugin.