Hi All,
I have a createSceneGraph() method . In that
method i build the whole structure. Inside that method i add a behavior object.
This behavior is my own class which is a sub class of the Behaviour class. On
click of some button I call this createSceneGraph() method again. So wat happens
is that the behavior object is again created & added.
Instaed of creating it again & again...I thought of creating it only
once say in the Initailze() & just add the object in the createSceneGraph().
But i'm getting a MultipleParentException.
Branch Group
|
Transform Group ( to this TG i add few
Shape3D objects & my behavior)
Inside the createSceneGraph()...I recreate all objects. But i don't want to
create the Behavior object again.
How can i aviod this ???
|
- Re: [JAVA3D] Christopher Kim
- [JAVA3D] John Jackson
- Re: [JAVA3D] Erio Prihastono
- Re: [JAVA3D] John Jackson
- Re: [JAVA3D] Roland Pereira
- [JAVA3D] John Jackson
- [JAVA3D] alvaro zabala
- [JAVA3D] Lang Yun
- Re: [JAVA3D] Kelvin Chung
- [JAVA3D] liteen tan
- [JAVA3D] Ravi Goel
- [JAVA3D] Shawn Kendall
- [JAVA3D] Leonid Perlov
- [JAVA3D] Young Ly
- Re: [JAVA3D] Paul Pantera
- [JAVA3D] liteen tan
- [JAVA3D] Leonid Perlov
- Re: [JAVA3D] J. Lee Dixon
- [JAVA3D] liteen tan
- [JAVA3D] Andreas Ebbert
- [JAVA3D] Memory usage. Why? Andrey