6.1.1.8.1.3. thyrsis.viewer_3d.scene module

class thyrsis.viewer_3d.scene.Scene(dataProvider, colorLegend, znsDataProvider, znsLegend, parent=None)

Bases : PyQt5.QtCore.QObject

3D Scene

bottomMesh()

Get bottom mesh

Renvoie

bottom mesh

Type renvoyé

Mesh

changed
compileShaders()

Compile GLSL shader into binaries

contourColors()

Get the contour color

Renvoie

contour color

Type renvoyé

QColor

initializeGL(textureBinder=None)

Initialize the OpenGL scene

Paramètres

textureBinder (QOpenGLTexture) – texture

rendergl(leftv, upv, eye, height, context)

3D OpenGL rendering

Paramètres
  • leftv (QVector3D) – left value

  • upv (QVector3D) – up value

  • eye (QVector3D) – camera eye

  • height (float) – height

  • context (QOpenGLContext) – openGL context

requireShaderRecompile()

Set shaderNeedRecompile attribute to True

setTerrainColor(color)

Set the field color

Paramètres

color (QColor) – color

setTerrainTexture(image, extend=[])

Set the field texture

Paramètres
  • image (QImage) – image texture

  • extend (list) – extend coordinates

setZscale(scale)

Set zScale

Paramètres

scale (float) – z scale

terrainColor()

Get the field color

Renvoie

field color

Type renvoyé

QColor

toggleContours(flag)

Display/hide contour

Paramètres

flag (bool) – flag

toggleScatters(flag, group)

Display/hide scatter (borehole, interest point)

Paramètres
  • flag (bool) – flag

  • group (string) – group name to display/hide

topMesh()

Get top mesh

Renvoie

top mesh

Type renvoyé

Mesh

zScale()

Get zScale

Renvoie

z scale

Type renvoyé

float

znsColumns()

Get unsaturated columns

Renvoie

unsaturated columns mesh

Type renvoyé

list