6.1.1.3.1.7. thyrsis.gui.lithology module

class thyrsis.gui.lithology.BoreHoleScene(uri, parent=None)

Bases: PyQt5.QtWidgets.QGraphicsScene

Borehole scene (rectangle) to display lithology

class ScrollFilter(parent)

Bases: PyQt5.QtCore.QObject

eventFilter(self, QObject, QEvent)bool
color(code)

Return color if it is a recognized code

Parameters

code (string) – lithology code

Returns

texture

Return type

QImage

drawForeground(painter, rect)

Draw the lithologic foreground form the db data

Parameters
  • painter (QPainter) – low-level painting on widget device

  • rect (QRectF) – rectangle to paint on

scroll_filter()

Scroll filter, defined for the borehole window

set_current_id(id_)

set id

Parameters

id (int) – id (OGC_id) of the feature to display

set_m_per_pixel(m_per_pixel)

set meter per pixel

Parameters

m_per_pixel (int) – scale to use for display

texture(code)

Return image to use for lithology texture

Parameters

code (string) – lithology code

Returns

texture

Return type

QImage

class thyrsis.gui.lithology.BoreHoleWindow(uri, logger, parent=None)

Bases: PyQt5.QtWidgets.QMainWindow

Borehole panel where several lithology can be displayed