2021-12-24 18:15:44 +08:00

447 lines
20 KiB
Python

# The PEP 484 type hints stub file for the Qt3DAnimation module.
#
# Generated by SIP 5.4.0
#
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt3D.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
from PyQt5 import sip
from PyQt5 import QtGui
from PyQt5 import QtCore
from PyQt5 import Qt3DRender
from PyQt5 import Qt3DCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QAbstractAnimation(QtCore.QObject):
class AnimationType(int): ...
KeyframeAnimation = ... # type: 'QAbstractAnimation.AnimationType'
MorphingAnimation = ... # type: 'QAbstractAnimation.AnimationType'
VertexBlendAnimation = ... # type: 'QAbstractAnimation.AnimationType'
def durationChanged(self, duration: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def animationNameChanged(self, name: str) -> None: ...
def setDuration(self, duration: float) -> None: ...
def setPosition(self, position: float) -> None: ...
def setAnimationName(self, name: str) -> None: ...
def duration(self) -> float: ...
def position(self) -> float: ...
def animationType(self) -> 'QAbstractAnimation.AnimationType': ...
def animationName(self) -> str: ...
class QAbstractAnimationClip(Qt3DCore.QNode):
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def durationChanged(self, duration: float) -> None: ...
def duration(self) -> float: ...
class QAbstractChannelMapping(Qt3DCore.QNode): ...
class QAbstractClipAnimator(Qt3DCore.QComponent):
class Loops(int): ...
Infinite = ... # type: 'QAbstractClipAnimator.Loops'
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def normalizedTimeChanged(self, index: float) -> None: ...
def clockChanged(self, clock: 'QClock') -> None: ...
def loopCountChanged(self, loops: int) -> None: ...
def channelMapperChanged(self, channelMapper: 'QChannelMapper') -> None: ...
def runningChanged(self, running: bool) -> None: ...
def stop(self) -> None: ...
def start(self) -> None: ...
def setNormalizedTime(self, timeFraction: float) -> None: ...
def setClock(self, clock: 'QClock') -> None: ...
def setLoopCount(self, loops: int) -> None: ...
def setChannelMapper(self, channelMapper: 'QChannelMapper') -> None: ...
def setRunning(self, running: bool) -> None: ...
def normalizedTime(self) -> float: ...
def clock(self) -> 'QClock': ...
def loopCount(self) -> int: ...
def channelMapper(self) -> 'QChannelMapper': ...
def isRunning(self) -> bool: ...
class QAbstractClipBlendNode(Qt3DCore.QNode):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
class QAdditiveClipBlend('QAbstractClipBlendNode'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def additiveClipChanged(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
def baseClipChanged(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
def additiveFactorChanged(self, additiveFactor: float) -> None: ...
def setAdditiveClip(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
def setBaseClip(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
def setAdditiveFactor(self, additiveFactor: float) -> None: ...
def additiveClip(self) -> 'QAbstractClipBlendNode': ...
def baseClip(self) -> 'QAbstractClipBlendNode': ...
def additiveFactor(self) -> float: ...
class QAnimationAspect(Qt3DCore.QAbstractAspect):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
class QAnimationClip('QAbstractAnimationClip'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def clipDataChanged(self, clipData: 'QAnimationClipData') -> None: ...
def setClipData(self, clipData: 'QAnimationClipData') -> None: ...
def clipData(self) -> 'QAnimationClipData': ...
class QAnimationClipData(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QAnimationClipData') -> None: ...
def isValid(self) -> bool: ...
def clearChannels(self) -> None: ...
def removeChannel(self, index: int) -> None: ...
def insertChannel(self, index: int, c: 'QChannel') -> None: ...
def appendChannel(self, c: 'QChannel') -> None: ...
def channelCount(self) -> int: ...
def name(self) -> str: ...
def setName(self, name: str) -> None: ...
class QAnimationClipLoader('QAbstractAnimationClip'):
class Status(int): ...
NotReady = ... # type: 'QAnimationClipLoader.Status'
Ready = ... # type: 'QAnimationClipLoader.Status'
Error = ... # type: 'QAnimationClipLoader.Status'
@typing.overload
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
@typing.overload
def __init__(self, source: QtCore.QUrl, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def statusChanged(self, status: 'QAnimationClipLoader.Status') -> None: ...
def sourceChanged(self, source: QtCore.QUrl) -> None: ...
def setSource(self, source: QtCore.QUrl) -> None: ...
def status(self) -> 'QAnimationClipLoader.Status': ...
def source(self) -> QtCore.QUrl: ...
class QAnimationController(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def recursiveChanged(self, recursive: bool) -> None: ...
def entityChanged(self, entity: Qt3DCore.QEntity) -> None: ...
def positionOffsetChanged(self, offset: float) -> None: ...
def positionScaleChanged(self, scale: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def activeAnimationGroupChanged(self, index: int) -> None: ...
def setRecursive(self, recursive: bool) -> None: ...
def setEntity(self, entity: Qt3DCore.QEntity) -> None: ...
def setPositionOffset(self, offset: float) -> None: ...
def setPositionScale(self, scale: float) -> None: ...
def setPosition(self, position: float) -> None: ...
def setActiveAnimationGroup(self, index: int) -> None: ...
def getGroup(self, index: int) -> 'QAnimationGroup': ...
def getAnimationIndex(self, name: str) -> int: ...
def removeAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ...
def addAnimationGroup(self, animationGroups: 'QAnimationGroup') -> None: ...
def setAnimationGroups(self, animationGroups: typing.Iterable['QAnimationGroup']) -> None: ...
def recursive(self) -> bool: ...
def entity(self) -> Qt3DCore.QEntity: ...
def positionOffset(self) -> float: ...
def positionScale(self) -> float: ...
def position(self) -> float: ...
def activeAnimationGroup(self) -> int: ...
def animationGroupList(self) -> typing.List['QAnimationGroup']: ...
class QAnimationGroup(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def durationChanged(self, duration: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def nameChanged(self, name: str) -> None: ...
def setPosition(self, position: float) -> None: ...
def setName(self, name: str) -> None: ...
def removeAnimation(self, animation: 'QAbstractAnimation') -> None: ...
def addAnimation(self, animation: 'QAbstractAnimation') -> None: ...
def setAnimations(self, animations: typing.Iterable['QAbstractAnimation']) -> None: ...
def duration(self) -> float: ...
def position(self) -> float: ...
def animationList(self) -> typing.List['QAbstractAnimation']: ...
def name(self) -> str: ...
class QBlendedClipAnimator('QAbstractClipAnimator'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def blendTreeChanged(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
def setBlendTree(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
def blendTree(self) -> 'QAbstractClipBlendNode': ...
class QChannel(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QChannel') -> None: ...
def clearChannelComponents(self) -> None: ...
def removeChannelComponent(self, index: int) -> None: ...
def insertChannelComponent(self, index: int, component: 'QChannelComponent') -> None: ...
def appendChannelComponent(self, component: 'QChannelComponent') -> None: ...
def channelComponentCount(self) -> int: ...
def jointIndex(self) -> int: ...
def setJointIndex(self, jointIndex: int) -> None: ...
def name(self) -> str: ...
def setName(self, name: str) -> None: ...
class QChannelComponent(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QChannelComponent') -> None: ...
def clearKeyFrames(self) -> None: ...
def removeKeyFrame(self, index: int) -> None: ...
def insertKeyFrame(self, index: int, kf: 'QKeyFrame') -> None: ...
def appendKeyFrame(self, kf: 'QKeyFrame') -> None: ...
def keyFrameCount(self) -> int: ...
def name(self) -> str: ...
def setName(self, name: str) -> None: ...
class QChannelMapper(Qt3DCore.QNode):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def mappings(self) -> typing.List['QAbstractChannelMapping']: ...
def removeMapping(self, mapping: 'QAbstractChannelMapping') -> None: ...
def addMapping(self, mapping: 'QAbstractChannelMapping') -> None: ...
class QChannelMapping('QAbstractChannelMapping'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def propertyChanged(self, property: str) -> None: ...
def targetChanged(self, target: Qt3DCore.QNode) -> None: ...
def channelNameChanged(self, channelName: str) -> None: ...
def setProperty(self, property: str) -> None: ... # type: ignore[override]
def setTarget(self, target: Qt3DCore.QNode) -> None: ...
def setChannelName(self, channelName: str) -> None: ...
def property(self) -> str: ... # type: ignore[override]
def target(self) -> Qt3DCore.QNode: ...
def channelName(self) -> str: ...
class QClipAnimator('QAbstractClipAnimator'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
def clip(self) -> 'QAbstractAnimationClip': ...
class QClipBlendNodeCreatedChangeBase(Qt3DCore.QNodeCreatedChangeBase):
def __init__(self, node: 'QAbstractClipBlendNode') -> None: ...
class QClipBlendValue('QAbstractClipBlendNode'):
@typing.overload
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
@typing.overload
def __init__(self, clip: 'QAbstractAnimationClip', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
def clip(self) -> 'QAbstractAnimationClip': ...
class QClock(Qt3DCore.QNode):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def playbackRateChanged(self, playbackRate: float) -> None: ...
def setPlaybackRate(self, playbackRate: float) -> None: ...
def playbackRate(self) -> float: ...
class QKeyFrame(sip.simplewrapper):
class InterpolationType(int): ...
ConstantInterpolation = ... # type: 'QKeyFrame.InterpolationType'
LinearInterpolation = ... # type: 'QKeyFrame.InterpolationType'
BezierInterpolation = ... # type: 'QKeyFrame.InterpolationType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, coords: QtGui.QVector2D) -> None: ...
@typing.overload
def __init__(self, coords: QtGui.QVector2D, lh: QtGui.QVector2D, rh: QtGui.QVector2D) -> None: ...
@typing.overload
def __init__(self, a0: 'QKeyFrame') -> None: ...
def interpolationType(self) -> 'QKeyFrame.InterpolationType': ...
def setInterpolationType(self, interp: 'QKeyFrame.InterpolationType') -> None: ...
def rightControlPoint(self) -> QtGui.QVector2D: ...
def setRightControlPoint(self, rh: QtGui.QVector2D) -> None: ...
def leftControlPoint(self) -> QtGui.QVector2D: ...
def setLeftControlPoint(self, lh: QtGui.QVector2D) -> None: ...
def coordinates(self) -> QtGui.QVector2D: ...
def setCoordinates(self, coords: QtGui.QVector2D) -> None: ...
class QKeyframeAnimation('QAbstractAnimation'):
class RepeatMode(int): ...
None_ = ... # type: 'QKeyframeAnimation.RepeatMode'
Constant = ... # type: 'QKeyframeAnimation.RepeatMode'
Repeat = ... # type: 'QKeyframeAnimation.RepeatMode'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def endModeChanged(self, endMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def startModeChanged(self, startMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def targetNameChanged(self, name: str) -> None: ...
def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def targetChanged(self, target: Qt3DCore.QTransform) -> None: ...
def framePositionsChanged(self, positions: typing.Iterable[float]) -> None: ...
def setEndMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def setStartMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def setTargetName(self, name: str) -> None: ...
def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def setTarget(self, target: Qt3DCore.QTransform) -> None: ...
def setFramePositions(self, positions: typing.Iterable[float]) -> None: ...
def removeKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ...
def addKeyframe(self, keyframe: Qt3DCore.QTransform) -> None: ...
def setKeyframes(self, keyframes: typing.Iterable[Qt3DCore.QTransform]) -> None: ...
def endMode(self) -> 'QKeyframeAnimation.RepeatMode': ...
def startMode(self) -> 'QKeyframeAnimation.RepeatMode': ...
def targetName(self) -> str: ...
def easing(self) -> QtCore.QEasingCurve: ...
def target(self) -> Qt3DCore.QTransform: ...
def keyframeList(self) -> typing.List[Qt3DCore.QTransform]: ...
def framePositions(self) -> typing.List[float]: ...
class QLerpClipBlend('QAbstractClipBlendNode'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def endClipChanged(self, endClip: 'QAbstractClipBlendNode') -> None: ...
def startClipChanged(self, startClip: 'QAbstractClipBlendNode') -> None: ...
def blendFactorChanged(self, blendFactor: float) -> None: ...
def setEndClip(self, endClip: 'QAbstractClipBlendNode') -> None: ...
def setStartClip(self, startClip: 'QAbstractClipBlendNode') -> None: ...
def setBlendFactor(self, blendFactor: float) -> None: ...
def endClip(self) -> 'QAbstractClipBlendNode': ...
def startClip(self) -> 'QAbstractClipBlendNode': ...
def blendFactor(self) -> float: ...
class QMorphingAnimation('QAbstractAnimation'):
class Method(int): ...
Normalized = ... # type: 'QMorphingAnimation.Method'
Relative = ... # type: 'QMorphingAnimation.Method'
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def methodChanged(self, method: 'QMorphingAnimation.Method') -> None: ...
def targetNameChanged(self, name: str) -> None: ...
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def interpolatorChanged(self, interpolator: float) -> None: ...
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def setMethod(self, method: 'QMorphingAnimation.Method') -> None: ...
def setTargetName(self, name: str) -> None: ...
def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ...
def morphTargetList(self) -> typing.List['QMorphTarget']: ...
def getWeights(self, positionIndex: int) -> typing.List[float]: ...
def setWeights(self, positionIndex: int, weights: typing.Iterable[float]) -> None: ...
def removeMorphTarget(self, target: 'QMorphTarget') -> None: ...
def addMorphTarget(self, target: 'QMorphTarget') -> None: ...
def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ...
def easing(self) -> QtCore.QEasingCurve: ...
def method(self) -> 'QMorphingAnimation.Method': ...
def targetName(self) -> str: ...
def target(self) -> Qt3DRender.QGeometryRenderer: ...
def interpolator(self) -> float: ...
def targetPositions(self) -> typing.List[float]: ...
class QMorphTarget(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def attributeNamesChanged(self, attributeNames: typing.Iterable[str]) -> None: ...
@staticmethod
def fromGeometry(geometry: Qt3DRender.QGeometry, attributes: typing.Iterable[str]) -> 'QMorphTarget': ...
def removeAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ...
def addAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ...
def setAttributes(self, attributes: typing.Iterable[Qt3DRender.QAttribute]) -> None: ...
def attributeNames(self) -> typing.List[str]: ...
def attributeList(self) -> typing.List[Qt3DRender.QAttribute]: ...
class QSkeletonMapping('QAbstractChannelMapping'):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...
def skeletonChanged(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
def setSkeleton(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
def skeleton(self) -> Qt3DCore.QAbstractSkeleton: ...
class QVertexBlendAnimation('QAbstractAnimation'):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def targetNameChanged(self, name: str) -> None: ...
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def interpolatorChanged(self, interpolator: float) -> None: ...
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
def setTargetName(self, name: str) -> None: ...
def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ...
def morphTargetList(self) -> typing.List['QMorphTarget']: ...
def removeMorphTarget(self, target: 'QMorphTarget') -> None: ...
def addMorphTarget(self, target: 'QMorphTarget') -> None: ...
def setMorphTargets(self, targets: typing.Iterable['QMorphTarget']) -> None: ...
def targetName(self) -> str: ...
def target(self) -> Qt3DRender.QGeometryRenderer: ...
def interpolator(self) -> float: ...
def targetPositions(self) -> typing.List[float]: ...