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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
// XViewDefV2.cpp: Body of the XViewDefV2 class.
//
//////////////////////////////////////////////////////////////////////
#include "XViewDefV2.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
XViewDefV2::XViewDefV2()
{
}
XViewDefV2::~XViewDefV2()
{
}
void XViewDefV2::OnPacketReceived(CigiBasePacket *Packet)
{
CigiViewDefV2 *InPckt = (CigiViewDefV2 *)Packet;
printf("View Definition:\n");
printf("\tView ID = %d\n",InPckt->GetViewID());
printf("\tGroup ID = %d\n",InPckt->GetGroupID());
printf("\tView Type = %d\n",InPckt->GetViewType());
printf("\tReplicate Mode = %d : ",InPckt->GetPixelReplicateMode());
switch(InPckt->GetPixelReplicateMode())
{
case 0:
printf("ReplicateNone\n");
break;
case 1:
printf("Replicate1x2\n");
break;
case 2:
printf("Replicate2x1\n");
break;
case 3:
printf("Replicate2x2\n");
break;
case 4:
printf("ReplicateDefA\n");
break;
case 5:
printf("ReplicateDefB\n");
break;
case 6:
printf("ReplicateDefC\n");
break;
case 7:
printf("ReplicateDefD\n");
break;
default:
printf("\n");
break;
}
printf("\tMirror Mode = %d : ",InPckt->GetMirrorMode());
switch(InPckt->GetMirrorMode())
{
case 0:
printf("MirrorNone\n");
break;
case 1:
printf("Horizontal\n");
break;
case 2:
printf("Vertical\n");
break;
case 3:
printf("Horiz_Vert\n");
break;
default:
printf("\n");
break;
}
printf("\tTracker Assigned = %d\n",InPckt->GetTrackerAssigned());
printf("\tNear FOV Clipping Plane Enable = %d\n",InPckt->GetFOVNearEn());
printf("\tFar FOV Clipping Plane Enable = %d\n",InPckt->GetFOVFarEn());
printf("\tLeft FOV Clipping Plane Enable = %d\n",InPckt->GetFOVLeftEn());
printf("\tRight FOV Clipping Plane Enable = %d\n",InPckt->GetFOVRightEn());
printf("\tTop FOV Clipping Plane Enable = %d\n",InPckt->GetFOVTopEn());
printf("\tBottom FOV Clipping Plane Enable = %d\n",InPckt->GetFOVBottomEn());
printf("\tNear FOV Clipping Plane = %f\n",InPckt->GetFOVNear());
printf("\tFar FOV Clipping Plane = %f\n",InPckt->GetFOVFar());
printf("\tLeft FOV Clipping Plane = %f\n",InPckt->GetFOVLeft());
printf("\tRight FOV Clipping Plane = %f\n",InPckt->GetFOVRight());
printf("\tTop FOV Clipping Plane = %f\n",InPckt->GetFOVTop());
printf("\tBottom FOV Clipping Plane = %f\n",InPckt->GetFOVBottom());
}
|