Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
28c50f2
Initialize PR
SpliiT Jan 27, 2026
256725b
new changes with min max
SpliiT Jan 28, 2026
17ad156
Centralize actions
SpliiT Jan 28, 2026
99983b7
edit colormap logic and save state of attribut
SpliiT Jan 29, 2026
b3f2127
rm useless imports
SpliiT Jan 29, 2026
65f0384
Merge branch 'next' into feat/color-bar
SpliiT Jan 29, 2026
490a35f
edit components
SpliiT Jan 29, 2026
fdb806f
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
SpliiT Jan 29, 2026
4fb4d63
Apply prepare changes
SpliiT Jan 29, 2026
8f5df62
fix logic and design
SpliiT Feb 2, 2026
5872876
reapply all styles after import project
SpliiT Feb 2, 2026
301c891
remove div
SpliiT Feb 2, 2026
cdeea09
fix comments
SpliiT Feb 2, 2026
331efa8
optimize attribute selectors and colormap logic
SpliiT Feb 2, 2026
16d5cec
Merge branch 'next' into feat/color-bar
SpliiT Feb 2, 2026
5118fad
Apply prepare changes
SpliiT Feb 2, 2026
96d92e6
less css more vuetify : adjustements style
SpliiT Feb 2, 2026
331ad8a
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
SpliiT Feb 2, 2026
c626465
fix error
SpliiT Feb 2, 2026
6502705
try to solve tets
SpliiT Feb 3, 2026
e21b1bf
Apply prepare changes
SpliiT Feb 3, 2026
6056023
fix comments
SpliiT Feb 3, 2026
d79ed29
Apply prepare changes
SpliiT Feb 3, 2026
4f361a7
reverse tests
SpliiT Feb 3, 2026
7995cfe
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/O…
SpliiT Feb 3, 2026
44a189e
Apply prepare changes
SpliiT Feb 3, 2026
ffa14bc
refactor: standardize mesh attribute handling with granular API funct…
SpliiT Feb 3, 2026
ace832a
Apply prepare changes
SpliiT Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand Down Expand Up @@ -94,6 +93,7 @@
v-model:color="color"
v-model:vertex_attribute="vertex_attribute"
v-model:edge_attribute="edge_attribute"
mesh-type="edges"
/>
</v-col>
</v-row>
Expand Down
2 changes: 1 addition & 1 deletion app/components/Viewer/Generic/Mesh/CellsOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand All @@ -77,6 +76,7 @@
v-model:textures="textures"
v-model:vertex_attribute="vertex_attribute"
v-model:cell_attribute="cell_attribute"
mesh-type="cells"
/>
</template>
</template>
Expand Down
3 changes: 2 additions & 1 deletion app/components/Viewer/Generic/Mesh/EdgesOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand Down Expand Up @@ -85,6 +84,8 @@
:id="id"
v-model:coloring_style_key="coloring_style_key"
v-model:color="color"
v-model:vertex_attribute="vertex_attribute"
mesh-type="edges"
/>
</v-col>
</v-row>
Expand Down
9 changes: 8 additions & 1 deletion app/components/Viewer/Generic/Mesh/PointsOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@
hybridViewerStore.remoteRender()
},
})
const vertex_attribute = computed({
get: () => dataStyleStore.meshPointsVertexAttribute(id.value),
set: (newValue) => {
dataStyleStore.setMeshPointsVertexAttribute(id.value, newValue)
hybridViewerStore.remoteRender()
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand Down Expand Up @@ -79,6 +85,7 @@
v-model:coloring_style_key="coloring_style_key"
v-model:color="color"
v-model:vertex_attribute="vertex_attribute"
mesh-type="points"
/>
</v-col>
</v-row>
Expand Down
18 changes: 17 additions & 1 deletion app/components/Viewer/Generic/Mesh/PolygonsOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,21 @@
hybridViewerStore.remoteRender()
},
})
const vertex_attribute = computed({
get: () => dataStyleStore.meshPolygonsVertexAttribute(id.value),
set: (newValue) => {
dataStyleStore.setMeshPolygonsVertexAttribute(id.value, newValue)
hybridViewerStore.remoteRender()
},
})
const polygon_attribute = computed({
get: () => dataStyleStore.meshPolygonsPolygonAttribute(id.value),
set: (newValue) => {
dataStyleStore.setMeshPolygonsPolygonAttribute(id.value, newValue)
hybridViewerStore.remoteRender()
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand All @@ -62,6 +75,9 @@
v-model:coloring_style_key="coloring_style_key"
v-model:color="color"
v-model:textures="textures"
v-model:vertex_attribute="vertex_attribute"
v-model:polygon_attribute="polygon_attribute"
mesh-type="polygons"
/>
</template>
</template>
Expand Down
18 changes: 17 additions & 1 deletion app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,21 @@
hybridViewerStore.remoteRender()
},
})
const vertex_attribute = computed({
get: () => dataStyleStore.meshPolyhedraVertexAttribute(id.value),
set: (newValue) => {
dataStyleStore.setMeshPolyhedraVertexAttribute(id.value, newValue)
hybridViewerStore.remoteRender()
},
})
const polyhedron_attribute = computed({
get: () => dataStyleStore.meshPolyhedraPolyhedronAttribute(id.value),
set: (newValue) => {
dataStyleStore.setMeshPolyhedraPolyhedronAttribute(id.value, newValue)
hybridViewerStore.remoteRender()
},
})
</script>

<template>
<ViewerContextMenuItem
:itemProps="props.itemProps"
Expand All @@ -53,6 +66,9 @@
:id="id"
v-model:coloring_style_key="coloring_style_key"
v-model:color="color"
v-model:vertex_attribute="vertex_attribute"
v-model:polyhedron_attribute="polyhedron_attribute"
mesh-type="polyhedra"
/>
</template>
</template>
Expand Down
83 changes: 83 additions & 0 deletions app/components/Viewer/Options/AttributeColorBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<script setup>
import ColorMapPicker from "./ColorMapPicker.vue"

const props = defineProps({
autoMin: { type: Number, default: 0 },
autoMax: { type: Number, default: 1 },
})

const minimum = defineModel("minimum", { type: Number })
const maximum = defineModel("maximum", { type: Number })
const colorMap = defineModel("colorMap", {
type: String,
default: "Cool to Warm",
})

const minValue = computed({
get: () => minimum.value ?? props.autoMin,
set: (val) => {
minimum.value = val
},
})

const maxValue = computed({
get: () => maximum.value ?? props.autoMax,
set: (val) => {
maximum.value = val
},
})

onMounted(() => {
if (minimum.value === undefined) minimum.value = props.autoMin
if (maximum.value === undefined) maximum.value = props.autoMax
})

function reset() {
minimum.value = props.autoMin
maximum.value = props.autoMax
}
</script>

<template>
<div class="attribute-colorbar mt-3">
<ColorMapPicker v-model="colorMap" :min="minValue" :max="maxValue" />

<v-row dense align="center" class="mt-2">
<v-col cols="5">
<v-text-field
v-model.number="minValue"
label="Min"
type="number"
density="compact"
hide-details
variant="outlined"
/>
</v-col>
<v-col cols="2" class="d-flex justify-center">
<v-btn
icon="mdi-arrow-left-right"
size="x-small"
variant="text"
@click="reset"
v-tooltip="'Reset range'"
/>
</v-col>
<v-col cols="5">
<v-text-field
v-model.number="maxValue"
label="Max"
type="number"
density="compact"
hide-details
variant="outlined"
/>
</v-col>
</v-row>
</div>
</template>

<style scoped>
.attribute-colorbar {
width: 100%;
}
</style>
Loading
Loading