public abstract class SensorFieldOfView extends Solid implements IServiceProvider
| Constructor and Description |
|---|
SensorFieldOfView() |
| Modifier and Type | Method and Description |
|---|---|
double |
getMaximumRadius()
Gets the maximum radial limit.
|
double |
getMinimumRadius()
Gets the minimum radial limit.
|
SensorProjection |
getProjection(Ellipsoid ellipsoid,
KinematicTransformation ellipsoidToSensorTransformation)
Gets the projection of the sensor onto the front surface of a specified ellipsoid and into space.
|
abstract SensorProjection |
getProjection(Ellipsoid ellipsoid,
KinematicTransformation ellipsoidToSensorTransformation,
SensorProjectionOptions projectionOptions)
Gets the projection of the sensor onto the front surface of a specified ellipsoid and onto a plane at a
specified distance in space.
|
double |
getRadius()
Deprecated.
Use MinimumRadius, MaximumRadius, or SetRadialLimits instead.
|
Object |
getService(Class<?> serviceType)
Gets the service object of the specified type.
|
protected void |
onRadialLimitsChanged()
Called after the radial limits of the sensor volume are changed.
|
protected void |
onRadiusChanged()
Deprecated.
Use OnRadialLimitsChanged instead.
|
void |
setRadialLimits(double minimum,
double maximum)
Sets the radial limits of the sensor volume, which restrict the volume to a spherical shell.
|
void |
setRadius(double value)
Deprecated.
Use MinimumRadius, MaximumRadius, or SetRadialLimits instead.
|
encloses, getEnclosureDescriptionsgetIsConnected@Deprecated public final double getRadius()
ArgumentOutOfRangeException - Thrown when the radius is less than or equal to zero.@Deprecated public final void setRadius(double value)
ArgumentOutOfRangeException - Thrown when the radius is less than or equal to zero.public final double getMinimumRadius()
MaximumRadius (get), this restricts the volume to a spherical shell.
By default, this property has the value 0.0.public final double getMaximumRadius()
MinimumRadius (get), this restricts the volume to a spherical shell.
By default, this property has the value Double.POSITIVE_INFINITY.public final void setRadialLimits(double minimum,
double maximum)
minimum - The radial distance to the spherical surface defining the minimum range of the sensor volume.maximum - The radial distance to the spherical surface defining the maximum range of the sensor volume.ArgumentOutOfRangeException - The minimum and maximum radial limits must be in the range from 0.0 to Double.POSITIVE_INFINITY.ArgumentException - The minimum radial limit must be less the maximum radial limit.@Nonnull public final SensorProjection getProjection(@Nonnull Ellipsoid ellipsoid, @Nonnull KinematicTransformation ellipsoidToSensorTransformation)
ellipsoid - The ellipsoid on which the sensor is to be projected.ellipsoidToSensorTransformation - The transformation from the reference frame of the ellipsoid to the reference frame of the sensor.@Nonnull public abstract SensorProjection getProjection(@Nonnull Ellipsoid ellipsoid, @Nonnull KinematicTransformation ellipsoidToSensorTransformation, @Nullable SensorProjectionOptions projectionOptions)
ellipsoid - The ellipsoid on which the sensor is to be projected.ellipsoidToSensorTransformation - The transformation from the reference frame of the ellipsoid to the reference frame of the sensor.projectionOptions - The options controlling how the sensor is projected, or null to use defaults.@Deprecated protected void onRadiusChanged()
protected void onRadialLimitsChanged()
@Nullable public Object getService(@Nonnull Class<?> serviceType)
getService in interface IServiceProviderserviceType - An object that specifies the type of service object to get.null if the service does not exist.ArgumentNullException - Thrown when serviceType is null.