home *** CD-ROM | disk | FTP | other *** search
/ Enter 1998 December / ENTER12_1.iso / Dema / Cad_Proj.ekt / Mega48t / PLOT / SLDFOR48.TX_ / SLDFOR48.TX
Encoding:
Text File  |  1997-04-15  |  2.9 KB  |  84 lines

  1. Format der SLD Dateien für Version 4.55
  2.  
  3. char    ver_str[6];       //ver_str[] = "sixth"  sizeof(ver_str) == 6
  4. double  dxmin;            //X Koordinate vom linke untere Ecke vom Bildschirm
  5. double  dymin;            //Y Koordinate vom linke untere Ecke vom Bildschirm
  6. double  dxmax;            //X Koordinate vom rechte obere Ecke vom Bildschirm
  7. double  dymax;            //Y Koordinate vom rechte obere Ecke vom Bildschirm
  8. short   anzahl_zeichnung; //Anzahl der Zeichnungen in der SLD Datei
  9. anzahl_zeichnung * sizeof(plot_daten);
  10. short   anzahl_texte;     //Anzahl der Textzeilen in der SLD Datei
  11. anzahl_texte * sizeof(text_daten);
  12. double  xmin;             // kleinste X Koordinate von Rechtecken
  13. double  ymin;             // kleinste Y Koordinate von Rechtecken
  14. double  xmax;             // gröste   X Koordinate von Rechtecken
  15. double  ymax;             // gröste   Y Koordinate von Rechtecken
  16.  
  17.  
  18.  
  19.  
  20. typedef  struct
  21. {
  22.     char    werkzeugname[300];    // Pfad
  23.     double  einheit,winkel;       // Vergrösserungsfaktor, Winkel
  24.     double  xmin,xmax,ymin,ymax;  // Minmax Punkte
  25.     double  bezx,bezy;            // Bezugspunkt
  26.     short   opt;                  // 1 Ausschnitt 0 ganzes  11,10 Rahmen
  27.     ushort  lay[16];              // Layer
  28.     ushort  grp[16];              // Group
  29.     double  tdscal[2];            //Skalierung faktoren für Texte & DimTexte
  30.     double  tmp[8];               //Tmp
  31.     short   shorttmp[2];          //Tmp
  32. } plot_daten;
  33.  
  34.  
  35. typedef struct
  36. {
  37.     double x0, y0,                 // start point
  38.            x1, y1,                 // underline vector
  39.            x2, y2;                 // leftline vector
  40. } tTxtBox;
  41.  
  42. typedef struct
  43. {
  44.     double kursiv;                 // italic angle
  45.     double angle;                  // angle of underline
  46.     double width;                  // char width
  47.     double height;                 // char height
  48.     double between;                // space between two chars
  49.     double ldist;                  // line distance given as a factor
  50. } tFntPar;                         //   to the box vector (x2,y2)
  51.  
  52. #define GT_MAX_FONTNAME  32
  53.  
  54.  
  55. typedef struct
  56. {
  57.     uchar name[GT_MAX_FONTNAME];   // facename / filename
  58.     uchar CharSet;                 // character set
  59.     uchar PitchAndFamily;          // var / fix an font family
  60.     uchar System;                  // GT_VECTOR / GT_TRUETYPE
  61.     uchar italic    : 1,           // whether italic
  62.           strikeout : 1,           // whether striked out
  63.           underline : 1,           // whether underlined
  64.           bold      : 1,           // whether bold
  65.           isdown    : 1,           // whether downwards
  66.           rest      : 3;           // reserved
  67. } tFntId;
  68.  
  69. typedef struct
  70. {
  71.     tFntId  f;
  72.     tFntPar p;
  73.     tTxtBox b;
  74.     short    tst;
  75.     short    lst;
  76. } Plt_ttxtval;
  77.  
  78. typedef  struct
  79. {
  80.     Plt_ttxtval para;
  81.     double      line[4];
  82.     char        string[256];
  83. } text_daten;
  84.