public abstract class AbstractMeshView
extends java.lang.Object
This class provides a basic view for a component of a mesh.
The view is the part that the user sees. However, all interactions with the view are processed via the controller. The view should only be updated within the jME3 application's simpleUpdate() method.
Constructor and Description |
---|
AbstractMeshView(java.lang.String name,
com.jme3.material.Material material)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation returns a clone of the AbstractMeshView using a deep copy.
|
void |
copy(AbstractMeshView view)
This operation copies the contents of a AbstractMeshView into the current
object using a deep copy.
|
void |
dispose()
Disposes of the AbstractMeshView and its associated jME3 objects.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this AbstractMeshView
and another AbstractMeshView.
|
int |
hashCode()
This operation returns the hash value of the AbstractMeshView.
|
void |
setColor(com.jme3.math.ColorRGBA color)
Sets the color of the Geometry's material.
|
void |
setParentNode(com.jme3.scene.Node node)
Sets the jME3 Node that contains the view's Geometry.
|
abstract void |
setSize(float size)
Sets the size of the view.
|
public AbstractMeshView(java.lang.String name, com.jme3.material.Material material)
The default constructor. This creates a jME3 Geometry that can be attached to the scene.
public void setParentNode(com.jme3.scene.Node node)
Sets the jME3 Node that contains the view's Geometry.
node
- The new parent Node.
public void setColor(com.jme3.math.ColorRGBA color)
Sets the color of the Geometry's material.
color
- The new color for the view's Geometry.
public abstract void setSize(float size)
Sets the size of the view.
size
- The new size of the view.
public void dispose()
Disposes of the AbstractMeshView and its associated jME3 objects.
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this AbstractMeshView and another AbstractMeshView. It returns true if the objects are equal and false if they are not.
equals
in class java.lang.Object
otherObject
- The other object that should be compared with this one.
True if the objects are equal, false otherwise.
public int hashCode()
This operation returns the hash value of the AbstractMeshView.
hashCode
in class java.lang.Object
The hashcode of the object.
public void copy(AbstractMeshView view)
This operation copies the contents of a AbstractMeshView into the current object using a deep copy.
view
- The object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the AbstractMeshView using a deep copy.
clone
in class java.lang.Object
The new clone.