UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vtsP.h
1 /* $Id: vtsP.h,v 1.4 2002/09/17 19:44:44 vlad Exp $ */
2 
3 #ifndef __vtsP_h
4 
5 #define __vtsP_h
6 
7 #include <X11/Xlib.h>
8 #include <tv/VisualTS.h>
9 #include <tv/TraceInterp.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif /* __cplusplus */
14 
15 
16 /*=== Private types ===*/
17 
18 /* Type of polyline */
19 typedef struct
20 {
21  unsigned int pointsCnt, knotsCnt;
22 
23  XPoint* points; /* Points */
24  unsigned int* knots; /* Knot indexes */
25 #define atUp 'U'
26 #define atDown 'D'
27 #define atNone 'N'
28  char* arcType; /* 'U' - atUp, 'D' - atDown, 'N' - atNone */
29 
30 } PolyLine;
31 
32 /* Type of grid map */
33 typedef struct
34 {
35  float t;
36  int x;
37 
38 } GridMap;
39 
40 
41 /* Private methods of visual trace set */
42 int AllocPolyLine (PolyLine* ppl);
43 void FreePolyLine (PolyLine* ppl);
44 int ComposePolygonVTS (VisualTraceSet vts, unsigned int vtri,
45  TraceInterp tri, PolyLine* ppl, float dAmax);
46 void DrawPolygon (VisualTraceSet vts, PolyLine* ppl, Drawable dst);
47 void MakePixmapVTS (VisualTraceSet vts);
48 int DrawPixmapVTS (VisualTraceSet vts);
49 int GetGridMapVTS (VisualTraceSet vts, GridMap** gridMapTable, int* n);
50 void CutTraceAmplVTS (VisualTraceSet vts, float* Amax, float* trace_body);
51 
52 /*
53  Mode: NoneDecor, LeftFootnote, RightFootnote, LeftBracket
54  Usually (x,y1) but LeftBracket -- y1..y2 - height of bracket.
55  */
56 #define NoDecorations 0
57 #define LeftFootnote 1
58 #define RightFootnote 2
59 #define LeftTopIndent 3
60 void DrawStringVTS (VisualTraceSet vts, int x, int y, char* str, int mode);
61 
62 
63 #ifdef __cplusplus
64 };
65 #endif /* __cplusplus */
66 
67 #endif /* vtsP.h */
Definition: VisualTS.h:157
Definition: vtsP.h:19
Definition: TraceInterp.h:35
Definition: vtsP.h:33