Skip to content

Commit 8fc9cf1

Browse files
feat(geode_objects_dict) : is_saveable key
1 parent 655c934 commit 8fc9cf1

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/opengeodeweb_back/geode_objects.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def geode_objects_dict():
1313
"output_factory": og.BRepOutputFactory,
1414
"missing_files": og.check_brep_missing_files,
1515
"load": og.load_brep,
16+
"is_saveable": og.is_brep_saveable,
1617
"save": og.save_brep,
1718
"builder": og.BRepBuilder,
1819
"crs": {
@@ -32,6 +33,7 @@ def geode_objects_dict():
3233
"output_factory": og_gs.CrossSectionOutputFactory,
3334
"missing_files": og_gs.check_cross_section_missing_files,
3435
"load": og_gs.load_cross_section,
36+
"is_saveable": og.is_section_saveable,
3537
"save": og_gs.save_cross_section,
3638
"builder": og_gs.CrossSectionBuilder,
3739
"crs": {
@@ -50,6 +52,7 @@ def geode_objects_dict():
5052
"output_factory": og.EdgedCurveOutputFactory2D,
5153
"missing_files": og.check_edged_curve_missing_files2D,
5254
"load": og.load_edged_curve2D,
55+
"is_saveable": og.is_edged_curve_saveable2D,
5356
"save": og.save_edged_curve2D,
5457
"builder": og.EdgedCurveBuilder2D.create,
5558
"crs": {
@@ -68,6 +71,7 @@ def geode_objects_dict():
6871
"output_factory": og.EdgedCurveOutputFactory3D,
6972
"missing_files": og.check_edged_curve_missing_files3D,
7073
"load": og.load_edged_curve3D,
74+
"is_saveable": og.is_edged_curve_saveable3D,
7175
"save": og.save_edged_curve3D,
7276
"builder": og.EdgedCurveBuilder3D.create,
7377
"crs": {
@@ -86,6 +90,7 @@ def geode_objects_dict():
8690
"output_factory": og.GraphOutputFactory,
8791
"missing_files": og.check_graph_missing_files,
8892
"load": og.load_graph,
93+
"is_saveable": og.is_graph_saveable,
8994
"save": og.save_graph,
9095
"builder": og.GraphBuilder.create,
9196
"is_model": False,
@@ -97,6 +102,7 @@ def geode_objects_dict():
97102
"output_factory": og.HybridSolidOutputFactory3D,
98103
"missing_files": og.check_hybrid_solid_missing_files3D,
99104
"load": og.load_hybrid_solid3D,
105+
"is_saveable": og.is_hybrid_solid_saveable3D,
100106
"save": og.save_hybrid_solid3D,
101107
"builder": og.HybridSolidBuilder3D.create,
102108
"crs": {
@@ -115,6 +121,7 @@ def geode_objects_dict():
115121
"output_factory": og.PointSetOutputFactory2D,
116122
"missing_files": og.check_point_set_missing_files2D,
117123
"load": og.load_point_set2D,
124+
"is_saveable": og.is_point_set_saveable2D,
118125
"save": og.save_point_set2D,
119126
"builder": og.PointSetBuilder2D.create,
120127
"crs": {
@@ -133,6 +140,7 @@ def geode_objects_dict():
133140
"output_factory": og.PointSetOutputFactory3D,
134141
"missing_files": og.check_point_set_missing_files3D,
135142
"load": og.load_point_set3D,
143+
"is_saveable": og.is_point_set_saveable3D,
136144
"save": og.save_point_set3D,
137145
"builder": og.PointSetBuilder3D.create,
138146
"crs": {
@@ -151,6 +159,7 @@ def geode_objects_dict():
151159
"output_factory": og.PolygonalSurfaceOutputFactory2D,
152160
"missing_files": og.check_polygonal_surface_missing_files2D,
153161
"load": og.load_polygonal_surface2D,
162+
"is_saveable": og.is_polygonal_surface_saveable2D,
154163
"save": og.save_polygonal_surface2D,
155164
"builder": og.PolygonalSurfaceBuilder2D.create,
156165
"crs": {
@@ -169,6 +178,7 @@ def geode_objects_dict():
169178
"output_factory": og.PolygonalSurfaceOutputFactory3D,
170179
"missing_files": og.check_polygonal_surface_missing_files3D,
171180
"load": og.load_polygonal_surface3D,
181+
"is_saveable": og.is_polygonal_surface_saveable3D,
172182
"save": og.save_polygonal_surface3D,
173183
"builder": og.PolygonalSurfaceBuilder3D.create,
174184
"crs": {
@@ -187,6 +197,7 @@ def geode_objects_dict():
187197
"output_factory": og.PolyhedralSolidOutputFactory3D,
188198
"missing_files": og.check_polyhedral_solid_missing_files3D,
189199
"load": og.load_polyhedral_solid3D,
200+
"is_saveable": og.is_polyhedral_solid_saveable3D,
190201
"save": og.save_polyhedral_solid3D,
191202
"builder": og.PolyhedralSolidBuilder3D.create,
192203
"crs": {
@@ -205,6 +216,7 @@ def geode_objects_dict():
205216
"output_factory": og.RasterImageOutputFactory2D,
206217
"missing_files": og.check_raster_image_missing_files2D,
207218
"load": og.load_raster_image2D,
219+
"is_saveable": og.is_raster_image_saveable2D,
208220
"save": og.save_raster_image2D,
209221
"is_model": False,
210222
"is_3D": False,
@@ -216,6 +228,7 @@ def geode_objects_dict():
216228
"output_factory": og.RasterImageOutputFactory3D,
217229
"missing_files": og.check_raster_image_missing_files3D,
218230
"load": og.load_raster_image3D,
231+
"is_saveable": og.is_raster_image_saveable3D,
219232
"save": og.save_raster_image3D,
220233
"is_model": False,
221234
"is_3D": False,
@@ -227,6 +240,7 @@ def geode_objects_dict():
227240
"output_factory": og.RegularGridOutputFactory2D,
228241
"missing_files": og.check_regular_grid_missing_files2D,
229242
"load": og.load_regular_grid2D,
243+
"is_saveable": og.is_regular_grid_saveable2D,
230244
"save": og.save_regular_grid2D,
231245
"builder": og.RegularGridBuilder2D.create,
232246
"crs": {
@@ -244,6 +258,7 @@ def geode_objects_dict():
244258
"output_factory": og.RegularGridOutputFactory3D,
245259
"missing_files": og.check_regular_grid_missing_files3D,
246260
"load": og.load_regular_grid3D,
261+
"is_saveable": og.is_regular_grid_saveable3D,
247262
"save": og.save_regular_grid3D,
248263
"builder": og.RegularGridBuilder3D.create,
249264
"crs": {
@@ -261,6 +276,7 @@ def geode_objects_dict():
261276
"output_factory": og.SectionOutputFactory,
262277
"missing_files": og.check_section_missing_files,
263278
"load": og.load_section,
279+
"is_saveable": og.is_section_saveable,
264280
"save": og.save_section,
265281
"builder": og.SectionBuilder,
266282
"crs": {
@@ -280,6 +296,7 @@ def geode_objects_dict():
280296
"output_factory": og_gs.StructuralModelOutputFactory,
281297
"missing_files": og_gs.check_structural_model_missing_files,
282298
"load": og_gs.load_structural_model,
299+
"is_saveable": og_gs.is_structural_model_saveable,
283300
"save": og_gs.save_structural_model,
284301
"builder": og_gs.StructuralModelBuilder,
285302
"crs": {
@@ -296,8 +313,9 @@ def geode_objects_dict():
296313
"TetrahedralSolid3D": {
297314
"input_factory": og.TetrahedralSolidInputFactory3D,
298315
"output_factory": og.TetrahedralSolidOutputFactory3D,
299-
"load": og.load_tetrahedral_solid3D,
300316
"missing_files": og.check_tetrahedral_solid_missing_files3D,
317+
"load": og.load_tetrahedral_solid3D,
318+
"is_saveable": og_gs.is_tetrahedral_solid_saveable3D,
301319
"save": og.save_tetrahedral_solid3D,
302320
"builder": og.TetrahedralSolidBuilder3D.create,
303321
"crs": {
@@ -316,6 +334,7 @@ def geode_objects_dict():
316334
"output_factory": og.TriangulatedSurfaceOutputFactory2D,
317335
"missing_files": og.check_triangulated_surface_missing_files2D,
318336
"load": og.load_triangulated_surface2D,
337+
"is_saveable": og.is_triangulated_surface_saveable2D,
319338
"save": og.save_triangulated_surface2D,
320339
"builder": og.TriangulatedSurfaceBuilder2D.create,
321340
"crs": {
@@ -334,6 +353,7 @@ def geode_objects_dict():
334353
"output_factory": og.TriangulatedSurfaceOutputFactory3D,
335354
"missing_files": og.check_triangulated_surface_missing_files3D,
336355
"load": og.load_triangulated_surface3D,
356+
"is_saveable": og_gs.is_triangulated_surface_saveable3D,
337357
"save": og.save_triangulated_surface3D,
338358
"builder": og.TriangulatedSurfaceBuilder3D.create,
339359
"crs": {
@@ -352,6 +372,7 @@ def geode_objects_dict():
352372
"output_factory": og.VertexSetOutputFactory,
353373
"missing_files": og.check_vertex_set_missing_files,
354374
"load": og.load_vertex_set,
375+
"is_saveable": og.is_vertex_set_saveable,
355376
"save": og.save_vertex_set,
356377
"builder": og.VertexSetBuilder.create,
357378
"is_model": False,

0 commit comments

Comments
 (0)