Update of /cvsroot/graxml/Graphics/GraXML/src/net/hep/graphics/GraXML/Java3DExtensions
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv20232/net/hep/graphics/GraXML/Java3DExtensions
Modified Files:
J3DFrame.java
Log Message:
multiple loading possible
Index: J3DFrame.java
===================================================================
RCS file: /cvsroot/graxml/Graphics/GraXML/src/net/hep/graphics/GraXML/Java3DExtensions/J3DFrame.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** J3DFrame.java 7 Jun 2006 16:00:21 -0000 1.3
--- J3DFrame.java 18 Jan 2007 15:29:22 -0000 1.4
***************
*** 41,44 ****
--- 41,47 ----
* <pre>
* $Log$
+ * Revision 1.4 2007/01/18 15:29:22 hrivnac
+ * multiple loading possible
+ *
* Revision 1.3 2006/06/07 16:00:21 hrivnac
* HEP3D Stripification is reported
***************
*** 112,118 ****
_conDB.compile();
_mouseT.addChild(_group);
! _universe.addBranchGraph(_root);
}
/** Attach {@link BranchGroup} for converting into VRML or X3D file.
* @param group The {@link BranchGroup} to be attached. */
--- 115,126 ----
_conDB.compile();
_mouseT.addChild(_group);
! if (!_attached) {
! _universe.addBranchGraph(_root);
! _attached = true;
! }
}
+ private boolean _attached = false;
+
/** Attach {@link BranchGroup} for converting into VRML or X3D file.
* @param group The {@link BranchGroup} to be attached. */
***************
*** 176,185 ****
// Background
if (Interacter.interactivity()) {
! _background = new Background();
! _background.setColor(0.1f, 0.1f, 0.3f);
! _background.setApplicationBounds(_bounds);
! _background.setCapability(Background.ALLOW_COLOR_READ);
! _background.setCapability(Background.ALLOW_COLOR_WRITE);
! _root.addChild(_background);
}
// Mouse T
--- 184,195 ----
// Background
if (Interacter.interactivity()) {
! if (_background == null) {
! _background = new Background();
! _background.setColor(0.1f, 0.1f, 0.3f);
! _background.setApplicationBounds(_bounds);
! _background.setCapability(Background.ALLOW_COLOR_READ);
! _background.setCapability(Background.ALLOW_COLOR_WRITE);
! _root.addChild(_background);
! }
}
// Mouse T
|