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:
CLUCalc [filename]
, starts CLUCalc, whereby the script given by the filename is loaded, parsed and displayed immediately.
--main-path=[path]
, the path you can specify here has to have as subdirectories the ExampleScripts
and Documentation
directories. This option allows CLUCalc to find the documentation and example scripts, even if it is started from a different directory.
--no-intro
, this switches off the introduction script and starts up CLUCalc with an empty script instead. This is useful if you just want to work with CLUCalc.
--viz-only
, starts CLUCalc with only the visualization window. That is, the user can neither edit nor see the script or the text output. This can be useful if you are giving presentations with some other program but want to start up CLUCalc to show some visualizations in between. 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.
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 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:
Once you are in full screen mode you will not see a menu anymore. However, you can still use all the shortcut keys. You can therefore return from full screen mode to normal mode by pressing ctrl-'f' (strg-'f').
When you save an image of the visualization, the pixels to be saved are taken directly from the OpenGL rendering buffer. This means that the image you save has exactly the same resolution and size as the visualization image. In order to put images into publications it is therefore best to first switch to full screen mode and then save the image by pressing ctrl-'b' (strg-'b'). On a screen with 1024x768 pixels you will then obtain an image that has more or less 300dpi resolution when printed with 8cm (~3in) width.
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.
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:
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.
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.
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.