Alex Bowden wrote:
>>You might want to be careful here. We set most capability bits
>>beforehand, so you might be wasting effort.
>>
>
> I agree - however it would be awfully nice if I didn't have to walk the tree
> at all, but instead could give you a template describing the capabilities
> that I need setting.
That's an interesting suggestion. Alan and I have been deciding on what
is going into the M5 release (M4 will be out in a week or two) and it is
going to be mainly performance oriented stuff - including some
reasonably major restructuring of the way the loader works to make it
potentially-possible to work with scenegraph I/O in a limited subset of
cases. We could attack this issue at the same time.
Our thoughts on the API are that we would include an extra method in the
loader interface setCapabilityMap(Map capBits, Map freqBits). The map
would use the class as the key and an int[] as the value for the bits to
be set. ie
int[] bits = (int[])capBits.get(Appearance.class);
if(bits != null) {
for(int i = 0; i < cap_bits.length; i++)
myLoaderAppearance.setCapability(bits[i]);
}
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
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".