- class QCustom3DItem¶
-
Inherited by:
QCustom3DVolume
,QCustom3DLabel
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
isVisible()
def
meshFile()
def
position()
def
rotation()
def
scaling()
def
setMeshFile()
def
setPosition()
def
setRotation()
def
setScaling()
def
setTextureFile()
def
setVisible()
def
textureFile()
Signals¶
def
needUpdate()
def
scalingChanged()
def
visibleChanged()
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¶
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property meshFileᅟ: str¶
- Access functions:
- Access functions:
- property positionAbsoluteᅟ: bool¶
- Access functions:
- property rotationᅟ: QQuaternion¶
- Access functions:
- Access functions:
- property scalingAbsoluteᅟ: bool¶
- Access functions:
- property shadowCastingᅟ: bool¶
- Access functions:
- property textureFileᅟ: str¶
- Access functions:
- property visibleᅟ: bool¶
- Access functions:
- __init__(meshFile, position, scaling, rotation, texture[, parent=None])
- Parameters:
meshFile – str
position –
QVector3D
scaling –
QVector3D
rotation –
QQuaternion
texture –
QImage
parent –
QObject
- isPositionAbsolute()¶
- Return type:
bool
Getter of property
positionAbsoluteᅟ
.- isScalingAbsolute()¶
- Return type:
bool
Getter of property
scalingAbsoluteᅟ
.- isShadowCasting()¶
- Return type:
bool
Getter of property
shadowCastingᅟ
.- isVisible()¶
- Return type:
bool
Getter of property
visibleᅟ
.- meshFile()¶
- Return type:
str
Getter of property
meshFileᅟ
.- meshFileChanged(meshFile)¶
- Parameters:
meshFile – str
Notification signal of property
meshFileᅟ
.- needUpdate()¶
Getter of property
positionᅟ
.- positionAbsoluteChanged(positionAbsolute)¶
- Parameters:
positionAbsolute – bool
Notification signal of property
positionAbsoluteᅟ
.Notification signal of property
positionᅟ
.- rotation()¶
- Return type:
Getter of property
rotationᅟ
.- rotationChanged(rotation)¶
- Parameters:
rotation –
QQuaternion
Notification signal of property
rotationᅟ
.Getter of property
scalingᅟ
.- scalingAbsoluteChanged(scalingAbsolute)¶
- Parameters:
scalingAbsolute – bool
Notification signal of property
scalingAbsoluteᅟ
.Notification signal of property
scalingᅟ
.- setMeshFile(meshFile)¶
- Parameters:
meshFile – str
Setter of property
meshFileᅟ
.Setter of property
positionᅟ
.- setPositionAbsolute(positionAbsolute)¶
- Parameters:
positionAbsolute – bool
Setter of property
positionAbsoluteᅟ
.- setRotation(rotation)¶
- Parameters:
rotation –
QQuaternion
Setter of property
rotationᅟ
.Setter of property
scalingᅟ
.- setScalingAbsolute(scalingAbsolute)¶
- Parameters:
scalingAbsolute – bool
Setter of property
scalingAbsoluteᅟ
.- setShadowCasting(enabled)¶
- Parameters:
enabled – bool
Setter of property
shadowCastingᅟ
.- setTextureFile(textureFile)¶
- Parameters:
textureFile – str
Setter of property
textureFileᅟ
.- setVisible(visible)¶
- Parameters:
visible – bool
Setter of property
visibleᅟ
.- shadowCastingChanged(shadowCasting)¶
- Parameters:
shadowCasting – bool
Notification signal of property
shadowCastingᅟ
.- textureFile()¶
- Return type:
str
Getter of property
textureFileᅟ
.- textureFileChanged(textureFile)¶
- Parameters:
textureFile – str
Notification signal of property
textureFileᅟ
.- visibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
visibleᅟ
.