PyANGKernel.GKExtrudedPolyline¶
- class GKExtrudedPolyline¶
-
Synopsis¶
Methods¶
def
__init__()def
getBrushColor()def
getHeight()def
setBrushColor()def
setHeight()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
An extruded polyline is a 3D polyline which we have given a height. With this polyline we can manage an assigned texture per face.
- __init__()¶
- extendAllTextureToNotTexturedFaces()¶
It sets all the faces of the polyline without an assigned texture to the default texture.
It gets the actual assigned color to draw the polyline.
It gets whether to have different textures for the front and the back
It gets whether to have different textures for each lateral face or the same one for all
It gets the extruded polyline’s height
- getLateralTexture(nbFace)¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s texture information (mainly to be edited)
- getLateralTextureBack(nbFace)¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s texture information (mainly to be edited)
- getLateralTextureToApply(nbFace)¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s texture information to be applied when drawing it
- getLateralTextureToApplyBack(nbFace)¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s back texture information to be applied when drawing it
It sets the desired color (brushC) to draw the polyline.
- setDistinguishFrontAndBack(value)¶
- Parameters:
value – bool
It sets whether to have different textures for the front and the back
- setDistinguishLateralFaces(value)¶
- Parameters:
value – bool
It sets whether to have different textures for each lateral face or the same one for all
- setHeight(aHeight)¶
- Parameters:
aHeight – float
It sets the extruded polyline’s height
- setLateralTexture(texturePath, horizontalReps, verticalReps[, nbFace=-1])¶
- Parameters:
texturePath – str
horizontalReps – int
verticalReps – int
nbFace – int
Is sets the lateral face i’s texture name. Lateral faces are numbered from 0 to n-1. Face number 0 is the face corresponding to the line between the first and second points, face number 1 the one between the second and third points, … When all the lateral faces have the same texture, -1 in the nbFace parameter must be used
- setLateralTextureBack(texturePath, horizontalReps, verticalReps[, nbFace=-1])¶
- Parameters:
texturePath – str
horizontalReps – int
verticalReps – int
nbFace – int
Is sets the lateral face i’s texture name. Lateral faces are numbered from 0 to n-1. Face number 0 is the face corresponding to the line between the first and second points, face number 1 the one between the second and third points, … When all the lateral faces have the same texture, -1 in the nbFace parameter must be used