Commit 754910f5 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Geometry: Meshing: Add lm options (no traduction).

Showing with 17 additions and 2 deletions
+17 -2
...@@ -51,9 +51,12 @@ class MeshingDialog(PamhyrDialog): ...@@ -51,9 +51,12 @@ class MeshingDialog(PamhyrDialog):
def _init_default_values(self): def _init_default_values(self):
self._space_step = 50.0 self._space_step = 50.0
self._lplan = False self._lplan = False
self._lm = "3"
self._linear = False self._linear = False
self._begin_cs = -1 self._begin_cs = -1
self._end_cs = -1 self._end_cs = -1
self._begin_dir = "un"
self._end_dir = "np"
self._init_default_values_profiles() self._init_default_values_profiles()
self._init_default_values_guidelines() self._init_default_values_guidelines()
...@@ -63,6 +66,11 @@ class MeshingDialog(PamhyrDialog): ...@@ -63,6 +66,11 @@ class MeshingDialog(PamhyrDialog):
self._space_step self._space_step
) )
self.combobox_add_items(
"comboBox_lm", ["1","2","3"]
)
self.set_combobox_text("comboBox_lm", self._lm)
if self._linear: if self._linear:
self.set_radio_button("radioButton_linear", True) self.set_radio_button("radioButton_linear", True)
else: else:
...@@ -109,8 +117,8 @@ class MeshingDialog(PamhyrDialog): ...@@ -109,8 +117,8 @@ class MeshingDialog(PamhyrDialog):
self.combobox_add_items("comboBox_begin_gl", bgl) self.combobox_add_items("comboBox_begin_gl", bgl)
self.combobox_add_items("comboBox_end_gl", egl) self.combobox_add_items("comboBox_end_gl", egl)
self.set_combobox_text("comboBox_begin_gl", bgl[0]) self.set_combobox_text("comboBox_begin_gl", self._begin_dir)
self.set_combobox_text("comboBox_end_gl", egl[-1]) self.set_combobox_text("comboBox_end_gl", self._end_dir)
@property @property
def space_step(self): def space_step(self):
...@@ -120,6 +128,10 @@ class MeshingDialog(PamhyrDialog): ...@@ -120,6 +128,10 @@ class MeshingDialog(PamhyrDialog):
def lplan(self): def lplan(self):
return self._lplan return self._lplan
@property
def lm(self):
return int(self._lm)
@property @property
def linear(self): def linear(self):
return self._linear return self._linear
...@@ -155,6 +167,8 @@ class MeshingDialog(PamhyrDialog): ...@@ -155,6 +167,8 @@ class MeshingDialog(PamhyrDialog):
self._begin_dir = self.get_combobox_text("comboBox_begin_gl") self._begin_dir = self.get_combobox_text("comboBox_begin_gl")
self._end_dir = self.get_combobox_text("comboBox_end_gl") self._end_dir = self.get_combobox_text("comboBox_end_gl")
self._lm = self.get_combobox_text("comboBox_lm")
super().accept() super().accept()
def reject(self): def reject(self):
......
...@@ -271,6 +271,7 @@ class GeometryWindow(PamhyrWindow): ...@@ -271,6 +271,7 @@ class GeometryWindow(PamhyrWindow):
"limites": [dlg.begin_cs, dlg.end_cs], "limites": [dlg.begin_cs, dlg.end_cs],
"directrices": [dlg.begin_dir, dlg.end_dir], "directrices": [dlg.begin_dir, dlg.end_dir],
"lplan": dlg.lplan, "lplan": dlg.lplan,
"lm": dlg.lm,
"linear": dlg.linear, "linear": dlg.linear,
} }
self._edit_meshing(data) self._edit_meshing(data)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment