CLUCalc Manual

The user interface consists of three windows:
  1. the CLUScript editor,
  2. the visualization window and
  3. the output window.

If one of the windows has the focus, i.e. is active, you can switch to any other window by using the menu "Window", or by pressing the following key combinations:

  1. SHIFT + CTRL + 'e' to switch to the editor window.
  2. SHIFT + CTRL + 'v' to switch to the visualization window.
  3. SHIFT + CTRL + 'o' to switch to the output window.

Command Line Parameters

CLUCalc also has the following optional command line parameters.

The Editor Window

Editor1.jpg

The CLUScript editor implements syntax highlighting to facilitate the programming of CLUScripts. It offers the standard functionality of an editor with copy, cut, paste and search and replace routines. Note that if you press CTRL + c when no text is selected, the whole line in which the cursor is places, will be copied. In structured programming it is nice to indent paragraphs. The Tabulator key indents a line. If you press return at the end of an indented line, the new line will have the same indent (hanging indent). You can also indent or remove the indent of a whole block of lines by first selecting the lines you wish to indent and then pressing CTRL + i and CTRL + SHIFT + i, resepectively.

You can visualize a script written in the editor by pressing CTRL + p. The script does not have to be saved before it can be visualized. You can also re-parse a script while it is animated.

Editor2.jpg

The editor also allows you to open a number of scripts concurrently. You can switch between the scripts using either the combo box at the top of the editor window (as shown in the above image), or by using the key combination CTRL + LEFT and CTRL + RIGHT. When you switch between scripts, the scripts are not automatically parsed again. This allows you, for example, to work on the include file of a main file, while visualizing only the main file. Independently of which script is currently displayed in the editor, it is always possible to re-parse the script that is currently visualized by selecting from the menu Code the command Parse Main. Alternatively, you can also use the key combination CTRL + m. hallr

The keys Home (Pos1) and End (Ende) move the cursor to the beginning and the end of a line, respectively. Pressing Home a number of times moves the cursor between the beginning of the line and the first letter in the line.

As of CLUCalc v4.2 there is now also a context menu, when you press the right mouse button in the editor window, that allows you to quickly enter standard CLUScript constants into the script text.

The Visualization Window

VisWin1.jpg

The visualization window shows the 3D-visualization of the given CLUScript using OpenGL. This version of CLUCalc now also supports transparent objects. Please see the CLUScript manual for more details. The visualization window has a menu containing the sections:

VisWin2.jpg

The Mouse Mode can be set through a combo box (as shown in the above window), or by using the appropriate shortcut keys. The use of mouse modes is described in the CLUScript manual. When CLUCalc is started the standard mouse mode is selected. In this mode you can rotate and translate the whole visualization space. This is done by placing the mouse pointer over the visualization windows, holding down a mouse button and moving the mouse. The left mouse button rotates and the right mouse button translates the whole space. If you hold the SHIFT key at the same time the rotation and translation axes are different. Selecting a different mouse mode than the standard mode allows you to change visualization variables which can be accessed from a CLUScript via the mouse in the same way.

In CLUCalc version 4.1 an 'info window' was introduced. Its size can be changed by grabbing the right border with the mouse and dragging it to the desired size. The introduction script of CLUCalc uses this information window.

VisWin3.jpg

The Output Window

OutWin2.jpg

The output window displays text outputs generated by a CLUScript, as well as error messages. See the CLUScript manual for more details of how to generate text outputs.

In CLUCalc version 4.1 a formatted output was introduced, which displays multivectors, lists and matrices in a better readable format. In particular, matrices are drawn in a proper layout as can be seen in the above image. The line above the array of values of a matrix contains the following elements from left to right:

  1. the variable name (bold font),
  2. the matrix dimensions,
  3. a link to hide the array of values,
  4. links to change the font size of the array of values.

If you click on the link hide, the array of values will be hidden and the link changes into show. By clicking on show, the array of values is displayed again. This is shown in the following two images.

OutWin3.jpg

OutWin4.jpg

The font size of the array of values of a matrix can be changed by clicking on the links -- and ++. The central number in square brackets gives the currently selected relative font size. This feature can be very useful for large matrices. Here is an example image.

OutWin5.jpg

It is also possible to print the variable type next to all variables. To do this, you need to tick in the menu View the selection Show Var. Type, as shown in the following two images.

OutWin6.jpg

OutWin7.jpg