-
-
Methods in org.web3d.x3d.jsail.Core that return SceneObject
Modifier and Type |
Method |
Description |
SceneObject |
SceneObject.addChild(X3DChildNode newValue) |
Utility method to add single child element to contained list of existing children nodes (if any).
|
SceneObject |
SceneObject.addChildren(ProtoInstanceObject newValue) |
Add single ProtoInstanceObject (with appropriate node type and containerField value) to MFNode array for children field.
|
SceneObject |
SceneObject.addComments(java.lang.String newComment) |
Add comment as CommentsBlock to children field
|
SceneObject |
SceneObject.addComments(java.lang.String[] newComments) |
Add comments as String[] array to children field
|
SceneObject |
SceneObject.addComments(CommentsBlock newCommentsBlock) |
Add CommentsBlock to children field
|
SceneObject |
SceneObject.addLayerSet(LayerSetObject newValue) |
Utility method to add single LayerSetObject to contained list of existing Scene root nodes (if any).
|
SceneObject |
SceneObject.addMetadata(X3DMetadataObject newValue) |
Utility method to add single X3DMetadataNode to contained list of existing Scene root nodes (if any).
|
SceneObject |
SceneObject.clearChildren() |
Utility method to clear MFNode value of children field.
|
SceneObject |
X3DObject.getScene() |
Provide SceneObject instance (using a properly typed node) from inputOutput SFNode field Scene.
|
SceneObject |
SceneObject.setChildren(java.util.ArrayList<X3DNode> newValue) |
Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field children.
// newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1
boolean isNodeTypeAllowed =
(newValue instanceof org.web3d.x3d.jsail.Core.CommentsBlock) ||
(newValue instanceof org.web3d.x3d.jsail.Core.ROUTEObject) ||
(newValue instanceof org.web3d.x3d.jsail.Networking.IMPORTObject) ||
(newValue instanceof org.web3d.x3d.jsail.Networking.EXPORTObject) ||
(newValue instanceof org.web3d.x3d.jsail.Core.ProtoDeclareObject) ||
(newValue instanceof org.web3d.x3d.jsail.Core.ExternProtoDeclareObject) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.Core.X3DChildNode) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.Core.X3DMetadataObject) ||
(newValue instanceof org.web3d.x3d.jsail.Layering.LayerSetObject);
if (!
|