wolfhece.ui.wolf_array_ui
UI-related classes extracted from wolf_array.py.
Contains:
- Rebin_Ops: Enum for rebin/downsampling operations (no wx dependency)
- NewArray: wx.Dialog to create a new WolfArray
- CropDialog: wx.Dialog to crop a 2D array
- IntValidator: wx.Validator for integer-only text controls
Author: HECE - University of Liege, Pierre Archambeau
Date: 2024
Copyright (c) 2024 University of Liege. All rights reserved.
This script and its content are protected by copyright law. Unauthorized
copying or distribution of this file, via any medium, is strictly prohibited.
Module Contents
-
wolfhece.ui.wolf_array_ui._(s)[source]
-
class wolfhece.ui.wolf_array_ui.NewArray(parent, mapviewer=None)[source]
Bases: wx.Dialog
wx GUI interaction to create a new WolfArray
Once filled, user/__init__ must call “init_from_new”
-
_mapviewer = None[source]
-
m_staticText9[source]
-
dx[source]
-
m_staticText10[source]
-
dy[source]
-
m_staticText11[source]
-
nbx[source]
-
m_staticText12[source]
-
nby[source]
-
m_staticText13[source]
-
ox[source]
-
m_staticText14[source]
-
oy[source]
-
_sameas_button[source]
-
on_samezoom_parent(event)[source]
Fill the fields with the same values as the parent
-
on_sameas(event)[source]
Fill the fields with the same values as a file array
-
class wolfhece.ui.wolf_array_ui.CropDialog(parent, mapviewer=None)[source]
Bases: wx.Dialog
wx GUI interaction to crop 2D array’s data
Used in “read_data” of a WolfArray
-
_mapviewer = None[source]
-
m_staticText9[source]
-
dx[source]
-
m_staticText10[source]
-
dy[source]
-
m_staticText11[source]
-
ox[source]
-
m_staticText12[source]
-
oy[source]
-
m_staticText13[source]
-
ex[source]
-
m_staticText14[source]
-
ey[source]
-
sameas_button[source]
Return a header_wolf object with the values of the dialog
-
on_samezoom_parent(event)[source]
Fill the fields with the same values as the parent
-
on_sameas(event)[source]
Fill the fields with the same values as a file array
-
get_crop()[source]
Return the crop values
-
class wolfhece.ui.wolf_array_ui.IntValidator[source]
Bases: wx.Validator
Validates data as it is entered into the text controls.
-
Clone()[source]
Required Validator method
-
Validate(win)[source]
-
TransferToWindow()[source]
-
TransferFromWindow()[source]
-
OnChar(event)[source]