When building an InputDevice, what happens when we set a new bunch of
information in the sensor.
In the various versions of setSensorRead, are the values copied to
internal values or are they referenced?
The reason for this is that I want to be able to compute how much
garbage is going to be generated from a fast moving sensor input. Say I
have sensor information 100Hz. Do I need to be generating a new
SensorRead/Transform3d object each time pollAndProcessInput is called or
use single instance and reset the values each time before passing it to
setSensorRead. In the second case I need to be confident that the
information is copied to internal structures otherwise I may be
overwriting the outbound information used by the rest of the app and
previous values of sensorRead (which would screw prediction really
badly).
This essential information is not contained in either the J3D spec or
API docs. Why not? If you have two implementations and they interpreted
what happens with setSensorRead differently it will break the device
driver and the application very quickly. There are quite a number of
other similar circumstances that I've run across in the spec that could
cause the same types of effects.
--
Justin Couch Author, Java Hacker
Snr Software Engineer [EMAIL PROTECTED]
ADI Ltd, Systems Group http://www.vlc.com.au/~justin/
Java3D FAQ: http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
Turn it or move it, and a new set of arrangements appears... is it
a single light or many lights, lights that one must know how to
distinguish, recognise and appreciate? Is it one light with many
frames or one frame for many lights?" -Subcomandante Marcos
-------------------------------------------------------------------
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/