| java.lang.Object org.jdesktop.j3dedit.scenegrapheditor.SceneGraphControl
Method Summary | |
public synchronized void | addChild(SGGroup parent, javax.media.j3d.Node child, boolean autoName) | public void | addNodeComponent(SGNodeComponent nodeComponent) | public SGObject | cloneTree(SGObject source) | public void | createDefaultNames(SGObject root, String sceneName) Traverse the graph and generate default names for all
the 'interesting' objects that are not named. | public Locale | getLocale(Node node) Returns the Locale to which this node is attached. | public SGObject | getLocaleNode(DevelopmentLocale obj) | public SGObject | getTreeNode(SceneGraphObject obj) | public SGObject | getTreeNodeComponent(SceneGraphObject obj) | public SGObject | getViewRoot() | public void | graphAdded(DevelopmentLocale locale, BranchGroup newGraph) | public void | graphChanged(DevelopmentLocale locale, BranchGroup graph, javax.media.j3d.Node node) | public void | graphRemoved(DevelopmentLocale locale, BranchGroup graph) | public void | graphReplaced(DevelopmentLocale locale, BranchGroup oldGraph, BranchGroup newGraph) | public void | groupAddChild(DevelopmentLocale locale, javax.media.j3d.Group parent, BranchGroup child) | public void | groupRemoveAllChildren(DevelopmentLocale locale, javax.media.j3d.Group parent) | public void | groupRemoveChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child) | public void | groupSetChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child, int index) | public void | prepareToSave() | public void | removeChild(SGGroup parent, SGNode child) | public void | removeNodeComponent(SGNodeComponent nodeComponent) Remove the node component, this is called automatically when the
reference count of an SGNodeComponent==0
nodeComponent.getJ3dNode() MUST be non-null otherwise a RuntimeException
will be thrown. | public void | saveComplete() | public void | saveSceneGraph(File file) | public void | setEditorCapabilities() | public void | setEditorCapabilities(SGObject graph) Traverse the graph and set the capabilities of each node
as per the current editor mode. | public void | setHighlight3D(SGObject node, boolean highlight) | public void | setHighlight3DModeEnable(boolean enable) | public void | setSceneGraph(J3dEditContext context) | public void | updateSceneGraph() |
SceneGraphControl | public SceneGraphControl(J3dTreePanel treePanel, J3dEditContext context)(Code) | | Create a new SceneGraphControl object.
The new object adds itself to the context
|
addChild | public synchronized void addChild(SGGroup parent, javax.media.j3d.Node child, boolean autoName)(Code) | | Add the child to the graph structures and set the childs
capability bits
|
addNodeComponent | public void addNodeComponent(SGNodeComponent nodeComponent)(Code) | | Add this node component to the Object tracking system
This is called automatically by the SGNodeComponent constructor
|
createDefaultNames | public void createDefaultNames(SGObject root, String sceneName)(Code) | | Traverse the graph and generate default names for all
the 'interesting' objects that are not named.
Only Behaviors, Fog, Lights, Sound and Loaders are given default names
|
getLocale | public Locale getLocale(Node node)(Code) | | Returns the Locale to which this node is attached. Normally this will be
an instance of DevelopmentLocale except when the interposer is being used
in which case it will be an instance of Locale and the InterposerListener
will then map it to the InterposerLocale
|
getTreeNodeComponent | public SGObject getTreeNodeComponent(SceneGraphObject obj)(Code) | | Returns the SGObject that represents the scene graph node component
|
groupSetChild | public void groupSetChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child, int index)(Code) | | Called when a BranchGroup is set in a group within a live scene graph
Parameters: parent - The live parent Parameters: child - The child about to be set to the parent, the child hasnot been attached at this stage |
prepareToSave | public void prepareToSave()(Code) | | Delete all BranchGraphs except VisualTools and ViewingPlatform
|
removeNodeComponent | public void removeNodeComponent(SGNodeComponent nodeComponent)(Code) | | Remove the node component, this is called automatically when the
reference count of an SGNodeComponent==0
nodeComponent.getJ3dNode() MUST be non-null otherwise a RuntimeException
will be thrown.
|
saveComplete | public void saveComplete()(Code) | | |
saveSceneGraph | public void saveSceneGraph(File file)(Code) | | Save the scene graph
|
setEditorCapabilities | public void setEditorCapabilities()(Code) | | Set the runtime editor capabilities on the SceneGraph
|
setEditorCapabilities | public void setEditorCapabilities(SGObject graph)(Code) | | Traverse the graph and set the capabilities of each node
as per the current editor mode. Traversal of the graph stops when
a node is encountered with the correct setting.
|
setHighlight3D | public void setHighlight3D(SGObject node, boolean highlight)(Code) | | |
setHighlight3DModeEnable | public void setHighlight3DModeEnable(boolean enable)(Code) | | Enable/Disable the 3D Highlight mode
The mode should be disabled by default in order to
achieve best rendering performance
When enabled the AppearanceOverrideEnable flag of all
Shape3D nodes in the scene is set to true
|
updateSceneGraph | public void updateSceneGraph()(Code) | | Update the view of the scene graph by re-traversing the branchgraphs
|
|
|