wolfhece.ui.wolf_array_ops
UI-related class Ops_Array extracted from wolf_array.py.
Operations wx.Frame on WolfArray class – provides the GUI for selecting,
operating on, masking, interpolating, and visualizing WolfArray data.
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_ops._(s)[source]
-
class wolfhece.ui.wolf_array_ops.Ops_Array(parentarray: wolfhece.wolf_array.WolfArray, mapviewer=None)[source]
Bases: wx.Frame
Operations wx.Frame on WolfArray class
This class is used to perform operations on a WolfArray
-
parentarray: wolfhece.wolf_array.WolfArray[source]
-
mapviewer: wolfhece.PyDraw.WolfMapViewer[source]
-
wx_exists[source]
-
active_vector: wolfhece.PyVertexvectors.vector = None[source]
-
active_zone: wolfhece.PyVertexvectors.zone = None[source]
-
active_array: wolfhece.wolf_array.WolfArray[source]
-
myzones[source]
-
myzonetmp[source]
-
vectmp[source]
-
fnsave = ''[source]
-
_levels = [][source]
-
property usemask[source]
Return the usemask Value
-
property idx[source]
Return the idx of the parentarray
-
get_mapviewer()[source]
Retourne l’instance WolfMapViewer
-
get_linked_arrays()[source]
Pour compatibilité avec la gestion de vecteur et WolfMapViewer
-
set_GUI()[source]
Set the wx GUI
-
on_rendering_option_change(event)[source]
Update the rendering of the array when a rendering option is changed
-
update_rendering_machine(which=OGLRenderer)[source]
-
OnBlockSelect(event)[source]
Select block
-
interpolation2D(event: wx.MouseEvent)[source]
calling Interpolation 2D
-
Unmaskall(event: wx.MouseEvent)[source]
Unmask all values in the current array
@author Pierre Archambeau
-
Unmask_selection(event: wx.MouseEvent)[source]
Enlève le masque des éléments sélectionnés
@author Pierre Archambeau
-
InvertMask(event: wx.MouseEvent)[source]
Invert mask
-
Mask_inside_active_vector(event: wx.MouseEvent)[source]
Mask inside the active vector
-
Mask_inside_active_vector_wo_nodata(event: wx.MouseEvent)[source]
Mask inside the active vector without setting NoData
-
Mask_outside_active_vector(event: wx.MouseEvent)[source]
Mask outside the active vector
-
Mask_inside_active_zone(event: wx.MouseEvent)[source]
Mask inside the active zone
-
Mask_inside_active_zone_wo_nodata(event: wx.MouseEvent)[source]
Mask inside the active zone without setting NoData
-
Mask_outside_active_vector_wo_nodata(event: wx.MouseEvent)[source]
Mask outside the active vector without setting NoData
-
interp2Dpolygons(event: wx.MouseEvent)[source]
Bouton d’interpolation sous tous les polygones d’une zone
cf WolfArray.interp2Dpolygon
-
interp2Dpolygon(event: wx.MouseEvent)[source]
Bouton d’interpolation sous un polygone
cf WolfArray.interp2Dpolygon
-
interp2Dpolylines(event: wx.MouseEvent)[source]
Bouton d’interpolation sous toutes les polylignes de la zone
cf parent.interp2Dpolyline
-
interp2Dpolyline(event: wx.MouseEvent)[source]
Bouton d’interpolation sous la polyligne active
cf parent.interp2Dpolyline
-
volumesurface(event)[source]
Click on evaluation of stage-storage-surface relation
-
OnAllSelect(event)[source]
Select all –> just put “all” in “myselection”
-
OnReselectMemory(event)[source]
Reselect from memory
-
OnMoveSelect(event)[source]
Transfert de la sélection courante dans un dictionnaire
-
OnContractSelection(event)[source]
Contract selection
-
OnExpandSelection(event)[source]
Expand selection
-
OnExpandUnselectInterior(event)[source]
Expand contour
-
OnUnselectInterior(event)[source]
Contract contour
-
reset_selection()[source]
Reset of current selection
-
reset_all_selection()[source]
Reset of current selection and stored ones
-
OnResetSelect(event)[source]
Click on Reset of current selection
-
OnResetAllSelect(event)[source]
Click on reset all
-
OnSaveSelection(event)[source]
Save the current selection
-
OnLoadSelection(event)[source]
Load a selection
-
OnToClipboardStr(event)[source]
Copy the current selection to the clipboard as a string
-
OnApplyOpSelect(event)[source]
Select nodes based on condition
-
OnApplyNullvalue(event: wx.MouseEvent)[source]
Apply null value to the array
-
refresh_array()[source]
Force refresh of the parent array
-
OnNullBorder(event: wx.MouseEvent)[source]
Nullify the border of the array
-
OnFilterZone(event: wx.MouseEvent)[source]
Filter the array based on contiguous zones
-
OnClean(event: wx.MouseEvent)[source]
Clean the array – Remove the isolated cells
-
OnLabelling(event: wx.MouseEvent)[source]
Labelling of contiguous zones
-
OnStatistics(event: wx.MouseEvent)[source]
Statistics on the array
-
OnPlotStatistics(event: wx.MouseEvent)[source]
Plot statistics on the current zoom
-
OnPlotStatisticsZone(event: wx.MouseEvent)[source]
Plot statistics on the current zone
-
OnPlotStatisticsVector(event: wx.MouseEvent)[source]
Plot statistics on the current vector
Extract the current selection
-
OnContourInt(event: wx.MouseEvent)[source]
Create contour - number of contours
-
OnContourList(event: wx.MouseEvent)[source]
Create contour - list of values
-
OnApplyOpMath(event: wx.MouseEvent)[source]
Apply math operator to the array
-
Onmask(event: wx.MouseEvent)[source]
Mask nodes based on condition
-
OnManageVectors(event: wx.MouseEvent)[source]
Open vector manager
-
show_structure_OpsVectors()[source]
Show the structure of the vector manager
-
hide_properties()[source]
Hide the properties panel
-
property is_shared[source]
Check if the vector manager is shared
-
_get_comp_elts_diff()[source]
Get the elements and the differences of the linked arrays
-
_link_zones()[source]
Link the same vector manager to all the linked arrays
-
OnLoadvec(event: wx.MouseEvent)[source]
Load vector file
-
OnSaveasvec(event: wx.MouseEvent)[source]
Save vector file
-
OnSavevec(event: wx.MouseEvent)[source]
Save vector file
-
select_node_by_node()[source]
Select nodes by individual clicks
Set the right action in the mapviewer who will attend the clicks
-
select_zone_inside_manager()[source]
Select nodes inside the active zone (manager)
-
select_vector_inside_manager()[source]
Select nodes inside the active vector (manager)
-
select_vector_outside_manager()[source]
Select nodes outside the active vector (manager)
-
_select_vector_inside_manager(vect: wolfhece.PyVertexvectors.vector)[source]
Select nodes inside a vector or set action to add vertices to a vector by clicks
-
_select_vector_outside_manager(vect: wolfhece.PyVertexvectors.vector)[source]
Select nodes outside a vector or set action to add vertices to a vector by clicks
-
select_zone_under_manager()[source]
Select nodes along the active zone (manager)
-
select_vector_under_manager()[source]
Select nodes along the active vector (manager)
-
_select_vector_under_manager(vect: wolfhece.PyVertexvectors.vector)[source]
Select nodes along a vector or set action to add vertices to a vector by clicks
-
select_vector_inside_tmp()[source]
Select nodes inside the temporary vector
-
select_vector_under_tmp()[source]
Select nodes along the temporary vector
-
OnLaunchSelect(event: wx.MouseEvent)[source]
Action button
-
onclose(event: wx.MouseEvent)[source]
Hide the window
-
onshow(event: wx.MouseEvent)[source]
Show the window - set string with null value and update palette
-
Active_vector(vect: wolfhece.PyVertexvectors.vector, copyall: bool = True)[source]
Set the active vector to vect and forward to mapviewer
-
Active_zone(target_zone: wolfhece.PyVertexvectors.zone)[source]
Set the active zone to target_zone and forward to mapviewer
-
update_palette()[source]
Update palette
Redraw the palette with Matplotlib and fill the grid with the values and RGB components
-
Onsavepal(event: wx.MouseEvent)[source]
Save palette to file
-
Onloadpal(event: wx.MouseEvent)[source]
Load palette from file
-
Onloaddefaultpal(event: wx.MouseEvent)[source]
Load default palette
-
Onpalimage(event: wx.MouseEvent)[source]
Create image from palette
-
Onpaldistribute(event: wx.MouseEvent)[source]
Evenly spaced values in palette
-
Onupdatepal(event: wx.MouseEvent)[source]
Apply options to palette
-
OnClickHistoUpdate(event: wx.Event)[source]
Create a histogram of the current array
-
OnClickColorPal(event: wx.Event)[source]
Edit color of a palette item