Header file Z88.FCD for Prof.Dr. Frank Rieg's free FEA program Z88 V11. This file fits well for the FreeBSD OS This file lets you choose fonts, colors and dimensions for Z88 X-programs Please see hints at end of file In dieser Datei koennen Sie Fonts, Farben und Abmessungen fuer Z88 X-Programme waehlen. Bitte Hinweise am Dateiende beachten 9.2.2004 Rieg ******************************************************************************** Z88COM START ******************************************************************************** -------------------------------------------------------------------------------- WINDOW START -------------------------------------------------------------------------------- Your editor for use with Z88 Ihr Editor fuer Z88 CEDITOR nedit Your HTML-Browser or Internet-Browser for use with Z88 Ihr HTML- oder Internet- Browser fuer Z88 CBROWSER mozilla Your HTML-or Internet Browser's prefix Prefix fuer Ihren HTML- oder Internet Browser CPREFIX file://%%DOCSDIR%%/ Volume of alert bell Warnton-Staerke IBELL 100 Large font for pushbuttons and labels Grosser Font Tasten und Texte CF_FLARGE 10x20 Small font for pushbuttons and labels Kleiner Font Tasten und Texte CF_FSMALL fixed Font for textfield entries Font Textfeld-Eintraege CF_ENTRIES fixed Color for pushbutton backgrounds Hintergrundfarbe Tasten CO_BACKGR orange Color for pushbutton foregrounds and labels Farbe Tasten und Texte CO_FOREGR RoyalBlue2 Color for textfield entries Farbe Textfeld-Eintraege CO_ENTRIES purple3 Dimensions of main window Abmessungen des Hauptfensters IX_WINDOW 5 IY_WINDOW 5 IW_WINDOW 515 IH_WINDOW 370 Dimensions of EDITIN radiobox Abmessungen EDITIN Radiobox IX_EDITIN 15 IY_EDITIN 130 IW_EDITIN 90 IH_EDITIN 200 Dimensions of EDITOUT radiobox Abmessungen EDITOUT Radiobox IX_EDITOUT 115 IY_EDITOUT 130 IW_EDITOUT 90 IH_EDITOUT 175 Dimensions of FE-Solver radiobox Abmessungen FE-Prozessor Radiobox IX_FEA 410 IY_FEA 130 IW_FEA 90 IH_FEA 200 Dimensions of CAD-Converter radiobox Abmessungen CAD-Converter Radiobox IX_CAD 215 IY_CAD 130 IW_CAD 90 IH_CAD 175 Dimensions of PLOT radiobox Abmessungen PLOT Radiobox IX_PLOT 315 IY_PLOT 130 IW_PLOT 85 IH_PLOT 175 Dimensions of MAIN frame (Info,Exit,Help) Abmessungen MAIN Rahmen (Info,Ende,Hilfe) IX_MAIN 10 IY_MAIN 50 IW_MAIN 140 IH_MAIN 32 Dimensions of TITLE frame (Z88 Commander) Abmessungen Titel Rahmen (Z88 Commander) IX_TITLE 185 IY_TITLE 10 IW_TITLE 140 IH_TITLE 32 Dimensions of PROC frame (Z88V,Z88N,Z88D,Z88E,Z88G,Z88H) Abmessungen PROC Rahmen (Z88V,Z88N,Z88D,Z88E,Z88G,Z88H) IX_PROC 196 IY_PROC 50 IW_PROC 314 IH_PROC 32 Dimensions of START frame (Edit In,Edit Out,CAD<>Z88,Plot,Z88F) Abmessungen START Rahmen ( Edit In,Edit Out,CAD<>Z88,Plot,Z88F) IX_START 10 IY_START 90 IW_START 500 IH_START 35 Dimensions of Status Line Abmessungen der Statuszeile IX_STATUS 15 IY_STATUS 340 IW_STATUS 485 IH_STATUS 24 WINDOW END Z88COM END ******************************************************************************** Z88P START ******************************************************************************** -------------------------------------------------------------------------------- WINDOW START -------------------------------------------------------------------------------- Volume of alert bell Warnton-Staerke IBELL 100 Font for pushbuttons and labels Font Tasten und Texte CF_BUTTONS fixed Font for textfield entries Font Textfeld-Eintraege CF_ENTRIES fixed Color for pushbutton backgrounds Hintergrundfarbe Tasten CO_BACKGR orange Color for pushbutton foregrounds and labels Farbe Tasten und Texte CO_FOREGR RoyalBlue2 Color for textfield entries Farbe Textfeld-Eintraege CO_ENTRIES purple3 Dimensions of main window Abmessungen des Hauptfensters IX_WINDOW 5 IY_WINDOW 5 IW_WINDOW 700 IH_WINDOW 565 Dimensions of upper pushbutton row Abmessungen obere Tastenreihe IX_UPBROW 10 IY_UPBROW 490 IW_UPBROW 415 IH_UPBROW 30 Dimensions of lower pushbutton row Abmessungen untere Tastenreihe IX_LPBROW 10 IY_LPBROW 530 IW_LPBROW 415 IH_LPBROW 30 Dimensions of radio box "Undeflected..." Abmessungen Radiobox "Unverformt..." IX_RBSTRUC 600 IY_RBSTRUC 10 IW_RBSTRUC 95 IH_RBSTRUC 90 Dimensions of radio box "XY..." Abmessungen Radiobox "XY..." IX_RBVIEW 600 IY_RBVIEW 105 IW_RBVIEW 95 IH_RBVIEW 60 Dimensions of radio box "No Labels..." Abmessungen Radiobox "No Lables" IX_RBLABEL 600 IY_RBLABEL 175 IW_RBLABEL 95 IH_RBLABEL 115 Dimensions of frame "Structure File" and "Plotter File" Abmessungen gemeinsam fuer "Structure File" and "Plotter File" IX_RCSPLOT 430 IY_RCSPLOT 490 IW_RCSPLOT 265 IH_RCSPLOT 70 NC_RCSPLOT 33 Dimensions of frame "FUX" & "FUY" & "FUZ" Abmessungen gemeinsam fuer "FUX" & "FUY" & "FUZ" IX_RCFXYZ 600 IY_RCFXYZ 295 IW_RCFXYZ 95 IH_RCFXYZ 140 NC_RCFXYZ 11 Dimensions of frame "FXCOR" Abmessungen gemeinsam fuer Text und Textfeld "FXCOR" IX_RCFXCOR 600 IY_RCFXCOR 445 IW_RCFXCOR 95 IH_RCFXCOR 40 NC_RCFXCOR 5 Dimensions of drawing area Abmessungen der Zeichenflaeche IX_DRAWAR 5 IY_DRAWAR 5 IW_DRAWAR 585 IH_DRAWAR 480 WINDOW END -------------------------------------------------------------------------------- GRAFIC START -------------------------------------------------------------------------------- Font for grafic operations Font fuer alle grafischen Aktionen CF_GRAFICS fixed Color for drawing area background Hintergrundfarbe der Zeichenflaeche CO_DRAWAR white Color for undeflected structure Farbe der unverformten Struktur CO_NORMAL blue Color for deflected structure Farbe der verformten Struktur CO_DEFLECTED red Color for element numbers Farbe der Elementnummern CO_ELEMENTS blue Color for node numbers Farbe der Knotennummern CO_NODES magenta Colors for stresses Farben der Spannungen CO_STRESS0 MidnightBlue CO_STRESS1 DodgerBlue CO_STRESS2 DeepSkyBlue CO_STRESS3 cyan CO_STRESS4 SpringGreen CO_STRESS5 LawnGreen CO_STRESS6 yellow1 CO_STRESS7 orange1 CO_STRESS8 DarkOrange CO_STRESS9 OrangeRed GRAFIC END Z88P END ******************************************************************************** Z88O START ******************************************************************************** -------------------------------------------------------------------------------- WINDOW START -------------------------------------------------------------------------------- Volume of alert bell Warnton-Staerke IBELL 100 Font for pushbuttons and labels Font Tasten und Texte CF_BUTTONS fixed Font for textfield entries Font Textfeld-Eintraege CF_ENTRIES fixed Font for OpenGL texts Font fuer OpenGL Texte CF_GRAFICS -adobe-courier-*-r-*-*-20-*-*-*-*-*-*-* Color for pushbutton backgrounds Hintergrundfarbe Tasten CO_BACKGR orange Color for pushbutton foregrounds and labels Farbe Tasten und Texte CO_FOREGR RoyalBlue2 Color for textfield entries Farbe Textfeld-Eintraege CO_ENTRIES purple3 Dimensions of main window Abmessungen des Hauptfensters IX_WINDOW 0 IY_WINDOW 0 IW_WINDOW 1000 IH_WINDOW 680 Dimensions of upper pushbutton row Abmessungen obere Tastenreihe IX_UPBROW 10 IY_UPBROW 595 IW_UPBROW 415 IH_UPBROW 35 Dimensions of lower pushbutton row Abmessungen untere Tastenreihe IX_LPBROW 10 IY_LPBROW 640 IW_LPBROW 415 IH_LPBROW 35 Dimensions of radio box "Undeflected..." Abmessungen Radiobox "Unverformt..." IX_RBSTRUC 890 IY_RBSTRUC 10 IW_RBSTRUC 100 IH_RBSTRUC 60 Dimensions of radio box "Light" Abmessungen Radiobox "Licht" IX_RBVIEW 890 IY_RBVIEW 80 IW_RBVIEW 100 IH_RBVIEW 200 Dimensions of radio box "No Labels..." Abmessungen Radiobox "No Lables" IX_RBLABEL 890 IY_RBLABEL 290 IW_RBLABEL 100 IH_RBLABEL 90 Dimensions of frame "FUX" & "FUY" & "FUZ" Abmessungen gemeinsam fuer "FUX" & "FUY" & "FUZ" IX_RCFXYZ 890 IY_RCFXYZ 385 IW_RCFXYZ 100 IH_RCFXYZ 140 NC_RCFXYZ 11 dimensions of frame "from" & "to" Abmessungen gemeinsam fuer "von" & "bis" IX_RCFRTO 890 IY_RCFRTO 535 IW_RCFRTO 100 IH_RCFRTO 75 NC_RCFRTO 7 Dimensions of frame "ZLIMIT" Abmessungen gemeinsam fuer Text und Textfeld "ZLIMIT" IX_RCFXCOR 580 IY_RCFXCOR 635 IW_RCFXCOR 130 IH_RCFXCOR 40 NC_RCFXCOR 10 Dimensions of frame "Structure File" Abmessungen gemeinsam fuer "Structure File" IX_RCSPLOT 725 IY_RCSPLOT 635 IW_RCSPLOT 265 IH_RCSPLOT 40 NC_RCSPLOT 33 Dimensions of drawing area Abmessungen der Zeichenflaeche IX_DRAWAR 10 IY_DRAWAR 10 IW_DRAWAR 870 IH_DRAWAR 580 WINDOW END -------------------------------------------------------------------------------- OPENGL START -------------------------------------------------------------------------------- DEFAULT START FYCOR 0.80 COLOR 0.35 0.35 1.00 1.00 DEFAULT END STRESS START RED 0.00 0.00 0.50 0.75 0.00 0.00 1.00 1.00 1.00 GREEN 0.00 0.00 0.50 0.75 1.00 1.00 1.00 0.50 0.00 BLUE 0.00 1.00 1.00 1.00 1.00 0.00 0.00 0.00 0.00 STRESS END LIGHT0 START SPECULA0 0.75 0.75 0.95 1.00 DIFFUSE0 0.70 0.70 0.70 1.00 AMBIENT0 0.20 0.20 0.20 1.00 POSITIO0 -100. +100. -100. 0.00 LIGHT0 END LIGHT1 START SPECULA1 0.75 0.75 0.95 1.00 DIFFUSE1 0.70 0.70 0.70 1.00 AMBIENT1 0.20 0.20 0.20 1.00 POSITIO1 +100. +100. -100. 0.00 LIGHT1 END LIGHT2 START SPECULA2 0.95 0.45 0.00 1.00 POSITIO2 -50. -50. +100. 0.00 LIGHT2 END MAT START DIFF_MA 0.90 0.90 0.90 1.00 SPEC_MA 0.60 0.60 0.60 1.00 SHINING 50. MAT END HIDDENLINE START COLOR 0.90 0.90 0.90 OFFSET 1.00 0.00 HIDDENLINE END LABEL START NODES 1.00 0.00 0.00 ELEMENTS 0.00 1.00 0.00 LABEL END OPENGL END Z88O END --------------------------------------------------------------------------- Hints: --------------------------------------------------------------------------- By changing the values of this file you can modify the look of Z88's X- programs. At the moment these are the Z88-Commander Z88COM (Section Z88COM START ..... Z88COM END), the plot program Z88P (Section Z88P START ... Z88P END) and the plot program Z88O (Section Z88O START... Z88O END). Make sure to store a copy of the original header file Z88.FCD. Z88COM and Z88P do only run with a correct Z88.FCD file. Z88's X-programs read the keywords in capital letters, for example Z88COM START : keyword Z88COM START : empty line, read as a comment WINDOW START : keyword WINDOW START : empty line, read as a comment Your editor for use with Z88 : no function, read as a comment Ihr Editor fuer Z88 : no function, read as a comment CEDITOR joe : keyword CEDITOR, "joe" is read : empty line, read as a comment Your Internet-Browser for Z88 : no function, read as a comment Ihr Internet- Browser fuer Z88 : no function, read as a comment CBROWSER arena : keyword CBROWSER, "arena" is read : empty line, read as a comment Your Internet Browser's prefix : no function, read as a comment Prefix fuer Ihren Internet Browser : no function, read as a comment CPREFIX : keyword CPREFIX, an empty string ........ 1) Internet Browsers -------------------- If you would like to use the Netscape Navigator, then enter CBROWSER /home/johndoe/netscape/netscape assuming Netscape is located in a directory /home/johndoe/netscape and CPREFIX file:///home/johndoe/z88/ assuming the Z88 files are located in a directory /home/johndoe/z88 The Arena Browser does not need a prefix. Therefore, an empty string following the keyword CPREFIX works fine. 2) Dimensions and Fonts ----------------------- You can modify the dimensions of the pushbutton rows, the radioboxes etc. But keep in mind that the X Window system and Motif always try to write a complete string on a pushbutton or into a textfield. The size of a string depends heavily on the used font. Thus, you must adjust the font AND the dimensions to get a proper button or textlabel. Otherwise, complete pushbuttons may disappear ! The size of all the buttons in a complete pushbutton row is determined by the size of the largest pushbutton, i.e. of the longest text string ! You can easily verify this when you look at the pushbutton row "Edit Input F", "Edit Output F", "DXF<->Z88", "Plot Feature", "Z88F". The size is determined by the text "Edit Output F". You can define your own font names by adding entries into e.g. /usr/X11R6/lib/X11/fonts/misc/fonts.alias 3) Colors --------- The colors are defined by name and RGB values in the UNIX default file /usr/X11R6/lib/X11/rgb.txt Make up your own colors by entering new color names and proper RGB values. 4) Special hints for OpenGL plot program Z88O --------------------------------------------- With the keyword FYCOR you may adjust your screen. Load a square or circular structure and make sure that the X dimensions meet the Y dimensions. Warning: Be carefull when changing values in the section OPENGL START! Consult the OpenGL Programming Guide and the OpenGL Reference Manual from Addison-Wesley for proper understanding of the OpenGL state machine. If you are an OpenGL newcomer inproper entries will result in sometimes funny but mostly odd rendered scenes. All colors in OpenGL are of the type Red-Green-Blue with values varying from 0. to 1.0. Usually, Z88 reads one line with the entry for red, the entry for green and the entry for blue. This is true for the background color, the lights, the material (MAT), the hidden lines and the labels. Let the 4th entry -if it exists- unchanged (the so-called Alpha value). Pay attention to the section STRESS START: There are 9 columns for the ranges of stresses and deflections, but the first columns with 0., 0., 0. has no meaning. Start editing with the second column = the first color. The light positions have four entries: X,Y and Z. The 4th entry is the W value for the so-called homogeneous coordinates. If W is 0 then the point lies in infinity and the beam meets the point X, Y, Z. Consult the OpenGL Reference Manual for further informations. The value for SHINING (= GL_SHININESS) may vary from 0. to 128. The HIDDENLINE section features the color for the lines and in the second line the "factor" and "units" for the command glPolygonOffset. Very special. Consult the OpenGL Reference Manual for further infomations. --------------------------------------------------------------------------- Hinweise: --------------------------------------------------------------------------- Sie koennen das Aussehen der Z88 X-Programme durch Modifizieren der Werte dieser Datei veraendern. Dies betrifft momentan die X- Programme Z88COM (Sektion Z88COM START ..... Z88COM END), Z88P (Sektion Z88P START ..... Z88P END) und Z88O (Sektion Z88O START ..... Z88O END). Verwahren Sie eine Originalkopie von Z88.FCD. Denn Z88COM und Z88P laufen nur mit einer korrekten Datei Z88.FCD. Z88 X- Programme lesen die grossgeschriebenen Schluesselworte, z.B. Z88COM START :Schluesselwort Z88COM START :Leerzeile,als Kommentar gelesen WINDOW START :Schluesselwort WINDOW START :Leerzeile,als Kommentar gelesen Your editor for use with Z88 :keine Funktion,als Kommentar gelesen Ihr Editor fuer Z88 :keine Funktion,als Kommentar gelesen CEDITOR joe :Schluessel CEDITOR, "joe" einlesen :Leerzeile,als Kommentar gelesen Your Internet-Browser for Z88 :keine Funktion,als Kommentar gelesen Ihr Internet- Browser fuer Z88 :keine Funktion,als Kommentar gelesen CBROWSER arena :Schluessel CBROWSER,"arena" einlesen :Leerzeile,als Kommentar gelesen Your Internet Browser's prefix :keine Funktion,als Kommentar gelesen Prefix fuer Ihren Internet Browser :keine Funktion,als Kommentar gelesen CPREFIX :Schluessel CPREFIX, Leerstring lesen ........ 1) Internet Browser ------------------- Falls Sie den Netscape Navigator nutzen wollen, dann geben Sie ein CBROWSER /home/harry/netscape/netscape unter der Annahme, dass Netscape im Directory /home/harry/netscape steht und CPREFIX file:///home/harry/z88/ unter der Annahme, dass die Z88-Dateien im Directory /home/harry/z88 stehen. Der Arena Browser braucht kein Prefix. Daher kann dem Schluesselwort CPREFIX ein Leerstring folgen. 2) Abmessungen und Fonts ------------------------ Sie koennen alle Abmessungen der Pushbutton- Reihen, der Radioboxen usw. aendern. Beachten Sie aber, dass das X-Window System und Motif immer versuchen, einen kompletten String auf einen Pushbutton oder in ein Textfeld zu schreiben. Die Groesse und Laenge eines Strings haengt stark vom verwendeten Font ab. Daher muessen Sie Font UND Abmessungen anpassen, um einen sauber beschrifteten Pushbutton oder Textfeld zu bekommen. Andernfalls koennen ganze Pushbuttons verschwinden ! Die Groesse aller Buttons in einer kompletten Pushbutton- Reihe wird von der Groesse des groessten Pushbuttons bestimmt, also von dem mit dem laengsten String ! Das koennen Sie leicht feststellen an der Reihe "Edit Eingabe", "Edit Ausgabe", "DXF<->Z88", "Plotauswahl", "Z88F". Die Groesse wird durch die Texte "Edit Eingabe" bzw. "Edit Ausgabe" (gleiche Laenge) bestimmt. Sie koennen Ihre eigenen Font-Namen definieren durch Eintrag in z.B. /usr/X11R6/lib/X11/fonts/misc/fonts.alias 3) Farben --------- Die Farben sind durch Name und RGB- Werte definiert im UNIX Default File /usr/X11R6/lib/X11/rgb.txt Erfinden Sie Ihre eigenen Farben durch Eintragen neuer Namen und RGB- Werte. 4) Spezielle Hinweise fuer das OpenGL Plotprogramm Z88O ------------------------------------------------------- Mit dem Schluesselwort FYCOR koennen Sie Ihren Bildschirm anpassen. Am besten laden Sie eine quadratische oder kreisrunde Struktur und stellen durch Veraendern von FYCOR sicher, dass X- und Y- Abmessungen gleich sind. Achtung: Seien Sie vorsichtig beim Veraendern von Werten in der Sektion OPENGL START! Ziehen Sie den OpenGL Programming Guide und das OpenGL Reference Manual von Addison-Wesley zu Rate, damit Sie die Hintergruende der Werte verstehen. Falls Sie OpenGL-Neuling sind, dann kann unbedachtes Aendern der Werte fuer zwar mitunter lustige, meist aber merkwuerdige Darstellungen sorgen. Alle Farben in OpenGL sind vom Typ Rot-Gruen-Blau mit Werten von 0. bis 1. Normalerweise liest Z88 jeweils eine Zeile mit den Werten fuer Rot, Gruen und Blau ein. Das gilt fuer die Hintergrundfarbe, die Lichter, die Materialeigenschaften (MAT), die verdeckten Linien und die Knoten- und Elementnummern. Lassen Sie den 4. Wert -wenn er vorhanden ist- unveraen- dert (das ist der sog. Alpha- Wert). Die Sektion STRESS START weicht davon ab: Es sind zwar 9 Spalten fuer die Bereiche der Spannungen und Verformungen vorhanden, aber die erste Spalte mit 0., 0., 0. hat keine Bedeutung. Die zweite Spalte repraesentiert die erste Farbe. Die Lichtpositionen haben vier Eintraege: X, Y und Z. Der 4.Wert ist der W-Wert fuer die sog. homogenen Koordinaten. Wenn dieses W 0 ist, dann liegt der eigentliche Beleuchtungspunkt unendlich weit weg und sendet einen Lichtstrahl durch den Punkt X, Y, Z. Sehen Sie im OpenGL Reference Manual nach. Der Wert fuer SHINING (= GL_SHININESS) muss zwischen 0. und 128. liegen. Die HIDDENLINE Sektion definiert in der ersten Zeile die Farben fuer die verdeckten Linien und in der zweiten Zeile die Werte "factor" und "units" fuer den Befehl glPolygonOffset. Sehr speziell. Sehen Sie im OpenGL Reference Manual nach.