AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::Animator类 参考

动画操作器 更多...

#include <APIAnimator.h>

类 AnyCAD::API::Animator 继承关系图:
AnyCAD::API::TransformAnimator

Public 成员函数

void SetName (const String &name)
 
String GetName () const
 
void SetEnabled (bool bEnabled)
 
bool IsEnabled () const
 
virtual void EnableLoop (bool bLoop)
 
virtual bool IsLoopEnabled () const
 
virtual bool IsPaused () const
 
virtual bool ActiveAnimation (const String &animation)
 
virtual bool ActiveAnimationByIndex (int nChannel)
 
virtual void SetFrameSpan (int start, int end)
 
String GetNextActionScriptName () const
 
void SetNextActionScriptName (const String &val)
 
virtual AABox GetNodeBBox (const String &name) const
 

详细描述

动画操作器

用于驱动动画每一帧的执行。

成员函数说明

virtual bool AnyCAD::API::Animator::ActiveAnimation ( const String animation)
virtual

Active the animation

返回
true if successfully.

AnyCAD::API::TransformAnimator 重载.

virtual bool AnyCAD::API::Animator::ActiveAnimationByIndex ( int  nChannel)
virtual

Active the animation by index

返回
true if successfully.
virtual void AnyCAD::API::Animator::EnableLoop ( bool  bLoop)
virtual

Enable the animator to loop running

参数
bLooptrue or false

AnyCAD::API::TransformAnimator 重载.

String AnyCAD::API::Animator::GetName ( ) const

Get Name

返回
the name
String AnyCAD::API::Animator::GetNextActionScriptName ( ) const

Get the next action script name

返回
the script name.
virtual AABox AnyCAD::API::Animator::GetNodeBBox ( const String name) const
virtual

Get the bounding box of the child node

参数
namethe node name.
返回
the bounding box.
bool AnyCAD::API::Animator::IsEnabled ( ) const

Get enable status

返回
true if enabled.
virtual bool AnyCAD::API::Animator::IsLoopEnabled ( ) const
virtual

Get loop status

返回
true if enabled.

AnyCAD::API::TransformAnimator 重载.

virtual bool AnyCAD::API::Animator::IsPaused ( ) const
virtual

Get running status

返回
true if paused.
void AnyCAD::API::Animator::SetEnabled ( bool  bEnabled)

Enable the animator

参数
bEnabledtrue or false
virtual void AnyCAD::API::Animator::SetFrameSpan ( int  start,
int  end 
)
virtual

Set the tick range

参数
startthe start position.
endthe end position
void AnyCAD::API::Animator::SetName ( const String name)

Set Name

参数
namethe name
void AnyCAD::API::Animator::SetNextActionScriptName ( const String val)

Set the next action when the animation is finished.

参数
valthe next action script name.

该类的文档由以下文件生成: