UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtvTypes.h
1 /* ZtvTypes.h $Revision: 1.4 $ $Date: 2003/06/23 14:53:44 $ */
2 
3 #ifndef __ZtvTypes_h
4 
5 #define __ZtvTypes_h
6 
7 #include <mix/Types.h>
8 
9 /*************************************************************
10  * Types and constant for trace viewing by ZtTraceView.
11  *************************************************************/
12 
13 typedef enum
14 {
15  ztvColorCoding,
16  ztvAmplCoding
17 } ZtvDrawingMode;
18 
19 typedef enum
20 {
21  ztvNoFill,
22  ztvFillPositive,
23  ztvFillNegative,
24  ztvFillBoth
25 } ZtvFillMode;
26 
27 typedef enum
28 {
29  ztvVisiblePositive,
30  ztvVisibleNegative,
31  ztvVisibleBoth
32 } ZtvVisibleAmpl;
33 
34 typedef enum
35 {
36  ztvNoNorm, /* no normalization */
37  ztvExpNorm, /* exponent normalization */
38  ztvAvgARU, /* ARU with normalization by Aavg */
39  ztvMaxARU /* ARU with normalization by Amax */
40 } ZtvNormMode;
41 
42 typedef enum
43 {
44  ztvViewVSP, /* Y-axis - coordinate, X-axis time */
45  ztvViewCDP /* X-axis - coordinate, Y-axis time */
46 } ZtvTraceView;
47 
48 
49 /* Mask of parameters */
50 #define tvDrawingMode (1<<0) /* amplitude coding or color coding */
51 #define tvColorAmpl (1<<1) /* amplitude coding monochrome or colored */
52 #define tvFillAmpl (1<<2) /* no fill, fill up, fill down or fill both */
53 #define tvPixelsPerKey (1<<3) /* how many pixels in one unit of key */
54 #define tvPixelsPerAmpl (1<<4) /* how many pixels for amplitude oscillation */
55 #define tvNormMode (1<<5) /* mode of trace normalization */
56 #define tvARUGap (1<<6) /* width of ARU gap in ms */
57 #define tvFading (1<<7) /* correction of trace absorption */
58 #define tvStartThd (1<<8) /* start treshold of visible amplitudes, % */
59 #define tvZeroThd (1<<9) /* usual threshold of visible amplitudes, % */
60 #define tvVisibleAmpl (1<<10) /* drawing top or/and bottom part of trace */
61 #define tvTraceView (1<<11) /* trace view mode CDP-like or VSP-like */
62 
63 typedef struct
64 {
65  ZtvDrawingMode drawing_mode;
66  Logic color_ampl;
67  ZtvFillMode fill_ampl;
68  float pixels_per_key;
69  float pixels_per_ampl;
70  ZtvNormMode norm_mode;
71  float aru_gap;
72  float fading;
73  float start_thd;
74  float zero_thd;
75  ZtvVisibleAmpl visible_ampl;
76  ZtvTraceView trace_orient;
77 
78 } ZParamsOfTV;
79 
80 
81 #endif /* ZtvTypes.h */
Definition: VSTypes.h:79