Package org.vrspace.server.obj
Class VRObject
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.VRObject
- Direct Known Subclasses:
Background,Client,Game,Terrain,VRFile
Basic VR Object encapsulates minimal spatial and other properties.
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()voidaddChildren(VRObject... vrObjects) voidaddListener(VRObject obj) protected booleanbooleanWhether an object is active (can send events).Currently active animationgetMesh()URL of the file containing the mesh.Permanent objects are always present (e.g.Position in 3D space, used for spatial operations.Custom transient object propertiesgetScale()Script that client runs.Temporary objects will be deleted from the database along with their ownergetWorld()inthashCode()booleanisActive()booleanFor a short while, a deleted object may remain in cache.booleanbooleanvoidnotifyListeners(VREvent event) passive()voidprocessEvent(VREvent event) This implementation does nothingvoidremoveListener(VRObject obj) voidWhether an object is active (can send events).voidsetAnimation(Animation animation) Currently active animationvoidsetChildren(List<VRObject> children) voidsetDeleted(boolean deleted) For a short while, a deleted object may remain in cache.voidsetListeners(ConcurrentHashMap<ID, VRObject> listeners) voidURL of the file containing the mesh.voidsetPermanent(Boolean permanent) Permanent objects are always present (e.g.voidsetPosition(Point position) Position in 3D space, used for spatial operations.voidsetProperties(Map<String, Object> properties) Custom transient object propertiesvoidsetRotation(Rotation rotation) voidvoidScript that client runs.voidsetTemporary(Boolean temporary) Temporary objects will be deleted from the database along with their ownervoidvoidsetWorldId(String worldId) toString()Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
VRObject
-
VRObject
-
VRObject
-
VRObject
public VRObject(double x, double y, double z) -
VRObject
-
VRObject
public VRObject()
-
-
Method Details
-
setWorld
-
addChildren
-
isPermanent
public boolean isPermanent() -
addListener
-
removeListener
-
notifyListeners
-
processEvent
This implementation does nothing- Parameters:
event- Whatever has changed
-
active
-
passive
-
isActive
public boolean isActive() -
isTemporary
public boolean isTemporary() -
getChildren
-
getWorldId
-
getWorld
-
getPosition
Position in 3D space, used for spatial operations. -
getRotation
-
getScale
-
getPermanent
Permanent objects are always present (e.g. sky) -
getTemporary
Temporary objects will be deleted from the database along with their owner -
isDeleted
public boolean isDeleted()For a short while, a deleted object may remain in cache. It needs to be ignored for all purposes. -
getActive
Whether an object is active (can send events). E.g. online users, robots. -
getMesh
URL of the file containing the mesh. -
getScript
Script that client runs. To prevent cross-site scripting, this is a read-only property. -
getAnimation
Currently active animation -
getProperties
Custom transient object properties -
getListeners
-
setChildren
-
setWorldId
-
setPosition
Position in 3D space, used for spatial operations. -
setRotation
-
setScale
-
setPermanent
Permanent objects are always present (e.g. sky) -
setTemporary
Temporary objects will be deleted from the database along with their owner -
setDeleted
public void setDeleted(boolean deleted) For a short while, a deleted object may remain in cache. It needs to be ignored for all purposes. -
setActive
Whether an object is active (can send events). E.g. online users, robots. -
setMesh
URL of the file containing the mesh. -
setScript
Script that client runs. To prevent cross-site scripting, this is a read-only property. -
setAnimation
Currently active animation -
setProperties
Custom transient object properties -
setListeners
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-