wolfhece.wolf_texture

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.wolf_texture.msg[source]
class wolfhece.wolf_texture.genericImagetexture(which: str, label: str, mapviewer, xmin, xmax, ymin, ymax, imageFile='', imageObj=None, transparent_color=None, tolerance: int = 3, replace_color=None)[source]

Bases: wolfhece.drawing_obj.Element_To_Draw

Inheritance diagram of wolfhece.wolf_texture.genericImagetexture

Affichage d’une image en OpenGL via une texture

name: str[source]
idtexture: int[source]
width: int[source]
height: int[source]
which: str[source]
myImage: PIL.Image[source]
unload()[source]

Unload the texture from memory

load(imageFile='')[source]
update_minmax()[source]
reload(xmin=-99999, xmax=-99999, ymin=-99999, ymax=-99999)[source]
plot(sx=None, sy=None, xmin=None, ymin=None, xmax=None, ymax=None, size=None)[source]

alias for paint

find_minmax(update=False)[source]

Generic function to find min and max spatial extent in data

paint()[source]
class wolfhece.wolf_texture.imagetexture(which: str, label: str, cat: str, subc: str, mapviewer, xmin, xmax, ymin, ymax, width=1000, height=1000, France=False, epsg='31370')[source]

Bases: wolfhece.drawing_obj.Element_To_Draw

Inheritance diagram of wolfhece.wolf_texture.imagetexture

Affichage d’une image, obtenue depuis un Web service, en OpenGL via une texture

name: str[source]
idtexture: int[source]
width: int[source]
height: int[source]
which: str[source]
category: str[source]
subcategory: str[source]
France: bool[source]
epsg: str[source]
load()[source]
reload()[source]
plot(sx=None, sy=None, xmin=None, ymin=None, xmax=None, ymax=None, size=None)[source]

alias for paint

find_minmax(update=False)[source]

Generic function to find min and max spatial extent in data

paint()[source]
check_plot()[source]

Generic function responding to check operation from mapviewer

uncheck_plot(unload=True)[source]

Generic function responding to uncheck operation from mapviewer

class wolfhece.wolf_texture.Text_Image_Texture(text: str, mapviewer, proptext: wolfhece.textpillow.Text_Infos, vector, x: float, y: float)[source]

Bases: genericImagetexture

Inheritance diagram of wolfhece.wolf_texture.Text_Image_Texture

Affichage d’une image en OpenGL via une texture

findscale()[source]
load(imageFile='')[source]
paint()[source]
update_image(newtext: str = '', proptext: wolfhece.textpillow.Text_Infos = None)[source]