\% *********************** \% * 2D Graphic window * \% *********************** \% ********** 2D Graphic window ********** \topic kh_2DWin {2D graphic window} {\bf 2D graphic windows} are used to represent \jump kh_Curve {curves}by their projections to 2-dimensional spaces.\par You open the graphic windows with the \jump kh_menuWindow {Window|Open|2D Graphic} command from the \jump kh_MainWin {Main window.}\par There are the following components in the graphics window.\par {\desc 29 {\bf Component\>What it does or is used for}\par {\bf Compute}\>\include kh_ComputeSubmenu \par {\sb 0 \li 1 \bf Forward}\>\include kh_ForwardItem \par {\sb 0 \li 1 \bf Backward}\>\include kh_BackwardItem \par {\sb 0 \li 1 \bf Extend}\>\include kh_ExtendItem \par {\bf Window}\>this menu contains commands which manipulate the window.\par {\sb 0 \li 1 \bf Redraw\+diagram}\>\include kh_RedrawDiagramItem \par {\sb 0 \li 1 \bf Redraw\+curve}\>\include kh_RedrawCurveItem \par {\sb 0 \li 1 \bf Clear}\>\include kh_ClearItem \par {\sb 0 \li 1 \bf Fit\+diagram}\>changes the {\bf limits of visibility} in such a way that all curves from the current diagram become totally visible. The command doesn't affect other windows.\par {\sb 0 \li 1 \bf Fit\+curve}\>changes the {\bf limits of visibility} in such a way that the current curve becomes totally visible. The command doesn't affect other windows.\par {\sb 0 \li 1 \bf Undo\+scale}\>restores the limits of visibility (four numbers defining the visible part of a plane) for this window to their previous values. {CONTENT} remembers as much as last ten limits so you can go back more than one step (after ten steps the current limits are restored). {CONTENT} records the limits when you set them with the mouse (see below in this topic), or press the {\bf Enter} key or clear the window after editing them. \par {\sb 0 \li 1 \bf Layout}\>displays the \jump kh_2DWinLayout {layout dialog box} where you change various settings which control the layout of the window.\par {\sb 0 \li 1 \bf Hardcopy}\>displays the \jump kh_2DWinHardcopy {hardcopy dialog box} where you specify various option for the hardcopy of this window.\par {\sb 0 \li 1 \bf Duplicate}\>opens another graphics window which has exactly the same attributes as the current window. This may be useful if you want to do some minor changes of attributes without restoring them back.\par {\sb 0 \li 1 \bf Hide}\>\include kh_HideItem \par {\bf Attributes}\>this menu allows you to change attributes used to draw and redraw curves.\par {\sb 0 \li 1 \bf Current}\>displays the \jump kh_2DWinCurrentAttr {current graphic attributes} dialog box where you specify attributes which will be used to draw the curves to be computed next. \par {\sb 0 \li 1 \bf Curve}\>displays the \jump kh_2DWinCurveAttr {curves graphic attributes} dialog box where you change attributes which are used to redraw the \jump kh_CurCurve {current curve.}\par {\bf Mouse}\>this menu allows you to set mouse related options. All items in it are disabled if more than one pair of functions is defined for the window (see the description of the \jump kh_2DWinCurrentAttr {current graphic attributes} dialog box). \par {\sb 0 \li 1 \bf Pick\+up\+coordinates}\>when this option is set and you click somewhere in the {\bf Graphic area,} window coordinates of the point are converted to mathematical coordinates and replace appropriate coordinates of the \jump kh_InitialPoint {initial point.} You can see new values of coordinates in the \jump kh_StarterWin {starter window.}\par {\sb 0 \li 1 \bf Immediate\+forward}\>when this option is set and you click somewhere in the {\bf Graphic area,} {CONTENT} replaces the coordinates of the initial point as described above. In addition it starts computation of new curve in the forward direction. This option can only be set if the {\bf Pick\+up\+coordinates} option is set.\par {\sb 0 \li 1 \bf Immediate\+backward}\>the same as above except that the curve is computed in the backward direction.\par {\bf Help}\>\include kh_HelpSubmenu \par {\sb 0 \li 1 \bf This\+window}\>displays the description of 2D graphic windows.\par \% {\sb 0 \li 1 \bf Index}\>displays \% the contents of Help information.\par {\sb 0 \li 1 \bf Search}\>\include kh_HelpSearchItem \par {\bf Limits\+of\+visibility}\>is the area where you may specify minimum and maximum values for each axis as well as tick sizes. To change any value in the area click it with the mouse and then edit it. {CONTENT} will update the {\bf Graphics area} when you press the {\bf Enter} key or perform the {Clear} command from the {Window} menu. Any value may be given by an expression constructed from numbers, parentheses, operators (+, -, *, /, and ^), and standard function calls (abs, acos, asin, atan, ceil, cos, exp, floor, log, log10, sin, sqrt, tan), for example sqrt(2)/2. As you type CONTENT tries to parse the expression and compute its value. If it succeeds the value is used. Otherwise, the prompt which is left to the input field is grayed to indicate that the text does not form correct expression. Use the \jump kh_2DWinLayout {layout dialog box} to specify which parts of the limits are present in the window.\par {\bf Palette}\>is a horizontal bar which shows all colors available for drawing curves. To choose a color click on it with the mouse. If you specified more than one pair of functions along the axes (see the \jump kh_2DWinLayout {layout dialog box}) there is a switch at the left of the bar which allows you to choose the pair of functions you want to set the color for. A small square at the right of the bar displays the currently chosen color. The {\bf layout dialog box} allows you to show or hide the palette.\par {\bf Graphic area}\>is the part of the window where {CONTENT} draws computed curves. In addition you can ask {CONTENT} to draw axes, grid, scales, and labels in the area. Use the \jump kh_2DWinLayout {layout dialog box} to make the appropriate settings. \par } You can do \jump kh_CurveSwitch {curve switching} in the graphics window. To choose a \jump kh_SpecialPoint {special point} on some curve as an \jump kh_InitialPoint {initial point} for the next curve click the point (you may need to redraw the \jump kh_CurDiagram {current diagram} before this). {CONTENT} will unload current starter and generator and load appropriate one. To make this operation possible a {\bf marker} must be chosen for the type of special point which can by done using the \jump kh_SpecPointWin {special points} dialog box. There is default marker for each type of special point. You can also switch curves using the \jump kh_InitPointWin {initial points} dialog box. \par In addition to the traditional way of changing the limits of visibility (by typing them in) you can do it with the mouse. Place the pointer at the point in the Graphic area which you want to map to the upper left or bottom right corner of the area and press the left mouse button. Holding the button drag the pointer to the point which you want to map at the opposite corner of the area and release the button. The rectangle in the mathematical space you have specified maps onto the whole Graphic area. To cancel the operation release the button elsewhere outside the area. You can restore previous limits of visibility later by the {\bf Undo\+scale} command from the {\bf Window} menu. \par To destroy the window use the {\bf Close} command from the {\bf System} menu of the window.\par \end \% kh_2DWin \% ********** 2D hardcopy dialog box ********** \topic kh_2DWinHardcopy {hardcopy dialog box for 2D graphic window} The {\bf hardcopy dialog box} is where you specify various options for a hardcopy of a 2D graphic window.\par You display the dialog box with the \jump kh_2DWin {Window|Hardcopy} command from a graphic window. A hardcopy is a {\bf PostScript} program which produces a copy of the window's Graphic area with all the \jump kh_Curve {curves} from the \jump kh_CurDiagram {current diagram} drawn. The hardcopy is always written into a file and may optionally be sent to a printer.\par There are following components in the dialog box.\par #ifdef _UNIX {\desc 19 #else _UNIX {\desc 17 #endif _UNIX {\bf Component\>What it does or is used for}\par {\bf File}\>is where you specify the name of a file to which {CONTENT} will write the hardcopy. The file may be sent to a printer later (by means of appropriate {\bf copy} command.\par {\bf Browse}\>displays the list of available files which allows you to choose a file without typing its name. The name of the file you choose is put into the input field.\par {\bf Picture}\>is where you specify dimensions of a picture.\par {\li 1 \sb 0 \bf Width}\>specifies the width in current units.\par {\li 1 \sb 0 \bf Height}\>specifies the height in current units.\par {\li 1 \sb 0 \bf Unit}\>specifies the units for width and height.\par {\bf Font}\>contains two lists which you use to choose font name and its size. The font is used for all characters in the picture.\par {\bf Options}\>allows you to specify some characteristics of the picture and where to send it. The values of three scale factors depend on the resolution of your printer. You may need to experiment to choose appropriate values for them. \par {\li 1 \sb 0 \bf Curve\+width}\>specifies the value of the curve width factor. It is used for all curves.\par {\li 1 \sb 0 \bf Line\+width}\>specifies the value of the line width factor. It is used for axes, grid, and frame of the picture.\par {\li 1 \sb 0 \bf Marker\+scale}\>specifies the value of the marker width factor. It is used to draw markers.\par {\li 1 \sb 0 \bf Preserve\+colors}\>when this box is checked {CONTENT} tries to produce a color picture by preserving colors set for Graphic area and curves.\par #ifdef _UNIX {\li 1 \sb 0 \bf Show\+on\+screen}\>when this box is checked {CONTENT} shows the picture on the screen. The command for this is given by the value of the {\bf HCVIEWER} key which is in the {\bf [Visual]} section of the {\bf settings file.}\par {\li 1 \sb 0 \bf Send\+to\+printer}\>when this box is checked {CONTENT} sends the picture to a printer. The command for this is given by the value of the {\bf HCPRINTER} key which is in the {\bf [Visual]} section of the {\bf settings file.}\par #endif _UNIX {\bf Buttons}\>\par {\li 1 \sb 0 \bf Ok}\>closes the dialog box and produces the hardcopy in accordance with the settings you have made.\par {\li 1 \sb 0 \bf Cancel}\>closes the dialog box without changing anything and producing the hardcopy.\par {\li 1 \sb 0 \bf Help}\>opens the \jump kh_HelpWin {help window} which displays the description of this dialog box.\par } \end \% kh_2DWinHardcopy \% ********** 2D Graphic layout dialog box ********** \topic kh_2DWinLayout {layout dialog box for 2D graphic window} The {\bf layout dialog box} is where you specify various settings which affects the layout of 2D graphic window. You display the dialog box by the \jump kh_2DWin {Window|Layout} command in 2D graphic window. Note that the settings affect only the window from which you perform the command.\par The following components are in the dialog box. They are listed in accordance with their positions in the box, from the left to the right and from the top to the bottom.\par {\desc 24 {\bf Component\>What is does or is used for}\par {\bf Window\+title}\>allows you to modify the title of the window.\par {\bf Abscissa}\>is where you specify various options for the abscissa.\par {\sb 0 \li 1 \bf Min}\>specifies the mathematical coordinate along the abscissa which corresponds to the left edge of the Graphic area.\par {\sb 0 \li 1 \bf Max}\>specifies the mathematical coordinate along the abscissa which corresponds to the right edge of the Graphic area.\par {\sb 0 \li 1 \bf Tick}\>specifies the step used for drawing scale along the abscissa. 0 means you want {CONTENT} to calculate the value by itself using given minimum and maximum values.\par {\sb 0 \li 1 \bf Show\+in\+window}\>contains check boxes which you use to specify which components will be shown in the graphic window. Check appropriate boxes for the components you want to see in or to be able to change directly from the graphic window\par {\sb 0 \li 2 \bf Min..Max}\>shows minimum and maximum values along the abscissa.\par {\sb 0 \li 2 \bf Tick}\>shows tick value for abscissa.\par {\sb 0 \li 2 \bf Scale}\>draws the scale along the abscissa using the tick value.\par {\sb 0 \li 2 \bf Label}\>prints a function whose values are plotted along the abscissa. The label is placed at the bottom right corner of the Graphic area.\par {\sb 0 \li 2 \bf Grid}\>draws a grid, which is a set of vertical dotted lines. The mathematical distance between lines are given by the tick value.\par {\sb 0 \li 2 \bf Axis}\>draws the horizontal line which corresponds to the mathematical zero along the ordinate. Note that nothing will be drawn if mathematical zero is not in the visible part of the ordinate.\par {\bf Ordinate}\>is where you specify various options for the ordinate. They are analogous to those in the {\bf Abscissa} group.\par {\bf Colors}\>is where you set options related to colors.\par {\sb 0 \li 1 \bf Foreground}\>opens the {\bf Standard Color dialog box} which you use to select the foreground color. The color will be used to draw axes, labels, the grid, and the frame.\par {\sb 0 \li 1 \bf Background}\>opens the {\bf Standard Color dialog box} which you use to select the background color for the window.\par {\sb 0 \li 1 \bf Show\+palette\+...}\>sets the mode in which a palette will be placed in the 2D graphic window to facilitate selection of colors for drawing curves.\par {\bf Sample\+of\+window}\>displays a sample of the window in accordance with the current settings.\par {\bf Draw\+unit\+circle}\>draws a curve which corresponds to the mathematical unit circle (i.e. the circle with the center (0,0) and radius 1). Note that nothing will be drawn if the mathematical unit circle is not in the visible part of the plane.\par {\bf Buttons}\>\par {\sb 0 \li 1 \bf Ok}\>closes the dialog box and redraws the 2D graphic window using the settings you have made.\par {\sb 0 \li 1 \bf Cancel}\>closes the dialog box without changing the settings.\par {\sb 0 \li 1 \bf Help}\>opens the \jump kh_HelpWin {help window} which displays the description of this dialog box.\par } \end \% kh_2DWinLayout \% ********** Current graphic attributes dialog box ********** \topic kh_2DWinCurrentAttr {current attributes dialog box for 2D graphic window} The {\bf current attributes dialog box} is where you specify various graphic attributes of \jump kh_Curve {curves} which you will compute next.\par You display the dialog box by the \jump kh_2DWin {Attributes|Current} command in a 2D graphic window. Note that the settings affect only the window from which you perform the command.\par The following components are in the dialog box. They are listed in accordance with their positions in the box, from the left to the right and from the top to the bottom.\par {\desc 18 {\bf Component\>What it does or is used for}\par {\bf Functions\+along\+axes}\>allows you to specify functions whose value will be plotted along axes.\par {\sb 0 \li 1 \bf Abscissa}\>is where you type in a function whose values will be plotted along the abscissa.\par {\sb 0 \li 1 \bf Ordinate}\>is where you type in a function whose values will be plotted along the ordinate. There may be more than one pair of functions defined for the window. Use the scroll bar attached to the fields to choose the pair you want to edit. \par {\sb 0 \li 1 \bf New\+functions}\>this button tells {CONTENT} that you want to specify one more pair of functions whose values will be plotted along axes. Having pressed the button type in functions in the {\bf Abscissa} and {\bf Ordinate} fields.\par {\sb 0 \li 1 \bf Delete\+functions}\>this button tells {CONTENT} to delete the pair of functions which are currently in the {\bf Abscissa} and {\bf Ordinate} fields. Use the scroll bar attached to the fields to choose a pair you want to delete. The current and total numbers of the pairs are indicated in the left bottom corner of the group. \par {\sb 0 \li 1 \bf List\+of\+names}\>contains the two-level list of names you can use in functions. The first level contains groups of names. Click the name of a group to see the names from the group. Click a name to insert it into {\bf Abscissa} or {\bf Ordinate} field (it will be inserted into those field where the cursor was before you activated the list). To return to the first level of the list click the line which contains two dots.\par {\bf Graphic\+attributes}\>allows you to set various attributes for the pair of functions which are currently in the {\bf Abscissa} and {\bf Ordinate} fields. To change attributes of another pair first choose it with the scroll bar attached to the fields. The current and total numbers of the pairs are indicated in the left bottom corner of the function group. \par {\sb 0 \li 1 \bf Set\+attributes\+of}\>allows you to choose attributes of what graphic elements you will set. Choose one of the following: {\bf points}, \jump kh_Path {paths}, \jump kh_Trace {traces}, or \jump kh_Shift {shifts}. \par {\sb 0 \li 2 \bf Join}\>allows you to choose the style of lines which join points. One of the following can be chosen: {\bf No,} {\bf Solid,} or {\bf Dotted.}\par {\sb 0 \li 2 \bf Width}\>allows you to choose the width of points or lines. If this value is zero, the width is one pixel and fast but possibly not accurate device-dependent drawing algorithm will be used. \par {\sb 0 \li 2 \bf Change\+Color}\>opens the {\bf Standard Color Dialog Box} which you use to select the color for points or lines.\par {\bf Options}\>allows you to set additional options.\par {\sb 0 \li 1 \bf Clear\+before\+...}\>tells {CONTENT} to clear window's Graphic area before drawing each point computed by a generator.\par {\bf Buttons}\>\par {\sb 0 \li 1 \bf Ok}\>remembers the graphic attributes you have set and closes the dialog box.\par {\sb 0 \li 1 \bf Cancel}\>closes the dialog box without changing the settings.\par {\sb 0 \li 1 \bf Help}\>opens the \jump kh_HelpWin {help window} which displays the description of this dialog box.\par } \end \% kh_2DWinCurrentAttr \% ********** Curve's graphics attributes dialog box ********** \topic kh_2DWinCurveAttr {curve attributes dialog box for 2D graphic window} The {\bf curve's attributes dialog box} is where you change various graphic attributes of the \jump kh_CurCurve {current curve.}\par You display the dialog box by the \jump kh_2DWin {Attributes|Curve} command in a 2D graphic window. Note that the settings affect only the window from which you perform the command.\par The following are components in the dialog box. They are listed in accordance with their positions in the box, from the left to the right and from the top to the bottom.\par {\desc 16 {\bf Component\>What it does or is used for}\par {\bf Curve\+segment}\>is a switch you use to choose a segment of the current curve whose graphics attributes you want to change A {\bf segment} is defined as a part of a curve between two successive \jump kh_SpecialPoint {special points} (for the purpose of this definition the first and the last points of a curve are considered as special points).\par {\bf From\+point}\>displays the \jump kh_PointType {type} of the first point of the current segment.\par {\bf To\+point}\>displays the type of the last point of the current segment.\par {\bf Attributes\+set}\>is a switch you use to choose which set of attributes of the given segment you want to change. There is one set of attributes for each pair of functions you have specified in the \jump kh_2DWinCurrentAttr {current attributes} dialog box. There is the only set if you have one pair of functions. Note that all settings below the switch are for the chosen attributes set of the chosen segment of the curve.\par {\sb 0 \li 1 \bf Add\+attributes}\>this button creates a new set of attributes for the chosen segment. Use it if you have specified new pair of functions in the window after the curve was computed. This allows you to set attributes for the new functions.\par {\sb 0 \li 1 \bf Delete\+attributes}\>this button deletes the chosen set of attributes of the chosen segment. Use it if you have deleted a pair of functions in the window after the curve was computed. Be careful to choose those set of attribute which corresponds to the deleted functions.\par {\bf Graphic\+attributes}\>allows you to change graphic attributes. Note that only attributes from the chosen set of the chosen segment are available. \par {\sb 0 \li 1 \bf Set\+attributes\+of}\>allows you to choose attributes of what graphic elements you will change. Choose one of the following: {\bf points}, \jump kh_Path {paths}, or \jump kh_Trace {traces}. \par {\sb 0 \li 2 \bf Join}\>allows you to change the style of lines which join points. One of the following can be chosen: {\bf No,} {\bf Solid,} or {\bf Dotted.}\par {\sb 0 \li 2 \bf Width}\>allows you to change the width of points or lines. If this value is zero, the width is one pixel and fast but possibly not accurate device-dependent drawing algorithm will be used. \par {\sb 0 \li 2 \bf Change\+Color}\>opens the {\bf Standard Color Dialog Box} which you use to change the color of points or lines.\par {\bf Buttons}\>\par {\sb 0 \li 1 \bf Ok}\>remembers the changes you have made and closes the dialog box.\par {\sb 0 \li 1 \bf Cancel}\>closes the dialog box without changing the attributes.\par {\sb 0 \li 1 \bf Help}\>opens the \jump kh_HelpWin {help window} which displays the description of this dialog box.\par } \end \% kh_2DWinCurveAttr