Class ViewingFrustum

All Implemented Interfaces:
Serializable, AbstractFeature, AbstractGML, IFeature, IResource

public class ViewingFrustum extends ParametricSamplingFeature<Point>
See Also:
  • Field Details

    • TYPE

      public static final String TYPE
      See Also:
    • PROP_FOV

      public static final QName PROP_FOV
    • PROP_ASPECT_RATIO

      public static final QName PROP_ASPECT_RATIO
    • PROP_LENGTH

      public static final QName PROP_LENGTH
    • fov

      protected double fov
    • aspectRatio

      protected double aspectRatio
    • length

      protected double length
  • Constructor Details

    • ViewingFrustum

      public ViewingFrustum()
  • Method Details

    • setFov

      public void setFov(double fov)
      Sets the FOV of the frustum
      Parameters:
      fov - in degrees
    • setFov

      public void setFov(double hfov, double vfov)
      Sets separate horizontal and vertical FOV for the frustum
      Parameters:
      hfov - in degrees
      vfov - in degrees
    • getFov

      public double getFov()
      Returns:
      The (horizontal) FOV in degrees
    • setAspectRatio

      public void setAspectRatio(double val)
      Sets the aspect ratio of the frustum
      Parameters:
      val - aspect ratio (unitless)
    • getAspectRatio

      public double getAspectRatio()
      Returns:
      The aspect ratio of the frustum
    • setLength

      public void setLength(double val)
      Sets the length of the frustum
      Parameters:
      val - length in meters
    • getLength

      public double getLength()
      Returns:
      The length of the frustum
    • appendProperties

      protected void appendProperties(com.google.common.collect.ImmutableMap.Builder<QName,Object> builder)
      Overrides:
      appendProperties in class ParametricSamplingFeature<Point>