| javax.swing.JFrame org.jdesktop.j3dfly.J3dFlyController
J3dFlyController | public J3dFlyController(J3dFlyContext context)(Code) | | Creates new form controlPanel
|
addBranchGraph | public void addBranchGraph(BranchGroup graph)(Code) | | Add a new Branch Graph to the universe
This method also sets the ALLOW_DETACH capability bit on graph
so it can be removed later if needed
|
changeCollisionController | public void changeCollisionController(VPDefaultCollision newController)(Code) | | Change the collisionController to the new object.
Copy the state from the old controller to the new
|
checkForLights | void checkForLights(boolean autoAdd)(Code) | | Check if the graph contains any lights and if it needs lights
If it does not have lights but requires them then ask the user if they
would like to add some
If autoAdd is true the lights are added without asking the user.
Returns true if no changes made, returns false is scene graph updated
If lightBG is not null, the lights will be added to it,
otherwise they will be added in a new BranchGraph
Scene graph must not be live
|
clearUniverse | public void clearUniverse()(Code) | | Remove all geometry from the scenegraph and reset the universe
|
configureLoaders | public void configureLoaders(java.awt.Frame parent)(Code) | | Display a dialog to allow users to select loaders
|
enableCollision | public void enableCollision(boolean enabled)(Code) | | Enable/Disable collision detection for viewplatform behavior.
If necessary set the capability bits in the scenegraph to
enable picking of geometry which is how the collision detection is
implemented
|
foundManifestAttribute | public void foundManifestAttribute(String name, String value)(Code) | | Listener for ManifestParser
|
getBranchGraphs | public BranchGroup[] getBranchGraphs(BranchGroup[] graphArray)(Code) | | Return an array of all the BranchGraphs in the universe, if graphArray
is not null and is the correct size it will be populated with the
graphs and returned, otherwise a new array will be created and returned
|
getCurrentSceneName | public String getCurrentSceneName()(Code) | | |
getLoaderControl | public LoaderControl getLoaderControl()(Code) | | Returns the LoaderControl object used by J3dFly
|
isCollisionEnabled | public boolean isCollisionEnabled()(Code) | | Return true if Collision detection is enabled, false otherwise
|
loadGeometry | public void loadGeometry(java.io.File file)(Code) | | Load some geometry from the specified file and add it to the
existing scene graph
|
loadScene | public java.io.File loadScene()(Code) | | Load a scene
Presents a FileChooser to the user and allows a scene to be selected
Returns the file loaded
|
loadScene | public void loadScene(java.io.File file)(Code) | | Load the scene from the specified file
|
loadingJ3f | public void loadingJ3f(J3fLoader loader)(Code) | | Callback for J3fLoaderListener
|
removeBranchGraph | public void removeBranchGraph(BranchGroup graph)(Code) | | Remove a Branch Graph from the universe
|
saveAsScene | public java.io.File saveAsScene()(Code) | | Allow the user to select a filename and save the scene.
Universe must not be live when this method is called
Returns the file saved
|
saveAsScene | public java.io.File saveAsScene(boolean asStream, boolean coreClassesOnly)(Code) | | |
saveScene | public void saveScene(java.io.File file)(Code) | | Saves the scene is the specified file
Universe must not be live when this method is called
|
saveSceneGraph | public void saveSceneGraph(java.io.File file)(Code) | | Write the branchgraphs to file
|
setCollisionEnabled | public void setCollisionEnabled(boolean enabled)(Code) | | Enable/Disable collision detection for viewplatform behavior.
If necessary set the capability bits in the scenegraph to
enable picking of geometry which is how the collision detection is
implemented
|
setDefaultFileExtension | public void setDefaultFileExtension(String extension)(Code) | | Set the default file extension.
Parameters: extension - string without the . ie j3f or j3s |
showAll | public double showAll(int axis)(Code) | | Move the view platform so that all geometry fit inside view frustum
Axis must be one of the constant axis specified in ViewUtils.
Return the eye Distance from the center of the Scene bounds
|
|
|