public abstract class AbstractView
extends java.lang.Object
AbstractController
. This class essentially provides a root
Node
to contain jME3 scene objects and operations to add or remove
the root node to or from the scene.Constructor and Description |
---|
AbstractView(java.lang.String name)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of the AbstractView's spatials attached to the jME3 scene.
|
void |
setLocation(com.jme3.math.Vector3f location)
Sets the location of the view.
|
void |
setParentNode(com.jme3.scene.Node node)
Attaches the view's node to the specified parent node.
|
void |
setRotation(com.jme3.math.Quaternion quaternion)
Sets the rotation of the view.
|
public AbstractView(java.lang.String name)
name
- The name of the AbstractView's node, viewNode
. If
null, "AbstractView" is used instead.public void setParentNode(com.jme3.scene.Node node)
node
- The new parent node of the view. If null, nothing is changed.public void setLocation(com.jme3.math.Vector3f location)
location
- The new location of the view in jME3 coordinates.public void setRotation(com.jme3.math.Quaternion quaternion)
quaternion
- The new rotation of the view in jME3 coordinates.public void dispose()