Package org.web3d.sai.util
Class SceneUtils
java.lang.Object
org.web3d.sai.util.SceneUtils
Utility methods for working with X3D Scenes
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Copy the contents of one scene into another.static void
getPickTargets
(X3DNode[] node, Vector<X3DNode> targetList) Recursively search through the argument X3DNode array for valid pick targets and place the reference into the argument list.static X3DNode[]
getPickTargets
(X3DScene scene) Return all the valid pick targets from the argument X3DScene.static boolean
validateSceneCompatibility
(X3DScene scene, int version_major, int version_minor, ProfileInfo profileInfo, ComponentInfo[] componentInfo) Return whether the argument scene meets the version, profile and component requirements specified.
-
Constructor Details
-
SceneUtils
public SceneUtils()
-
-
Method Details
-
validateSceneCompatibility
public static boolean validateSceneCompatibility(X3DScene scene, int version_major, int version_minor, ProfileInfo profileInfo, ComponentInfo[] componentInfo) Return whether the argument scene meets the version, profile and component requirements specified.- Parameters:
scene
- The scene instance to validateversion_major
- The major version numberversion_minor
- The minor version numberprofileInfo
- The profile identifiercomponentInfo
- The array of component identifiers- Returns:
- true if the scene instance meets the requirements, false otherwise.
-
getPickTargets
-
getPickTargets
Recursively search through the argument X3DNode array for valid pick targets and place the reference into the argument list.- Parameters:
node
- The X3DNode array to search for pick targets.targetList
- The list to populate with the found pick targets.
-
copyScene
-