2D
This commit is contained in:
34
refer/gcode_view.qml
Normal file
34
refer/gcode_view.qml
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
import QtQuick
|
||||
import QtQuick3D
|
||||
|
||||
Item {
|
||||
id: root
|
||||
property real progress: 100
|
||||
property real maxLayer: 10
|
||||
|
||||
View3D {
|
||||
anchors.fill: parent
|
||||
environment: SceneEnvironment {
|
||||
clearColor: "#1a1a1a"
|
||||
backgroundMode: SceneEnvironment.Color
|
||||
}
|
||||
PerspectiveCamera {
|
||||
id: camera
|
||||
z: 300
|
||||
y: -200
|
||||
eulerRotation.x: 45
|
||||
}
|
||||
DirectionalLight { eulerRotation.x: -45 }
|
||||
|
||||
// Render layers using repeated line models or a custom geometry
|
||||
// Since QtQuick3D dynamic geometry from Python is complex, we render primitives for demo
|
||||
Node { id: gcodeNode }
|
||||
}
|
||||
|
||||
Text {
|
||||
text: "QtQuick3D GCode Preview\nProgress: " + progress.toFixed(1) + "%"
|
||||
color: "white"
|
||||
font.pixelSize: 20
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user