> Class View gives access to its Canvas3Ds. I could add a Constructor for
> the MouseInputDevice taking an array of Views.
> Is this what you would suggest. Or do you have something else in mind ?

Hmmm.  ConfiguredUniverse requires an argumentless constructor for the
InputDevice, so I don't think that'll work.  I think the cleanest way to
do it would be to have a method addView (and corresponding removeView) in
the MouseInputDevice class, and add a caveat in the javadocs saying that
this is only effective for static displays, otherwise addComponent should
be used. Question for Mark Hood (ConfiguredUniverse author):

Does

(DeviceProperty mouse addView view0)

pass view0 as a string or a View?  If it's a String (as I guess from the
docs about introspection calls), how can the view object itself be
retrieved?

So, if you had this method, you could have a config file like this:

(NewScreen center 0)  // corresponds to DISPLAY :x.0 under UNIX
(ScreenAttribute center PhysicalScreenWidth  0.360)
(ScreenAttribute center PhysicalScreenHeight 0.288)
(ScreenAttribute center WindowSize           (700 600))
(ScreenAttribute center TrackerBaseToImagePlate
                        (Translate 0.180 0.144 0.0))

(NewView view0)
(ViewAttribute view0 Screen center)

(NewDevice mouse org.j3d.device.input.spaceball.MouseInputDevice)
(DeviceProperty mouse addView view0)
(NewSensor valuator2d mouse 0)

(NewViewPlatformBehavior vpb WandViewBehavior)
(ViewPlatformBehaviorProperty vpb Sensor2D valuator2d)
(ViewPlatformBehaviorProperty vpb ReadAction2D None)
(ViewPlatformBehaviorProperty vpb ButtonAction2D 0 Rotation)
(ViewPlatformBehaviorProperty vpb ButtonAction2D 1 Translation)
(ViewPlatformBehaviorProperty vpb ButtonAction2D 2 Scale)

(NewViewPlatform vp)
(ViewPlatformAttribute vp ViewPlatformBehavior vpb)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to