ut_DL.h File Reference

Go to the source code of this file.

Defines

#define GR_ATT_TAB_SIZ   50
#define GR_DIT_TAB_SIZ   1000

Functions

void DL_Init ()
void DL_InitAttTab ()
void DL_InitAttRec (int ind, int col, int ltyp, int lthick)
long DL_StoreObj (int Typ, long DBInd, int AttInd)
void DL_DumpObjTab ()
int DL_StoreAtt (long Ind, GR_Att *att1)
int DL_Redraw ()
void DL_ReScale__ ()
void DL_ReScalePoint (Point *pt1)
int DL_GetTyp (long dli)
long DL_GetInd (long dli)
long DL_GetTrInd (long dli)
int DL_Get_GrAtt (GR_Att *att1, long Ind)
DL_Att DL_GetAtt (long dli)
unsigned long DL_get_iatt (long dli)
long DL_SetObj (int typ, long dbi)
long DL_find_smObj (int typ, long DBind, long DLend, int imod)
long DL_find_obj (int typ, long ind, long DLend)
int DL_find_sel (int *typ, long *ind)
int DL_pick_set (long ind, int mode)
int DL_grp1_set (long ind, int mode)
int DL_disp_chg ()
void DL_disp_set (long ind, int mode)
void DL_Lay_act_g1 (int layNr, int mode)
void DL_Lay_typ_g1 (int typ, int mode)
void DL_Lay_col_g1 (int col, int mode)
void DL_Lay_ltyp_g1 (int ltyp, int mode)
void DL_Lay_thk_g1 (int thk, int mode)
int DL_Lay_mod (int layNr, int func, int mode)
int DL_Lay_add (int layNr)

Detailed Description


Define Documentation

#define GR_ATT_TAB_SIZ   50
#define GR_DIT_TAB_SIZ   1000

Function Documentation

void DL_Init (  ) 
void DL_InitAttTab (  ) 

read ltyp.rc --> GR_AttTab

void DL_InitAttRec ( int  ind,
int  col,
int  ltyp,
int  lthick 
)

    define a lineattributeRecord
    Input:
      ind    Recordnr; first=0; use as attInd in GL_DrawLine
      col    color 2=red, ...
      ltyp   0=full, 1=dash-dot, 2=shortDash, 3=longDash
      lthick 1-6, thickness in pixels
   
    defaultvalues from <tempDir>/ltyp.rc

long DL_StoreObj ( int  Typ,
long  DBInd,
int  AttInd 
)

    Den naechsten freien DispList-Platz belegen mit Typ, DBInd, att ....
    In der (hier lokalen) Displayliste, DBInd und Att speichern.
    Wird benutzt von GL zum Redraw, beim Select.
    
    Dynam. Objekte, die ueberhaupt nicht in der APT-DB gespeichert werden,
     erhalten als DBInd den negativen DispList-Index.
    
     DBInd  0:    definiert temp. Obj 8 
     DBInd -1:    temp. Obj m ind. -GR_TAB_IND
    
    
      dlInd = DL_StoreObj (Typ_LN, objInd, attInd);
      // IN:  Objectindex objInd  und ObjTyp Typ_xx
      // OUT: DispListIndex dlInd
    
    see also:
      DL_SetInd   preset DL-index (to modify DL-record)

void DL_DumpObjTab (  ) 
int DL_StoreAtt ( long  Ind,
GR_Att att1 
)
int DL_Redraw (  ) 
void DL_ReScale__ (  ) 

    Neue Version
    Probleme mit d1: try
     int    isiz;
     float  feedBuffer[100];
     isiz = 100;
     GL_Feedback (&isiz, &feedBuffer);
     printf(" isiz=%d\n",isiz);
     isiz < 0 OK; mehr Vertices gefunden;
     else increase d1 to
     d1 = APT_ModSiz / 0.1;

void DL_ReScalePoint ( Point pt1  ) 
int DL_GetTyp ( long  dli  ) 

liefert den Typ eines DB-Obj (als return-Code)

long DL_GetInd ( long  dli  ) 

     liefert den DB-index eines DB-Obj (als return-Code)
    
     Input: objInd; alle andern Out.

long DL_GetTrInd ( long  dli  ) 

get the refsys-nr (dbi of Plane) for DL-record <dli>

int DL_Get_GrAtt ( GR_Att att1,
long  Ind 
)

get graf.Att (GR_AttTab[Ind])

DL_Att DL_GetAtt ( long  dli  ) 
unsigned long DL_get_iatt ( long  dli  ) 

returns iatt of DL-record

long DL_SetObj ( int  typ,
long  dbi 
)
long DL_find_smObj ( int  typ,
long  DBind,
long  DLend,
int  imod 
)

    get dispListIndex of (last) DB-obj from typ/dbi/subModelNr
    Objekt typ=typ APTind=ind in der DL suchen.
    liefert DisplayListIndex des letzen definierten Objekts
    see AP_typ_2_bastyp AP_cmp_typ
    Hidden objects haben -1 !!
    Input:
      typ     objTyp (Typ_PT ..)
      DBind   dataBaseIndex of obj to search
      DLend   last DL-Index to check;  -1L = search in complete DL
    retCode = DispListIndex
         -1   Error; objID not found in DL

long DL_find_obj ( int  typ,
long  ind,
long  DLend 
)

    get dispListIndex of (last) DB-obj from typ/dbi
    Objekt typ=typ APTind=ind in der DL suchen.
    liefert DisplayListIndex des letzen definierten Objekts
    see AP_typ_2_bastyp AP_cmp_typ
    Hidden objects haben -1 !!
    Input:
      typ     objTyp (Typ_PT ..)
      DBind   dataBaseIndex of obj to search
      DLend   last DL-Index to check;  -1L = search in complete DL
    retCode = DispListIndex
         -1   Error; objID not found in DL

int DL_find_sel ( int *  typ,
long *  ind 
)

    find selected objectID in DispList
    (first hilited obj in dispList)

int DL_pick_set ( long  ind,
int  mode 
)

    Selektierbarkeit; ON od OFF.
    Default == pickable == 1;   not pickable==0.
    ind=-1: modify last object of DispList

int DL_grp1_set ( long  ind,
int  mode 
)

    Zugehoerigkeit zu Group 1; ON od OFF.
    Default == nicht_zugehoerig == OFF == 1;   zugehoerig == ON == 0.
      ind       -1    all objects

int DL_disp_chg (  ) 

change VIEW-Bit of complete DL

void DL_disp_set ( long  ind,
int  mode 
)

mode = ON(0) oder OFF(1,hide) modify DL.disp, DL.hili

void DL_Lay_act_g1 ( int  layNr,
int  mode 
)

activate GroupBit1 des layer Nr. layNr

void DL_Lay_typ_g1 ( int  typ,
int  mode 
)

grp_1 fuer alle Obj, die NICHT Typ i1 haben, auf OFF.

void DL_Lay_col_g1 ( int  col,
int  mode 
)

    das GroupBit1 fuer alle Obj, die NICHT Farbe i1 haben, ON setzen.
    mode unused

void DL_Lay_ltyp_g1 ( int  ltyp,
int  mode 
)

grp_1 fuer alle Obj, die NICHT ltyp i1 haben, auf OFF.

void DL_Lay_thk_g1 ( int  thk,
int  mode 
)

grp_1 fuer alle Obj, die NICHT Dicke i1 haben, auf OFF.

int DL_Lay_mod ( int  layNr,
int  func,
int  mode 
)

    modify layer
    layNr  die Nr. des zu bearbeitenden Layers; -1 = alle Layers !
    func   ...
    mode   ON  oder OFF; entspr. func.
    func: FUNC_Show, FUNC_Pick, FUNC_Hili, FUNC_Dim.

int DL_Lay_add ( int  layNr  ) 
Generated on Fri Apr 6 09:40:08 2012 for gCAD3D by  doxygen 1.6.3