[ui] display track endpoints option in features viewer

This commit is contained in:
Loïc Vital 2022-12-05 15:13:23 +01:00
parent 334bfc8b00
commit ece2371166
2 changed files with 17 additions and 0 deletions

View file

@ -131,6 +131,20 @@ FloatingPane {
onClicked: root.featuresViewer.display3dTracks = display3dTracksCB.checked
}
}
RowLayout {
Label {
text: "Display Track Endpoints:"
}
CheckBox {
id: displayTrackEndpointsCB
ToolTip.text: "Draws markers indicating the global start/end point of each track."
ToolTip.visible: hovered
Layout.fillHeight: true
Layout.alignment: Qt.AlignRight
checked: root.featuresViewer.displayTrackEndpoints
onClicked: root.featuresViewer.displayTrackEndpoints = displayTrackEndpointsCB.checked
}
}
RowLayout {
Label {
text: "Time Window:"

View file

@ -33,6 +33,8 @@ Repeater {
property bool trackContiguousFilter: true
/// Display only tracks with at least one inlier
property bool trackInliersFilter: false
/// Display track endpoints
property bool displayTrackEndpoints: true
/// The list of colors used for displaying several describers
property var colors: [Colors.blue, Colors.green, Colors.yellow, Colors.cyan, Colors.pink, Colors.lime] //, Colors.orange, Colors.red
@ -49,6 +51,7 @@ Repeater {
display3dTracks: root.display3dTracks
trackContiguousFilter: root.trackContiguousFilter
trackInliersFilter: root.trackInliersFilter
displayTrackEndpoints: root.displayTrackEndpoints
featureColor: root.colors[colorIndex]
matchColor: Colors.orange
landmarkColor: Colors.red