vrdTextureSettings¶
-
class
vrdTextureSettings
¶
(Inherits vrdSceneObject
)
This class is used for all texture mapping properties.
Summary¶
- Functions:
- getMappingType() → vrTextureTypes.MappingType
- getRepeat() → QVector2D
- getRotation() → float
- getTextureSize() → QVector2D
- getTriplanarBlend() → float
- getTriplanarBlendMode() → vrTextureTypes.TriplanarBlendMode
- getTriplanarXOffset() → QVector2D
- getTriplanarXRepeat() → QVector2D
- getTriplanarXRotation() → float
- getTriplanarYOffset() → QVector2D
- getTriplanarYRepeat() → QVector2D
- getTriplanarYRotation() → float
- getTriplanarZOffset() → QVector2D
- getTriplanarZRepeat() → QVector2D
- getTriplanarZRotation() → float
- getUniformRepeat() → bool
- setMappingType(type)
- setRepeat(repeat)
- setRotation(rotation)
- setTextureSize(size)
- setTriplanarBlend(blend)
- setTriplanarBlendMode(mode)
- setTriplanarXOffset(offset)
- setTriplanarXRepeat(repeat)
- setTriplanarXRotation(rotation)
- setTriplanarYOffset(offset)
- setTriplanarYRepeat(repeat)
- setTriplanarYRotation(rotation)
- setTriplanarZOffset(offset)
- setTriplanarZRepeat(repeat)
- setTriplanarZRotation(rotation)
- setUniformRepeat(s)
Functions¶
-
vrdTextureSettings.
getMappingType
()¶ Gets mapping type.
Returns: Current used mapping type Return type: vrTextureTypes.MappingType
-
vrdTextureSettings.
getRepeat
()¶ Returns the UV texture repeat factor.
Returns: UV texture repeat factor Return type: QVector2D
-
vrdTextureSettings.
getRotation
()¶ Returns the current UV texture coordinate rotation.
Returns: UV texture coordinate rotation Return type: float
-
vrdTextureSettings.
getTextureSize
()¶ Gets texture size in millimeter.
Returns: Current texture size in millimeter. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarBlend
()¶ Gets the range for overlapping areas of the planar projection.
Returns: The current used range for overlapping areas Return type: float
-
vrdTextureSettings.
getTriplanarBlendMode
()¶ Gets blend mode.
Returns: Current used blend mode Return type: vrTextureTypes.TriplanarBlendMode
-
vrdTextureSettings.
getTriplanarXOffset
()¶ Gets the position of the texture’s pattern by the set value in the U and V for X projection direction.
Returns: The current used position of the texture’s pattern by the set value in the U and V for X projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarXRepeat
()¶ Gets how many times the texture is repeated in U and V for the X projection direction.
Returns: Current used value how many times the texture is repeated in U and V for the X projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarXRotation
()¶ Gets the projection orientation in the U and V for X projection direction.
Returns: Current used rotation angle in the U and V for X projection direction. Return type: float
-
vrdTextureSettings.
getTriplanarYOffset
()¶ Gets the position of the texture’s pattern by the set value in the U and V for Y projection direction.
Returns: The current used position of the texture’s pattern by the set value in the U and V for Y projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarYRepeat
()¶ Gets how many times the texture is repeated in U and V for the Y projection direction.
Returns: Current used value how many times the texture is repeated in U and V for the Y projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarYRotation
()¶ Gets the projection orientation in the U and V for Y projection direction.
Returns: Current used rotation angle in the U and V for Y projection direction. Return type: float
-
vrdTextureSettings.
getTriplanarZOffset
()¶ Gets the position of the texture’s pattern by the set value in the U and V for Z projection direction.
Returns: The current used position of the texture’s pattern by the set value in the U and V for Z projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarZRepeat
()¶ Gets how many times the texture is repeated in U and V for the Z projection direction.
Returns: Current used value how many times the texture is repeated in U and V for the Z projection direction. Return type: QVector2D
-
vrdTextureSettings.
getTriplanarZRotation
()¶ Gets the projection orientation in the U and V for Z projection direction.
Returns: Current used rotation angle in the U and V for Z projection direction. Return type: float
-
vrdTextureSettings.
getUniformRepeat
()¶ Sets if the texture is repeated in U and V equal for each projection direction.
Returns: Current state of this approach Return type: bool
-
vrdTextureSettings.
setMappingType
(type)¶ Sets mapping type.
Parameters: type (vrTextureTypes.MappingType) – New mapping type
-
vrdTextureSettings.
setRepeat
(repeat)¶ Sets the UV texture repeat factor.
Parameters: repeat (QVector2D) – UV texture repeat factor to set
-
vrdTextureSettings.
setRotation
(rotation)¶ Sets a rotation value for the UV-texture coordinates.
Parameters: rotation (float) – The rotation value to use
-
vrdTextureSettings.
setTextureSize
(size)¶ Sets texture size in millimeter.
Parameters: size (QVector2D) – New texture size in millimeter.
-
vrdTextureSettings.
setTriplanarBlend
(blend)¶ Sets the range for overlapping areas of the planar projection.
Parameters: blend (float) – The new range for overlapping areas
-
vrdTextureSettings.
setTriplanarBlendMode
(mode)¶ Sets blend mode.
Parameters: mode (vrTextureTypes.TriplanarBlendMode) – New blend mode
-
vrdTextureSettings.
setTriplanarXOffset
(offset)¶ Moves the position of the texture’s pattern by the set value in the U and V for X projection direction.
Parameters: offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for X projection direction.
-
vrdTextureSettings.
setTriplanarXRepeat
(repeat)¶ Sets how many times the texture is repeated in U and V for the X projection direction.
Parameters: repeat (QVector2D) – New value how many times the texture is repeated in U and V for the X projection direction.
-
vrdTextureSettings.
setTriplanarXRotation
(rotation)¶ Sets the projection orientation in the U and V for X projection direction.
Parameters: rotation (float) – New rotation angle in the U and V for X projection direction.
-
vrdTextureSettings.
setTriplanarYOffset
(offset)¶ Moves the position of the texture’s pattern by the set value in the U and V for Y projection direction.
Parameters: offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for Y projection direction.
-
vrdTextureSettings.
setTriplanarYRepeat
(repeat)¶ Sets how many times the texture is repeated in U and V for the Y projection direction.
Parameters: repeat (QVector2D) – New value how many times the texture is repeated in U and V for the Y projection direction.
-
vrdTextureSettings.
setTriplanarYRotation
(rotation)¶ Sets the projection orientation in the U and V for Y projection direction.
Parameters: rotation (float) – New rotation angle in the U and V for Y projection direction.
-
vrdTextureSettings.
setTriplanarZOffset
(offset)¶ Moves the position of the texture’s pattern by the set value in the U and V for Z projection direction.
Parameters: offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for Z projection direction.
-
vrdTextureSettings.
setTriplanarZRepeat
(repeat)¶ Sets how many times the texture is repeated in U and V for the Z projection direction.
Parameters: repeat (QVector2D) – New value how many times the texture is repeated in U and V for the Z projection direction.
-
vrdTextureSettings.
setTriplanarZRotation
(rotation)¶ Sets the projection orientation in the U and V for Z projection direction.
Parameters: rotation (float) – New rotation angle in the U and V for Z projection direction.
-
vrdTextureSettings.
setUniformRepeat
(s)¶ Sets if the texture is repeated in U and V equal for each projection direction.
Parameters: s (bool) – Enable or disable this approach