gCAD3D 2.35
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_face (int gTyp, int icol, int pNr, Point *pa);
78  int GR_Disp_iface (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 ==============*/
void GR_DrawTxtG(long *dli, int attInd, GText *tx1, long dbi)
Definition: ut_gr.c:491
int typ
Definition: xa_tra.c:151
double GTX_chw_(double)
Definition: ut_gtx.c:216
3D-plane, Typ_PLN
Definition: ut_geo.h:631
int GR_Disp_face(int gTyp, int icol, int pNr, Point *pa)
Definition: ut_gr.c:4200
int GR_Disp_sbsp(int ptUNr, int ptVNr, Point *pTab, int att)
Definition: ut_gr.c:4805
ellipse, Typ_CVELL
Definition: ut_geo.h:450
int GR_Draw_spu(long *ind, int att, int pNr, Point *pTab)
Definition: ut_gr.c:4694
3D-line, Typ_LN
Definition: ut_geo.h:361
int GR_Disp_iface(int gTyp, int icol, int iNr, int *ia, Point *pa)
Definition: ut_gr.c:4270
void GR_CreCirc(long *ind, int attInd, Circ *ci1)
Definition: ut_gr.c:733
char mode
Definition: xa_tra.c:152
void GR_CreDisk(long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
Definition: ut_gr.c:1799
int GR_Disp_sru(ObjGX *oxi, int att)
Definition: ut_gr.c:4790
void GR_DrawCyl(long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
Definition: ut_gr.c:1920
3D-circle, Typ_CI
Definition: ut_geo.h:404
void GR_DrawDimen(long *ind, int attInd, Dimen *dim1)
Definition: ut_gr.c:473
int GR_Disp_bez(CurvBez *bez, int att, Memspc *workSeg)
Definition: ut_gr.c:4445
double GTX_chhl_(double)
Definition: ut_gtx.c:262
int GR_DrawStrip(Point *pa1, Point *pa2, int ptAnz, int newS)
Definition: ut_gr.c:4985
Typ_ObjGX.
Definition: ut_geo.h:240
int GR_Disp_cv(Point *pta, int ptnr, int att)
Definition: ut_gr.c:4094
dimension; Typ_Dimen
Definition: ut_geo.h:888
void GR_CreCyl(long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
Definition: ut_gr.c:1435
int GR_DrawCvBSp(long *ind, long dbi, int attInd, CurvBSpl *cv1)
Definition: ut_gr.c:5173
int GR_Disp_p2Tab(int ptNr, Point2 *p2Tab, int typ, int att)
Definition: ut_gr.c:3655
int GR_Disp_pln(Plane *pl1, int att)
Definition: ut_gr.c:4150
static Point pt1
Definition: DemoPlugin_Dialog.c:85
Curve: polygon, Typ_CVPOL.
Definition: ut_geo.h:472
triangle, Typ_Tria
Definition: ut_geo.h:368
internal submodel (block); Typ_Ditto
Definition: ut_geo.h:795
void GR_CrePrism(long *ind, int attInd, int anz, Point *pa1, Point *pa2)
Definition: ut_gr.c:917
int GR_Disp_cv2(Point2 *pta, int ptnr, int att)
Definition: ut_gr.c:4123
void GR_DrawTorSeg(long *ind, int attInd, Circ *ci1, Circ *ci2)
Definition: ut_gr.c:2797
int GR_DrawFan(Point *pt1, int ptAnz, Point *pa1, int typ, int newS)
Definition: ut_gr.c:4947
int GR_Disp_ln(Line *ln1, int att)
Definition: ut_gr.c:3770
grafic text; Typ_GTXT
Definition: ut_geo.h:742
double GTX_cw_()
Definition: ut_gtx.c:233
void GR_CreTxtA(long *ind, int attInd, Point *pt1, char *txt)
Definition: ut_gr.c:365
Bezier curve Typ_CVBEZ.
Definition: ut_geo.h:540
void GR_CreTor(long *ind, int attInd, Circ *ci1, double rd1)
void GR_CreLine(long *ind, int attInd, Line *ln1)
Definition: ut_gr.c:698
void GR_DrawDisk(long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
Definition: ut_gr.c:1822
Curve: B-spline Typ_CVBSP.
Definition: ut_geo.h:507
double GR_gtx_ckBlockWidth(char *, double)
Definition: ut_gtx.c:298
double GTX_chhl2(double)
Definition: ut_gtx.c:273
void GR_Init1()
Definition: xa_batch.c:432
int GR_Disp_pt2(Point2 *pt1, int typ, int att)
Definition: ut_gr.c:3538
int GR_DrawPlane(long *ind, int attInd, Plane *pl1)
Definition: ut_gr.c:760
void GR_CreTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1)
Definition: ut_gr.c:777
3D-point, Typ_PT
Definition: ut_geo.h:195
double GTX_scale(double)
Definition: ut_gtx.c:189
void GR_DrawPrism(long *ind, int attInd, int anz, Point *pa1, Point *pa2)
Definition: ut_gr.c:942
3D-vector, Typ_VC
Definition: ut_geo.h:209
void GR_CreTorSeg(long *ind, int attInd, Circ *ci1, Circ *ci2)
Definition: ut_gr.c:1481
int GR_Disp_pTab(int ptNr, Point *pTab, int typ, int att)
Definition: ut_gr.c:3620
int GR_Disp_spu1(int pNr, Point *pTab, int att)
Definition: ut_gr.c:4648
int GR_DrawTriaStrip(long *ind, int attInd, int ptUNr, int ptVNr, Point *pa, int newS)
Definition: ut_gr.c:844
void GR_DrawTxtA(long *ind, int attInd, Point *pt1, char *txt)
Definition: ut_gr.c:406
2D-vector, Typ_VC2
Definition: ut_geo.h:203
2D-point, Typ_PT2
Definition: ut_geo.h:189
int GR_Disp_vc2(Vector2 *vc1, Point2 *pt1, int att, int mode)
Definition: ut_gr.c:3680
int GR_Disp_box(Point *p1, Point *p2, int att)
Definition: ut_gr.c:4489
int GR_Disp_fan(Point *ps, Point *pa1, Point *pa2, int pNr, int att)
Definition: ut_gr.c:4341
int GR_Disp_ac(Circ *ci1, int att)
Definition: ut_gr.c:3795
void GR_DrawTor(long *ind, int attInd, Circ *ci1, double rd1)
void GR_DrawPoint(long *, int, Point *)
Definition: ut_gr.c:551
void GR_DrawPoly(long *ind, int attInd, int, Point *)
Definition: ut_gr.c:620
long dli
Definition: xa_tra.c:150
int GR_Disp_vc(Vector *vc1, Point *pt1, int att, int mode)
Definition: ut_gr.c:3708
int GR_DrawCirc(long *dli, long dbi, int attInd, Circ *ci1)
Definition: ut_gr.c:1546
int GR_Disp_sur(ObjGX *oxi, int att)
Definition: ut_gr.c:4774
void GR_DrawCvPpsp3(long *ind, int attInd, ObjGX *cv1, double zval)
Definition: ut_gr.c:3208
void GR_DrawDitto2(long *ind, Point *pt, double az, char mir, Ditto *di)
Definition: ut_gr.c:671
int GR_Disp_CvBSp(CurvBSpl *bspl, int att)
Definition: ut_gr.c:5130
int GR_Disp_pt(Point *pt1, int typ, int att)
Definition: ut_gr.c:3509
int GR_CreSol(long *ind, int attInd, ObjGX *db1)
void GR_DrawLine(long *ind, int attInd, Line *ln1)
Definition: ut_gr.c:1504
int GR_Disp_npti(int ptNr, Point *pTab, int typ, int att, int itx)
Definition: ut_gr.c:3595
int GR_Disp_pol(CurvPoly *pol, int att)
Definition: ut_gr.c:5236
void GR_DrawTriaFan(long *ind, int attInd, Point *pc, int anz, Point *pa1)
Definition: ut_gr.c:802
void GR_CrePoint(long *ind, int attInd, Point *pt1)
Definition: ut_gr.c:519
int GR_Disp_tria(Triangle *tria, int att)
Definition: ut_gr.c:3956
int ind
Definition: xa_tra.c:151
double GTX_siz__(double)
Definition: ut_gtx.c:200
int GR_DrawSur(ObjGX *oxi, int att, long apt_ind)
Definition: ut_gr.c:2187
int GR_Disp_spu(int pNr, Point *pTab, int att)
Definition: ut_gr.c:4613
Typ_Memspc (a class for variable-length-records in memory)
Definition: ut_umem.h:33
static Line ln1
Definition: DemoPlugin_Dialog.c:86
#define GR_gxt_strLen(txt)
Definition: ut_gr.h:105
int GR_Disp_ell(CurvElli *el1, int att)
Definition: ut_gr.c:5256
double GTX_chh_(double)
Definition: ut_gtx.c:246