1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
// XSpecEffDefV2.cpp: Body of the XSpecEffDefV2 class.
//
//////////////////////////////////////////////////////////////////////
#include "XSpecEffDefV2.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
XSpecEffDefV2::XSpecEffDefV2()
{
}
XSpecEffDefV2::~XSpecEffDefV2()
{
}
void XSpecEffDefV2::OnPacketReceived(CigiBasePacket *Packet)
{
CigiSpecEffDefV2 *InPckt = (CigiSpecEffDefV2 *)Packet;
bool ok = true;
printf("Special Effect\n");
printf("\tEntity ID = %d\n",InPckt->GetEntityID());
printf("\tSequence Direction = %d : ",InPckt->GetSeqDir());
switch(InPckt->GetSeqDir())
{
case 0:
printf("Forward\n");
break;
case 1:
printf("Backward\n");
break;
default:
printf("\n");
break;
}
printf("\tColor Enable = %d\n",InPckt->GetColorEn());
printf("\tRed Component = %d\n",InPckt->GetRed());
printf("\tGreen Component = %d\n",InPckt->GetGreen());
printf("\tBlue Component = %d\n",InPckt->GetBlue());
printf("\tX Scale = %f\n",InPckt->GetXScale());
printf("\tY Scale = %f\n",InPckt->GetYScale());
printf("\tZ Scale = %f\n",InPckt->GetZScale());
printf("\tTime Scale = %f\n",InPckt->GetTimeScale());
printf("\tEffect Count = %d\n",InPckt->GetEffectCnt());
printf("\tSeperation = %f\n",InPckt->GetSeparation());
printf("\tBurst Rate = %f\n",InPckt->GetBurstRate());
printf("\tDuration = %f\n",InPckt->GetDuration());
}
|