Package org.vrspace.server.obj
Class Terrain
- java.lang.Object
-
- org.vrspace.server.obj.Entity
-
- org.vrspace.server.obj.VRObject
-
- org.vrspace.server.obj.Terrain
-
@Node public class Terrain extends VRObject
Shared dynamic terrain, work in progress. Saving terrain with hundreds of points changed can easily take a few seconds.- Author:
- joe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Terrain.TerrainChange
-
Constructor Summary
Constructors Constructor Description Terrain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Terrain.TerrainChange
getChange()
Transient property, used only to propagate changes to other clientsColor
getDiffuseColor()
String
getDiffuseTexture()
Color
getEmissiveColor()
Set<TerrainPoint>
getPoints()
Color
getSpecularColor()
int
hashCode()
void
setChange(Terrain.TerrainChange change)
Transient property, used only to propagate changes to other clientsvoid
setDiffuseColor(Color diffuseColor)
void
setDiffuseTexture(String diffuseTexture)
void
setEmissiveColor(Color emissiveColor)
void
setPoints(Set<TerrainPoint> points)
void
setSpecularColor(Color specularColor)
String
toString()
-
Methods inherited from class org.vrspace.server.obj.VRObject
active, addChildren, addListener, getActive, getAnimation, getChildren, getListeners, getMesh, getObjectId, getPermanent, getPosition, getProperties, getRotation, getScale, getScript, getStreamId, getTemporary, getWorld, getWorldId, isActive, isPermanent, isTemporary, notifyListeners, passive, processEvent, removeListener, setActive, setAnimation, setChildren, setListeners, setMesh, setPermanent, setPosition, setProperties, setRotation, setScale, setScript, setStreamId, setTemporary, setWorld, setWorldId
-
-
-
-
Method Detail
-
getDiffuseColor
public Color getDiffuseColor()
-
getEmissiveColor
public Color getEmissiveColor()
-
getSpecularColor
public Color getSpecularColor()
-
getDiffuseTexture
public String getDiffuseTexture()
-
getChange
public Terrain.TerrainChange getChange()
Transient property, used only to propagate changes to other clients
-
getPoints
public Set<TerrainPoint> getPoints()
-
setDiffuseColor
public void setDiffuseColor(Color diffuseColor)
-
setEmissiveColor
public void setEmissiveColor(Color emissiveColor)
-
setSpecularColor
public void setSpecularColor(Color specularColor)
-
setDiffuseTexture
public void setDiffuseTexture(String diffuseTexture)
-
setChange
public void setChange(Terrain.TerrainChange change)
Transient property, used only to propagate changes to other clients
-
setPoints
public void setPoints(Set<TerrainPoint> points)
-
-