:py:mod:`wolfhece.drawing_obj` ============================== .. py:module:: wolfhece.drawing_obj .. autoapi-nested-parse:: 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:class:: Element_To_Draw(idx: str = '', plotted: bool = True, mapviewer=None, need_for_wx: bool = False) Base class of element to add into WolfMapViewer or another GUI .. py:property:: checked :type: bool Return the checked status. .. py:property:: has_OGLContext Test if the object has a canvas .. py:method:: get_mapviewer() Return the mapviewer .. py:method:: set_mapviewer(newmapviewer=None) Attach a (new) mapviewer to the object .. py:method:: check_plot() Generic function responding to check operation from mapviewer .. py:method:: uncheck_plot(unload: bool = True) Generic function responding to uncheck operation from mapviewer .. py:method:: show_properties() Generic function to show properties of the object .. py:method:: hide_properties() Generic function to hide properties of the object .. py:method:: plot(sx=None, sy=None, xmin=None, ymin=None, xmax=None, ymax=None, size=None) Plot data in OpenGL context .. py:method:: find_minmax(update=False) Generic function to find min and max spatial extent in data example : a WolfMapViewer instance needs spatial extent to zoom or test if element must be plotted