Skip to main content

[JAVA3D-INTEREST] MouseBehavior and multiple Canvas

2 replies [Last post]
Anonymous

Hi all,

I have several view branches in my universe to represent the same scene
in several canvas. Is it possible to have somewhere a MouseBehavior, for
example a MouseRotate, such that the "view" changes only in the canvas
receiving MouseEvents ?

Kind regards,

Christophe

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pepe
Offline
Joined: 2003-06-10

B'jour.
From what i read, it seems you say that all your views change at the same time. MouseRotate and such can only change one TransformGroup, so unless you use the same view for every canvases it should already work.

If you need the behavior to change the view whose canvas you are acting on, you need to set the behavior's transformGroup on FocusGained event thrown from canvases.

Christophe Gaubert

java3d-interest@javadesktop.org a écrit :
> B'jour.
>> From what i read, it seems you say that all your views change at
>> the same time. MouseRotate and such can only change one
>> TransformGroup, so unless you use the same view for every canvases
>> it should already work.

Well I don't know. Maybe I was doing something wrong. I have found a
solution that "works" : to enable and desable behaviors when my Vue
object (which contains Canvas3D and other things) becomes active/passive
by a mouse click.

But I am going to have a look to your suggestion with FocusGained events.

Thanks for your answer.

Christophe

>
> If you need the behavior to change the view whose canvas you are
> acting on, you need to set the behavior's transformGroup on
> FocusGained event thrown from canvases. --- [Message sent by forum
> member 'pepe' (frederic barachant)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=23960&#23960
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net For
> additional commands, e-mail: interest-help@java3d.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net