wolfhece 2.1.114__py3-none-any.whl → 2.1.116__py3-none-any.whl
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.
- wolfhece/PyConfig.py +29 -2
- wolfhece/PyDraw.py +814 -470
- wolfhece/PyGui.py +14 -4
- wolfhece/PyPalette.py +22 -3
- wolfhece/PyVertexvectors.py +235 -141
- wolfhece/Results2DGPU.py +38 -5
- wolfhece/apps/version.py +1 -1
- wolfhece/pybridges.py +81 -24
- wolfhece/scenario/config_manager.py +7 -0
- wolfhece/wolf_array.py +69 -2
- {wolfhece-2.1.114.dist-info → wolfhece-2.1.116.dist-info}/METADATA +1 -1
- {wolfhece-2.1.114.dist-info → wolfhece-2.1.116.dist-info}/RECORD +15 -15
- {wolfhece-2.1.114.dist-info → wolfhece-2.1.116.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.114.dist-info → wolfhece-2.1.116.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.114.dist-info → wolfhece-2.1.116.dist-info}/top_level.txt +0 -0
wolfhece/PyConfig.py
CHANGED
@@ -26,6 +26,8 @@ class ConfigurationKeys(Enum):
|
|
26
26
|
PLAY_WELCOME_SOUND = "PlayWelcomeSound"
|
27
27
|
TICKS_SIZE = "TicksSize"
|
28
28
|
TICKS_BOUNDS = "TicksBounds"
|
29
|
+
TICKS_XROTATION = "TicksXRotation"
|
30
|
+
TICKS_FONTSIZE = "TicksFontSize"
|
29
31
|
COLOR_BACKGROUND = "ColorBackground"
|
30
32
|
ACTIVE_ARRAY_PALETTE_FOR_IMAGE = "Use active array palette for image"
|
31
33
|
ACTIVE_RES2D_PALETTE_FOR_IMAGE = "Use active result palette for image"
|
@@ -72,7 +74,10 @@ class WolfConfiguration:
|
|
72
74
|
ConfigurationKeys.ACTIVE_RES2D_PALETTE_FOR_IMAGE.value: False,
|
73
75
|
ConfigurationKeys.TICKS_BOUNDS.value: True,
|
74
76
|
ConfigurationKeys.COLOR_BACKGROUND.value: [255, 255, 255, 255],
|
75
|
-
ConfigurationKeys.ASSEMBLY_IMAGES.value: 0
|
77
|
+
ConfigurationKeys.ASSEMBLY_IMAGES.value: 0,
|
78
|
+
ConfigurationKeys.TICKS_XROTATION.value: 30.,
|
79
|
+
ConfigurationKeys.TICKS_FONTSIZE.value: 12
|
80
|
+
|
76
81
|
}
|
77
82
|
self._types = {
|
78
83
|
ConfigurationKeys.VERSION.value: int,
|
@@ -82,7 +87,9 @@ class WolfConfiguration:
|
|
82
87
|
ConfigurationKeys.ACTIVE_RES2D_PALETTE_FOR_IMAGE.value: bool,
|
83
88
|
ConfigurationKeys.TICKS_BOUNDS.value: bool,
|
84
89
|
ConfigurationKeys.COLOR_BACKGROUND.value: list,
|
85
|
-
ConfigurationKeys.ASSEMBLY_IMAGES.value: int
|
90
|
+
ConfigurationKeys.ASSEMBLY_IMAGES.value: int,
|
91
|
+
ConfigurationKeys.TICKS_XROTATION.value: float,
|
92
|
+
ConfigurationKeys.TICKS_FONTSIZE.value: int
|
86
93
|
}
|
87
94
|
|
88
95
|
self._check_config()
|
@@ -140,6 +147,8 @@ class GlobalOptionsDialog(wx.Dialog):
|
|
140
147
|
self.cfg_active_array_pal.SetValue(configuration[ConfigurationKeys.ACTIVE_ARRAY_PALETTE_FOR_IMAGE])
|
141
148
|
self.cfg_active_res_pal.SetValue(configuration[ConfigurationKeys.ACTIVE_RES2D_PALETTE_FOR_IMAGE])
|
142
149
|
self.cfg_assembly_images.SetSelection(configuration[ConfigurationKeys.ASSEMBLY_IMAGES])
|
150
|
+
self.cfg_ticks_xrotation.SetValue(str(configuration[ConfigurationKeys.TICKS_XROTATION]))
|
151
|
+
self.cfg_ticks_fontsize.SetValue(str(configuration[ConfigurationKeys.TICKS_FONTSIZE]))
|
143
152
|
|
144
153
|
def pull_configuration(self, configuration):
|
145
154
|
configuration[ConfigurationKeys.PLAY_WELCOME_SOUND] = self.cfg_welcome_voice.IsChecked()
|
@@ -149,6 +158,8 @@ class GlobalOptionsDialog(wx.Dialog):
|
|
149
158
|
configuration[ConfigurationKeys.ACTIVE_ARRAY_PALETTE_FOR_IMAGE] = self.cfg_active_array_pal.IsChecked()
|
150
159
|
configuration[ConfigurationKeys.ACTIVE_RES2D_PALETTE_FOR_IMAGE] = self.cfg_active_res_pal.IsChecked()
|
151
160
|
configuration[ConfigurationKeys.ASSEMBLY_IMAGES] = self.cfg_assembly_images.GetSelection()
|
161
|
+
configuration[ConfigurationKeys.TICKS_XROTATION] = float(self.cfg_ticks_xrotation.Value)
|
162
|
+
configuration[ConfigurationKeys.TICKS_FONTSIZE] = int(self.cfg_ticks_fontsize.Value)
|
152
163
|
|
153
164
|
def InitUI(self):
|
154
165
|
|
@@ -193,10 +204,26 @@ class GlobalOptionsDialog(wx.Dialog):
|
|
193
204
|
self.label_ticks_size = wx.StaticText(pnl, label=_('Default ticks size [m]'))
|
194
205
|
self.cfg_ticks_size = wx.TextCtrl(pnl, value='500.',style = wx.TE_CENTRE )
|
195
206
|
|
207
|
+
self.label_ticks_xrotation = wx.StaticText(pnl, label=_('X rotation of ticks [°]'))
|
208
|
+
self.cfg_ticks_xrotation = wx.TextCtrl(pnl, value='30.',style = wx.TE_CENTRE )
|
209
|
+
|
210
|
+
self.label_ticks_fontsize = wx.StaticText(pnl, label=_('Font size of ticks'))
|
211
|
+
self.cfg_ticks_fontsize = wx.TextCtrl(pnl, value='12',style = wx.TE_CENTRE )
|
212
|
+
|
196
213
|
hboxticks.Add(self.label_ticks_size, 1, wx.EXPAND)
|
197
214
|
hboxticks.Add(self.cfg_ticks_size, 1, wx.EXPAND, 5)
|
198
215
|
sbs.Add(hboxticks, 1, wx.EXPAND,5)
|
199
216
|
|
217
|
+
hboxticksxrotation = wx.BoxSizer(wx.HORIZONTAL)
|
218
|
+
hboxticksxrotation.Add(self.label_ticks_xrotation, 1, wx.EXPAND)
|
219
|
+
hboxticksxrotation.Add(self.cfg_ticks_xrotation, 1, wx.EXPAND, 5)
|
220
|
+
sbs.Add(hboxticksxrotation, 1, wx.EXPAND,5)
|
221
|
+
|
222
|
+
hboxticksfontsize = wx.BoxSizer(wx.HORIZONTAL)
|
223
|
+
hboxticksfontsize.Add(self.label_ticks_fontsize, 1, wx.EXPAND)
|
224
|
+
hboxticksfontsize.Add(self.cfg_ticks_fontsize, 1, wx.EXPAND, 5)
|
225
|
+
sbs.Add(hboxticksfontsize, 1, wx.EXPAND,5)
|
226
|
+
|
200
227
|
self.cfg_ticks_bounds = wx.CheckBox(pnl, label=_('Add bounds to ticks'))
|
201
228
|
self.cfg_ticks_bounds.SetToolTip(_('If not checked, the extreme values of the ticks will not be displayed'))
|
202
229
|
sbs.Add(self.cfg_ticks_bounds, 1, wx.EXPAND, 5)
|