Hi,
I want to call
canvas.getGraphicsNode().nodeHitAt(p);
which transformations have to be applied to p in order for nodeHitAt to
work?
This is what I got so far:
Point p = [MouseEventInstance].getPoint();
AffineTransform af = canvas.getRenderingTransform().createInverse();
if (af != null)
af.deltaTransform(p, p);
af = canvas.getGraphicsNode().getGlobalTransform().createInverse();
if (af != null)
af.deltaTransform(p, p);
// check for selection:
GraphicsNode newSelection = canvas.getGraphicsNode().nodeHitAt(p);
I know that I have to map p to the root graphicsnode's coordinate space,
but the way I do it, doesn't work.
Any suggestions greatly appreciated!!!
Yours,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]