Method: Add for FieldsOfView
- Mise à jour2024-09-12
- Temps de lecture : 2 minute(s)
DIAdem VIEW > Methods > Method: Add for FieldsOfView
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)
| Object | FieldsOfView Object with this method |
| LateralDistance | Double Specifies the lateral distance. |
| LongitudinalDistance | Double Specifies the longitudinal distance. |
| OrientationAngle | Double Specifies the direction angle. |
| ApertureAngle | Double Specifies the aperture angle. |
| Radius | Double Specifies the radius. |
| FillTransparency | Double Specifies the transparency as a percentage. The value 100 specifies a completely transparent display and the value 0 specifies a completely opaque display. |
| oFieldOfView | FieldOfView Returned object |
The following example adds a sensor field of view to a bird's eye view display and outputs the channel properties:
| VBScript | Python |
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)
See Also
Examples
Alignment Functions in DIAdem VIEW | Automatic Display of Harmonic Frequencies | Bird's Eye View Display | Calculating a Tangent to a Curve | Contour Display in DIAdem VIEW | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | Planetary Motion | Synchronizing Videos and Data | Synchronizing Videos and Waveform Data | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Using a User Command to Calculate the Difference between the Y-Values | Various Display Modes in DIAdem VIEW | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data