mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
* enable PrimitivePicking to enable picking on point clouds * use OnDemand render policy * activate FrustrumCulling + increase far plane * add management of rasterized OpenGL points via a PointSize render
27 lines
1.1 KiB
QML
27 lines
1.1 KiB
QML
pragma Singleton
|
|
import QtQuick 2.9
|
|
import MaterialIcons 2.2
|
|
|
|
/**
|
|
* Viewer3DSettings singleton gathers properties related to the 3D Viewer capabilities, state and display options.
|
|
*/
|
|
Item {
|
|
readonly property Component abcLoaderComp: Qt.createComponent("AlembicLoader.qml")
|
|
readonly property bool supportAlembic: abcLoaderComp.status == Component.Ready
|
|
readonly property Component depthMapLoaderComp: Qt.createComponent("DepthMapLoader.qml")
|
|
readonly property bool supportDepthMap: depthMapLoaderComp.status == Component.Ready
|
|
|
|
// Available render modes
|
|
readonly property var renderModes: [ // Can't use ListModel because of MaterialIcons expressions
|
|
{"name": "Solid", "icon": MaterialIcons.crop_din },
|
|
{"name": "Wireframe", "icon": MaterialIcons.grid_on },
|
|
{"name": "Textured", "icon": MaterialIcons.texture },
|
|
]
|
|
// Current render mode
|
|
property int renderMode: 2
|
|
|
|
// Rasterized point size
|
|
property real pointSize: 4
|
|
// Whether point size is fixed or view dependent
|
|
property bool fixedPointSize: false
|
|
}
|