DIAdem Help

Method: Add for FieldsOfView

  • Mise à jour2024-09-12
  • Temps de lecture : 2 minute(s)

Method: Add for FieldsOfView

Adds an object to the FieldsOfView collection and returns a FieldOfView object, in the script interface of DIAdem VIEW. A FieldOfView object corresponds to a sensor fin field of view in a bird's eye view display.

Set oFieldOfView = Object.Add(LateralDistance, LongitudinalDistance, OrientationAngle, ApertureAngle, Radius, FillTransparency)
ObjectFieldsOfView
Object with this method
LateralDistanceDouble
Specifies the lateral distance.
LongitudinalDistanceDouble
Specifies the longitudinal distance.
OrientationAngleDouble
Specifies the direction angle.
ApertureAngleDouble
Specifies the aperture angle.
RadiusDouble
Specifies the radius.
FillTransparencyDouble
Specifies the transparency as a percentage. The value 100 specifies a completely transparent display and the value 0 specifies a completely opaque display.
oFieldOfViewFieldOfView
Returned object

The following example adds a sensor field of view to a bird's eye view display and outputs the channel properties:

VBScriptPython

 

Dim oMySheet, oMyObject, oMyObjects
Set oMySheet = View.Sheets.Add("NewBirdsEyeView")
oMySheet.ActiveArea.DisplayObjType = "BirdsEyeView"
Set oMyObjects = View.ActiveSheet.ActiveArea.DisplayObj.FieldsOfView
Set oMyObject = oMyObjects.Add(0, 0, 0, 50, 50, 50)
Call LogfileWrite("Lateral Distance: " & Str(oMyObject.LateralDistance) & VBCrLf & "Longitudinal Distance: " & Str(oMyObject.LongitudinalDistance) & VBCrLf & _
                  "Orientation Angle: " & Str(oMyObject.OrientationAngle) & VBCrLf & "Aperture Angle: " & Str(oMyObject.ApertureAngle) & VBCrLf & _
                  "Radius: " & Str(oMyObject.Radius) & VBCrLf & "Fill Transparency: " & Str(oMyObject.FillTransparency)