|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | +<meta charset="utf-8"> |
| 5 | +<title>ISAAC Control Page</title> |
| 6 | +</head> |
| 7 | +<style> |
| 8 | + * { |
| 9 | + font-family: sans-serif; |
| 10 | + } |
| 11 | +</style> |
| 12 | +<body> |
| 13 | +<h3>Preview and camera setting</h3> |
| 14 | +<p>Usage: |
| 15 | +<ul> |
| 16 | +<li>Left click + Mouse movement: Change view angle</li> |
| 17 | +<li>Right/Middle click + Mouse movement: Change position</li> |
| 18 | +<li>Mousewheel: zoom</li> |
| 19 | +</ul> |
| 20 | +<form> |
| 21 | + Server URL:<input type="text" id="server_url" value="127.0.0.1"> |
| 22 | + Port:<input type="text" id="server_port" value="2459"> |
| 23 | + <input type="button" value="Connect" id="connect"> |
| 24 | + <br/><input type="checkbox" id="one_window_checkbox" checked onchange="one_window_checkbox_click()"> Show video and control in one window |
| 25 | + <br/><input type="checkbox" id="wireframe_checkbox" checked onchange="wireframe_checkbox_click()"> Show wireframe bounding box |
| 26 | + <br/><input type="checkbox" id="dropable_checkbox" onchange="dropable_checkbox_click()"> Meta data can be dropped (Select before observing!) |
| 27 | +</form> |
| 28 | +<div id="status">Status: Not connected</div> |
| 29 | +</p> |
| 30 | +<table><tr> |
| 31 | +<td id="video_td" valign="top"> |
| 32 | + <!--canvas id="video" width="512" height="512" style="border:1px solid #000000;"></canvas--> |
| 33 | + <div id="video_container_div" style="position: relative;"> |
| 34 | + <div id="video_div" style="position: relative; top: 0; left: 0;"> |
| 35 | + <table><tr> |
| 36 | + <td> |
| 37 | + <canvas id="video" width="512" height="512"></canvas> |
| 38 | + <div id="url_div" style="display:none;"></div> |
| 39 | + </td> |
| 40 | + <td align="center"><div id="controls" style="display:none;"> |
| 41 | + <input type="button" value="+" id="zoom_in"> <input type="button" value="5 x" id="zoom_in_5"><br/> |
| 42 | + <input type="button" value="-" id="zoom_out"> <input type="button" value="5 x" id="zoom_out_5"><br/> |
| 43 | + <input type="button" value="X+" id="plus_x"> <input type="button" value="5 x" id="plus_x_5"><br/> |
| 44 | + <input type="button" value="X-" id="minus_x"> <input type="button" value="5 x" id="minus_x_5"><br/> |
| 45 | + <input type="button" value="Y+" id="plus_y"> <input type="button" value="5 x" id="plus_y_5"><br/> |
| 46 | + <input type="button" value="Y-" id="minus_y"> <input type="button" value="5 x" id="minus_y_5"><br/> |
| 47 | + <input type="button" value="Z+" id="plus_z"> <input type="button" value="5 x" id="plus_z_5"><br/> |
| 48 | + <input type="button" value="Z-" id="minus_z"> <input type="button" value="5 x" id="minus_z_5"><br/> |
| 49 | + <input type="button" value="←" id="ctl_left"> <input type="button" value="5 x" id="ctl_left_5"><br/> |
| 50 | + <input type="button" value="→" id="ctl_right"> <input type="button" value="5 x" id="ctl_right_5"><br/> |
| 51 | + <input type="button" value="↑" id="ctl_up"> <input type="button" value="5 x" id="ctl_up_5"><br/> |
| 52 | + <input type="button" value="↓" id="ctl_down"> <input type="button" value="5 x" id="ctl_down_5"> |
| 53 | + </div></td> |
| 54 | + </tr></table> |
| 55 | + <form> |
| 56 | + <input type="button" value="Pause" id="pause"> |
| 57 | + <input type="button" value="Stop observing" id="stop"> |
| 58 | + <input type="button" value="Reset view" id="panic"> |
| 59 | + <input type="button" value="Stop simulation" id="exit"> |
| 60 | + <input type="button" value="Toogle bounding box" id="bounding"> |
| 61 | + Background color: <input id="background_color" class="jscolor" value="000000" size="6"> |
| 62 | + <input type="button" value="Apply" id="background_change"> |
| 63 | + Interval: <input type="range" value="1" min="1" max="32" id="interval_range"> |
| 64 | + <span id="interval_span">1</span> |
| 65 | + <input type="button" value="Set" id="interval_change"> |
| 66 | + <input type="checkbox" id="controls_checkbox" onchange="controls_checkbox_click()"> Show controls |
| 67 | + </form> |
| 68 | + <div id="ambient_occ_div"> |
| 69 | + <table> |
| 70 | + <h3>Ambient Occlusion</h3> |
| 71 | + <tr> |
| 72 | + <td>Enabled</td> |
| 73 | + <td><input type="checkbox" id="ao_checkbox" checked onchange="aoUpdate()"></td> |
| 74 | + <td></td> |
| 75 | + </tr> |
| 76 | + <tr> |
| 77 | + <td>Weight</td> |
| 78 | + <td><input type="range" min="0" max="1" value="0.5" step="0.01" id="ao_weight"></td> |
| 79 | + <td><button onclick="aoUpdate()">Set</button></td> |
| 80 | + </tr> |
| 81 | + </table> |
| 82 | + |
| 83 | + <br/> |
| 84 | + </div> |
| 85 | + <div id="stereo_div"></div> |
| 86 | + <div id="functions_div"></div> |
| 87 | + <div id="weight_div"></div> |
| 88 | + <input type="checkbox" id="interpolation_checkbox" checked onchange="interpolation_checkbox_click()"> Interpolation |
| 89 | + <input type="checkbox" id="iso_surface_checkbox" checked onchange="iso_surface_checkbox_click()"> Iso Surface |
| 90 | + <input id="step" size="4"><input type="button" value="Change step" id="step_button" onclick="step_button_click()"><br/> |
| 91 | + <div id="clipping_add_div"> |
| 92 | + <b>Clipping planes:</b><br/> |
| 93 | + <span> Position: </span><input type="text" value="0" size="4" id="clip_px"><input type="text" value="0" size="4" id="clip_py"><input type="text" value="0" size="4" id="clip_pz"> |
| 94 | + <span> Normal: </span> <input type="text" value="0" size="4" id="clip_nx"><input type="text" value="0" size="4" id="clip_ny"><input type="text" value="1" size="4" id="clip_nz"> |
| 95 | + <input type="button" value="X" id="clip_bx"><input type="button" value="Y" id="clip_by"><input type="button" value="Z" id="clip_bz"> |
| 96 | + <input type="button" value="Add" id="clip_add"> |
| 97 | + </div> |
| 98 | + <div id="clipping_list_div"></div> |
| 99 | + <table border="1"><tr id="transfer_form"></tr></table> |
| 100 | + <canvas id="transfer" width="412" height="16"></canvas> |
| 101 | + </div> |
| 102 | + <div id="preview_div" style="position: absolute; top: 0; left: 0; opacity: 0.5;"> |
| 103 | + <canvas id="preview" width="512" height="512" style="border:1px solid #000000;"></canvas> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | +<td> |
| 107 | +<td id="preview_td" valign="top"> |
| 108 | + <div id="preview_container_div" style="position: relative;"> |
| 109 | + </div> |
| 110 | +</td> |
| 111 | +</tr></table> |
| 112 | +<div id="list_td" style="display:none"> |
| 113 | + <h3 id="isaac_name"></h3> |
| 114 | + <table id="list_table" border="1"> |
| 115 | + <tr> |
| 116 | + <th>Name</th> |
| 117 | + <th>ID</th> |
| 118 | + <th>Nodes</th> |
| 119 | + <th>Max Functors</th> |
| 120 | + <th>Functors</th> |
| 121 | + <th>Dimension</th> |
| 122 | + <th>Sources</th> |
| 123 | + <th>Meta data</th> |
| 124 | + <th>Observe</th> |
| 125 | + </tr> |
| 126 | + </table> |
| 127 | +</div> |
| 128 | +</body> |
| 129 | +<script src="../js/jscolor.js"></script> |
| 130 | +<script src="../js/isaac/client.js"></script> |
| 131 | +<script src="../js/isaac/draw.js"></script> |
| 132 | +<script src="../js/isaac/interface/visualisation.js"></script> |
| 133 | +</html> |
0 commit comments