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-01-13 13:40:04 +02:00
|
|
|
|
2021-06-28 14:04:43 +03:00
|
|
|
import QtQuick 6.0
|
|
|
|
|
import QtQuick3D 6.0
|
2020-01-13 13:40:04 +02:00
|
|
|
import LineGeometry 1.0
|
|
|
|
|
|
|
|
|
|
Node {
|
|
|
|
|
id: pivotLine
|
|
|
|
|
|
|
|
|
|
property alias startPos: lineGeometry.startPos
|
|
|
|
|
property alias endPos: lineGeometry.endPos
|
|
|
|
|
property alias name: lineGeometry.name // Name must be unique for each line
|
2020-08-04 10:19:24 +03:00
|
|
|
property alias color: lineMat.diffuseColor
|
2020-01-13 13:40:04 +02:00
|
|
|
|
|
|
|
|
Model {
|
2021-09-06 14:24:23 +03:00
|
|
|
readonly property bool _edit3dLocked: true // Make this non-pickable
|
2020-01-13 13:40:04 +02:00
|
|
|
geometry: LineGeometry {
|
|
|
|
|
id: lineGeometry
|
|
|
|
|
}
|
|
|
|
|
materials: [
|
|
|
|
|
DefaultMaterial {
|
|
|
|
|
id: lineMat
|
|
|
|
|
lighting: DefaultMaterial.NoLighting
|
2020-03-10 15:57:41 +02:00
|
|
|
cullMode: Material.NoCulling
|
2020-01-13 13:40:04 +02:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|