If there is any reference to your frame object then it will stick around.
You cannot "delete" an object in Java, instead you do it indirectly by
removing all references to it.  So if you want to remove a camera frame,
make sure you remove the references to it made by its sibling camera frames.

BTW if it is a ALL possible to calculate your camera positions I would
suggest haveing one camera object which you adjust rather than N number of
camera objects.

Dave Yazel

-----Original Message-----
From: Paraskevas Orfanides [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 24, 2001 12:38 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] simple question
Importance: High


I am working on making some additions to a project created in java3d, but I
am not sure about one very elementary part of the java api.
I have created a linked list of frames that share the same camera (I
defined camera...it's just a utility class for rotations and translations
of my universe).  The objective is to use these as key frames for an
animation where the ONE and only camera can move around.
First, I instantiate a camera.  With this as a parameter I want to
instatiate my new frames, which will in turn make a reference to it.
However, I also want to instantiate frames from other frames (copy
constructor), which will therefore make a reference to the reference to the
actual camera.  And this chain of references may in fact get big.
Now I would like to ask, if I delete the original frame, will the copied
frame lose the reference to the actual camera, or does making a reference
to a reference of an object take care of pointing directly to the object
itself?
Normally I would experiment before asking, but I'm a bit pressed in time,
and I am making a lot of architectural changes to a piece of code I haven't
worked with in about a year.  I wouldn't like to spend a lot of time making
changes that I will have to undo.
Thank you very much for your assistance.
Paraskevas Orfanides

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

===========================================================================
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".

===========================================================================
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".

===========================================================================
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