public final class SensorProperty extends Object implements IPartProperty
IPartProperty
,
IFieldOfView
,
Serialized FormConstructor and Description |
---|
SensorProperty(Vector3D sightAxis)
Constructor of the generic sensor property
|
Modifier and Type | Method and Description |
---|---|
IFieldOfView[] |
getInhibitionFields() |
PVCoordinatesProvider[] |
getInhibitionTargets() |
LocalRadiusProvider[] |
getInhibitionTargetsRadiuses() |
Vector3D |
getInSightAxis() |
IFieldOfView |
getMainField() |
PVCoordinatesProvider |
getMainTarget() |
LocalRadiusProvider |
getMainTargetRadius() |
Vector3D[] |
getReferenceAxis() |
PropertyType |
getType()
Get the type of the property.
|
void |
setInhibitionFieldsAndTargets(IFieldOfView[] fields,
PVCoordinatesProvider[] targets,
LocalRadiusProvider[] targetRadiuses)
Sets the arrays of inhibition fields and the associated targets : the two array must
have the same length.
|
void |
setMainFieldOfView(IFieldOfView field)
Sets the main field of view of this sensor
|
void |
setMainTarget(PVCoordinatesProvider target,
LocalRadiusProvider radius)
Sets the main target of the sensor
|
void |
setReferenceAxis(Vector3D[] refAxis)
Sets the reference axis
|
public SensorProperty(Vector3D sightAxis)
sightAxis
- the main sight axis of this sensor.public void setMainFieldOfView(IFieldOfView field)
field
- the new main field of viewpublic void setInhibitionFieldsAndTargets(IFieldOfView[] fields, PVCoordinatesProvider[] targets, LocalRadiusProvider[] targetRadiuses)
fields
- the inhibition fieldstargets
- the targets associated to those fieldstargetRadiuses
- the radiuses of the target objectspublic void setReferenceAxis(Vector3D[] refAxis)
refAxis
- the axis arraypublic Vector3D getInSightAxis()
public IFieldOfView getMainField()
public IFieldOfView[] getInhibitionFields()
public PVCoordinatesProvider[] getInhibitionTargets()
public LocalRadiusProvider[] getInhibitionTargetsRadiuses()
public Vector3D[] getReferenceAxis()
public void setMainTarget(PVCoordinatesProvider target, LocalRadiusProvider radius)
target
- the new main target centerradius
- the target's radius (set 0.0 for to create a simple point target)public PVCoordinatesProvider getMainTarget()
public LocalRadiusProvider getMainTargetRadius()
public PropertyType getType()
getType
in interface IPartProperty
Copyright © 2020 CNES. All rights reserved.