1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 /* 9 * $Header: /src/master/dx/src/exec/dpexec/vcr.h,v 1.6 2004/06/09 16:14:29 davidt Exp $ 10 */ 11 12 #include <dxconfig.h> 13 14 15 #ifndef __VCR_H 16 #define __VCR_H 17 18 #include "d.h" 19 20 #if defined(__cplusplus) || defined(c_plusplus) 21 extern "C" { 22 #endif 23 24 /* 25 * Commands 26 */ 27 28 #define VCR_C_STOP 0 /* stop vcr */ 29 #define VCR_C_PAUSE 1 /* pause playing */ 30 #define VCR_C_PLAY 2 /* play */ 31 #define VCR_C_STEP 3 /* step one frame */ 32 #define VCR_C_FLAG 4 /* set a flag */ 33 #define VCR_C_TREE 5 /* attach a new graph */ 34 #define VCR_C_DIR 6 /* set the direction */ 35 36 /* 37 * Flags to change 38 */ 39 40 #define VCR_F_FORWARD 4 41 #define VCR_F_PALIN 2 42 #define VCR_F_LOOP 1 43 44 #define VCR_STATE_B__ 0x0 45 #define VCR_STATE_B_L 0x1 46 #define VCR_STATE_BP_ 0x2 47 #define VCR_STATE_BPL 0x3 48 #define VCR_STATE_F__ 0x4 49 #define VCR_STATE_F_L 0x5 50 #define VCR_STATE_FP_ 0x6 51 #define VCR_STATE_FPL 0x7 52 53 /* 54 * Directions for the play and step commands 55 */ 56 57 #define VCR_D_FORWARD (1) 58 #define VCR_D_BACKWARD (- VCR_D_FORWARD) 59 60 /* 61 * Externally visible functions. 62 */ 63 Error _dxf_ExInitVCR (EXDictionary dict); 64 void _dxf_ExCleanupVCR (void); 65 int _dxf_ExInitVCRVars (void); 66 void _dxf_ExVCRCommand (int comm, long arg1, int arg2); 67 void _dxf_ExVCRRedo(void); 68 void _dxf_ExVCRChange(void); 69 void _dxf_ExVCRChangeReset(void); 70 int _dxf_ExCheckVCR (EXDictionary dict, int multiProc); 71 int _dxf_ExVCRRunning (); 72 int _dxf_ExVCRCallBack (int n); 73 74 #if defined(__cplusplus) || defined(c_plusplus) 75 } 76 #endif 77 78 #endif /* __VCR_H */ 79