2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2020-05-04 17:42:22 +03:00
|
|
|
|
2021-06-28 14:04:43 +03:00
|
|
|
import QtQuick 6.0
|
|
|
|
|
import QtQuick3D 6.0
|
2020-05-04 17:42:22 +03:00
|
|
|
import LineGeometry 1.0
|
|
|
|
|
|
2020-05-08 17:22:24 +03:00
|
|
|
DirectionalDraggable {
|
2020-05-04 17:42:22 +03:00
|
|
|
id: arrowRoot
|
|
|
|
|
|
|
|
|
|
Model {
|
2021-09-06 14:24:23 +03:00
|
|
|
readonly property bool _edit3dLocked: true // Make this non-pickable
|
2020-05-04 17:42:22 +03:00
|
|
|
geometry: LineGeometry {
|
|
|
|
|
id: lineGeometry
|
|
|
|
|
name: "Edit 3D ScalableArrow"
|
|
|
|
|
startPos: Qt.vector3d(0, 0, 0)
|
|
|
|
|
endPos: Qt.vector3d(0, 1, 0)
|
|
|
|
|
}
|
|
|
|
|
scale: Qt.vector3d(1, arrowRoot.length, 1)
|
2020-05-08 17:22:24 +03:00
|
|
|
materials: [ arrowRoot.material ]
|
2020-05-04 17:42:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Model {
|
|
|
|
|
id: arrowHead
|
2021-09-06 14:24:23 +03:00
|
|
|
readonly property bool _edit3dLocked: true // Make this non-pickable
|
2020-05-04 17:42:22 +03:00
|
|
|
source: "#Cone"
|
|
|
|
|
materials: [ arrowRoot.material ]
|
2020-05-08 17:22:24 +03:00
|
|
|
y: arrowRoot.length - 3
|
2020-05-04 17:42:22 +03:00
|
|
|
scale: Qt.vector3d(0.02, 0.035, 0.02)
|
|
|
|
|
}
|
|
|
|
|
}
|