gCAD3D 2.35
NC_apt.h File Reference

Go to the source code of this file.

Enumerations

enum  Typ_Cmd1 {
  T_ON_, T_OFF_, T_IN, T_OUT,
  T_ARC, T_HI, T_LO, T_MA,
  T_TAG, T_PERP, T_CCW, T_CW,
  T_ELL, T_IMG, T_CCV2, T_POL2,
  T_POL, T_PSP3, T_BSP0, T_CCV,
  T_RCIR, T_RSTRIP, T_SRU, T_HAT,
  T_SRV, T_PRISM, T_SPH, T_CON,
  T_TOR, T_CYL, T_CUT, T_REV,
  T_SWEEP, T_RGT, T_LFT, T_DIM,
  T_DIMA, T_LDR, T_LOFT, T_FSUB,
  T_PRJ, T_TRA, T_ROT, T_MIR,
  T_TXA, T_DIMD, T_DIMR, T_DIM3,
  T_REC, T_INT, T_RSYS, T_51_UNUSED,
  T_RBSP, T_ARC1, T_CTRL, T_LDRP,
  T_LDRC, T_LDRS, T_CTLG, T_ISO,
  T_FW, T_CX, T_PTAB, T_MSH,
  T_CLOT, T_TNG, T_IMP, T_BSP1,
  T_PARL, T_BLEND, T_UNL, T_UNL1,
  T_UNL2, T_DISP_PT, T_DISP_PL
}
 

Functions

char ** APT_decode_txt (char **)
 
int APT_decode_var (double *, int, int *, double *)
 
int APT_decode_vc (Vector *, int, int *, double *)
 
int APT_decode_pt (Point *, int, int *, double *)
 
int APT_decode_ln (Line *, int, int *, double *)
 
int APT_decode_ci (Circ *, int, int *, double *)
 
int APT_decode_pln1 (Plane *, int, int *, double *)
 
int APT_decode_pln2 (Plane *, int, int *, double *)
 
int APT_decode_inp (int, int *, double *)
 
int APT_decode_ccv2 (ObjGX *cv1, int aus_anz, int aus_typ[], double aus_tab[])
 
int APT_decode_ausdr (int *aus_typ, double *aus_tab, int aus_siz, char **data)
 
int APT_decode_ausdr1 (int *aus_typ, double *aus_tab, int aus_siz, char *data)
 
int APT_decode_func (int *w_typ, double *w_tab, int w_siz, char *func, char *ausd)
 
int APT_store_obj (int *, long *, int, int *, double *)
 
char * APT_cp_ausd (char *, char *, int)
 
char * APT_get_Val (double *, char *, double)
 
char * APT_get_Txt (char *, char *, double)
 
void APT_get_TxAll (char *outBuf, char *inBuf, double offset)
 
void APT_get_String (char *, char *, double)
 
int APT_solv_mod (Point2 *, int)
 
int APT_solv_mod_1 (Point2 *, int, int *, int)
 
int APT_solv_x_max (double *, Point2 *, int, int *)
 
int APT_solv_y_max (double *, Point2 *, int, int *)
 
int APT_solv_x_min (double *, Point2 *, int, int *)
 
int APT_solv_y_min (double *, Point2 *, int, int *)
 
int APT_decode_pt1 (Point *, int, int *, double *)
 

Enumeration Type Documentation

enum Typ_Cmd1
Enumerator
T_ON_ 
T_OFF_ 
T_IN 
T_OUT 
T_ARC 
T_HI 
T_LO 
T_MA 
T_TAG 
T_PERP 
T_CCW 
T_CW 
T_ELL 
T_IMG 
T_CCV2 
T_POL2 
T_POL 
T_PSP3 
T_BSP0 
T_CCV 
T_RCIR 
T_RSTRIP 
T_SRU 
T_HAT 
T_SRV 
T_PRISM 
T_SPH 
T_CON 
T_TOR 
T_CYL 
T_CUT 
T_REV 
T_SWEEP 
T_RGT 
T_LFT 
T_DIM 
T_DIMA 
T_LDR 
T_LOFT 
T_FSUB 
T_PRJ 
T_TRA 
T_ROT 
T_MIR 
T_TXA 
T_DIMD 
T_DIMR 
T_DIM3 
T_REC 
T_INT 
T_RSYS 
T_51_UNUSED 
T_RBSP 
T_ARC1 
T_CTRL 
T_LDRP 
T_LDRC 
T_LDRS 
T_CTLG 
T_ISO 
T_FW 
T_CX 
T_PTAB 
T_MSH 
T_CLOT 
T_TNG 
T_IMP 
T_BSP1 
T_PARL 
T_BLEND 
T_UNL 
T_UNL1 
T_UNL2 
T_DISP_PT 
T_DISP_PL 

Function Documentation

char** APT_decode_txt ( char **  )
int APT_decode_var ( double *  ,
int  ,
int *  ,
double *   
)
int APT_decode_vc ( Vector ,
int  ,
int *  ,
double *   
)
int APT_decode_pt ( Point ,
int  ,
int *  ,
double *   
)
int APT_decode_ln ( Line ,
int  ,
int *  ,
double *   
)
int APT_decode_ci ( Circ ,
int  ,
int *  ,
double *   
)
int APT_decode_pln1 ( Plane ,
int  ,
int *  ,
double *   
)
int APT_decode_pln2 ( Plane ,
int  ,
int *  ,
double *   
)
int APT_decode_inp ( int  ,
int *  ,
double *   
)
int APT_decode_ccv2 ( ObjGX cv1,
int  aus_anz,
int  aus_typ[],
double  aus_tab[] 
)
int APT_decode_ausdr ( int *  aus_typ,
double *  aus_tab,
int  aus_siz,
char **  data 
)
DO NOT USE; new func: ATO_ato_srcLn__
decode sourceObj -> atomicObj
Names ("xx #name") must have been removed
int APT_decode_ausdr1 ( int *  aus_typ,
double *  aus_tab,
int  aus_siz,
char *  data 
)
int APT_decode_func ( int *  w_typ,
double *  w_tab,
int  w_siz,
char *  func,
char *  ausd 
)
int APT_store_obj ( int *  ,
long *  ,
int  ,
int *  ,
double *   
)
Ein Objekt eTyp aus den Parametern aus_typ/aus_tab erzeugen;
Objekt in der DB speichern.
MemoryUsage:
Die decode-Funktionen benutzen die globalen Memspc APTSpcObj,APTSpcTmp.
Sind nach DB-speichern wieder frei.
Input:
eTyp eInd ErgebnisTyp u DB-Index
aus_typ[] aus_tab[] die decodierten Eingabeparameter
if(!aus_anz) return typ and ind of last processed obj
Output:
Retcode -1: Fehler;
Retcode -2: nicht mehr zeichnen !
see also APT_obj_ato
char* APT_cp_ausd ( char *  ,
char *  ,
int   
)
char* APT_get_Val ( double *  ,
char *  ,
double   
)
char* APT_get_Txt ( char *  ,
char *  ,
double   
)
APT_get_Txt copy next word from string
starting-position is inBuf[offset]
void APT_get_TxAll ( char *  outBuf,
char *  inBuf,
double  offset 
)
copy string, remove outer enclosing double-quotes ".."
eg in: "LDMOD "Data/sample_mod_blech1.gcad""
out: LDMOD "Data/sample_mod_blech1.gcad"
void APT_get_String ( char *  ,
char *  ,
double   
)
copy word until double-quote
int APT_solv_mod ( Point2 ,
int   
)
int APT_solv_mod_1 ( Point2 ,
int  ,
int *  ,
int   
)
int APT_solv_x_max ( double *  ,
Point2 ,
int  ,
int *   
)
int APT_solv_y_max ( double *  ,
Point2 ,
int  ,
int *   
)
int APT_solv_x_min ( double *  ,
Point2 ,
int  ,
int *   
)
int APT_solv_y_min ( double *  ,
Point2 ,
int  ,
int *   
)
int APT_decode_pt1 ( Point ,
int  ,
int *  ,
double *   
)