Attributes

../dox/Attributes.dox

Attribute Doku

Hilite_attribute
Hide_attribute
Pick_attribute
Linetyp_attributes

Analysieren: see DL_GetAtt

  // Jede Aenderung der Graf. Attribute wird erst nach dem Neuzeichnen
  // der gesamten Displayliste sichtbar:
  DL_Redraw ();

________________________________________________________________________________

Hilite_attribute

  // hilite einzelnes Objekt  (not ApplicationObjects)
  GL_HiliObj ((long)DispListIndex);


  // unhilite einzelnes Objekt
  GL_UnHiliObj ((long)DispListIndex);


  // unhilite alle Objekte
  GL_UnHiliObj (-1L);


  // hilite /unhilite ApplicationObjects; ON=0   OFF=1
  GL_HiliAppObj (dli, ON);


  DL_disp_set            // modify hilite

______________________________________________________________________________

Hide_attribute

  =============== Attr_Display ==================================

  // einzelnes Objekt ausblenden
  DL_disp_set ((long)DispListIndex, OFF);

______________________________________________________________________________

Pick_attribute

  =============== Attr_Pick =====================================

  Set to not pickable:
    DL_pick_set ((long)DispListIndex, ON);

  Abfragen ob pickable:
    i1 = DL_GetPick((long)DispListIndex);   // OFF = ja, ON = Nein.

______________________________________________________________________________

Linetyp_attributes

  Defaultwerte siehe Hauptdoku "Farben, Linientypen, Strichstärken".


// Modify or create new line-Attribute:
  DL_InitAttRec ((int)AttributIndex,(int)color,(int)linetyp,(int)thick);
    // color:   2=red, 3=green, 4=blue
    // linetyp: 0=____, 1=_._, 2=__ __ 3=--
    // thick:   1-6
    
    // Defaults see File <tempDir>/ltyp.rc

  // Example: Attribut 20 = blue, long dash, thickness 3:
  DL_InitAttRec (20, 4, 2, 3);

  // use this att for line:
  Line      ln1={{0.,  0., 0.},{10., 5., 0.}};
  GR_Disp_ln (&ln1, 20);
  
  
  // restore defaultRecords from file <tempDir>/ltyp.rc
  DL_InitAttTab ();
Generated on Fri Apr 6 09:40:11 2012 for gCAD3D by  doxygen 1.6.3