QAbstractClipAnimator Class
class Qt3DAnimation::QAbstractClipAnimatorQAbstractClipAnimator는 애니메이션 재생 기능을 제공하는 타입의 베이스 클래스입니다. 더 보기...
Header: | #include <QAbstractClipAnimator> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake: | QT += 3danimation |
QML에서: | AbstractClipAnimator |
상속합니다: | Qt3DCore::QComponent |
Inherited By: | Qt3DAnimation::QBlendedClipAnimator 그리고 Qt3DAnimation::QClipAnimator |
Status: | Deprecated |
공개 유형
enum | Loops { Infinite } |
속성
|
|
공용 기능
Qt3DAnimation::QChannelMapper * | channelMapper() const |
Qt3DAnimation::QClock * | clock() const |
bool | isRunning() const |
int | loopCount() const |
float | normalizedTime() const |
공용 슬롯
void | setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper) |
void | setClock(Qt3DAnimation::QClock *clock) |
void | setLoopCount(int loops) |
void | setNormalizedTime(float timeFraction) |
void | setRunning(bool running) |
void | start() |
void | stop() |
신호
void | channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper) |
void | clockChanged(Qt3DAnimation::QClock *clock) |
void | loopCountChanged(int loops) |
void | normalizedTimeChanged(float index) |
void | runningChanged(bool running) |
상세 설명
QAbstractClipAnimator의 서브클래스는 QEntity에 의해 집계되어 애니메이션 기능을 제공할 수 있습니다. 애니메이터 컴포넌트는 애니메이션 제어를 위한 인터페이스(예: 시작, 중지)를 제공합니다. 각 애니메이터 유형에는 애니메이션 클립의 채널을 애니메이션하려는 객체의 속성에 매핑하는 방법을 설명하는 QAbstractAnimationClip 및 QChannelMapper 과 같은 애니메이션 데이터 형식이 필요합니다.
다음과 같은 서브클래스를 사용할 수 있습니다:
멤버 유형 문서
enum QAbstractClipAnimator::Loops
애니메이션이 재생될 횟수를 보유합니다.
상수 | 값 | 설명 |
---|---|---|
Qt3DAnimation::QAbstractClipAnimator::Infinite | -1 | 명시적으로 중지될 때까지 루프를 계속 반복합니다. |
프로퍼티 문서
channelMapper : Qt3DAnimation::QChannelMapper*
이 프로퍼티에는 애니메이션 클립의 채널이 대상 오브젝트의 프로퍼티에 매핑되는 방식을 제어하는 채널매퍼가 있습니다.
함수에 액세스합니다:
Qt3DAnimation::QChannelMapper * | channelMapper() const |
void | setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper) |
알림 신호:
void | channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper) |
clock : Qt3DAnimation::QClock*
시계는 애니메이션이 재생되는 속도를 제어합니다.
기능에 액세스합니다:
Qt3DAnimation::QClock * | clock() const |
void | setClock(Qt3DAnimation::QClock *clock) |
알림 신호:
void | clockChanged(Qt3DAnimation::QClock *clock) |
loops : int
애니메이션이 재생될 횟수를 보유합니다.
기본값은 1이며 애니메이션이 한 번 재생된 후 중지됩니다.
QAbstractClipAnimator::Infinite 로 설정하면 애니메이션이 명시적으로 중지될 때까지 계속 반복됩니다.
기능에 액세스합니다:
int | loopCount() const |
void | setLoopCount(int loops) |
알림 신호:
void | loopCountChanged(int loops) |
normalizedTime : float
이 속성에는 클립 정규화된 시간이 저장됩니다.
함수에 액세스합니다:
float | normalizedTime() const |
void | setNormalizedTime(float timeFraction) |
알림 신호:
void | normalizedTimeChanged(float index) |
running : bool
이 프로퍼티는 애니메이션이 현재 실행 중인지 여부를 나타내는 부울을 보유합니다.
함수에 액세스합니다:
bool | isRunning() const |
void | setRunning(bool running) |
알림 신호:
void | runningChanged(bool running) |
멤버 함수 문서
bool QAbstractClipAnimator::isRunning() const
애니메이션이 현재 실행 중인지 여부를 나타내는 부울을 반환합니다.
참고: 속성에 대한 게터 함수 running.
int QAbstractClipAnimator::loopCount() const
애니메이션을 재생할 횟수를 반환합니다.
기본값은 1로, 애니메이션이 한 번 재생된 후 중지됩니다.
QAbstractClipAnimator::Infinite 로 설정하면 애니메이션이 명시적으로 중지될 때까지 계속 반복됩니다.
참고: 속성에 대한 게터 함수 loops.
setLoopCount()도 참조하세요 .
[slot]
void QAbstractClipAnimator::start()
애니메이션을 시작합니다.
[slot]
void QAbstractClipAnimator::stop()
애니메이션을 중지합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.