QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlyViewOccluderViewer.qml
Go to the documentation of this file.
1pragma ComponentBehavior: Bound
2
3import QtQuick
4
5import QGroundControl
6import QGroundControl.Controls
7
8// Development tool which outlines each Fly View occluder; anchor it to fill the widget layer so the coordinates line up
9Item {
10 id: _root
11
12 property var occluders
13 property var customOccluders: []
14
15 component OccluderOutline: Rectangle {
16 id: outline
17
18 property rect occluderRect
19 property string label
20
21 x: occluderRect.x
22 y: occluderRect.y
23 width: occluderRect.width
24 height: occluderRect.height
25 color: "transparent"
26 border.color: "yellow"
27 border.width: 2
28
29 QGCLabel {
30 anchors.centerIn: outline
31 text: outline.label
32 color: "yellow"
33 }
34 }
35
36 Repeater {
37 model: _root.occluders ? _root.occluders.types : []
38
39 OccluderOutline {
40 required property string modelData
41
42 occluderRect: _root.occluders[modelData]
43 label: modelData
44 }
45 }
46
47 Repeater {
48 model: _root.customOccluders
49
50 OccluderOutline {
51 required property rect modelData
52
53 occluderRect: modelData
54 label: "custom"
55 }
56 }
57}