public class VertexView extends AbstractMeshView
This class provides a basic view for a Vertex, i.e., a single sphere on the grid.
Constructor and Description |
---|
VertexView(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 VertexController using a deep copy.
|
void |
copy(VertexView view)
This operation copies the contents of a VertexController into the current
object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this VertexController
and another VertexController.
|
int |
hashCode()
This operation returns the hash value of the VertexController.
|
void |
setLocation(com.jme3.math.Vector3f location)
Sets the location of the view's Geometry in the jME3 scene.
|
void |
setSize(float size)
Sets the current size of the vertex view's sphere.
|
copy, dispose, setColor, setParentNode
public VertexView(java.lang.String name, com.jme3.material.Material material)
The default constructor.
public void setLocation(com.jme3.math.Vector3f location)
Sets the location of the view's Geometry in the jME3 scene.
location
- The new location of the Vertex's Geometry in the jME3 scene.
public void setSize(float size)
setSize
in class AbstractMeshView
size
- The new radius of the vertex view's sphere.public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this VertexController and another VertexController. It returns true if the objects are equal and false if they are not.
equals
in class AbstractMeshView
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 VertexController.
hashCode
in class AbstractMeshView
The hashcode of the object.
public void copy(VertexView view)
This operation copies the contents of a VertexController 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 VertexController using a deep copy.
clone
in class AbstractMeshView
The new clone.