00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Rob Bairos,, 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: CL_Defines.h ( CL Library, C++) 00015 * 00016 * COMMENTS: 00017 * common definitions 00018 */ 00019 00020 #ifndef __CL_Defines__ 00021 #define __CL_Defines__ 00022 00023 #include <UT/UT_Floor.h> 00024 #include <UT/UT_XformOrder.h> 00025 00026 enum CL_Unit { 00027 UNIT_NONE = -1, 00028 UNIT_FRAME = 0, 00029 UNIT_SAMPLE = 1, 00030 UNIT_SECOND = 2 00031 }; 00032 00033 #define CL_RINT(x) (SYSrint(x)) 00034 00035 00036 // These values are used when reading and writing binary data. 00037 #define CL_PACKET_END 0 // add but never modify! 00038 #define CL_PACKET_RATE 1 00039 #define CL_PACKET_START 2 00040 #define CL_PACKET_TRACKLENGTH 3 00041 #define CL_PACKET_QUATERNIONS 4 00042 #define CL_PACKET_TRACKS 5 00043 #define CL_PACKET_NCVERSION 6 00044 #define CL_PACKET_COMMENT 7 00045 #define CL_PACKET_TRACKDATATYPE 8 00046 00047 00048 #define CL_BCLIP_MAGIC_NUMBER (('b'<<24) + ('c'<<16) + ('l'<<8) + ('p')) 00049 00050 #define CL_BCLIP_NCVERSION 1 00051 00052 00053 static inline const char * 00054 CLorderToString(UT_XformOrder::xyzOrder ord) 00055 { 00056 switch(ord) 00057 { 00058 case UT_XformOrder::XYZ: 00059 return "xyz"; 00060 case UT_XformOrder::XZY: 00061 return "xzy"; 00062 case UT_XformOrder::YXZ: 00063 return "yxz"; 00064 case UT_XformOrder::YZX: 00065 return "yzx"; 00066 case UT_XformOrder::ZXY: 00067 return "zxy"; 00068 // case UT_XformOrder::ZYX: 00069 default: 00070 return "zyx"; 00071 } 00072 } 00073 00074 #endif
1.5.9