gCAD3D 2.35
ut_GL.h
Go to the documentation of this file.
1 /*
2 
3 
4 Korr:
5 2001-06-08 Taginfos zu.
6 
7 
8 =======================================================================*/
9 #define GR_MODE_DRAW 0
10 #define GR_MODE_SELECT 1
11 #define GR_MODE_FEEDBACK 2
12 #define GR_MODE_NORMAL 3
13 #define GR_MODE_PRINT1 4
14 #define GR_MODE_PRINT2 5
15 
16 #define GR_STATE_WIRE 0
17 #define GR_STATE_SHADE 1
18 #define GR_STATE_HID1 2
19 #define GR_STATE_HID2 3
20 #define GR_STATE_HID3 4
21 
22 
23 void GL2D_pos_move (int dx, int dy);
24 void GL_DefineView (int);
25 void GL_DefineDisp (int, int);
26 
27 void GL_Init__ (int, int, int);
28 void GL_Init0 ();
29 void GL_Init1 ();
30 void GL_Init_View ();
31 void GL_InitPtAtt (int ithick);
32 int GL_InitNewAtt (int, int);
33 void GL_InitSymb ();
34 void GL_InitAFont ();
35 void GL_InitGFont ();
36 int GL_InitGF2 (int ind, int ianz, char mode[], double cx[], double cy[]);
37 void GL_InitModelSize (double, int);
38 
39 void GL_Redraw ();
40 void GL_Redraw1 ();
41 
42 void GL_Reframe ();
43 void GL_Reframe1 ();
44 
45 void GL_Translate ();
46 void GL_Translate1 ();
47 void GL_Transl_Vert ();
48 void GL_Transl_VertP (Point*);
49 
50 void GL_Del0 (long);
51 void GL_Delete (long);
52 
53 void GL_GetGLMat0 ();
54 void GL_GetNormal0 ();
55 void GL_GetActPlane ();
59 Point GL_GetCen ();
60 Point GL_GetViewPt (Point *pti);
62 
63 long GL_Get_DLind ();
64 long GL_GetActInd ();
65 
66 double GL_get_Scale ();
67 double GL_query_ViewZ ();
68 
69 
70 void* GL_Print1 (int *iw, int *ih);
71 // int GL_Select (int, int*, long*, long*);
72 int GL_Feedback (int*, float*, int);
73 
74 void GL_Sk2Uk (double *,double *,double *,double,double,double);
75 void GL_Uk2Sk (double *,double *,double *,double,double,double);
76 
77 void GL_Do_Idle (int*, int*, int, int);
78 void GL_Do_Pan (int, int);
79 void GL_Do_Rot (int, int);
80 void GL_Do_Rot1 ();
81 void GL_Do_CenRot (double);
82 void GL_Do_Scale (int, int);
83 void GL_Set_Scale (double);
84 int GL_View_set (double[]);
85 int GL_View_get (double[]);
86 int GL_Set_Cen (Point *Ucen);
87 
88 void GL_Do_RubberBox ();
89 void GL_Start_RubberBox ();
90 void GL_Stop_RubberX (double *, Point *);
91 
92 void GL_Reshape (int, int);
93 void GL_Clear ();
94 void GL_Resize (int, int);
95 void GL_Rescale (double, Point*);
96 
97 
98 void GL_Draw_Ini (long*, int);
99 void GL_Disp_ln (Point*, Point*);
100 int GL_Disp_face (int gTyp, int ptNr, Point *pa);
101 int GL_Disp_iface (int gTyp, int iNr, int *ia, Point *pa);
102 
103 void GL_DrawPoint (long*, int, Point*);
104 void GL_DrawLine (long*, int, Line*);
105 void GL_DrawLtab (long *ind, int attInd, Line *lna, int lNr);
106 void GL_DrawVec (long*, int, Point*, Vector*);
107 void GL_DrawPoly2D (long*, int, int, Point2[], double);
108 void GL_DrawPoly (long*, int, int, Point*);
109 
110 // void GL_DrawQFac (long*, int, ObjG2*, double, ObjG2*, double);
111 // void GL_DrawRFac (long*, int, ObjG2*, double, ObjG2*, double);
112 // void GL_DrawRCone (long*, int, ObjG2*, double, ObjG2*, double);
113 
114 void GL_DrawRSur (long *ind,int attInd,int ptAnz,Point *pa1,Point *pa2);
115 int GL_DrawStrip1 (Point *ps, Point *pa1, Point *pa2, int ptAnz);
116 int GL_DrawStrip2 (Point *pa1, Point *pa2, int ptAnz, int newS);
117 void GL_DrawFan (Point *pt1,int ptAnz,Point *pa1,int side, int newS);
118 
119 void GL_DrawSymB (long*, int, int att, Point*);
120 void GL_DrawSymV (long*, int, int att, Point*, double);
121 void GL_DrawSymV2 (long*, int, int att, Point*, Point*, double);
122 void GL_DrawSymV3 (long*, int, int att, Point*, Vector*, double);
123 void GL_DrawTxtA (long*, int, Point *, char *);
124 void GL_DrawTxtG (long *ind, int att, GText *tx1);
125 // void GL_DrawTxtG (long *ind, int att,
126  // Point *P1, float size, float ang, char *txt);
127 void GL_DrawDimen (long *ind, int att, Dimen *dim1);
128 void GL_DrawDitto2 (long *ind, Point *p1, double az, char mir, Ditto *di);
129 int GL_DrawModel (long *ind, int att, ModelRef *mdr, ModelBas *mdb);
130 
131 int GL_txt__ (int dMod, int bMod,
132  Point *ptx, double txAng, double ay, double az,
133  double scale, char *txt);
134 
135  void GL_temp_Delete (long ind);
136  void GL_temp_delete ();
137  long GL_temp_GetInd ();
138  long GL_GetInd_temp ();
139  long GL_GetInd_last_temp ();
140 
141 
142 int GRU_teileArc (Point2*, int*, ObjG2*);
143 int GRU_teileArc1 (Point2*, int, ObjG2*);
144 int GRU_teileLin (Point2*, int, Point2*, Point2*);
145 
146 void GRU_calc_normal (Vector*, Point*, Point*, Point*);
147 void GRU_calc_normal2 (Vector*, Point2*,Point2*,Point2*, double,double);
148 
149 int GL_icons_dispTags (int iNr, char *txt, char stat);
150 // void GL_Test (long);
151 
152 
153 // #define GL_ptArr30Siz 1000
154 // #define GL_ptArr31Siz 140
155 // #define GL_ptArr32Siz 140
156 
157 
158 // relative move of the screenPos in screencoords
159 #define GL2D_pos_move(dx,dy) glBitmap (0,0,0.f,0.f,(float)dx,(float)dy,NULL)
160 
161 
162 extern int GL_pickSiz ; // SelectionDistance in Pixel (ScreenCoords)
163 
164 
165 
166 
167 /* ==================== EOF =============================== */
int GL_pickSiz
int GRU_teileArc(Point2 *, int *, ObjG2 *)
Definition: gru.c:617
void GL_DrawTxtG(long *ind, int att, GText *tx1)
Definition: ut_GL.c:13208
int GL_Disp_iface(int gTyp, int iNr, int *ia, Point *pa)
Definition: ut_GL.c:9508
void GL_Reshape(int, int)
Definition: ut_GL.c:6603
void GL_Do_CenRot(double)
Definition: ut_GL.c:5868
void GL_DrawSymV3(long *, int, int att, Point *, Vector *, double)
Definition: ut_GL.c:10957
Point GL_GetViewPos()
Definition: ut_GL.c:5650
void GL_GetActPlane()
int GL_InitGF2(int ind, int ianz, char mode[], double cx[], double cy[])
Definition: ut_GL.c:14382
void GL_Translate()
Definition: ut_GL.c:1544
void GL_DefineDisp(int, int)
Definition: ut_GL.c:3307
int GL_View_get(double[])
Definition: ut_GL.c:6406
int GL_Set_Cen(Point *Ucen)
Definition: ut_GL.c:6639
long GL_temp_GetInd()
Definition: ut_GL.c:3843
void * GL_Print1(int *iw, int *ih)
Definition: ut_GL.c:4274
3D-line, Typ_LN
Definition: ut_geo.h:361
double GL_query_ViewZ()
Definition: ut_GL.c:15740
char mode
Definition: xa_tra.c:152
void GL_Delete(long)
Definition: ut_GL.c:3697
void GL_InitAFont()
Definition: ut_GL.c:14288
int GL_DrawStrip1(Point *ps, Point *pa1, Point *pa2, int ptAnz)
Definition: ut_GL.c:8546
int GL_txt__(int dMod, int bMod, Point *ptx, double txAng, double ay, double az, double scale, char *txt)
Definition: ut_GL.c:12552
void GL_Init0()
Definition: ut_GL.c:3044
void GL_Set_Scale(double)
Definition: ut_GL.c:6537
dimension; Typ_Dimen
Definition: ut_geo.h:888
void GL_Init1()
Definition: ut_GL.c:3099
char stat
Definition: xa_tra.c:152
model reference; Typ_Model
Definition: ut_geo.h:829
void GL_Do_Rot(int, int)
void GL_DrawPoly2D(long *, int, int, Point2[], double)
Definition: ut_GL.c:7757
void GL_temp_delete()
Definition: xa_batch.c:501
static Point pt1
Definition: DemoPlugin_Dialog.c:85
void GL_InitModelSize(double, int)
Definition: ut_GL.c:13934
double GL_get_Scale()
Definition: ut_GL.c:15750
void GL_Del0(long)
Definition: ut_GL.c:3630
void GL_Clear()
Definition: xa_batch.c:503
void GL_Transl_Vert()
int GRU_teileArc1(Point2 *, int, ObjG2 *)
Definition: gru.c:666
internal submodel (block); Typ_Ditto
Definition: ut_geo.h:795
void GL_DrawSymB(long *, int, int att, Point *)
Definition: ut_GL.c:9890
void GL_Reframe1()
Definition: ut_GL.c:1440
void GL_DrawSymV(long *, int, int att, Point *, double)
Definition: ut_GL.c:9936
void GL_Reframe()
Definition: ut_GL.c:1384
void GL_DefineView(int)
Definition: ut_GL.c:3210
grafic text; Typ_GTXT
Definition: ut_geo.h:742
int GL_InitNewAtt(int, int)
Definition: ut_GL.c:14143
long GL_GetInd_temp()
Definition: ut_GL.c:3863
int GL_DrawStrip2(Point *pa1, Point *pa2, int ptAnz, int newS)
Definition: ut_GL.c:8633
void GL_Redraw1()
void GL_InitPtAtt(int ithick)
Definition: ut_GL.c:14030
void GL_Do_Pan(int, int)
void GL_Translate1()
Definition: ut_GL.c:1586
void GL_DrawDimen(long *ind, int att, Dimen *dim1)
Definition: ut_GL.c:12470
int GL_Disp_face(int gTyp, int ptNr, Point *pa)
Definition: ut_GL.c:9473
void GL_Uk2Sk(double *, double *, double *, double, double, double)
Definition: ut_GL.c:2940
3D-point, Typ_PT
Definition: ut_geo.h:195
void GL_Disp_ln(Point *, Point *)
Definition: ut_GL.c:7733
Vector GL_GetEyeX()
Definition: ut_GL.c:5568
void GL_DrawLine(long *, int, Line *)
Definition: ut_GL.c:7601
void GL_GetGLMat0()
Definition: ut_GL.c:2856
void GL_DrawSymV2(long *, int, int att, Point *, Point *, double)
Definition: ut_GL.c:9986
basic model description; Typ_SubModel
Definition: ut_geo.h:820
int GL_View_set(double[])
void GL_Sk2Uk(double *, double *, double *, double, double, double)
Definition: ut_GL.c:2960
3D-vector, Typ_VC
Definition: ut_geo.h:209
long GL_GetActInd()
Definition: xa_batch.c:494
void GL_Rescale(double, Point *)
Definition: ut_GL.c:6958
void GL_Do_Scale(int, int)
void GL_Start_RubberBox()
void GL_Do_Rot1()
void GL_Draw_Ini(long *, int)
Definition: ut_GL.c:7451
void GL_DrawDitto2(long *ind, Point *p1, double az, char mir, Ditto *di)
Definition: ut_GL.c:13368
2D-point, Typ_PT2
Definition: ut_geo.h:189
void GL_DrawTxtA(long *, int, Point *, char *)
Definition: ut_GL.c:11613
void GL_InitSymb()
Definition: ut_GL.c:14454
int GL_Feedback(int *, float *, int)
void GL_Init_View()
Definition: ut_GL.c:3149
Point GL_GetViewPt(Point *pti)
Definition: ut_GL.c:5510
void GL_Stop_RubberX(double *, Point *)
Point GL_GetConstrPos(Point *pti)
Definition: ut_GL.c:5731
void GL_DrawFan(Point *pt1, int ptAnz, Point *pa1, int side, int newS)
Definition: ut_GL.c:8852
int GL_icons_dispTags(int iNr, char *txt, char stat)
Definition: ut_GL.c:16084
void GL_DrawVec(long *, int, Point *, Vector *)
Definition: ut_GL.c:10155
void GRU_calc_normal2(Vector *, Point2 *, Point2 *, Point2 *, double, double)
Definition: gru.c:810
void GL_Transl_VertP(Point *)
Definition: ut_GL.c:1640
void GL_DrawPoly(long *, int, int, Point *)
Definition: ut_GL.c:7990
long lNr
Definition: xa_tra.c:150
void GL_Init__(int, int, int)
Definition: ut_GL.c:15011
void GL_Resize(int, int)
Definition: ut_GL.c:13878
void GL_DrawRSur(long *ind, int attInd, int ptAnz, Point *pa1, Point *pa2)
Definition: ut_GL.c:8438
Point GL_GetCurPos()
Definition: ut_GL.c:5622
#define GL2D_pos_move(dx, dy)
Definition: ut_GL.h:159
void GL_Do_RubberBox()
Definition: ut_geo.h:292
void GL_temp_Delete(long ind)
Definition: ut_GL.c:3797
long GL_GetInd_last_temp()
Definition: ut_GL.c:3853
int GRU_teileLin(Point2 *, int, Point2 *, Point2 *)
Definition: gru.c:711
void GRU_calc_normal(Vector *, Point *, Point *, Point *)
Definition: gru.c:754
long GL_Get_DLind()
Definition: xa_batch.c:495
void GL_Do_Idle(int *, int *, int, int)
Definition: ut_GL.c:5799
void GL_Redraw()
Definition: ut_GL.c:1983
void GL_GetNormal0()
int ind
Definition: xa_tra.c:151
void GL_DrawLtab(long *ind, int attInd, Line *lna, int lNr)
Definition: ut_GL.c:7690
void GL_InitGFont()
Definition: ut_GL.c:14314
int GL_DrawModel(long *ind, int att, ModelRef *mdr, ModelBas *mdb)
Definition: ut_GL.c:13587
void GL_DrawPoint(long *, int, Point *)
Definition: ut_GL.c:7500
Point GL_GetCen()
Definition: xa_batch.c:496