===================================================== Liste_Funktionen_Beginn: GA_hide__ hide mainfunctions .. GA_hide_fil__ save / restore - with open File GA_hide_fil_tmp save Hidelist --> File / restore Hidelist from File GA_hideTab Load Liste aus HIDE-TextLine GA_lTyp__ modify lineType GA_LtypTab GA_sStyl__ modify surfStyle GA_sStylTab tabelle von objects laden .. GA_Col__ modify color GA_Tra__ modify transparenz GA_fil_wri write out the PermanentAttributes GA_dump__ GA_getRec get ga-record GA_delRec delete ga-record GA_find__ find GA-rec if already exist - internal: GA_newRec get recordNr of next free record GA_addRec add new Record GA_ckEmpty GA_clean1 GA_realloc Liste_Funktionen_Ende: =====================================================
#include "MS_Def0.h"
#include <string.h>
#include <math.h>
#include <stdio.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../db/ut_DB.h"
#include "../gr/ut_UI.h"
#include "../xa/xa_mem.h"
#include "../xa/xa_ga.h"
#include "../xa/xa.h"
Defines | |
#define | GA_INC_SIZ 5000 |
Functions | |
long | GA_find__ (int typ, long ind) |
================================================================ | |
long | GA_newRec () |
================================================================ | |
long | GA_addRec () |
================================================================ | |
long | GA_creRec (int typ, long ind) |
================================================================ | |
int | GA_realloc (int newSiz) |
================================================================ | |
int | GA_hide_fil_tmp (int mode) |
=============================================================== | |
int | GA_hide_fil__ (int mode, FILE *fp1) |
=============================================================== | |
int | GA_fil_wri (FILE *fpo, int iGrp, int src) |
================================================================ | |
int | GA_load__ (char *cbuf) |
=============================================================== | |
int | GA_sStylTab (int aus_anz, int *aus_typ, double *aus_tab) |
=============================================================== | |
int | GA_LtypTab (int aus_anz, int *aus_typ, double *aus_tab) |
=============================================================== | |
int | GA_hideTab (int aus_anz, int *aus_typ, double *aus_tab) |
=============================================================== | |
int | GA_view__ (long dli, int mode, int typ, long ind) |
================================================================ | |
int | GA_hide__ (int mode, long dli, int typ) |
=============================================================== | |
int | GA_getRec (ObjAtt **ga_rec, long ind) |
================================================================ | |
int | GA_ckEmpty (long ind) |
================================================================ | |
int | GA_clean1 () |
================================================================ | |
int | GA_delRec (int typ, long ind) |
int | GA_Col__ (long dli, int mode, int typ, long ind) |
================================================================ | |
int | GA_Tex__ (long dli, int mode, int typ, long ind) |
================================================================ | |
int | GA_Tra__ (long dli, int mode, int typ, long ind) |
================================================================ | |
int | GA_lTyp__ (long dli, int lTyp, int typ, long ind) |
================================================================ | |
int | GA_sStyl__ (long dli, int sStyl, int typ, long ind) |
================================================================ | |
int | GA_dump_tex (FILE *fpo) |
================================================================ | |
int | GA_dump__ () |
================================================================ | |
int | GA_dump_1 (long i1) |
================================================================ | |
Variables | |
DL_Att * | GR_ObjTab |
long | GR_TAB_IND |
int | TexRefNr |
TexRef * | TexRefTab |
AP_STAT | AP_stat |
progress of Start | |
ColRGB | AP_actcol |
the active color .. | |
ColRGB | AP_defcol |
die DefaultColor des aktiven (sub)Model | |
ObjAtt * | GA_ObjTab = NULL |
int | GA_recNr = 0 |
static int | GA_stat = 0 |
static long | GA_SIZ = 0 |
static ObjAtt | GA_DefRec |
#define GA_INC_SIZ 5000 |
long GA_find__ | ( | int | typ, | |
long | ind | |||
) |
================================================================
================================================================ GA_find__ find GA-rec if already exist ACHTUNG: fix typ vorher mit AP_typ_2_bastyp !
long GA_newRec | ( | ) |
================================================================
================================================================ GA_newRec get recordNr of next free record
long GA_addRec | ( | ) |
================================================================
================================================================ eine neuen GA-Record anlegen und desen Nr retournieren ..
long GA_creRec | ( | int | typ, | |
long | ind | |||
) |
================================================================
================================================================
int GA_realloc | ( | int | newSiz | ) |
================================================================
================================================================ rc 0: OK; rc -2: EOM. Exit.
int GA_hide_fil_tmp | ( | int | mode | ) |
===============================================================
=============================================================== mode = 1 save Hidelist --> File (bin) mode = 2 restore Hidelist from File (bin)
int GA_hide_fil__ | ( | int | mode, | |
FILE * | fp1 | |||
) |
===============================================================
=============================================================== write/read the GA-Tab to/from file
int GA_fil_wri | ( | FILE * | fpo, | |
int | iGrp, | |||
int | src | |||
) |
================================================================
================================================================ write out the PermanentAttributes. HIDE, G#, SSTYLS .. see Mod_savSubBuf1 DL_wri_dynDat0 Grp_exp Input: iGrp 0 = all Obj's; 1 = only objs's in Group. src 0=UTF_FilBuf0; 1=UTF_FilBuf1
int GA_load__ | ( | char * | cbuf | ) |
===============================================================
=============================================================== parameter ist die GATAB-Line; mem_cbuf1 wenn parameter == NULL, dann delete GA-Tab.
int GA_sStylTab | ( | int | aus_anz, | |
int * | aus_typ, | |||
double * | aus_tab | |||
) |
===============================================================
=============================================================== eine SSTYLS-tabelle von objects laden .. zB "G2 L20 .."
int GA_LtypTab | ( | int | aus_anz, | |
int * | aus_typ, | |||
double * | aus_tab | |||
) |
===============================================================
=============================================================== eine Ltyp-tabelle von objects laden .. zB "G2 L20 .."
int GA_hideTab | ( | int | aus_anz, | |
int * | aus_typ, | |||
double * | aus_tab | |||
) |
===============================================================
=============================================================== eine hide-tabelle von objects laden ..
int GA_view__ | ( | long | dli, | |
int | mode, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ GA_view__ hide / view obj mode 0=view, 1=hide GA_view__ (-1, 1, s_tab[sInd].gTyp, s_tab[sInd].gInd);
int GA_hide__ | ( | int | mode, | |
long | dli, | |||
int | typ | |||
) |
===============================================================
=============================================================== Input: typ = APT-Typ dli = mode==0: DB-index; mode==3: DL-Index mode =-1: clear hidden-Elements-Tabelle mode = 1: update (hidden Elements aus Tabelle wieder hiden) mode = 5: set reverseMode (display all hidden objects; mode = 6: set reverseMode off mode = 7: Display Info Hidden about Objects mode = 8: ask state; 0=normal, 1=hidden, -1=notExist
int GA_getRec | ( | ObjAtt ** | ga_rec, | |
long | ind | |||
) |
================================================================
================================================================
int GA_ckEmpty | ( | long | ind | ) |
================================================================
================================================================
int GA_clean1 | ( | ) |
================================================================
================================================================
int GA_delRec | ( | int | typ, | |
long | ind | |||
) |
int GA_Col__ | ( | long | dli, | |
int | mode, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ GA_Col__ modify color mode = 0: modify Color 1: reset Color
int GA_Tex__ | ( | long | dli, | |
int | mode, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ mode 0 = remove texture mode 1 = apply texture mode 2 = load texture mode 3 = update texture
int GA_Tra__ | ( | long | dli, | |
int | mode, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ GA_Tra__ modify transparenz mode: 0 = reset transpar. 1 = apply 50 % transpar. 2 = apply 100 % transpar.
int GA_lTyp__ | ( | long | dli, | |
int | lTyp, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ GA_lTyp__ modify lineType lTyp ist ein attInd; 0-50. Fuer ein Modify Curve-Linetyp muss man 1) den GL-Attribut-Record aendern (GL_InitNewAtt) und 2) die GL-DrawFunction fuer das obj rufen; die attInd ist nun anders.
int GA_sStyl__ | ( | long | dli, | |
int | sStyl, | |||
int | typ, | |||
long | ind | |||
) |
================================================================
================================================================ GA_sStyl__ modify surfStyle
Input: dli DL-Ind; if(dli==-1) GA-Record anlegen od. modifizieren if(dli>=0): modify obj; sStyl 1=shaded, 2=symbolic, 3=transparent.
int GA_dump_tex | ( | FILE * | fpo | ) |
================================================================
================================================================ alle GA-records mit textures raus ..
int GA_dump__ | ( | ) |
================================================================
================================================================
int GA_dump_1 | ( | long | i1 | ) |
================================================================
================================================================
long GR_TAB_IND |
int TexRefNr |
int GA_recNr = 0 |
int GA_stat = 0 [static] |
long GA_SIZ = 0 [static] |