@geode/opengeodeweb-front 10.3.1 → 10.3.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +0 -2
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +0 -4
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +59 -0
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +31 -0
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +68 -0
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +71 -0
- package/app/components/Viewer/Options/AttributeColorBar.vue +2 -0
- package/app/components/Viewer/Options/AttributeSelector.vue +112 -0
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +31 -29
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +0 -2
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +0 -4
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +0 -4
- package/internal/stores/data_style/mesh/cells/cell.js +20 -34
- package/internal/stores/data_style/mesh/cells/vertex.js +20 -34
- package/internal/stores/data_style/mesh/edges/edge.js +84 -86
- package/internal/stores/data_style/mesh/edges/vertex.js +20 -34
- package/internal/stores/data_style/mesh/points/vertex.js +20 -34
- package/internal/stores/data_style/mesh/polygons/polygon.js +23 -38
- package/internal/stores/data_style/mesh/polygons/vertex.js +20 -34
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +19 -32
- package/internal/stores/data_style/mesh/polyhedra/vertex.js +20 -34
- package/package.json +3 -3
- package/tests/integration/microservices/viewer/requirements.txt +1 -1
- package/app/components/Viewer/Options/CellAttributeSelector.vue +0 -87
- package/app/components/Viewer/Options/EdgeAttributeSelector.vue +0 -84
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +0 -85
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +0 -91
- package/app/components/Viewer/Options/VertexAttributeSelector.vue +0 -84
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
get: () => dataStyleStore.meshEdgesVertexAttributeName(id.value),
|
|
49
49
|
set: async (newValue) => {
|
|
50
50
|
await dataStyleStore.setMeshEdgesVertexAttributeName(id.value, newValue)
|
|
51
|
-
await dataStyleStore.updateMeshEdgesVertexAttribute(id.value)
|
|
52
51
|
hybridViewerStore.remoteRender()
|
|
53
52
|
},
|
|
54
53
|
})
|
|
@@ -60,7 +59,6 @@
|
|
|
60
59
|
newValue[0],
|
|
61
60
|
newValue[1],
|
|
62
61
|
)
|
|
63
|
-
await dataStyleStore.updateMeshEdgesVertexAttribute(id.value)
|
|
64
62
|
hybridViewerStore.remoteRender()
|
|
65
63
|
},
|
|
66
64
|
})
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
get: () => dataStyleStore.meshCellsVertexAttributeName(id.value),
|
|
50
50
|
set: async (newValue) => {
|
|
51
51
|
await dataStyleStore.setMeshCellsVertexAttributeName(id.value, newValue)
|
|
52
|
-
await dataStyleStore.updateMeshCellsVertexAttribute(id.value)
|
|
53
52
|
hybridViewerStore.remoteRender()
|
|
54
53
|
},
|
|
55
54
|
})
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
newValue[0],
|
|
62
61
|
newValue[1],
|
|
63
62
|
)
|
|
64
|
-
await dataStyleStore.updateMeshCellsVertexAttribute(id.value)
|
|
65
63
|
hybridViewerStore.remoteRender()
|
|
66
64
|
},
|
|
67
65
|
})
|
|
@@ -79,7 +77,6 @@
|
|
|
79
77
|
get: () => dataStyleStore.meshCellsCellAttributeName(id.value),
|
|
80
78
|
set: async (newValue) => {
|
|
81
79
|
await dataStyleStore.setMeshCellsCellAttributeName(id.value, newValue)
|
|
82
|
-
await dataStyleStore.updateMeshCellsCellAttribute(id.value)
|
|
83
80
|
hybridViewerStore.remoteRender()
|
|
84
81
|
},
|
|
85
82
|
})
|
|
@@ -91,7 +88,6 @@
|
|
|
91
88
|
newValue[0],
|
|
92
89
|
newValue[1],
|
|
93
90
|
)
|
|
94
|
-
await dataStyleStore.updateMeshCellsCellAttribute(id.value)
|
|
95
91
|
hybridViewerStore.remoteRender()
|
|
96
92
|
},
|
|
97
93
|
})
|
|
@@ -44,6 +44,59 @@
|
|
|
44
44
|
hybridViewerStore.remoteRender()
|
|
45
45
|
},
|
|
46
46
|
})
|
|
47
|
+
const vertex_attribute_name = computed({
|
|
48
|
+
get: () => dataStyleStore.meshEdgesVertexAttributeName(id.value),
|
|
49
|
+
set: async (newValue) => {
|
|
50
|
+
await dataStyleStore.setMeshEdgesVertexAttributeName(id.value, newValue)
|
|
51
|
+
hybridViewerStore.remoteRender()
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
const vertex_attribute_range = computed({
|
|
55
|
+
get: () => dataStyleStore.meshEdgesVertexAttributeRange(id.value),
|
|
56
|
+
set: async (newValue) => {
|
|
57
|
+
await dataStyleStore.setMeshEdgesVertexAttributeRange(
|
|
58
|
+
id.value,
|
|
59
|
+
newValue[0],
|
|
60
|
+
newValue[1],
|
|
61
|
+
)
|
|
62
|
+
hybridViewerStore.remoteRender()
|
|
63
|
+
},
|
|
64
|
+
})
|
|
65
|
+
const vertex_attribute_color_map = computed({
|
|
66
|
+
get: () => dataStyleStore.meshEdgesVertexAttributeColorMap(id.value),
|
|
67
|
+
set: async (newValue) => {
|
|
68
|
+
await dataStyleStore.setMeshEdgesVertexAttributeColorMap(
|
|
69
|
+
id.value,
|
|
70
|
+
newValue,
|
|
71
|
+
)
|
|
72
|
+
hybridViewerStore.remoteRender()
|
|
73
|
+
},
|
|
74
|
+
})
|
|
75
|
+
const edge_attribute_name = computed({
|
|
76
|
+
get: () => dataStyleStore.meshEdgesEdgeAttributeName(id.value),
|
|
77
|
+
set: async (newValue) => {
|
|
78
|
+
await dataStyleStore.setMeshEdgesEdgeAttributeName(id.value, newValue)
|
|
79
|
+
hybridViewerStore.remoteRender()
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
const edge_attribute_range = computed({
|
|
83
|
+
get: () => dataStyleStore.meshEdgesEdgeAttributeRange(id.value),
|
|
84
|
+
set: async (newValue) => {
|
|
85
|
+
await dataStyleStore.setMeshEdgesEdgeAttributeRange(
|
|
86
|
+
id.value,
|
|
87
|
+
newValue[0],
|
|
88
|
+
newValue[1],
|
|
89
|
+
)
|
|
90
|
+
hybridViewerStore.remoteRender()
|
|
91
|
+
},
|
|
92
|
+
})
|
|
93
|
+
const edge_attribute_color_map = computed({
|
|
94
|
+
get: () => dataStyleStore.meshEdgesEdgeAttributeColorMap(id.value),
|
|
95
|
+
set: async (newValue) => {
|
|
96
|
+
await dataStyleStore.setMeshEdgesEdgeAttributeColorMap(id.value, newValue)
|
|
97
|
+
hybridViewerStore.remoteRender()
|
|
98
|
+
},
|
|
99
|
+
})
|
|
47
100
|
</script>
|
|
48
101
|
|
|
49
102
|
<template>
|
|
@@ -78,6 +131,12 @@
|
|
|
78
131
|
:id="id"
|
|
79
132
|
v-model:coloring_style_key="coloring_style_key"
|
|
80
133
|
v-model:color="color"
|
|
134
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
135
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
136
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
137
|
+
v-model:edge_attribute_name="edge_attribute_name"
|
|
138
|
+
v-model:edge_attribute_range="edge_attribute_range"
|
|
139
|
+
v-model:edge_attribute_color_map="edge_attribute_color_map"
|
|
81
140
|
/>
|
|
82
141
|
</v-col>
|
|
83
142
|
</v-row>
|
|
@@ -44,6 +44,34 @@
|
|
|
44
44
|
hybridViewerStore.remoteRender()
|
|
45
45
|
},
|
|
46
46
|
})
|
|
47
|
+
const vertex_attribute_name = computed({
|
|
48
|
+
get: () => dataStyleStore.meshPointsVertexAttributeName(id.value),
|
|
49
|
+
set: async (newValue) => {
|
|
50
|
+
await dataStyleStore.setMeshPointsVertexAttributeName(id.value, newValue)
|
|
51
|
+
hybridViewerStore.remoteRender()
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
const vertex_attribute_range = computed({
|
|
55
|
+
get: () => dataStyleStore.meshPointsVertexAttributeRange(id.value),
|
|
56
|
+
set: async (newValue) => {
|
|
57
|
+
await dataStyleStore.setMeshPointsVertexAttributeRange(
|
|
58
|
+
id.value,
|
|
59
|
+
newValue[0],
|
|
60
|
+
newValue[1],
|
|
61
|
+
)
|
|
62
|
+
hybridViewerStore.remoteRender()
|
|
63
|
+
},
|
|
64
|
+
})
|
|
65
|
+
const vertex_attribute_color_map = computed({
|
|
66
|
+
get: () => dataStyleStore.meshPointsVertexAttributeColorMap(id.value),
|
|
67
|
+
set: async (newValue) => {
|
|
68
|
+
await dataStyleStore.setMeshPointsVertexAttributeColorMap(
|
|
69
|
+
id.value,
|
|
70
|
+
newValue,
|
|
71
|
+
)
|
|
72
|
+
hybridViewerStore.remoteRender()
|
|
73
|
+
},
|
|
74
|
+
})
|
|
47
75
|
</script>
|
|
48
76
|
|
|
49
77
|
<template>
|
|
@@ -78,6 +106,9 @@
|
|
|
78
106
|
:id="id"
|
|
79
107
|
v-model:coloring_style_key="coloring_style_key"
|
|
80
108
|
v-model:color="color"
|
|
109
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
110
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
111
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
81
112
|
/>
|
|
82
113
|
</v-col>
|
|
83
114
|
</v-row>
|
|
@@ -45,6 +45,68 @@
|
|
|
45
45
|
hybridViewerStore.remoteRender()
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
|
+
const vertex_attribute_name = computed({
|
|
49
|
+
get: () => dataStyleStore.meshPolygonsVertexAttributeName(id.value),
|
|
50
|
+
set: async (newValue) => {
|
|
51
|
+
await dataStyleStore.setMeshPolygonsVertexAttributeName(
|
|
52
|
+
id.value,
|
|
53
|
+
newValue,
|
|
54
|
+
)
|
|
55
|
+
hybridViewerStore.remoteRender()
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
const vertex_attribute_range = computed({
|
|
59
|
+
get: () => dataStyleStore.meshPolygonsVertexAttributeRange(id.value),
|
|
60
|
+
set: async (newValue) => {
|
|
61
|
+
await dataStyleStore.setMeshPolygonsVertexAttributeRange(
|
|
62
|
+
id.value,
|
|
63
|
+
newValue[0],
|
|
64
|
+
newValue[1],
|
|
65
|
+
)
|
|
66
|
+
hybridViewerStore.remoteRender()
|
|
67
|
+
},
|
|
68
|
+
})
|
|
69
|
+
const vertex_attribute_color_map = computed({
|
|
70
|
+
get: () => dataStyleStore.meshPolygonsVertexAttributeColorMap(id.value),
|
|
71
|
+
set: async (newValue) => {
|
|
72
|
+
await dataStyleStore.setMeshPolygonsVertexAttributeColorMap(
|
|
73
|
+
id.value,
|
|
74
|
+
newValue,
|
|
75
|
+
)
|
|
76
|
+
hybridViewerStore.remoteRender()
|
|
77
|
+
},
|
|
78
|
+
})
|
|
79
|
+
const polygon_attribute_name = computed({
|
|
80
|
+
get: () => dataStyleStore.meshPolygonsPolygonAttributeName(id.value),
|
|
81
|
+
set: async (newValue) => {
|
|
82
|
+
await dataStyleStore.setMeshPolygonsPolygonAttributeName(
|
|
83
|
+
id.value,
|
|
84
|
+
newValue,
|
|
85
|
+
)
|
|
86
|
+
hybridViewerStore.remoteRender()
|
|
87
|
+
},
|
|
88
|
+
})
|
|
89
|
+
const polygon_attribute_range = computed({
|
|
90
|
+
get: () => dataStyleStore.meshPolygonsPolygonAttributeRange(id.value),
|
|
91
|
+
set: async (newValue) => {
|
|
92
|
+
await dataStyleStore.setMeshPolygonsPolygonAttributeRange(
|
|
93
|
+
id.value,
|
|
94
|
+
newValue[0],
|
|
95
|
+
newValue[1],
|
|
96
|
+
)
|
|
97
|
+
hybridViewerStore.remoteRender()
|
|
98
|
+
},
|
|
99
|
+
})
|
|
100
|
+
const polygon_attribute_color_map = computed({
|
|
101
|
+
get: () => dataStyleStore.meshPolygonsPolygonAttributeColorMap(id.value),
|
|
102
|
+
set: async (newValue) => {
|
|
103
|
+
await dataStyleStore.setMeshPolygonsPolygonAttributeColorMap(
|
|
104
|
+
id.value,
|
|
105
|
+
newValue,
|
|
106
|
+
)
|
|
107
|
+
hybridViewerStore.remoteRender()
|
|
108
|
+
},
|
|
109
|
+
})
|
|
48
110
|
</script>
|
|
49
111
|
|
|
50
112
|
<template>
|
|
@@ -61,6 +123,12 @@
|
|
|
61
123
|
v-model:coloring_style_key="coloring_style_key"
|
|
62
124
|
v-model:color="color"
|
|
63
125
|
v-model:textures="textures"
|
|
126
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
127
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
128
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
129
|
+
v-model:polygon_attribute_name="polygon_attribute_name"
|
|
130
|
+
v-model:polygon_attribute_range="polygon_attribute_range"
|
|
131
|
+
v-model:polygon_attribute_color_map="polygon_attribute_color_map"
|
|
64
132
|
/>
|
|
65
133
|
</template>
|
|
66
134
|
</template>
|
|
@@ -38,6 +38,69 @@
|
|
|
38
38
|
hybridViewerStore.remoteRender()
|
|
39
39
|
},
|
|
40
40
|
})
|
|
41
|
+
const vertex_attribute_name = computed({
|
|
42
|
+
get: () => dataStyleStore.meshPolyhedraVertexAttributeName(id.value),
|
|
43
|
+
set: async (newValue) => {
|
|
44
|
+
await dataStyleStore.setMeshPolyhedraVertexAttributeName(
|
|
45
|
+
id.value,
|
|
46
|
+
newValue,
|
|
47
|
+
)
|
|
48
|
+
hybridViewerStore.remoteRender()
|
|
49
|
+
},
|
|
50
|
+
})
|
|
51
|
+
const vertex_attribute_range = computed({
|
|
52
|
+
get: () => dataStyleStore.meshPolyhedraVertexAttributeRange(id.value),
|
|
53
|
+
set: async (newValue) => {
|
|
54
|
+
await dataStyleStore.setMeshPolyhedraVertexAttributeRange(
|
|
55
|
+
id.value,
|
|
56
|
+
newValue[0],
|
|
57
|
+
newValue[1],
|
|
58
|
+
)
|
|
59
|
+
hybridViewerStore.remoteRender()
|
|
60
|
+
},
|
|
61
|
+
})
|
|
62
|
+
const vertex_attribute_color_map = computed({
|
|
63
|
+
get: () => dataStyleStore.meshPolyhedraVertexAttributeColorMap(id.value),
|
|
64
|
+
set: async (newValue) => {
|
|
65
|
+
await dataStyleStore.setMeshPolyhedraVertexAttributeColorMap(
|
|
66
|
+
id.value,
|
|
67
|
+
newValue,
|
|
68
|
+
)
|
|
69
|
+
hybridViewerStore.remoteRender()
|
|
70
|
+
},
|
|
71
|
+
})
|
|
72
|
+
const polyhedron_attribute_name = computed({
|
|
73
|
+
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeName(id.value),
|
|
74
|
+
set: async (newValue) => {
|
|
75
|
+
await dataStyleStore.setMeshPolyhedraPolyhedronAttributeName(
|
|
76
|
+
id.value,
|
|
77
|
+
newValue,
|
|
78
|
+
)
|
|
79
|
+
hybridViewerStore.remoteRender()
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
const polyhedron_attribute_range = computed({
|
|
83
|
+
get: () => dataStyleStore.meshPolyhedraPolyhedronAttributeRange(id.value),
|
|
84
|
+
set: async (newValue) => {
|
|
85
|
+
await dataStyleStore.setMeshPolyhedraPolyhedronAttributeRange(
|
|
86
|
+
id.value,
|
|
87
|
+
newValue[0],
|
|
88
|
+
newValue[1],
|
|
89
|
+
)
|
|
90
|
+
hybridViewerStore.remoteRender()
|
|
91
|
+
},
|
|
92
|
+
})
|
|
93
|
+
const polyhedron_attribute_color_map = computed({
|
|
94
|
+
get: () =>
|
|
95
|
+
dataStyleStore.meshPolyhedraPolyhedronAttributeColorMap(id.value),
|
|
96
|
+
set: async (newValue) => {
|
|
97
|
+
await dataStyleStore.setMeshPolyhedraPolyhedronAttributeColorMap(
|
|
98
|
+
id.value,
|
|
99
|
+
newValue,
|
|
100
|
+
)
|
|
101
|
+
hybridViewerStore.remoteRender()
|
|
102
|
+
},
|
|
103
|
+
})
|
|
41
104
|
</script>
|
|
42
105
|
|
|
43
106
|
<template>
|
|
@@ -53,6 +116,14 @@
|
|
|
53
116
|
:id="id"
|
|
54
117
|
v-model:coloring_style_key="coloring_style_key"
|
|
55
118
|
v-model:color="color"
|
|
119
|
+
v-model:vertex_attribute_name="vertex_attribute_name"
|
|
120
|
+
v-model:vertex_attribute_range="vertex_attribute_range"
|
|
121
|
+
v-model:vertex_attribute_color_map="vertex_attribute_color_map"
|
|
122
|
+
v-model:polyhedron_attribute_name="polyhedron_attribute_name"
|
|
123
|
+
v-model:polyhedron_attribute_range="polyhedron_attribute_range"
|
|
124
|
+
v-model:polyhedron_attribute_color_map="
|
|
125
|
+
polyhedron_attribute_color_map
|
|
126
|
+
"
|
|
56
127
|
/>
|
|
57
128
|
</template>
|
|
58
129
|
</template>
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
@update:model-value="(value) => (minimum = Number(value))"
|
|
23
23
|
label="Min"
|
|
24
24
|
type="number"
|
|
25
|
+
:max="maximum"
|
|
25
26
|
density="compact"
|
|
26
27
|
hide-details
|
|
27
28
|
variant="outlined"
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
@update:model-value="(value) => (maximum = Number(value))"
|
|
43
44
|
label="Max"
|
|
44
45
|
type="number"
|
|
46
|
+
:min="minimum"
|
|
45
47
|
density="compact"
|
|
46
48
|
hide-details
|
|
47
49
|
variant="outlined"
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar.vue"
|
|
3
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
4
|
+
|
|
5
|
+
const geodeStore = useGeodeStore()
|
|
6
|
+
|
|
7
|
+
const name = defineModel("name", { type: String })
|
|
8
|
+
const range = defineModel("range", { type: Array })
|
|
9
|
+
const colorMap = defineModel("colorMap", { type: String })
|
|
10
|
+
|
|
11
|
+
const { id, schema } = defineProps({
|
|
12
|
+
id: { type: String, required: true },
|
|
13
|
+
schema: { type: Object, required: true },
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const attributes = ref([])
|
|
17
|
+
|
|
18
|
+
const rangeMin = computed({
|
|
19
|
+
get: () => (range.value ? range.value[0] : undefined),
|
|
20
|
+
set: (val) => {
|
|
21
|
+
const currentMax = range.value ? range.value[1] : undefined
|
|
22
|
+
let newMin = val
|
|
23
|
+
if (currentMax !== undefined && val > currentMax) {
|
|
24
|
+
newMin = currentMax
|
|
25
|
+
}
|
|
26
|
+
range.value = [newMin, currentMax]
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
const rangeMax = computed({
|
|
30
|
+
get: () => (range.value ? range.value[1] : undefined),
|
|
31
|
+
set: (val) => {
|
|
32
|
+
const currentMin = range.value ? range.value[0] : undefined
|
|
33
|
+
let newMax = val
|
|
34
|
+
if (currentMin !== undefined && val < currentMin) {
|
|
35
|
+
newMax = currentMin
|
|
36
|
+
}
|
|
37
|
+
range.value = [currentMin, newMax]
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const currentAttribute = computed(() =>
|
|
42
|
+
attributes.value.find((attr) => attr.attribute_name === name.value),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
function resetRange() {
|
|
46
|
+
if (currentAttribute.value) {
|
|
47
|
+
range.value = [
|
|
48
|
+
currentAttribute.value.min_value,
|
|
49
|
+
currentAttribute.value.max_value,
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function getAttributes() {
|
|
55
|
+
geodeStore.request(
|
|
56
|
+
schema,
|
|
57
|
+
{ id },
|
|
58
|
+
{
|
|
59
|
+
response_function: (response) => {
|
|
60
|
+
attributes.value = response.attributes
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
onMounted(() => {
|
|
67
|
+
getAttributes()
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
watch(
|
|
71
|
+
() => [id, schema],
|
|
72
|
+
() => {
|
|
73
|
+
getAttributes()
|
|
74
|
+
},
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
watch(
|
|
78
|
+
() => [name.value, attributes.value],
|
|
79
|
+
() => {
|
|
80
|
+
if (
|
|
81
|
+
name.value &&
|
|
82
|
+
attributes.value.length > 0 &&
|
|
83
|
+
(range.value === undefined ||
|
|
84
|
+
range.value[0] === undefined ||
|
|
85
|
+
colorMap.value === undefined)
|
|
86
|
+
) {
|
|
87
|
+
resetRange()
|
|
88
|
+
if (colorMap.value === undefined) {
|
|
89
|
+
colorMap.value = "Cool to Warm"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
)
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<template>
|
|
97
|
+
<v-select
|
|
98
|
+
v-model="name"
|
|
99
|
+
:items="attributes.map((attribute) => attribute.attribute_name)"
|
|
100
|
+
item-title="attribute_name"
|
|
101
|
+
item-value="attribute_name"
|
|
102
|
+
density="compact"
|
|
103
|
+
label="Select an attribute"
|
|
104
|
+
/>
|
|
105
|
+
<ViewerOptionsAttributeColorBar
|
|
106
|
+
v-if="name"
|
|
107
|
+
v-model:minimum="rangeMin"
|
|
108
|
+
v-model:maximum="rangeMax"
|
|
109
|
+
v-model:colorMap="colorMap"
|
|
110
|
+
@reset="resetRange"
|
|
111
|
+
/>
|
|
112
|
+
</template>
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import
|
|
3
|
-
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker"
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import ViewerOptionsPolyhedronAttributeSelector from "@ogw_front/components/Viewer/Options/PolyhedronAttributeSelector"
|
|
7
|
-
import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector"
|
|
8
|
-
import ViewerOptionsVertexAttributeSelector from "@ogw_front/components/Viewer/Options/VertexAttributeSelector"
|
|
2
|
+
import ViewerOptionsAttributeSelector from "@ogw_front/components/Viewer/Options/AttributeSelector.vue"
|
|
3
|
+
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker.vue"
|
|
4
|
+
import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector.vue"
|
|
5
|
+
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
9
6
|
|
|
10
7
|
const coloring_style_key = defineModel("coloring_style_key")
|
|
11
8
|
|
|
@@ -132,45 +129,50 @@
|
|
|
132
129
|
<ViewerOptionsTexturesSelector v-model="textures" :id="id" />
|
|
133
130
|
</template>
|
|
134
131
|
<template v-if="coloring_style_key === vertex_dict['value']">
|
|
135
|
-
<
|
|
136
|
-
v-model:
|
|
137
|
-
v-model:
|
|
138
|
-
v-model:
|
|
132
|
+
<ViewerOptionsAttributeSelector
|
|
133
|
+
v-model:name="vertex_attribute_name"
|
|
134
|
+
v-model:range="vertex_attribute_range"
|
|
135
|
+
v-model:colorMap="vertex_attribute_color_map"
|
|
139
136
|
:id="id"
|
|
137
|
+
:schema="back_schemas.opengeodeweb_back.vertex_attribute_names"
|
|
140
138
|
/>
|
|
141
139
|
</template>
|
|
142
140
|
<template v-if="coloring_style_key === edge_dict['value']">
|
|
143
|
-
<
|
|
144
|
-
v-model:
|
|
145
|
-
v-model:
|
|
146
|
-
v-model:
|
|
141
|
+
<ViewerOptionsAttributeSelector
|
|
142
|
+
v-model:name="edge_attribute_name"
|
|
143
|
+
v-model:range="edge_attribute_range"
|
|
144
|
+
v-model:colorMap="edge_attribute_color_map"
|
|
147
145
|
:id="id"
|
|
146
|
+
:schema="back_schemas.opengeodeweb_back.edge_attribute_names"
|
|
148
147
|
/>
|
|
149
148
|
</template>
|
|
150
149
|
<template v-if="coloring_style_key === cell_dict['value']">
|
|
151
|
-
<
|
|
152
|
-
v-model:
|
|
153
|
-
v-model:
|
|
154
|
-
v-model:
|
|
150
|
+
<ViewerOptionsAttributeSelector
|
|
151
|
+
v-model:name="cell_attribute_name"
|
|
152
|
+
v-model:range="cell_attribute_range"
|
|
153
|
+
v-model:colorMap="cell_attribute_color_map"
|
|
155
154
|
:id="id"
|
|
155
|
+
:schema="back_schemas.opengeodeweb_back.cell_attribute_names"
|
|
156
156
|
/>
|
|
157
157
|
</template>
|
|
158
158
|
<template v-if="coloring_style_key === polygon_dict['value']">
|
|
159
|
-
<
|
|
160
|
-
v-model:
|
|
161
|
-
v-model:
|
|
162
|
-
v-model:
|
|
159
|
+
<ViewerOptionsAttributeSelector
|
|
160
|
+
v-model:name="polygon_attribute_name"
|
|
161
|
+
v-model:range="polygon_attribute_range"
|
|
162
|
+
v-model:colorMap="polygon_attribute_color_map"
|
|
163
163
|
:id="id"
|
|
164
|
+
:schema="back_schemas.opengeodeweb_back.polygon_attribute_names"
|
|
164
165
|
/>
|
|
165
166
|
</template>
|
|
166
167
|
<template v-if="coloring_style_key === polyhedron_dict['value']">
|
|
167
|
-
<
|
|
168
|
-
v-model:
|
|
169
|
-
v-model:
|
|
170
|
-
v-model:
|
|
171
|
-
polyhedron_attribute_color_map
|
|
172
|
-
"
|
|
168
|
+
<ViewerOptionsAttributeSelector
|
|
169
|
+
v-model:name="polyhedron_attribute_name"
|
|
170
|
+
v-model:range="polyhedron_attribute_range"
|
|
171
|
+
v-model:colorMap="polyhedron_attribute_color_map"
|
|
173
172
|
:id="id"
|
|
173
|
+
:schema="
|
|
174
|
+
back_schemas.opengeodeweb_back.polyhedron_attribute_names
|
|
175
|
+
"
|
|
174
176
|
/>
|
|
175
177
|
</template>
|
|
176
178
|
</v-col>
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
get: () => dataStyleStore.meshPointsVertexAttributeName(id.value),
|
|
49
49
|
set: async (newValue) => {
|
|
50
50
|
await dataStyleStore.setMeshPointsVertexAttributeName(id.value, newValue)
|
|
51
|
-
await dataStyleStore.updateMeshPointsVertexAttribute(id.value)
|
|
52
51
|
hybridViewerStore.remoteRender()
|
|
53
52
|
},
|
|
54
53
|
})
|
|
@@ -60,7 +59,6 @@
|
|
|
60
59
|
newValue[0],
|
|
61
60
|
newValue[1],
|
|
62
61
|
)
|
|
63
|
-
await dataStyleStore.updateMeshPointsVertexAttribute(id.value)
|
|
64
62
|
hybridViewerStore.remoteRender()
|
|
65
63
|
},
|
|
66
64
|
})
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
id.value,
|
|
53
53
|
newValue,
|
|
54
54
|
)
|
|
55
|
-
await dataStyleStore.updateMeshPolygonsVertexAttribute(id.value)
|
|
56
55
|
hybridViewerStore.remoteRender()
|
|
57
56
|
},
|
|
58
57
|
})
|
|
@@ -64,7 +63,6 @@
|
|
|
64
63
|
newValue[0],
|
|
65
64
|
newValue[1],
|
|
66
65
|
)
|
|
67
|
-
await dataStyleStore.updateMeshPolygonsVertexAttribute(id.value)
|
|
68
66
|
hybridViewerStore.remoteRender()
|
|
69
67
|
},
|
|
70
68
|
})
|
|
@@ -85,7 +83,6 @@
|
|
|
85
83
|
id.value,
|
|
86
84
|
newValue,
|
|
87
85
|
)
|
|
88
|
-
await dataStyleStore.updateMeshPolygonsPolygonAttribute(id.value)
|
|
89
86
|
hybridViewerStore.remoteRender()
|
|
90
87
|
},
|
|
91
88
|
})
|
|
@@ -97,7 +94,6 @@
|
|
|
97
94
|
newValue[0],
|
|
98
95
|
newValue[1],
|
|
99
96
|
)
|
|
100
|
-
await dataStyleStore.updateMeshPolygonsPolygonAttribute(id.value)
|
|
101
97
|
hybridViewerStore.remoteRender()
|
|
102
98
|
},
|
|
103
99
|
})
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
id.value,
|
|
46
46
|
newValue,
|
|
47
47
|
)
|
|
48
|
-
await dataStyleStore.updateMeshPolyhedraVertexAttribute(id.value)
|
|
49
48
|
hybridViewerStore.remoteRender()
|
|
50
49
|
},
|
|
51
50
|
})
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
newValue[0],
|
|
58
57
|
newValue[1],
|
|
59
58
|
)
|
|
60
|
-
await dataStyleStore.updateMeshPolyhedraVertexAttribute(id.value)
|
|
61
59
|
hybridViewerStore.remoteRender()
|
|
62
60
|
},
|
|
63
61
|
})
|
|
@@ -78,7 +76,6 @@
|
|
|
78
76
|
id.value,
|
|
79
77
|
newValue,
|
|
80
78
|
)
|
|
81
|
-
await dataStyleStore.updateMeshPolyhedraPolyhedronAttribute(id.value)
|
|
82
79
|
hybridViewerStore.remoteRender()
|
|
83
80
|
},
|
|
84
81
|
})
|
|
@@ -90,7 +87,6 @@
|
|
|
90
87
|
newValue[0],
|
|
91
88
|
newValue[1],
|
|
92
89
|
)
|
|
93
|
-
await dataStyleStore.updateMeshPolyhedraPolyhedronAttribute(id.value)
|
|
94
90
|
hybridViewerStore.remoteRender()
|
|
95
91
|
},
|
|
96
92
|
})
|