wolfhece.ui.wolf_array_ui ========================= .. py:module:: wolfhece.ui.wolf_array_ui .. autoapi-nested-parse:: 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 --------------- .. py:function:: _(s) .. py:class:: NewArray(parent, mapviewer=None) Bases: :py:obj:`wx.Dialog` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_array_ui.NewArray :parts: 1 :private-bases: wx GUI interaction to create a new WolfArray Once filled, user/__init__ must call "init_from_new" .. py:attribute:: _mapviewer :value: None .. py:attribute:: m_staticText9 .. py:attribute:: dx .. py:attribute:: m_staticText10 .. py:attribute:: dy .. py:attribute:: m_staticText11 .. py:attribute:: nbx .. py:attribute:: m_staticText12 .. py:attribute:: nby .. py:attribute:: m_staticText13 .. py:attribute:: ox .. py:attribute:: m_staticText14 .. py:attribute:: oy .. py:attribute:: _sameas_button .. py:method:: on_samezoom_parent(event) Fill the fields with the same values as the parent .. py:method:: on_sameas(event) Fill the fields with the same values as a file array .. py:class:: CropDialog(parent, mapviewer=None) Bases: :py:obj:`wx.Dialog` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_array_ui.CropDialog :parts: 1 :private-bases: wx GUI interaction to crop 2D array's data Used in "read_data" of a WolfArray .. py:attribute:: _mapviewer :value: None .. py:attribute:: m_staticText9 .. py:attribute:: dx .. py:attribute:: m_staticText10 .. py:attribute:: dy .. py:attribute:: m_staticText11 .. py:attribute:: ox .. py:attribute:: m_staticText12 .. py:attribute:: oy .. py:attribute:: m_staticText13 .. py:attribute:: ex .. py:attribute:: m_staticText14 .. py:attribute:: ey .. py:attribute:: sameas_button .. py:method:: get_header() Return a header_wolf object with the values of the dialog .. py:method:: on_samezoom_parent(event) Fill the fields with the same values as the parent .. py:method:: on_sameas(event) Fill the fields with the same values as a file array .. py:method:: get_crop() Return the crop values .. py:class:: IntValidator Bases: :py:obj:`wx.Validator` .. autoapi-inheritance-diagram:: wolfhece.ui.wolf_array_ui.IntValidator :parts: 1 :private-bases: Validates data as it is entered into the text controls. .. py:method:: Clone() Required Validator method .. py:method:: Validate(win) .. py:method:: TransferToWindow() .. py:method:: TransferFromWindow() .. py:method:: OnChar(event)