Class SceneProperties

java.lang.Object
org.vrspace.server.dto.SceneProperties

@Component public class SceneProperties extends Object
Scene properties that determine how far user sees, how often scene is refreshed, etc. This is a component to be injected, and used as factory when constructing Scene for every client.
Author:
joe
  • Constructor Details

    • SceneProperties

      public SceneProperties()
  • Method Details

    • newInstance

      public SceneProperties newInstance()
    • getRange

      public double getRange()
      Visibility range, default 2000. Property: vrspace.scene.range
    • getResolution

      public double getResolution()
      Resolution describes how far one can go before scene is updated, default 10. Property: vrspace.scene.resolution
    • getSize

      public int getSize()
      Maximum number of objects in the scene, default 1000. Property: vrspace.scene.size
    • getTimeout

      public long getTimeout()
      Scene is refreshed after this many milliseconds, default 30000. Property: vrspace.scene.timeout
    • setRange

      public void setRange(double range)
      Visibility range, default 2000. Property: vrspace.scene.range
    • setResolution

      public void setResolution(double resolution)
      Resolution describes how far one can go before scene is updated, default 10. Property: vrspace.scene.resolution
    • setSize

      public void setSize(int size)
      Maximum number of objects in the scene, default 1000. Property: vrspace.scene.size
    • setTimeout

      public void setTimeout(long timeout)
      Scene is refreshed after this many milliseconds, default 30000. Property: vrspace.scene.timeout
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object