Variable name |
Meaning |
"rotation absolute" |
Sending an array of nine numbers to set a new rotation matrix. This will delete the old one. Send e.g [1,0,0,0,1,0,0,0,1] to reset the rotation. |
"rotation relative" |
Sending an array of nine numbers to define a rotation matrix, which will get multiplied with the old one. |
"rotation axis" |
Sending an array of four numbers to rotate the camera around the vector defined by the first three numbers with an angle defined by the last number. [1,0,0,90] e.g. would rotate 90° around the X-axis. |
"position absolute" |
Sending an array of three numbers to set the absolute position of the focus point. |
"position relative" |
Sending an array of three numbers to change the position of the focus point relative to its old position. |
"distance absolute" |
Sending a number to set the absolute distance to the focus point. |
"distance relative" |
Sending a number to change the distance to the focus point relative to the old distance. |
"eye distance" |
Sending one number to change the distance of the eyes of stereoscopy is activated. |
"projection" |
Sending an array of floating point numbers, where always 16 numbers form one projection matrix. The number of elements have to be projection count (see "register") multiplied with 16. |
"modelview" |
Sending direct a modelview matrix as 16-element-matrix. |
"interpolation" |
Sending bool, whether interpolation is activated. |
"iso surface" |
Sending bool, whether iso surface rendering is activated. |
"step" |
Sending number defining the step width for the raycasting. |
"transfer points" |
Sending an array of objects, where each object has the attributes "value", "r", "g", "b", and "a", definining the colour and opacity for the given value. Value goes from 0…1. |
"functions" |
Sending an array with all transfer functions of the sources as strings. |
"weight" |
Sending an array with all weights of the sources as numbers. |
"background color" |
Sending a string with the background colour. |
"bounding box" |
It doesn't matter, what it sent, but if something is sent the bounding box of IceT is toggled to be on if it was off and off if it was on. This is a work around as long as the IceT bounding box is buggy. |
"clipping add" |
Adding a new clipping plane. This needs two further attribues
Variable name |
Meaning |
"position" |
A 3-element array for the position of the plane. |
"normal" |
A 3-element array for the normal of the plane. |
|
"clipping remove" |
Sending a number of the clipping plane, which shall be remove starting with 0. |
"clipping edit" |
Editing an existing clipping plane. This needs three further attribues
Variable name |
Meaning |
"nr" |
The number of the clipping plane, which shall be edited starting with 0. |
"position" |
An3-element array for the position of the plane. |
"normal" |
A 3-element array for the normal of the plane. |
|
"metadata" |
Sending an arbitrary json object directly to the simulation, which will be able to read it with getJsonMetaRoot(). |
"request" |
Sending a string to update some state or to redraw the image at all. The string can have the following values:
Value |
Meaning |
"rotation" |
Resend the rotation. |
"position" |
Resend the position. |
"distance" |
Resend the distance. |
"projection" |
Resend the projection. |
"transfer" |
Resend the transfer function. |
"interpolation" |
Resend the interpolation flag. |
"step" |
Resend the step width. |
"iso surface" |
Resend the iso surface flag. |
"functions" |
Resend the functor chains. |
"weight" |
Resend the weights per source. |
"background color" |
Resend the background colour. |
"clipping" |
Resend the clipping planes. |
"controller" |
Resend the controller specific attributes. Atm this means resending "eye distance" if stereoscopy is activated. |
"redraw" |
Redraw the image even if nothing happend. |
"minmax" |
Sent the min-max array for every source. |
|