QtQuick3D.pyi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. # The PEP 484 type hints stub file for the QtQuick3D module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. from PyQt6 import QtGui
  29. from PyQt6 import QtNetwork
  30. from PyQt6 import QtQml
  31. # Support for QDate, QDateTime and QTime.
  32. import datetime
  33. # Convenient type aliases.
  34. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  35. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  36. class QQuick3D(PyQt6.sip.simplewrapper):
  37. @typing.overload
  38. def __init__(self) -> None: ...
  39. @typing.overload
  40. def __init__(self, a0: 'QQuick3D') -> None: ...
  41. @staticmethod
  42. def idealSurfaceFormat(samples: int = ...) -> QtGui.QSurfaceFormat: ...
  43. class QQuick3DObject(QtCore.QObject, QtQml.QQmlParserStatus):
  44. def __init__(self, parent: 'QQuick3DObject|None' = ...) -> None: ...
  45. def componentComplete(self) -> None: ...
  46. def classBegin(self) -> None: ...
  47. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  48. def setParentItem(self, parentItem: 'QQuick3DObject|None') -> None: ...
  49. def parentItem(self) -> 'QQuick3DObject|None': ...
  50. def setState(self, state: str|None) -> None: ...
  51. def state(self) -> str: ...
  52. class QQuick3DGeometry(QQuick3DObject):
  53. class PrimitiveType(enum.Enum):
  54. Points = ... # type: QQuick3DGeometry.PrimitiveType
  55. LineStrip = ... # type: QQuick3DGeometry.PrimitiveType
  56. Lines = ... # type: QQuick3DGeometry.PrimitiveType
  57. TriangleStrip = ... # type: QQuick3DGeometry.PrimitiveType
  58. TriangleFan = ... # type: QQuick3DGeometry.PrimitiveType
  59. Triangles = ... # type: QQuick3DGeometry.PrimitiveType
  60. class Attribute(PyQt6.sip.simplewrapper):
  61. class ComponentType(enum.Enum):
  62. U16Type = ... # type: QQuick3DGeometry.Attribute.ComponentType
  63. U32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType
  64. F32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType
  65. I32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType
  66. class Semantic(enum.Enum):
  67. IndexSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  68. PositionSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  69. NormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  70. TexCoordSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  71. TangentSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  72. BinormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  73. JointSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  74. WeightSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  75. ColorSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  76. TargetPositionSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  77. TargetNormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  78. TargetTangentSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  79. TargetBinormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  80. TexCoord1Semantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  81. TexCoord0Semantic = ... # type: QQuick3DGeometry.Attribute.Semantic
  82. componentType = ... # type: 'QQuick3DGeometry.Attribute.ComponentType'
  83. offset = ... # type: int
  84. semantic = ... # type: 'QQuick3DGeometry.Attribute.Semantic'
  85. @typing.overload
  86. def __init__(self) -> None: ...
  87. @typing.overload
  88. def __init__(self, a0: 'QQuick3DGeometry.Attribute') -> None: ...
  89. class TargetAttribute(PyQt6.sip.simplewrapper):
  90. attr = ... # type: 'QQuick3DGeometry.Attribute'
  91. stride = ... # type: int
  92. targetId = ... # type: int
  93. @typing.overload
  94. def __init__(self) -> None: ...
  95. @typing.overload
  96. def __init__(self, a0: 'QQuick3DGeometry.TargetAttribute') -> None: ...
  97. def __init__(self, parent: QQuick3DObject|None = ...) -> None: ...
  98. @typing.overload
  99. def addTargetAttribute(self, att: 'QQuick3DGeometry.TargetAttribute') -> None: ...
  100. @typing.overload
  101. def addTargetAttribute(self, targetId: int, semantic: 'QQuick3DGeometry.Attribute.Semantic', offset: int, stride: int = ...) -> None: ...
  102. def targetAttributeCount(self) -> int: ...
  103. def targetAttribute(self, index: int) -> 'QQuick3DGeometry.TargetAttribute': ...
  104. @typing.overload
  105. def setTargetData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  106. @typing.overload
  107. def setTargetData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  108. def targetData(self) -> QtCore.QByteArray: ...
  109. def addSubset(self, offset: int, count: int, boundsMin: QtGui.QVector3D, boundsMax: QtGui.QVector3D, name: str|None = ...) -> None: ...
  110. def subsetName(self, subset: int) -> str: ...
  111. def subsetOffset(self, subset: int) -> int: ...
  112. def subsetBoundsMax(self, subset: int) -> QtGui.QVector3D: ...
  113. def subsetBoundsMin(self, subset: int) -> QtGui.QVector3D: ...
  114. @typing.overload
  115. def subsetCount(self, subset: int) -> int: ...
  116. @typing.overload
  117. def subsetCount(self) -> int: ...
  118. def indexData(self) -> QtCore.QByteArray: ...
  119. def vertexData(self) -> QtCore.QByteArray: ...
  120. def clear(self) -> None: ...
  121. @typing.overload
  122. def addAttribute(self, semantic: 'QQuick3DGeometry.Attribute.Semantic', offset: int, componentType: 'QQuick3DGeometry.Attribute.ComponentType') -> None: ...
  123. @typing.overload
  124. def addAttribute(self, att: 'QQuick3DGeometry.Attribute') -> None: ...
  125. def setPrimitiveType(self, type: 'QQuick3DGeometry.PrimitiveType') -> None: ...
  126. def setBounds(self, min: QtGui.QVector3D, max: QtGui.QVector3D) -> None: ...
  127. def setStride(self, stride: int) -> None: ...
  128. @typing.overload
  129. def setIndexData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  130. @typing.overload
  131. def setIndexData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  132. @typing.overload
  133. def setVertexData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  134. @typing.overload
  135. def setVertexData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  136. def stride(self) -> int: ...
  137. def boundsMax(self) -> QtGui.QVector3D: ...
  138. def boundsMin(self) -> QtGui.QVector3D: ...
  139. def primitiveType(self) -> 'QQuick3DGeometry.PrimitiveType': ...
  140. def attribute(self, index: int) -> 'QQuick3DGeometry.Attribute': ...
  141. def attributeCount(self) -> int: ...
  142. class QQuick3DTextureData(QQuick3DObject):
  143. class Format(enum.Enum):
  144. None_ = ... # type: QQuick3DTextureData.Format
  145. RGBA8 = ... # type: QQuick3DTextureData.Format
  146. RGBA16F = ... # type: QQuick3DTextureData.Format
  147. RGBA32F = ... # type: QQuick3DTextureData.Format
  148. RGBE8 = ... # type: QQuick3DTextureData.Format
  149. R8 = ... # type: QQuick3DTextureData.Format
  150. R16 = ... # type: QQuick3DTextureData.Format
  151. R16F = ... # type: QQuick3DTextureData.Format
  152. R32F = ... # type: QQuick3DTextureData.Format
  153. BC1 = ... # type: QQuick3DTextureData.Format
  154. BC2 = ... # type: QQuick3DTextureData.Format
  155. BC3 = ... # type: QQuick3DTextureData.Format
  156. BC4 = ... # type: QQuick3DTextureData.Format
  157. BC5 = ... # type: QQuick3DTextureData.Format
  158. BC6H = ... # type: QQuick3DTextureData.Format
  159. BC7 = ... # type: QQuick3DTextureData.Format
  160. DXT1_RGBA = ... # type: QQuick3DTextureData.Format
  161. DXT1_RGB = ... # type: QQuick3DTextureData.Format
  162. DXT3_RGBA = ... # type: QQuick3DTextureData.Format
  163. DXT5_RGBA = ... # type: QQuick3DTextureData.Format
  164. ETC2_RGB8 = ... # type: QQuick3DTextureData.Format
  165. ETC2_RGB8A1 = ... # type: QQuick3DTextureData.Format
  166. ETC2_RGBA8 = ... # type: QQuick3DTextureData.Format
  167. ASTC_4x4 = ... # type: QQuick3DTextureData.Format
  168. ASTC_5x4 = ... # type: QQuick3DTextureData.Format
  169. ASTC_5x5 = ... # type: QQuick3DTextureData.Format
  170. ASTC_6x5 = ... # type: QQuick3DTextureData.Format
  171. ASTC_6x6 = ... # type: QQuick3DTextureData.Format
  172. ASTC_8x5 = ... # type: QQuick3DTextureData.Format
  173. ASTC_8x6 = ... # type: QQuick3DTextureData.Format
  174. ASTC_8x8 = ... # type: QQuick3DTextureData.Format
  175. ASTC_10x5 = ... # type: QQuick3DTextureData.Format
  176. ASTC_10x6 = ... # type: QQuick3DTextureData.Format
  177. ASTC_10x8 = ... # type: QQuick3DTextureData.Format
  178. ASTC_10x10 = ... # type: QQuick3DTextureData.Format
  179. ASTC_12x10 = ... # type: QQuick3DTextureData.Format
  180. ASTC_12x12 = ... # type: QQuick3DTextureData.Format
  181. def __init__(self, parent: QQuick3DObject|None = ...) -> None: ...
  182. def setDepth(self, depth: int) -> None: ...
  183. def depth(self) -> int: ...
  184. def setHasTransparency(self, hasTransparency: bool) -> None: ...
  185. def hasTransparency(self) -> bool: ...
  186. def setFormat(self, format: 'QQuick3DTextureData.Format') -> None: ...
  187. def format(self) -> 'QQuick3DTextureData.Format': ...
  188. def setSize(self, size: QtCore.QSize) -> None: ...
  189. def size(self) -> QtCore.QSize: ...
  190. def setTextureData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  191. def textureData(self) -> QtCore.QByteArray: ...