Hi,
I know this problem from J3D 1.2.1. The only solution I found, is, to use
an additional BranchGroup which fulfills the condition described by the
exception.
Le Tue, 7 Oct 2003 15:12:09 +0200, dafna gordon
<[EMAIL PROTECTED]> a écrit:
Messagei tried doing it.
i did: BG.removeAllChildren();
and got the exception.
i also defined the following capabilities to the BG
ALLOW_CHILDREN_READ
ALLOW_CHILDREN_WRITE
ALLOW_CHILDREN_EXTEND
ALLOW_DETACH
i also tried doing a detach(); to the BG before removing the children,
but it didn't solve the problem.
Lewis did you mean to do remove to the branch group itself?
i looked in the API and the only remove commands i saw are for child or
allChildren, and not just remove.
thanks anyway
Dafna
----- Original Message ----- From: Lewis Walker To: JAVA3D-
[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 3:02 PM
Subject: Re: [JAVA3D] removing childs
Hi Dafna,
You should be able to remove the BranchGroup itself that is the ultimate
parent of all of your spheres. So - you are not removing all of the
BranchGroup's children, but rather you are removing the BranchGroup. That
works fine. (As long as you have set the relevant capability on the
BranchGroup you want to remove).
Lewis.
-----Original Message-----
From: Discussion list for Java 3D API [mailto:JAVA3D-
[EMAIL PROTECTED] On Behalf Of dafna gordon
Sent: 07 October 2003 14:00
To: [EMAIL PROTECTED]
Subject: [JAVA3D] removing childs
Hi All,
i use a behavior to draw spheres. this behavior updates from other class
and draws the spheres recording to the data in the other class.
i want every time that the behavior is doing the updating it will remove
all the spheres from the previous update and draw the new ones.
i tried doing removeAllChildren() to the related branch group but got a
restrictedAccessException since this branch group is already compiled and
live and his children aren't of type branch group.
the child of the branch group is a transform group.
the child of the transform group is the sphere that is drawn on the
screen.
so how do i remove the sphere from the screen?
thanks a lot
Dafna
===========================================================================
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".
--
Virtual Worlds Productions
Software Development Group
http://www.virtualworlds.de
===========================================================================
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".