Java Doc for SceneGraphControl.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dedit » scenegrapheditor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » org.jdesktop.j3dedit.scenegrapheditor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jdesktop.j3dedit.scenegrapheditor.SceneGraphControl

SceneGraphControl
public class SceneGraphControl implements org.jdesktop.j3dfly.utils.developmenttools.SceneGraphChangeListener(Code)

author:
   Paul Byrne
version:
   $Id: SceneGraphControl.java,v 1.4 2007/06/01 21:52:29 paulby Exp $
version:
   Maintains consitancy between Java3D scene graph and the
version:
   users view of the graph



Constructor Summary
public  SceneGraphControl(J3dTreePanel treePanel, J3dEditContext context)
     Create a new SceneGraphControl object.

Method Summary
public synchronized  voidaddChild(SGGroup parent, javax.media.j3d.Node child, boolean autoName)
    
public  voidaddNodeComponent(SGNodeComponent nodeComponent)
    
public  SGObjectcloneTree(SGObject source)
    
public  voidcreateDefaultNames(SGObject root, String sceneName)
     Traverse the graph and generate default names for all the 'interesting' objects that are not named.
public  LocalegetLocale(Node node)
     Returns the Locale to which this node is attached.
public  SGObjectgetLocaleNode(DevelopmentLocale obj)
    
public  SGObjectgetTreeNode(SceneGraphObject obj)
    
public  SGObjectgetTreeNodeComponent(SceneGraphObject obj)
    
public  SGObjectgetViewRoot()
    
public  voidgraphAdded(DevelopmentLocale locale, BranchGroup newGraph)
    
public  voidgraphChanged(DevelopmentLocale locale, BranchGroup graph, javax.media.j3d.Node node)
    
public  voidgraphRemoved(DevelopmentLocale locale, BranchGroup graph)
    
public  voidgraphReplaced(DevelopmentLocale locale, BranchGroup oldGraph, BranchGroup newGraph)
    
public  voidgroupAddChild(DevelopmentLocale locale, javax.media.j3d.Group parent, BranchGroup child)
    
public  voidgroupRemoveAllChildren(DevelopmentLocale locale, javax.media.j3d.Group parent)
    
public  voidgroupRemoveChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child)
    
public  voidgroupSetChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child, int index)
    
public  voidprepareToSave()
    
public  voidremoveChild(SGGroup parent, SGNode child)
    
public  voidremoveNodeComponent(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  voidsaveComplete()
    
public  voidsaveSceneGraph(File file)
    
public  voidsetEditorCapabilities()
    
public  voidsetEditorCapabilities(SGObject graph)
     Traverse the graph and set the capabilities of each node as per the current editor mode.
public  voidsetHighlight3D(SGObject node, boolean highlight)
    
public  voidsetHighlight3DModeEnable(boolean enable)
    
public  voidsetSceneGraph(J3dEditContext context)
    
public  voidupdateSceneGraph()
    


Constructor Detail
SceneGraphControl
public SceneGraphControl(J3dTreePanel treePanel, J3dEditContext context)(Code)
Create a new SceneGraphControl object. The new object adds itself to the context




Method Detail
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



cloneTree
public SGObject cloneTree(SGObject source) throws DanglingReferenceException, RestrictedAccessException(Code)
Clone both the Java3D and the visual graph



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



getLocaleNode
public SGObject getLocaleNode(DevelopmentLocale obj)(Code)
Returns the SGObject that represents the locale



getTreeNode
public SGObject getTreeNode(SceneGraphObject obj)(Code)
Returns the SGObject that represents the scene graph node



getTreeNodeComponent
public SGObject getTreeNodeComponent(SceneGraphObject obj)(Code)
Returns the SGObject that represents the scene graph node component



getViewRoot
public SGObject getViewRoot()(Code)



graphAdded
public void graphAdded(DevelopmentLocale locale, BranchGroup newGraph)(Code)
A new Branch graph is about to added to the Locale



graphChanged
public void graphChanged(DevelopmentLocale locale, BranchGroup graph, javax.media.j3d.Node node)(Code)
Called when the Locale is notified of SceneGraph Structure changes by a call to notifyGraphChanged



graphRemoved
public void graphRemoved(DevelopmentLocale locale, BranchGroup graph)(Code)
A Branch graph has been removed



graphReplaced
public void graphReplaced(DevelopmentLocale locale, BranchGroup oldGraph, BranchGroup newGraph)(Code)
A branch graph has been replaced



groupAddChild
public void groupAddChild(DevelopmentLocale locale, javax.media.j3d.Group parent, BranchGroup child)(Code)
Called when a BranchGroup is added to a group within a live scene graph



groupRemoveAllChildren
public void groupRemoveAllChildren(DevelopmentLocale locale, javax.media.j3d.Group parent)(Code)



groupRemoveChild
public void groupRemoveChild(DevelopmentLocale locale, javax.media.j3d.Group parent, javax.media.j3d.BranchGroup child)(Code)
Called when a BranchGroup is removed from a group within a live scene graph
Parameters:
  parent - The live parent
Parameters:
  child - The live child which is about to be removed



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



removeChild
public void removeChild(SGGroup parent, SGNode child)(Code)



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



setSceneGraph
public void setSceneGraph(J3dEditContext context)(Code)



updateSceneGraph
public void updateSceneGraph()(Code)
Update the view of the scene graph by re-traversing the branchgraphs



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.