Skip to content

Commit 8f59dac

Browse files
Merge branch 'feat/color-bar' of https://github.com/Geode-solutions/OpenGeodeWeb-Viewer into feat/color-bar
2 parents 0c1272e + aeddd92 commit 8f59dac

32 files changed

Lines changed: 3296 additions & 3092 deletions

opengeodeweb_viewer_schemas.json

Lines changed: 179 additions & 465 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,19 @@ where = ["src"]
3535
"opengeodeweb_viewer.rpc.generic.schemas" = ["*.json"]
3636
"opengeodeweb_viewer.rpc.mesh.schemas" = ["*.json"]
3737
"opengeodeweb_viewer.rpc.mesh.points.schemas" = ["*.json"]
38+
"opengeodeweb_viewer.rpc.mesh.points.attribute.vertex.schemas" = ["*.json"]
3839
"opengeodeweb_viewer.rpc.mesh.edges.schemas" = ["*.json"]
40+
"opengeodeweb_viewer.rpc.mesh.edges.attribute.edge.schemas" = ["*.json"]
41+
"opengeodeweb_viewer.rpc.mesh.edges.attribute.vertex.schemas" = ["*.json"]
3942
"opengeodeweb_viewer.rpc.mesh.cells.schemas" = ["*.json"]
43+
"opengeodeweb_viewer.rpc.mesh.cells.attribute.cell.schemas" = ["*.json"]
44+
"opengeodeweb_viewer.rpc.mesh.cells.attribute.vertex.schemas" = ["*.json"]
4045
"opengeodeweb_viewer.rpc.mesh.polygons.schemas" = ["*.json"]
46+
"opengeodeweb_viewer.rpc.mesh.polygons.attribute.polygon.schemas" = ["*.json"]
47+
"opengeodeweb_viewer.rpc.mesh.polygons.attribute.vertex.schemas" = ["*.json"]
4148
"opengeodeweb_viewer.rpc.mesh.polyhedra.schemas" = ["*.json"]
49+
"opengeodeweb_viewer.rpc.mesh.polyhedra.attribute.polyhedron.schemas" = ["*.json"]
50+
"opengeodeweb_viewer.rpc.mesh.polyhedra.attribute.vertex.schemas" = ["*.json"]
4251
"opengeodeweb_viewer.rpc.model.schemas" = ["*.json"]
4352
"opengeodeweb_viewer.rpc.model.edges.schemas" = ["*.json"]
4453
"opengeodeweb_viewer.rpc.model.points.schemas" = ["*.json"]
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from .name import *
2-
from .color_map import *
31
from .scalar_range import *
42
from .name import *
53
from .color_map import *
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from .name import *
2-
from .color_map import *
31
from .scalar_range import *
42
from .name import *
53
from .color_map import *

src/opengeodeweb_viewer/rpc/mesh/cells/cells_protocols.py

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -43,65 +43,3 @@ def setMeshCellsColor(self, rpc_params: RpcParams) -> None:
4343
params = schemas.Color.from_dict(rpc_params)
4444
color = params.color
4545
self.SetColor(params.id, color.r, color.g, color.b)
46-
47-
@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["vertex_attribute"]["rpc"])
48-
def setMeshCellsVertexAttribute(self, rpc_params: RpcParams) -> None:
49-
validate_schema(
50-
rpc_params,
51-
self.mesh_cells_schemas_dict["vertex_attribute"],
52-
self.mesh_cells_prefix,
53-
)
54-
params = schemas.VertexAttribute.from_dict(rpc_params)
55-
self.displayAttributeOnVertices(params.id, params.name)
56-
57-
@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["cell_attribute"]["rpc"])
58-
def setMeshCellsCellAttribute(self, rpc_params: RpcParams) -> None:
59-
validate_schema(
60-
rpc_params,
61-
self.mesh_cells_schemas_dict["cell_attribute"],
62-
self.mesh_cells_prefix,
63-
)
64-
params = schemas.CellAttribute.from_dict(rpc_params)
65-
self.displayAttributeOnCells(params.id, params.name)
66-
67-
@exportRpc(
68-
mesh_cells_prefix + mesh_cells_schemas_dict["vertex_scalar_range"]["rpc"]
69-
)
70-
def setMeshCellsVertexScalarRange(self, rpc_params: RpcParams) -> None:
71-
validate_schema(
72-
rpc_params,
73-
self.mesh_cells_schemas_dict["vertex_scalar_range"],
74-
self.mesh_cells_prefix,
75-
)
76-
params = schemas.VertexScalarRange.from_dict(rpc_params)
77-
self.displayScalarRange(params.id, params.minimum, params.maximum)
78-
79-
@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["cell_scalar_range"]["rpc"])
80-
def setMeshCellsCellScalarRange(self, rpc_params: RpcParams) -> None:
81-
validate_schema(
82-
rpc_params,
83-
self.mesh_cells_schemas_dict["cell_scalar_range"],
84-
self.mesh_cells_prefix,
85-
)
86-
params = schemas.CellScalarRange.from_dict(rpc_params)
87-
self.displayScalarRange(params.id, params.minimum, params.maximum)
88-
89-
@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["vertex_color_map"]["rpc"])
90-
def setMeshCellsVertexColorMap(self, rpc_params: RpcParams) -> None:
91-
validate_schema(
92-
rpc_params,
93-
self.mesh_cells_schemas_dict["vertex_color_map"],
94-
self.mesh_cells_prefix,
95-
)
96-
params = schemas.VertexColorMap.from_dict(rpc_params)
97-
self.setupColorMap(params.id, params.points, params.minimum, params.maximum)
98-
99-
@exportRpc(mesh_cells_prefix + mesh_cells_schemas_dict["cell_color_map"]["rpc"])
100-
def setMeshCellsCellColorMap(self, rpc_params: RpcParams) -> None:
101-
validate_schema(
102-
rpc_params,
103-
self.mesh_cells_schemas_dict["cell_color_map"],
104-
self.mesh_cells_prefix,
105-
)
106-
params = schemas.CellColorMap.from_dict(rpc_params)
107-
self.setupColorMap(params.id, params.points, params.minimum, params.maximum)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
from .scalar_range import *
12
from .name import *
23
from .color_map import *
3-
from .scalar_range import *
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
from .scalar_range import *
12
from .name import *
23
from .color_map import *
3-
from .scalar_range import *
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .scalar_range import *
2-
from .color_map import *
32
from .name import *
3+
from .color_map import *
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
from .visibility import *
2-
from .vertex_scalar_range import *
3-
from .vertex_color_map import *
4-
from .vertex_attribute import *
5-
from .polygon_scalar_range import *
6-
from .polygon_color_map import *
7-
from .polygon_attribute import *
82
from .color import *
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .name import *
21
from .scalar_range import *
2+
from .name import *
33
from .color_map import *

0 commit comments

Comments
 (0)