gCAD3D 2.35
NC_Main.h File Reference

Go to the source code of this file.

Data Structures

struct  NC_recTyp
 
struct  NC_up_rec
 

Macros

#define APT_ind_INC   2500
 
#define NC_UPLISTSIZ   100
 

Functions

void WC_Init_all (int)
 
void WC_Init ()
 
void WC_Init_ObjG2 (ObjG2 *)
 
void WC_Init_Tol ()
 
void WC_EOF ()
 
int WC_PP_open (int mode)
 
void WC_setDisp3D (int)
 
int NC_setRefsys (int)
 
void NC_setGrafAtt (int AttInd)
 
void NC_set_actPos (Point2 *)
 
int WC_set_obj_stat (int stat)
 
void APT_Init ()
 
void APT_Reset ()
 
int WC_Work__ (int, char *)
 
int WC_Work1 (int, char *)
 
int APT_work_def (char *, char **)
 
int APT_work_NCCmd (char *, char **)
 
int APT_work_AppCodTab (char *, char **)
 
int APT_Lay_add (int layNr, int aus_anz, char *sptr, int *aus_typ, double *aus_tab)
 
int APT_UP_up (char)
 
int APT_UP_down ()
 
int APT_stack_NCCmd (char *buf, int)
 
int APT_input_get (char *)
 
int APT_ausg_NCCmd (int)
 
int APT_ausg_chTool (char *)
 
int APT_PP_Write_Lin (Point *)
 
int APT_PP_Write_Cir (Circ *)
 
int APT_PP_Write ()
 
void APT_PP_FROM ()
 
Point2 APT_transl2 (Point2 *)
 
Point2 APT_rotate3 (Point *)
 
double APT_transl_rad (double)
 
int APT_disp_SymB (int typ, int att, Point *pt1)
 
void APT_disp_SymV (int, int att, Point2 *, double)
 
void APT_disp_SymV1 (int, int att, Point *, double)
 
void APT_disp_SymV2 (int, int att, Point *, Point *, double)
 
void APT_disp_SymV3 (int, int att, Point *, Vector *, double)
 
void APT_disp_TxtA (int, Point *, char *)
 
void APT_disp_ln (Point2 *, Point2 *, int, double, double)
 
void APT_disp_ac (ObjG2 *, int, double)
 
void APT_disp_nam (int, long, void *)
 
void APT_DrawDimen (int typ, long apt_ind, ObjGX *dim1)
 
void APT_DrawTxtG (int typ, long apt_ind, GText *tx1)
 
void APT_DrawPoint (int, long, Point *)
 
void APT_DrawLine (int, long, Line *)
 
void APT_DrawCirc (int, long, Circ *)
 
void APT_DrawCurv (int, long, ObjGX *, double, Memspc *)
 
int APT_DrawModel (int, long, ModelRef *)
 
int APT_DrawSur (int typ, long apt_ind)
 
int APT_DrawSol (int typ, long apt_ind)
 
int APT_DrawPln (int typ, long objInd, Plane *pl1)
 
void APT_curv2ptArr (Point2 *, int *, ObjG2 *)
 
int PP_up_list (NC_up_rec **upAct, char *macnam, int workmode)
 
double WC_ask_ModSiz ()
 
void APT_get_dreh (int *, double *, double)
 

Macro Definition Documentation

#define APT_ind_INC   2500
#define NC_UPLISTSIZ   100

Function Documentation

void WC_Init_all ( int  )
void WC_Init ( )
void WC_Init_ObjG2 ( ObjG2 )
void WC_Init_Tol ( )
compute all Tolerances from APT_ModSiz (Defaultvalue = 500)
sets: Default:
UT_TOL_pt identical Points-tolerence 0.0001
UT_TOL_ln max deviation of a point from a line 0.001
UT_TOL_cv max deviation of point from curve 0.005
UT_DISP_cv max deviation of displayPolygon from curve 0.05
WC_sur2_Def, WC_sur2, APT_ln_len.
see ../ut/ut_tol_const.h (defaults)
void WC_EOF ( )
int WC_PP_open ( int  mode)
void WC_setDisp3D ( int  )

ON = 3D; else 2D

int NC_setRefsys ( int  )
void NC_setGrafAtt ( int  AttInd)

set GR_Att_act

void NC_set_actPos ( Point2 )
int WC_set_obj_stat ( int  stat)

0=perm, 1=workmode (obj in status nascendi; see APT_decode_ccv)

void APT_Init ( )
void APT_Reset ( )
int WC_Work__ ( int  ,
char *   
)
work sourceObj.
RetCod:
-2 do nothing
-3 obj not yet complete
int WC_Work1 ( int  ,
char *   
)
main-interpreter-function
Input:
cbuf must be terminated with '\'; without objName.
Output:
retCod 0 = OK;
-1 = Error, stop.
-2 = invisible obj (joint, activity), continue
-3 = obj not yet complete
subModels must be loaded (else use WC_Work__).
int APT_work_def ( char *  ,
char **   
)
Work DefinitionLine (decode, store obj in DB, display obj).
RetCod: defTyp. or -3 (obj not yet complete)
Input:
cmdIn obj left of '='
data pointer to srcTxt right of '='
int APT_work_NCCmd ( char *  ,
char **   
)
int APT_work_AppCodTab ( char *  ,
char **   
)
work commands HIDE VIEW MODSIZ DEFTX EXECM .. (AppCodTab)
retCod: >=0 cmd in AppCodTab; cmd executed.
-1 error executing commend.
-2 cmd not in AppCodTab;
int APT_Lay_add ( int  layNr,
int  aus_anz,
char *  sptr,
int *  aus_typ,
double *  aus_tab 
)
int APT_UP_up ( char  )
int APT_UP_down ( )
int APT_stack_NCCmd ( char *  buf,
int   
)
int APT_input_get ( char *  )
int APT_ausg_NCCmd ( int  )
int APT_ausg_chTool ( char *  )
int APT_PP_Write_Lin ( Point )
int APT_PP_Write_Cir ( Circ )
int APT_PP_Write ( )
void APT_PP_FROM ( )
Point2 APT_transl2 ( Point2 )
Point2 APT_rotate3 ( Point )
double APT_transl_rad ( double  )
int APT_disp_SymB ( int  typ,
int  att,
Point pt1 
)
APT_disp_SymB disp temp bitmap symbols SYM_TRI_S SYM_STAR_S ..
Input:
att see GL_col_tab
see also GL_DrawSymB
void APT_disp_SymV ( int  ,
int  att,
Point2 ,
double   
)

APT_disp_SymV display symbols at 2D-pos (not rotated symbols)

void APT_disp_SymV1 ( int  ,
int  att,
Point ,
double   
)
APT_disp_SymV1 display symbols in x-y-plane (not rotated symbols)
oriented symbols in x-y-plane: see APT_disp_SymV2
void APT_disp_SymV2 ( int  ,
int  att,
Point ,
Point ,
double   
)
APT_disp_SymV2 display oriented symbols in x-y-plane; eg SYM_ARROH
Input:
typ SYM_ARROH (arrowhead)
pt1 position Head
pt2 direction
void APT_disp_SymV3 ( int  ,
int  att,
Point ,
Vector ,
double   
)
APT_disp_SymV3 disp temp oriented vector-symbols SYM_ARROW SYM_SQUARE ..
void APT_disp_TxtA ( int  ,
Point ,
char *   
)
void APT_disp_ln ( Point2 ,
Point2 ,
int  ,
double  ,
double   
)
void APT_disp_ac ( ObjG2 ,
int  ,
double   
)
void APT_disp_nam ( int  ,
long  ,
void *   
)
display objName at objPosition.
Input:
typ,ind typ & DB-ind of obj to display
e1 data-struct of obj
void APT_DrawDimen ( int  typ,
long  apt_ind,
ObjGX dim1 
)
void APT_DrawTxtG ( int  typ,
long  apt_ind,
GText tx1 
)
void APT_DrawPoint ( int  ,
long  ,
Point  
)
void APT_DrawLine ( int  ,
long  ,
Line  
)
void APT_DrawCirc ( int  ,
long  ,
Circ  
)
void APT_DrawCurv ( int  ,
long  ,
ObjGX ,
double  ,
Memspc  
)
dbi ist DB-index; nicht DL-Index !
Input:
dbi dbi
int APT_DrawModel ( int  ,
long  ,
ModelRef  
)
int APT_DrawSur ( int  typ,
long  apt_ind 
)
int APT_DrawSol ( int  typ,
long  apt_ind 
)
int APT_DrawPln ( int  typ,
long  objInd,
Plane pl1 
)
void APT_curv2ptArr ( Point2 ,
int *  ,
ObjG2  
)
int PP_up_list ( NC_up_rec **  upAct,
char *  macnam,
int  workmode 
)
double WC_ask_ModSiz ( )
void APT_get_dreh ( int *  ,
double *  ,
double   
)