vrdTireTextureSettings¶
-
class
vrdTireTextureSettings¶
(Inherits vrdSceneObject)
This class is used for all tire material texture properties.
Summary¶
- Functions:
- getAnisotropy() → float
- getBlendPosition() → float
- getMappingCenter() → QVector3D
- getMarkingsScale() → float
- getRepeatUV() → QVector2D
- getRotationAxis() → vrTextureTypes.Axis
- setAnisotropy(v)
- setBlendPosition(v)
- setMappingCenter(v)
- setMarkingsScale(v)
- setRepeatUV(v)
- setRotationAxis(v)
- setValuesFromObject()
Functions¶
-
vrdTireTextureSettings.getAnisotropy()¶ Gets the texture filter quality for the tire image textures. A value of 1 sets the lowest quality and 16 is the highest quality.
Returns: The current value for the texture filter quality for the image texture. Return type: float
-
vrdTireTextureSettings.getBlendPosition()¶ Gets the marking and profile texture blend position.
Returns: The current value for the marking and profile texture blend position. Return type: float
-
vrdTireTextureSettings.getMappingCenter()¶ Gets the tire projection center.
Returns: The current value for tire projection center. Return type: QVector3D
-
vrdTireTextureSettings.getMarkingsScale()¶ Gets the texture scale value for the marking texture.
Returns: The current value for the texture scale. Return type: float
-
vrdTireTextureSettings.getRepeatUV()¶ Gets the U and V repetition of the profile texture.
Returns: The current value for the U and V repetition of the profile texture. Return type: QVector2D
-
vrdTireTextureSettings.getRotationAxis()¶ Gets the rotation axis.
Returns: Current rotation axis. Return type: vrTextureTypes.Axis
-
vrdTireTextureSettings.setAnisotropy(v)¶ Sets the texture filter quality for the tire image textures. A value of 1 sets the lowest quality and 16 is the highest quality.
Parameters: v (float) – The new value for the texture filter quality for the image texture.
-
vrdTireTextureSettings.setBlendPosition(v)¶ Sets the marking and profile texture blend position.
Parameters: v (float) – The new value for the marking and profile texture blend position.
-
vrdTireTextureSettings.setMappingCenter(v)¶ Sets the tire projection center. To center the projection pivot automatically, use setValuesFromObject.
Parameters: v (QVector3D) – The new value for projection center.
-
vrdTireTextureSettings.setMarkingsScale(v)¶ Sets the texture scale value for the marking texture.
Parameters: v (float) – The new value for the texture scale.
-
vrdTireTextureSettings.setRepeatUV(v)¶ Sets the U and V repetition of the profile texture.
Parameters: v (QVector2D) – The new value for the U and V repetition of the profile texture.
-
vrdTireTextureSettings.setRotationAxis(v)¶ Sets the rotation axis.
Parameters: v (vrTextureTypes.Axis) – New rotation axis.
-
vrdTireTextureSettings.setValuesFromObject()¶ Attempts to guess the correct Rotation Axis, Center, Markings Scale, and Profile Repeat V from the bounding box of the object selected in scene graph.