PyANGKernel.GKImage3D¶
- class GKImage3D¶
-
Synopsis¶
Methods¶
def
__init__()def
getHeight()def
getTexture()def
setHeight()def
setTexture()
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¶
A 3D image is basically an extruded polyline with an image on its face. You can control several aspects of this 3D image. Among them, you can set the image to be in a fixed orientation or always face the camera.
- __init__()¶
Gets the auto orientation state. When value is true the image looks always at the camera and when it is false the image will be in a fixed orientation.
Gets the height of the image.
- getTexture()¶
- Return type:
Gets the current texture.
- setAutoOrientation(value)¶
- Parameters:
value – bool
When value is true this function sets the image to look always at the camera and when it is false the image will be in a fixed orientation.
- setHeight(value)¶
- Parameters:
value – float
Sets the height of the image.
- setTexture(newText)¶
- Parameters:
newText –
GKTextureApplied
Sets the texture to be applied. Use an existing texture.
- setTexture(textureName, horizontalReps, verticalReps)
- Parameters:
textureName – str
horizontalReps – int
verticalReps – int
Sets the texture to be applied. Use a path to the texture and the number of horizontal and vertical desired tiles.