gCAD3D 2.40
ut_gr.h
Go to the documentation of this file.
1 /*
2 2001-06-06 die GR_ funktionen zu.
3 
4 
5 ==============================================================*/
6 
7 
8 
9  void GR_Init1 ();
10  void GR_CreTxtA (long *ind, int attInd, Point *pt1, char *txt);
11  void GR_CrePoint (long *ind, int attInd, Point *pt1);
12  void GR_CreLine (long *ind, int attInd, Line *ln1);
13  void GR_CreCirc (long *ind, int attInd, Circ *ci1);
14 
15  void GR_CreDisk (long *ind, int attInd, Point *pc, Vector *vz,
16  double rd1, double rd2);
17  void GR_CreTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1);
18  void GR_CrePrism (long *ind, int attInd, int anz, Point *pa1, Point *pa2);
19  void GR_CreCyl (long *ind, int attInd,Point *pt1, Point *pt2,
20  double rd1, double rd2);
21  void GR_CreTor (long *ind, int attInd, Circ *ci1, double rd1);
22  void GR_CreTorSeg (long *ind, int attInd, Circ *ci1, Circ *ci2);
23  int GR_CreSol (long *ind, int attInd, ObjGX *db1);
24 
25 
26  void GR_DrawDimen (long *ind, int attInd, Dimen *dim1);
27  void GR_DrawTxtA (long *ind, int attInd, Point *pt1, char *txt);
28  void GR_DrawTxtG (long *dli, int attInd, GText *tx1, long dbi);
29  // void GR_DrawTxtG (long *ind, int attInd,
30  // Point *pt1, float size, float ang, char *txt);
31  void GR_DrawPoint (long*, int, Point*);
32  void GR_DrawLine (long *ind, int attInd, Line *ln1);
33  int GR_DrawCirc (long *dli, long dbi, int attInd, Circ *ci1);
34  void GR_DrawPoly (long *ind, int attInd, int, Point*);
35  void GR_DrawDitto2 (long *ind, Point *pt, double az, char mir, Ditto *di);
36  int GR_DrawPlane (long *ind, int attInd, Plane *pl1);
37  int GR_DrawSur (ObjGX *oxi, int att, long apt_ind);
38 
39  void GR_DrawDisk (long *ind, int attInd, Point *pc, Vector *vz,
40  double rd1, double rd2);
41  void GR_DrawTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1);
42  int GR_DrawTriaStrip(long *ind,int attInd,
43  int ptUNr,int ptVNr,Point *pa,int newS);
44 
45  void GR_DrawPrism (long *ind, int attInd, int anz, Point *pa1, Point *pa2);
46  void GR_DrawCyl (long *ind, int attInd, Point *pt1, Point *pt2,
47  double rd1, double rd2);
48  void GR_DrawTor (long *ind, int attInd, Circ *ci1, double rd1);
49  void GR_DrawTorSeg(long *ind, int attInd, Circ *ci1, Circ *ci2);
50 
51  void GR_DrawCvPpsp3 (long *ind, int attInd, ObjGX *cv1, double zval);
52  int GR_DrawCvBSp (long *ind, long dbi, int attInd, CurvBSpl *cv1);
53 
54  int GR_DrawFan (Point *pt1, int ptAnz, Point *pa1, int typ, int newS);
55  int GR_DrawStrip (Point *pa1, Point *pa2, int ptAnz, int newS);
56  int GR_Draw_spu (long *ind, int att, int pNr, Point *pTab);
57 
58  int GR_Disp_pt (Point *pt1, int typ, int att);
59  int GR_Disp_pt2 (Point2 *pt1, int typ, int att);
60  int GR_Disp_npti (int ptNr, Point *pTab, int typ, int att, int itx);
61  int GR_Disp_pTab (int ptNr, Point *pTab, int typ, int att);
62  int GR_Disp_p2Tab (int ptNr, Point2 *p2Tab, int typ, int att);
63  int GR_Disp_vc (Vector *vc1, Point *pt1, int att, int mode);
64  int GR_Disp_vc2 (Vector2 *vc1, Point2 *pt1, int att, int mode);
65  int GR_Disp_ln (Line *ln1, int att);
66  int GR_Disp_ac (Circ *ci1, int att);
67  int GR_Disp_ell (CurvElli *el1, int att);
68  int GR_Disp_pol (CurvPoly *pol, int att);
69  int GR_Disp_cv (Point *pta, int ptnr, int att);
70  int GR_Disp_cv2 (Point2 *pta, int ptnr, int att);
71  int GR_Disp_bez (CurvBez *bez, int att, Memspc *workSeg);
72  int GR_Disp_CvBSp (CurvBSpl *bspl, int att);
73  int GR_Disp_tria (Triangle *tria, int att);
74  int GR_Disp_box (Point *p1, Point *p2, int att);
75  int GR_Disp_pln (Plane *pl1, int att);
76 
77  int GR_Disp_patch (int gTyp, int icol, int pNr, Point *pa);
78  int GR_Disp_ipatch (int gTyp, int icol, int iNr, int *ia, Point *pa);
79  int GR_Disp_fan (Point *ps, Point *pa1, Point *pa2, int pNr, int att);
80  int GR_Disp_spu (int pNr, Point *pTab, int att);
81  int GR_Disp_spu1 (int pNr, Point *pTab, int att);
82  int GR_Disp_sru (ObjGX *oxi, int att);
83  int GR_Disp_sur (ObjGX *oxi, int att);
84  int GR_Disp_sbsp (int ptUNr, int ptVNr, Point *pTab, int att);
85 
86  double GR_gtx_ckBlockWidth (char*, double);
87  int GR_gxt_strLen (char*);
88  double GTX_chw_ (double);
89  double GTX_cw_ ();
90  double GTX_chh_ (double);
91  double GTX_chhl_ (double);
92  double GTX_chhl2 (double);
93  double GTX_scale (double);
94  double GTX_siz__ (double);
95 
96 
97 
98 //================================================================
99 // inline functions
100 
105 #define GR_gxt_strLen(txt)\
106  strlen(txt) - UTX_cnr_chr (txt, '[')
107 
108 
109 
110 /*========== EOF ==============*/
int typ
Definition: xa_tra.c:151
void GR_DrawTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1)
Definition: ut_gr.c:815
void GR_DrawCvBSp()
Definition: xa_batch.c:414
double GTX_chw_(double)
Definition: ut_gtx.c:218
void GR_DrawTxtG()
Definition: xa_batch.c:408
void GR_DrawCyl(long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
Definition: ut_gr.c:1870
3D-plane, Typ_PLN
Definition: ut_geo.h:637
int GR_DrawStrip()
Definition: xa_batch.c:423
int GR_Disp_sbsp(int ptUNr, int ptVNr, Point *pTab, int att)
Definition: ut_gr.c:4782
void GR_CreCirc()
Definition: xa_batch.c:430
void GR_CreCyl(long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
Definition: ut_gr.c:1449
void GR_CreDisk(long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
Definition: ut_gr.c:1749
static Point pa[PT_MAX]
Definition: tst_gl1.c:108
ellipse, Typ_CVELL
Definition: ut_geo.h:456
3D-line, Typ_LN
Definition: ut_geo.h:367
void GR_Disp_vc2()
Definition: xa_batch.c:384
char mode
Definition: xa_tra.c:152
int GR_Draw_spu()
Definition: xa_batch.c:421
void GR_Init1()
Definition: xa_batch.c:432
3D-circle, Typ_CI
Definition: ut_geo.h:410
int GR_Disp_ipatch(int gTyp, int icol, int iNr, int *ia, Point *pa)
Definition: ut_gr.c:4238
int GR_DrawFan()
Definition: xa_batch.c:422
void GR_Disp_pt()
Definition: xa_batch.c:380
double GTX_chhl_(double)
Definition: ut_gtx.c:264
Typ_ObjGX.
Definition: ut_geo.h:242
void GR_Disp_pol()
Definition: xa_batch.c:391
dimension; Typ_Dimen
Definition: ut_geo.h:894
void GR_DrawSur()
Definition: xa_batch.c:411
static Point pt1
Definition: DemoPlugin_Dialog.c:85
int GR_Disp_bez(CurvBez *bez, int att, Memspc *workSeg)
Definition: ut_gr.c:4417
Curve: polygon, Typ_CVPOL.
Definition: ut_geo.h:478
triangle, Typ_Tria
Definition: tessbug1.c:71
internal submodel (block); Typ_Ditto
Definition: ut_geo.h:801
static int ptNr
Definition: tst_gl1.c:109
void GR_DrawPoint()
Definition: xa_batch.c:404
void GR_Disp_sru()
Definition: xa_batch.c:394
int GR_Disp_patch(int gTyp, int icol, int pNr, Point *pa)
Definition: ut_gr.c:4168
int GR_Disp_p2Tab(int ptNr, Point2 *p2Tab, int typ, int att)
Definition: ut_gr.c:3630
int GR_DrawTriaStrip()
Definition: xa_batch.c:424
void GR_DrawPoly(long *ind, int attInd, int ianz, Point *ptarr)
Definition: ut_gr.c:633
void GR_DrawDisk(long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
Definition: ut_gr.c:1772
grafic text; Typ_GTXT
Definition: ut_geo.h:748
double GTX_cw_()
Definition: ut_gtx.c:235
void GR_CreLine()
Definition: xa_batch.c:426
Bezier curve Typ_CVBEZ.
Definition: ut_geo.h:546
void GR_CreTor(long *ind, int attInd, Circ *ci1, double rd1)
void GR_CreTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1)
Definition: ut_gr.c:790
void GR_CrePrism(long *ind, int attInd, int anz, Point *pa1, Point *pa2)
Definition: ut_gr.c:931
Curve: B-spline Typ_CVBSP.
Definition: ut_geo.h:513
double GR_gtx_ckBlockWidth(char *, double)
Definition: ut_gtx.c:300
double GTX_chhl2(double)
Definition: ut_gtx.c:275
void GR_CreTxtA(long *ind, int attInd, Point *pt1, char *txt)
Definition: ut_gr.c:378
int GR_Disp_box(Point *p1, Point *p2, int att)
Definition: ut_gr.c:4461
void GR_Disp_cv()
Definition: xa_batch.c:387
void GR_DrawTorSeg(long *ind, int attInd, Circ *ci1, Circ *ci2)
Definition: ut_gr.c:2757
void GR_Disp_pTab()
Definition: xa_batch.c:382
3D-point, Typ_PT
Definition: tessbug1.c:66
double GTX_scale(double)
Definition: ut_gtx.c:191
int GR_Disp_fan(Point *ps, Point *pa1, Point *pa2, int pNr, int att)
Definition: ut_gr.c:4313
void GR_DrawTxtA()
Definition: xa_batch.c:409
3D-vector, Typ_VC
Definition: tst_glDrawElements1.c:58
void GR_DrawDimen()
Definition: xa_batch.c:407
2D-vector, Typ_VC2
Definition: ut_geo.h:204
void GR_DrawPrism(long *ind, int attInd, int anz, Point *pa1, Point *pa2)
Definition: ut_gr.c:956
2D-point, Typ_PT2
Definition: ut_geo.h:190
void GR_Disp_sur()
Definition: xa_batch.c:393
void GR_CreTorSeg(long *ind, int attInd, Circ *ci1, Circ *ci2)
Definition: ut_gr.c:1495
void GR_Disp_pln()
Definition: xa_batch.c:395
void GR_CrePoint()
Definition: xa_batch.c:429
void GR_DrawTor(long *ind, int attInd, Circ *ci1, double rd1)
void GR_Disp_pt2()
Definition: xa_batch.c:381
void GR_Disp_ac()
Definition: xa_batch.c:389
long dli
Definition: xa_tra.c:150
int GR_Disp_tria(Triangle *tria, int att)
Definition: ut_gr.c:3919
int GR_Disp_spu1(int pNr, Point *pTab, int att)
Definition: ut_gr.c:4624
void GR_DrawCvPpsp3()
Definition: xa_batch.c:413
void GR_Disp_vc()
Definition: xa_batch.c:383
int GR_CreSol(long *ind, int attInd, ObjGX *db1)
void GR_DrawPlane()
Definition: xa_batch.c:410
void GR_Disp_cv2()
Definition: xa_batch.c:388
int GR_Disp_spu(int pNr, Point *pTab, int att)
Definition: ut_gr.c:4589
void GR_DrawDitto2(long *ind, Point *pt, double az, char mir, Ditto *di)
Definition: ut_gr.c:684
void GR_DrawLine()
Definition: xa_batch.c:405
int ind
Definition: xa_tra.c:151
void GR_Disp_ln()
Definition: xa_batch.c:385
void GR_DrawCirc()
Definition: xa_batch.c:406
int GR_Disp_npti(int ptNr, Point *pTab, int typ, int ptAtt, int txAtt)
Definition: ut_gr.c:3568
double GTX_siz__(double)
Definition: ut_gtx.c:202
void GR_Disp_ell()
Definition: xa_batch.c:390
Typ_Memspc (a class for variable-length-records in memory)
Definition: ut_umem.h:32
void GR_Disp_CvBSp()
Definition: xa_batch.c:392
static Line ln1
Definition: DemoPlugin_Dialog.c:86
#define GR_gxt_strLen(txt)
Definition: ut_gr.h:105
double GTX_chh_(double)
Definition: ut_gtx.c:248