Class ViewingSector

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

public class ViewingSector extends ParametricSamplingFeature<Point>

Sampling feature used to model a viewing sector in the shape of a spherical sector, defined by min/max radius, min/max elevation and min/max azimuth. Elevation angles are expressed about the Y axis, while azimuth angles are expressed about the Z axis.

Since:
Sep 26, 2023
See Also:
  • Field Details

    • TYPE

      public static final String TYPE
      See Also:
    • PROP_RADIUS

      public static final QName PROP_RADIUS
    • PROP_INNER_RADIUS

      public static final QName PROP_INNER_RADIUS
    • PROP_MIN_ELEV

      public static final QName PROP_MIN_ELEV
    • PROP_MAX_ELEV

      public static final QName PROP_MAX_ELEV
    • PROP_MIN_AZIM

      public static final QName PROP_MIN_AZIM
    • PROP_MAX_AZIM

      public static final QName PROP_MAX_AZIM
    • radius

      protected double radius
    • innerRadius

      protected double innerRadius
    • minElev

      protected double minElev
    • maxElev

      protected double maxElev
    • minAzim

      protected double minAzim
    • maxAzim

      protected double maxAzim
  • Constructor Details

    • ViewingSector

      public ViewingSector()
  • Method Details

    • setRadius

      public void setRadius(double val)
      Sets the sphere radius
      Parameters:
      val - radius in meters
    • getRadius

      public double getRadius()
      Returns:
      The sphere radius in meters
    • setInnerRadius

      public void setInnerRadius(double val)
      Sets the sphere inner radius
      Parameters:
      val - inner radius in meters
    • getInnerRadius

      public double getInnerRadius()
      Returns:
      The sphere inner radius in meters
    • setMinElevation

      public void setMinElevation(double val)
      Sets the minimum elevation angle of the viewing sector
      Parameters:
      val - elevation in degrees, in the range [-90, 90]
    • getMinElevation

      public double getMinElevation()
      Returns:
      The minimum elevation of the viewing sector in degrees
    • setMaxElevation

      public void setMaxElevation(double val)
      Sets the maximum elevation angle of the viewing sector
      Parameters:
      val - elevation in degrees, in the range [-90, 90]
    • getMaxElevation

      public double getMaxElevation()
      Returns:
      The maximum elevation of the viewing sector in degrees
    • setMinAzimuth

      public void setMinAzimuth(double val)
      Sets the minimum azimuth angle of the viewing sector
      Parameters:
      val - azimuth in degrees, in the range [-180, 360]
    • getMinAzimuth

      public double getMinAzimuth()
      Returns:
      The minimum azimuth of the viewing sector in degrees
    • setMaxAzimuth

      public void setMaxAzimuth(double val)
      Sets the maximum azimuth angle of the viewing sector
      Parameters:
      val - elevation in degrees, in the range [-180, 360]
    • getMaxAzimuth

      public double getMaxAzimuth()
      Returns:
      The maximum azimuth of the viewing sector in degrees
    • appendProperties

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