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
- changed¶
- compileShaders()¶
Compile GLSL shader into binaries
- contourColors()¶
Get the contour color
- Returns
contour color
- Return type
QColor
- initializeGL(textureBinder=None)¶
Initialize the OpenGL scene
- Parameters
textureBinder (QOpenGLTexture) – texture
- rendergl(leftv, upv, eye, height, context)¶
3D OpenGL rendering
- Parameters
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
- Parameters
color (QColor) – color
- setTerrainTexture(image, extend=[])¶
Set the field texture
- Parameters
image (QImage) – image texture
extend (list) – extend coordinates
- setZscale(scale)¶
Set zScale
- Parameters
scale (float) – z scale
- terrainColor()¶
Get the field color
- Returns
field color
- Return type
QColor
- toggleContours(flag)¶
Display/hide contour
- Parameters
flag (bool) – flag
- toggleScatters(flag, group)¶
Display/hide scatter (borehole, interest point)
- Parameters
flag (bool) – flag
group (string) – group name to display/hide
- zScale()¶
Get zScale
- Returns
z scale
- Return type
float
- znsColumns()¶
Get unsaturated columns
- Returns
unsaturated columns mesh
- Return type
list