Class FovCamera

    • Field Detail

      • MAX_OVERLAP_TIME

        public long MAX_OVERLAP_TIME
        time that has to pass with the current scan rate so that we scan to the edge of the current field of view.
      • MAX_OVERLAP_ANGLE

        public float MAX_OVERLAP_ANGLE
      • gaia

        public Gaia gaia
      • directions

        public Vector3d[] directions
      • interpolatedDirections

        public java.util.List<Vector3d[]> interpolatedDirections
      • currentTime

        public long currentTime
      • lastTime

        public long lastTime
      • dirindex

        public int dirindex
    • Constructor Detail

      • FovCamera

        public FovCamera​(com.badlogic.gdx.assets.AssetManager assetManager,
                         CameraManager parent)
    • Method Detail

      • initialize

        public void initialize​(com.badlogic.gdx.assets.AssetManager assetManager)
      • update

        public void update​(double dt,
                           ITimeFrameProvider time)
        Description copied from interface: ICamera
        Updates the camera.
        Specified by:
        update in interface ICamera
        Parameters:
        dt - The time since the las frame in seconds.
        time - The frame time provider (simulation time).
      • updateDirections

        public void updateDirections​(ITimeFrameProvider time)
        Updates both FOVs' directions applying the right transformation.
        Parameters:
        time -
      • getDirections

        public Vector3d[] getDirections​(java.util.Date d)
      • getFrontCameras

        public com.badlogic.gdx.graphics.PerspectiveCamera[] getFrontCameras()
        Specified by:
        getFrontCameras in interface ICamera
      • getCamera

        public com.badlogic.gdx.graphics.PerspectiveCamera getCamera()
        Description copied from interface: ICamera
        Returns the perspective camera.
        Specified by:
        getCamera in interface ICamera
        Returns:
        The perspective camera.
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver
      • getSpeed

        public double getSpeed()
        Description copied from interface: ICamera
        Gets the current velocity of the camera in km/h.
        Specified by:
        getSpeed in interface ICamera
        Returns:
        The velocity in km/h.
      • isFocus

        public boolean isFocus​(IFocus cb)
        Description copied from interface: ICamera
        Checks if this body is the current focus
        Specified by:
        isFocus in interface ICamera
        Parameters:
        cb - The body
        Returns:
        Whether the body is focus
      • getFocus

        public IFocus getFocus()
        Description copied from interface: ICamera
        Returns the foucs if any
        Specified by:
        getFocus in interface ICamera
        Returns:
        The foucs object if it is in focus mode. Null otherwise
      • setCamera

        public void setCamera​(com.badlogic.gdx.graphics.PerspectiveCamera cam)
        Description copied from interface: ICamera
        Sets the active camera
        Specified by:
        setCamera in interface ICamera
      • resize

        public void resize​(int width,
                           int height)
        Specified by:
        resize in interface ICamera
      • getFrustum2

        public Frustumd getFrustum2()
      • speedScaling

        public double speedScaling()
        Specified by:
        speedScaling in interface ICamera