1 | ================================================================================ |
---|
2 | On connection, send 32-bit little endian int indicating memory requirements |
---|
3 | (comsumed by nanoscale server before exec-ing vtkvis) |
---|
4 | ================================================================================ |
---|
5 | Requests: |
---|
6 | |
---|
7 | screen bgcolor <r> <g> <b> |
---|
8 | screen size <width> <height> |
---|
9 | |
---|
10 | renderer clipplane <axis> <ratio> <direction> |
---|
11 | Set a user clipping plane, ratio is [0,1] and is always interpreted as |
---|
12 | 0 = min_bound, 1 = max_bound, regardless of direction. Sign of |
---|
13 | direction determines normal of clipping plane. User clip planes do not |
---|
14 | apply if camera mode is image. |
---|
15 | renderer depthpeel <bool> |
---|
16 | Set use of depth peeling algorithm for transparency |
---|
17 | renderer light2side <bool> |
---|
18 | Toggle use of two-sided lighting (controls if backfaces are lit with a |
---|
19 | flipped normal) |
---|
20 | renderer render |
---|
21 | Force a new image to be rendered - use for advancing animation |
---|
22 | |
---|
23 | axis color <r> <g> <b> |
---|
24 | Set color of axis lines, labels, titles, ticks |
---|
25 | axis flymode <mode> |
---|
26 | <mode> = static_edges|static_triad|outer_edges|furthest_triad|closest_triad |
---|
27 | axis grid <bool> |
---|
28 | axis labels <axis> <bool> |
---|
29 | Toggle visibility of axis labels |
---|
30 | <axis> = x|y|z|all |
---|
31 | axis name <axis> <title> |
---|
32 | axis tickpos <position> |
---|
33 | Set position of ticks on 3D axes (not implemented for 2D axes) |
---|
34 | <position> = inside|outside|both |
---|
35 | axis ticks <axis> <bool> |
---|
36 | Toggle visibility of axis tick marks |
---|
37 | <axis> = x|y|z|all |
---|
38 | axis units <axis> <units> |
---|
39 | Currently only supported when camera mode is not image mode |
---|
40 | axis visible <axis> <bool> |
---|
41 | <axis> = x|y|z|all |
---|
42 | Note: 'all' means all enabled axes. To force all axes on, set each axis on |
---|
43 | individually -- however, it is best to let the server determine which of |
---|
44 | the individual axes are enabled based on the dataset bounds. |
---|
45 | |
---|
46 | camera get |
---|
47 | Request current camera parameters |
---|
48 | camera mode <mode> |
---|
49 | <mode> = persp|ortho|image |
---|
50 | camera orient <quatW> <quatX> <quatY> <quatZ> |
---|
51 | Set scene orientation using a quaternion |
---|
52 | camera ortho <coordMode> <x> <y> <width> <height> |
---|
53 | <coordMode> = pixel|world |
---|
54 | Supply bounds of plot area for image camera mode |
---|
55 | camera pan <x> <y> |
---|
56 | <x,y> viewport coordinates (window center at 0,0). Positive x pan |
---|
57 | means pan object to right (camera to left). Positive y pan means |
---|
58 | pan object down (camera up). For example a pan of 0.5, 0.5 would |
---|
59 | move the object center to the lower right corner of the window |
---|
60 | camera reset <?all?> |
---|
61 | Option all resets orientation/rotation as well as pan/zoom/clip range |
---|
62 | camera rotate <yaw> <pitch> <roll> |
---|
63 | Specify relative rotation in Euler angles |
---|
64 | camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
65 | Set camera parameters: camera position, focal point and view up vector |
---|
66 | camera zoom <z> |
---|
67 | Specify zoom ratio. z > 1 is a zoom in, z < 1 is zoom out. z = 1 |
---|
68 | resets to default. |
---|
69 | |
---|
70 | colormap add <colorMapName> <colorMap> <opacityMap> |
---|
71 | colorMap = Tcl list of {value r g b} control points |
---|
72 | opacityMap = Tcl list of {value alpha} control points |
---|
73 | colormap delete <?colorMapName?> |
---|
74 | |
---|
75 | legend <colormapName> <legendType> <legendTitle> <width> <height> <numLabels> <?datasetName?> |
---|
76 | Causes legend to be rendered and written back with labels and title |
---|
77 | (title may be left blank) |
---|
78 | <legendType> = scalar|vmag|vx|vy|vz |
---|
79 | <numLabels> Can be zero or more 'tick' value labels |
---|
80 | If datasetName is omitted, the cumulative data range of all data sets |
---|
81 | will be used to label the legend -- otherwise, the current setting of |
---|
82 | 'dataset maprange' will be used to determine if the individual dataset |
---|
83 | range or cumulative range will be used. |
---|
84 | |
---|
85 | dataset add <datasetName> data follows <nbytes> |
---|
86 | dataset color <r> <g> <b> <?datasetName?> |
---|
87 | Set color of outline bounding box |
---|
88 | dataset delete <?datasetName?> |
---|
89 | dataset getscalar world <x> <y> <z> <datasetName> |
---|
90 | dataset getscalar pixel <x> <y> <datasetName> |
---|
91 | dataset getvector world <x> <y> <z> <datasetName> |
---|
92 | dataset getvector pixel <x> <y> <datasetName> |
---|
93 | Use pixel for image camera mode |
---|
94 | dataset maprange <val> |
---|
95 | <val> = all|visible|separate |
---|
96 | Controls if data range for colormapping and contours is based on |
---|
97 | cumulative range of all datasets ("all"), only visible datasets |
---|
98 | ("visible") or each individual dataset ("separate"). Defaults to |
---|
99 | "all" |
---|
100 | dataset opacity <val> <?datasetName?> |
---|
101 | dataset outline <bool> <?datasetName?> |
---|
102 | Toggle wireframe outline of dataset's bounding box |
---|
103 | dataset scalar <scalarName> <?datasetName?> |
---|
104 | Set the active scalar field to plot |
---|
105 | dataset vector <vectorName> <?datasetName?> |
---|
106 | Set the active vector field to plot |
---|
107 | dataset visible <bool> <?datasetName?> |
---|
108 | |
---|
109 | contour2d add numcontours <n> <?datasetName?> |
---|
110 | Generate evenly spaced contours including range endpoints. See also |
---|
111 | 'dataset maprange' command. |
---|
112 | contour2d add contourlist <list> <?datasetName?> |
---|
113 | list = {isoval1 isoval2 isoval3...} |
---|
114 | contour2d color <r> <g> <b> <?datasetName?> |
---|
115 | synonym for linecolor |
---|
116 | contour2d delete <?datasetName?> |
---|
117 | contour2d lighting <bool> <?datasetName?> |
---|
118 | contour2d linecolor <r> <g> <b> <?datasetName?> |
---|
119 | synonym for color |
---|
120 | contour2d linewidth <val> <?datasetName?> |
---|
121 | contour2d opacity <val> <?datasetName?> |
---|
122 | contour2d orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
123 | contour2d pos <x> <y> <z> <?dataSetName?> |
---|
124 | contour2d scale <sx> <sy> <sz> <?dataSetName?> |
---|
125 | contour2d visible <bool> <?datasetName?> |
---|
126 | |
---|
127 | contour3d add numcontours <n> <?datasetName?> |
---|
128 | Generate evenly spaced contours including range endpoints. See also |
---|
129 | 'dataset maprange' command. |
---|
130 | contour3d add contourlist <list> <?datasetName?> |
---|
131 | list = {isoval1 isoval2 isoval3...} |
---|
132 | contour3d ccolor r g b <?datasetName?> |
---|
133 | contour3d colormap <colorMapName> <?dataSetName?> |
---|
134 | contour3d delete <?datasetName?> |
---|
135 | contour3d edges <bool> <?datasetName?> |
---|
136 | contour3d lighting <bool> <?datasetName?> |
---|
137 | contour3d linecolor <r> <g> <b> <?datasetName?> |
---|
138 | contour3d linewidth <val> <?datasetName?> |
---|
139 | contour3d opacity <val> <?datasetName?> |
---|
140 | contour3d orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
141 | contour3d pos <x> <y> <z> <?dataSetName?> |
---|
142 | contour3d scale <sx> <sy> <sz> <?dataSetName?> |
---|
143 | contour3d visible <bool> <?datasetName?> |
---|
144 | contour3d wireframe <bool> <?datasetName?> |
---|
145 | |
---|
146 | glyphs add <?dataSetName?> |
---|
147 | glyphs ccolor r g b <?datasetName?> |
---|
148 | glyphs colormap <colorMapName> <?dataSetName?> |
---|
149 | glyphs colormode <scalar|vmag|ccolor> <?dataSetName?> |
---|
150 | Set the color mode: color by scalar field or |
---|
151 | vector magnitude -- uses the current color map, |
---|
152 | or ccolor for constant color |
---|
153 | glyphs delete <?dataSetName?> |
---|
154 | glyphs edges <bool> <?datasetName?> |
---|
155 | glyphs gscale <scaleFactor> <?datasetName?> |
---|
156 | Set glyph scaling factor |
---|
157 | glyphs lighting <bool> <?datasetName?> |
---|
158 | glyphs linecolor <r> <g> <b> <?datasetName?> |
---|
159 | glyphs linewidth <val> <?datasetName?> |
---|
160 | glyphs normscale <bool> <?datasetName?> |
---|
161 | Control if data values are normalized to [0,1] range before applying |
---|
162 | glyph scaling factor (gscale) |
---|
163 | glyphs opacity <val> <?datasetName?> |
---|
164 | glyphs orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
165 | glyphs pos <x> <y> <z> <?dataSetName?> |
---|
166 | glyphs scale <sx> <sy> <sz> <?dataSetName?> |
---|
167 | glyphs shape <arrow|cone|cube|cylinder|dodecahedron|icosahedron|line|octahedron|sphere|tetrahedron> <?datasetName?> |
---|
168 | glyphs smode <scalar|vmag|vcomp|off> <?dataSetName?> |
---|
169 | Set the scaling mode: use the scalar field, vector magnitude |
---|
170 | (uniform scale), vector components, or disable scaling |
---|
171 | glyphs visible <bool> <?datasetName?> |
---|
172 | glyphs wireframe <bool> <?datasetName?> |
---|
173 | |
---|
174 | heightmap add numcontours <n> <heightScale> <?dataSetName?> |
---|
175 | Generate evenly spaced contours including range endpoints. See also |
---|
176 | 'dataset maprange' command. |
---|
177 | heightmap add contourlist <list> <heightScale> <?dataSetName?> |
---|
178 | list = {isoval1 isoval2 isoval3...} |
---|
179 | heightmap colormap <colorMapName> <?dataSetName?> |
---|
180 | heightmap contourlist <list> <?dataSetName?> |
---|
181 | heightmap delete <?dataSetName?> |
---|
182 | heightmap edges <bool> <?dataSetName?> |
---|
183 | heightmap heightscale <value> <?dataSetName?> |
---|
184 | heightmap isolinecolor <r> <g> <b> <?dataSetName?> |
---|
185 | heightmap isolines <bool> <?dataSetName?> |
---|
186 | heightmap isolinewidth <width> <?dataSetName?> |
---|
187 | heightmap lighting <bool> <?dataSetName?> |
---|
188 | heightmap linecolor <r> <g> <b> <?dataSetName?> |
---|
189 | heightmap linewidth <width> <?dataSetName?> |
---|
190 | heightmap numcontours <n> <?dataSetName?> |
---|
191 | heightmap opacity <value> <?dataSetName?> |
---|
192 | heightmap orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
193 | heightmap pos <x> <y> <z> <?dataSetName?> |
---|
194 | heightmap scale <sx> <sy> <sz> <?dataSetName?> |
---|
195 | heightmap surface <bool> <?dataSetName?> |
---|
196 | Toggle rendering of colormapped surface (mountain plot or cutplane) |
---|
197 | heightmap visible <bool> <?dataSetName?> |
---|
198 | heightmap volumeslice axis ratio <?dataSetName?> |
---|
199 | For 3D data, select a slice along a principle axis of the volume. The |
---|
200 | ratio is [0,1] |
---|
201 | heightmap wireframe <bool> <?datasetName?> |
---|
202 | |
---|
203 | lic add <?datasetName?> |
---|
204 | lic colormap <colormapName> <?datasetName?> |
---|
205 | lic delete <?datasetName?> |
---|
206 | lic edges <bool> <?datasetName?> |
---|
207 | lic lighting <bool> <?datasetName?> |
---|
208 | lic linecolor <r> <g> <b> <?datasetName?> |
---|
209 | lic linewidth <val> <?datasetName?> |
---|
210 | lic opacity <val> <?datasetName?> |
---|
211 | lic orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
212 | lic pos <x> <y> <z> <?dataSetName?> |
---|
213 | lic scale <sx> <sy> <sz> <?dataSetName?> |
---|
214 | lic visible <bool> <?datasetName?> |
---|
215 | lic volumeslice <axis> <ratio> <?datasetName?> |
---|
216 | |
---|
217 | molecule add <?datasetName?> |
---|
218 | molecule atoms <bool> <?datasetName?> |
---|
219 | Toggle rendering of atoms |
---|
220 | molecule bonds <bool> <?datasetName?> |
---|
221 | Toggle rendering of bonds |
---|
222 | molecule colormap <colormapName> <?datasetName?> |
---|
223 | molecule delete <?datasetName?> |
---|
224 | molecule edges <bool> <?datasetName?> |
---|
225 | molecule lighting <bool> <?datasetName?> |
---|
226 | molecule linecolor <r> <g> <b> <?datasetName?> |
---|
227 | molecule linewidth <val> <?datasetName?> |
---|
228 | molecule opacity <val> <?datasetName?> |
---|
229 | molecule orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
230 | molecule pos <x> <y> <z> <?dataSetName?> |
---|
231 | molecule rscale <val> <?dataSetName?> |
---|
232 | Atom radius scaling |
---|
233 | val = van_der_walls|covalent|atomic|none |
---|
234 | molecule scale <sx> <sy> <sz> <?dataSetName?> |
---|
235 | molecule visible <bool> <?datasetName?> |
---|
236 | molecule wireframe <bool> <?datasetName?> |
---|
237 | |
---|
238 | polydata add <?datasetName?> |
---|
239 | polydata color <r> <g> <b> <?datasetName?> |
---|
240 | polydata delete <?datasetName?> |
---|
241 | polydata edges <bool> <?datasetName?> |
---|
242 | polydata lighting <bool> <?datasetName?> |
---|
243 | polydata linecolor <r> <g> <b> <?datasetName?> |
---|
244 | polydata linewidth <val> <?datasetName?> |
---|
245 | polydata opacity <val> <?datasetName?> |
---|
246 | polydata orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
247 | polydata pos <x> <y> <z> <?dataSetName?> |
---|
248 | polydata ptsize <size> <?dataSetName?> |
---|
249 | polydata scale <sx> <sy> <sz> <?dataSetName?> |
---|
250 | polydata visible <bool> <?datasetName?> |
---|
251 | polydata wireframe <bool> <?datasetName?> |
---|
252 | |
---|
253 | pseudocolor add <?datasetName?> |
---|
254 | pseudocolor ccolor r g b <?datasetName?> |
---|
255 | pseudocolor colormap <colormapName> <?datasetName?> |
---|
256 | pseudocolor colormode <scalar|vmag|vx|vy|vz|ccolor> <?datasetName?> |
---|
257 | Set the field used to color the object. 'ccolor' means to use |
---|
258 | the constant color defined by the ccolor subcommand. 'scalar' uses |
---|
259 | the active scalar field. 'vmag' uses the magnitude of the current |
---|
260 | vector field, and 'vx','vy','vz' use the corresponding component of |
---|
261 | the active vector field. |
---|
262 | pseudocolor delete <?datasetName?> |
---|
263 | pseudocolor edges <bool> <?datasetName?> |
---|
264 | pseudocolor lighting <bool> <?datasetName?> |
---|
265 | pseudocolor linecolor <r> <g> <b> <?datasetName?> |
---|
266 | pseudocolor linewidth <val> <?datasetName?> |
---|
267 | pseudocolor opacity <val> <?datasetName?> |
---|
268 | pseudocolor orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
269 | pseudocolor pos <x> <y> <z> <?dataSetName?> |
---|
270 | pseudocolor scale <sx> <sy> <sz> <?dataSetName?> |
---|
271 | pseudocolor visible <bool> <?datasetName?> |
---|
272 | pseudocolor wireframe <bool> <?datasetName?> |
---|
273 | |
---|
274 | streamlines add <?datasetName?> |
---|
275 | streamlines ccolor <r> <g> <b> <?datasetName?> |
---|
276 | Set the constant color of streamlines used for color mode 'ccolor' |
---|
277 | streamlines colormap <colormapName> <?datasetName?> |
---|
278 | Colormap used to color streamlines/tubes/ribbons by vector magnitude |
---|
279 | streamlines colormode <scalar|vmag|vx|vy|vz|ccolor> <?datasetName?> |
---|
280 | Set the field used to color the streamlines. 'ccolor' means to use |
---|
281 | the constant color defined by the ccolor subcommand. 'scalar' uses |
---|
282 | the active scalar field. 'vmag' uses the magnitude of the current |
---|
283 | vector field, and 'vx','vy','vz' use the corresponding component of |
---|
284 | the active vector field. |
---|
285 | streamlines delete <?datasetName?> |
---|
286 | streamlines edges <bool> <?datasetName?> |
---|
287 | Turn on/off edges for tubes, ribbons |
---|
288 | streamlines length <?datasetName?> |
---|
289 | Set maximum length in world coordinates of streamlines |
---|
290 | streamlines lighting <bool> <?datasetName?> |
---|
291 | streamlines linecolor <r> <g> <b> <?datasetName?> |
---|
292 | Set color of edges for tubes, ribbons (lines are colored by colormap) |
---|
293 | streamlines lines <?datasetName?> |
---|
294 | Set rendering type to polylines |
---|
295 | streamlines linewidth <val> <?datasetName?> |
---|
296 | streamlines opacity <val> <?datasetName?> |
---|
297 | streamlines orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
298 | streamlines pos <x> <y> <z> <?dataSetName?> |
---|
299 | streamlines ribbons <width> <angle> <?datasetName?> |
---|
300 | Set rendering type to ribbons, width is minimum half-width, angle is |
---|
301 | degrees offset from normal orientation |
---|
302 | streamlines scale <sx> <sy> <sz> <?dataSetName?> |
---|
303 | streamlines seed color <r> <g> <b> <?datasetName?> |
---|
304 | streamlines seed disk <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <radius> <innerRadius> <numPoints> <?dataSetName?> |
---|
305 | Create a disk seed area with optional hole, filled with randomly |
---|
306 | placed points |
---|
307 | streamlines seed fpoly <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <numPoints> <?dataSetName?> |
---|
308 | Create a regular n-sided polygonal seed area filled with randomly |
---|
309 | placed points |
---|
310 | streamlines seed polygon <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <?dataSetName?> |
---|
311 | Create seed points from vertices of a regular n-sided polygon |
---|
312 | streamlines seed rake <startX> <startY> <startZ> <endX> <endY> <endZ> <numPoints> <?datasetName?> |
---|
313 | streamlines seed random <numPoints> <?datasetName?> |
---|
314 | streamlines seed visible <bool> <?datasetName?> |
---|
315 | streamlines tubes <numSides> <radius> <?datasetName?> |
---|
316 | Set rendering type to tubes, numSides is number of sides of tubes, |
---|
317 | radius is minimum tube radius |
---|
318 | streamlines visible <bool> <?datasetName?> |
---|
319 | |
---|
320 | volume add <?datasetName?> |
---|
321 | volume colormap <colorMapName> <?datasetName?> |
---|
322 | volume delete <?datasetName?> |
---|
323 | volume lighting <bool> <?datasetName?> |
---|
324 | volume orient <qw> <qx> <qy> <qz> <?dataSetName?> |
---|
325 | volume pos <x> <y> <z> <?dataSetName?> |
---|
326 | volume scale <sx> <sy> <sz> <?dataSetName?> |
---|
327 | volume shading ambient <coeff> <?datasetName?> |
---|
328 | volume shading diffuse <coeff> <?datasetName?> |
---|
329 | volume shading specular <coeff> <power> <?datasetName?> |
---|
330 | volume visible <bool> <?datasetName?> |
---|
331 | |
---|
332 | ================================================================================ |
---|
333 | Replies: |
---|
334 | |
---|
335 | nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
336 | Reply to "camera get" |
---|
337 | nv>image -type image -bytes <nbytes> |
---|
338 | <binary RGB data> |
---|
339 | nv>image -type image -bbox {x y w h} -bytes <nbytes> |
---|
340 | <binary RGB data> |
---|
341 | The bounding box of the 2D image camera zoom region is supplied |
---|
342 | Note: The bbox coordinates are in the form used by 'camera ortho world ...': |
---|
343 | x,y - world coordinate of lower left corner, w,h - width height in world coords |
---|
344 | This form is currently used only if the camera mode is set to 'image'. |
---|
345 | nv>legend <colormapName> <title> <rmin> <rmax> <nbytes> |
---|
346 | <binary RGB data> |
---|
347 | nv>dataset scalar world <x> <y> <z> <value> <dataSetName> |
---|
348 | nv>dataset scalar pixel <x> <y> <value> <dataSetName> |
---|
349 | nv>dataset vector world <x> <y> <z> <valueX> <valueY> <valueZ> <dataSetName> |
---|
350 | nv>dataset vector pixel <x> <y> <valueX> <valueY> <valueZ> <dataSetName> |
---|
351 | |
---|
352 | ================================================================================ |
---|
353 | Errors: |
---|
354 | |
---|
355 | Prefixed with "VtkVis Server Error: " |
---|
356 | Currently not guaranteed to be on a single line |
---|