aboutsummaryrefslogtreecommitdiff
path: root/main_view.qml
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-19 12:29:33 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-19 12:29:33 +0100
commitd7dd95cd9eaa223ff8b86e84e6b1b488ff79bcd5 (patch)
tree89cfe3ccd458767a6836ac59a67b6ebd1ef8ddc1 /main_view.qml
parent20fb359d2a487f425463f2efe2390c1d34e724d9 (diff)
New rendering (VoronoiSplat) -- incomplete.
* Added voronoi-like splatting to points: the same technique from Messias et al., (2014) * It is now possible to change the projection technique during runtime (possible, but still requires some work)
Diffstat (limited to 'main_view.qml')
-rw-r--r--main_view.qml88
1 files changed, 82 insertions, 6 deletions
diff --git a/main_view.qml b/main_view.qml
index 0cd29b5..62c3a67 100644
--- a/main_view.qml
+++ b/main_view.qml
@@ -6,10 +6,13 @@ import QtQuick.Layouts 1.2
import PM 1.0
ApplicationWindow {
+ id: mainWindow
title: "Projection Manipulation"
visible: true
- width: 900
- height: 600
+ minimumWidth: 900
+ minimumHeight: 600
+ maximumWidth: minimumWidth
+ maximumHeight: minimumHeight
menuBar: MenuBar {
Menu {
@@ -19,6 +22,26 @@ ApplicationWindow {
}
Menu {
+ title: "Technique"
+ MenuItem {
+ action: lampTechniqueAction
+ exclusiveGroup: techniqueGroup
+ }
+ MenuItem {
+ action: lspTechniqueAction
+ exclusiveGroup: techniqueGroup
+ }
+ MenuItem {
+ action: plmpTechniqueAction
+ exclusiveGroup: techniqueGroup
+ }
+ MenuItem {
+ action: pekalskaTechniqueAction
+ exclusiveGroup: techniqueGroup
+ }
+ }
+
+ Menu {
title: "View"
MenuItem {
action: labelColorAction
@@ -68,10 +91,18 @@ ApplicationWindow {
border.width: 1
border.color: "#cccccc"
+ VoronoiSplat {
+ id: splat
+ objectName: "splat"
+ width: 256
+ height: 256
+ }
+
Scatterplot {
id: plot
objectName: "plot"
anchors.fill: parent
+ visible: false
}
}
}
@@ -108,6 +139,51 @@ ApplicationWindow {
}
ExclusiveGroup {
+ id: techniqueGroup
+
+ Action {
+ id: lampTechniqueAction
+ text: "LAMP"
+ shortcut: "Ctrl+1"
+ checked: true
+ checkable: true
+ onTriggered: {
+ Main.setTechnique(InteractionHandler.TECHNIQUE_LAMP)
+ }
+ }
+
+ Action {
+ id: lspTechniqueAction
+ text: "LSP"
+ shortcut: "Ctrl+2"
+ checkable: true
+ onTriggered: {
+ Main.setTechnique(InteractionHandler.TECHNIQUE_LSP)
+ }
+ }
+
+ Action {
+ id: plmpTechniqueAction
+ text: "PLMP"
+ shortcut: "Ctrl+3"
+ checkable: true
+ onTriggered: {
+ Main.setTechnique(InteractionHandler.TECHNIQUE_PLMP)
+ }
+ }
+
+ Action {
+ id: pekalskaTechniqueAction
+ text: "Pekalska"
+ shortcut: "Ctrl+4"
+ checkable: true
+ onTriggered: {
+ Main.setTechnique(InteractionHandler.TECHNIQUE_PEKALSKA)
+ }
+ }
+ }
+
+ ExclusiveGroup {
id: coloringGroup
Action {
@@ -116,7 +192,7 @@ ApplicationWindow {
shortcut: "Shift+L"
checked: true
checkable: true
- onTriggered: console.log("Labels")
+ onTriggered: console.log("stub: Labels")
}
Action {
@@ -124,7 +200,7 @@ ApplicationWindow {
text: "Neighborhood Preservation"
shortcut: "Shift+N"
checkable: true
- onTriggered: console.log("NP")
+ onTriggered: console.log("stub: NP")
}
Action {
@@ -132,7 +208,7 @@ ApplicationWindow {
text: "Stress"
shortcut: "Shift+S"
checkable: true
- onTriggered: console.log("Stress")
+ onTriggered: console.log("stub: Stress")
}
Action {
@@ -140,7 +216,7 @@ ApplicationWindow {
text: "Silhouette"
shortcut: "Shift+T"
checkable: true
- onTriggered: console.log("Silhouette")
+ onTriggered: console.log("stub: Silhouette")
}
}
}