Your project
来源:互联网 发布:雪梨网红淘宝店链接 编辑:程序博客网 时间:2024/06/07 03:03
1. Your project
1.1 The Tool
流程图,需要在view和statemachine中间穿梭,变量和event两边窜。
Hard tofind where the animation plays
Namingrules!
1.2 Cluster Architect
1.2.1 templates used
AnalogSpeedLimitIndicator
AnalogSpeedRpmIndicators-- Cluster.Cluster2D.SpeedRpmIndicators
SpeedRPMAnim -- Cluster.SpeedRPMAnim
1.2.2 Templatedetails
1.2.2.1 AnalogSpeedRpmIndicators
1). AnalogSpeedRmpIndicators.Speed.doUpdate
v:this.rotationAngleZ= -((260.5 / v:this.speedMaxValue * v:this.speedCurrent) - 130.4);
2). Cluster.Cluster2D.SpeedRpmIndicators.Speed.speedCurrent
Linked toCluster.SpeedRPMAnim.SpeedAnim.value.target
1.2.2.2 SpeedRPMAnim and its use in Cluster
Conditional action calls animation_play, inimationinitial value is defined in onPlay, each curve ends, onTerminate initializenext curve value.
1). SpeedRPMAnim.SpeedAnimconditional action:
v:this.step =0;
v:this->value.target= v:this.valueList[0];
f:animation_play(v:this);
2). SpeedRPMAnim.SpeedAnimattri butes
internalTarget
showMiles
valueList
timeList
3). onPlay
v:this->value.duration= v:this.timeList[v:this.step+1]-v:this.timeList[v:this.step];
v:this->value.start= v:this->value.target; // v:this.valueList[v:this.step];
v:this->value.end= v:this.valueList[v:this.step+1];
if(v:this.showMiles && v:this->value.end > 193.23) // max value formiles
v:this->value.end = 193.23;
4).updateTarget
v:this.value_target= if( v:this.showMiles ) v:this.internalTarget*0.621 elsev:this.internalTarget;
5).onTerminate
if((v:this.step+2)<length v:this.timeList)
{
if(v:this.runSimulation)
{
v:this.step += 1;
f:animation_play(v:this); {}
}
}
else
{
v:this.onFinished(); {}
}
6). onFinished
Fire ev: SIMULATION_START
1.3 Animation
1.3.1 Sleep Mode
1.3.2 StartupAnimation
1.3.3 boot animation--AnimActivateCluster
Target:Cluster.Cluster3D.Case3D.rotationAngleX
Range: -85.0~0
startAnimation
trigger-v:this->activate, true by conditional action.
onTrigger: f:animation_play
1.4 Global conditional action
1.4.1 Switch mode
If Eventtrigger:HK_SWITCH_MODE_PRESS
Then action:Fire event ‘MODE_SWITCH’
1.4.2 Autorun demomodus
IF: Eventtrigger: DEMOMODUS_START
Then action(demosequence): let v:t = 0::int32_t in
{
// reset
v:t += 500; fire_delayed v:t, ev:RESET();
// activatecluster
v:t += 2000; fire_delayed v:t,ev:HK_POWER_PRESS(dp:CONST_DISPLAYID,0,0,0);
// Media
v:t += 3000; fire_delayed v:t,ev:HK_UP_PRESS(dp:CONST_DISPLAYID,0,0,0);
// Nav
……
1.5 Open issue
- Your project
- POJ1690 (Your)((Term)((Project)))
- zoj1423-(Your)((Term)((Project)))
- Create Your Project
- (Your)((Term)((Project)))
- building "your project name" gradle project info
- Your Successful Project Management Career
- poj 1690 (Your)((Term)((Project)))
- Add version for your project
- zoj 1423 (Your)((Term)((Project)))
- Managing Versions of Your Project
- (Your)((Term)((Project)))(字符串处理)
- POJ 1690 - (Your)((Term)((Project)))
- poj 1690 (Your)((Term)((Project)))
- Building Your Project with Gradle
- Building Your Project with Gradle
- Your project contains error(s)
- Using JsonCpp in your project
- 飞机游戏:敌机子弹的实现与死亡之后的爆炸效果
- 第三周 项目4-顺序表应用
- 第三周项目1-顺序表的基本运算
- mySQL数据库--增加、删除、更改外键关联
- [httpcomments-client-4.5.2]--源码分析(Working with message headers)
- Your project
- jQuery\confirm('You are going to visit: ' + this.href);
- Android adb 连接错误
- 第三周项目1-顺序表的基本运算
- VMware 11.1 安装Mac OS X 10.10 中问题解决
- HDU 5875 Function
- 使用sed做符号替换
- 多线程学习篇(一)关键代码段
- BZOJ2064 分裂