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 | |
---|
18 | axis color <r> <g> <b> |
---|
19 | Set color of axis lines, labels, titles, ticks |
---|
20 | axis flymode <mode> |
---|
21 | <mode> = static_edges|static_triad|outer_edges|furthest_triad|closest_triad |
---|
22 | axis grid <bool> |
---|
23 | axis name <axis> <title> |
---|
24 | axis units <axis> <units> |
---|
25 | Currently only supported when camera mode is not image mode |
---|
26 | axis visible <axis> <bool> |
---|
27 | <axis> = x|y|z|all |
---|
28 | |
---|
29 | camera get |
---|
30 | Request current camera orientation |
---|
31 | camera mode <mode> |
---|
32 | <mode> = persp|ortho|image |
---|
33 | camera orient <quatW> <quatX> <quatY> <quatZ> |
---|
34 | Set scene orientation using a quaternion |
---|
35 | camera ortho <x> <y> <width> <height> |
---|
36 | Supply world coordinate bounds of plot area for image camera mode |
---|
37 | Data is assumed to lie in XY plane (z = 0) |
---|
38 | camera pan <x> <y> |
---|
39 | <x,y> world coordinates |
---|
40 | camera reset <?all?> |
---|
41 | Option all resets orientation/rotation as well as pan/zoom/clip range |
---|
42 | camera rotate <yaw> <pitch> <roll> |
---|
43 | Specify relative rotation in Euler angles (FIXME) |
---|
44 | camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
45 | Set camera orientation using camera position, focal point and view up |
---|
46 | vector |
---|
47 | camera zoom <z> |
---|
48 | Specify zoom ratio |
---|
49 | |
---|
50 | colormap add <colorMapName> <colorMap> <opacityMap> |
---|
51 | colorMap = Tcl list of {value r g b} control points |
---|
52 | opacityMap = Tcl list of {value alpha} control points |
---|
53 | colormap delete <?colorMapName?> |
---|
54 | |
---|
55 | legend <colormapName> <legendTitle> <width> <height> <?datasetName?> |
---|
56 | Causes legend to be rendered and written back with labels and title |
---|
57 | |
---|
58 | dataset add <datasetName> data follows <nbytes> |
---|
59 | dataset delete <?datasetName?> |
---|
60 | dataset getvalue world <x> <y> <z> <datasetName> |
---|
61 | dataset getvalue pixel <x> <y> <datasetName> |
---|
62 | Use pixel for image camera mode |
---|
63 | dataset maprange <val> |
---|
64 | <val> = all|visible|separate |
---|
65 | Controls if data range for colormapping and contours is based on |
---|
66 | cumulative range of all datasets ("all"), only visible datasets |
---|
67 | ("visible") or each individual dataset ("separate"). Defaults to |
---|
68 | "all" |
---|
69 | dataset opacity <val> <?datasetName?> |
---|
70 | dataset visible <bool> <?datasetName?> |
---|
71 | |
---|
72 | contour2d add numcontours <n> <?datasetName?> |
---|
73 | Generate evenly spaced contours including range endpoints. See also |
---|
74 | 'dataset maprange' command. |
---|
75 | contour2d add contourlist <list> <?datasetName?> |
---|
76 | list = {isoval1 isoval2 isoval3...} |
---|
77 | contour2d delete <?datasetName?> |
---|
78 | contour2d lighting <bool> <?datasetName?> |
---|
79 | contour2d linecolor <r> <g> <b> <?datasetName?> |
---|
80 | contour2d linewidth <val> <?datasetName?> |
---|
81 | contour2d opacity <val> <?datasetName?> |
---|
82 | contour2d visible <bool> <?datasetName?> |
---|
83 | |
---|
84 | contour3d add numcontours <n> <?datasetName?> |
---|
85 | Generate evenly spaced contours including range endpoints. See also |
---|
86 | 'dataset maprange' command. |
---|
87 | contour3d add contourlist <list> <?datasetName?> |
---|
88 | list = {isoval1 isoval2 isoval3...} |
---|
89 | contour3d color r g b <?datasetName?> |
---|
90 | contour3d colormap <colorMapName> <?dataSetName?> |
---|
91 | contour3d delete <?datasetName?> |
---|
92 | contour3d edges <bool> <?datasetName?> |
---|
93 | contour3d lighting <bool> <?datasetName?> |
---|
94 | contour3d linecolor <r> <g> <b> <?datasetName?> |
---|
95 | contour3d linewidth <val> <?datasetName?> |
---|
96 | contour3d opacity <val> <?datasetName?> |
---|
97 | contour3d visible <bool> <?datasetName?> |
---|
98 | contour3d wireframe <bool> <?datasetName?> |
---|
99 | |
---|
100 | glyphs add <?dataSetName?> |
---|
101 | glyphs colormap <colorMapName> <?dataSetName?> |
---|
102 | glyphs delete <?dataSetName?> |
---|
103 | glyphs lighting <bool> <?datasetName?> |
---|
104 | glyphs opacity <val> <?datasetName?> |
---|
105 | glyphs scale <scaleFactor> <?datasetName?> |
---|
106 | glyphs shape <arrow|cone|cube|cylinder|dodecahedron|icosahedron|octahedron|sphere|tetrahedron> <?datasetName?> |
---|
107 | glyphs visible <bool> <?datasetName?> |
---|
108 | |
---|
109 | heightmap add numcontours <n> <?dataSetName?> |
---|
110 | Generate evenly spaced contours including range endpoints. See also |
---|
111 | 'dataset maprange' command. |
---|
112 | heightmap add contourlist <list> <?dataSetName?> |
---|
113 | list = {isoval1 isoval2 isoval3...} |
---|
114 | heightmap colormap <colorMapName> <?dataSetName?> |
---|
115 | heightmap delete <?dataSetName?> |
---|
116 | heightmap edges <bool> <?dataSetName?> |
---|
117 | heightmap heightscale <value> <?dataSetName?> |
---|
118 | heightmap isolinecolor <r> <g> <b> <?dataSetName?> |
---|
119 | heightmap isolines <bool> <?dataSetName?> |
---|
120 | heightmap isolinewidth <width> <?dataSetName?> |
---|
121 | heightmap lighting <bool> <?dataSetName?> |
---|
122 | heightmap linecolor <r> <g> <b> <?dataSetName?> |
---|
123 | heightmap linewidth <width> <?dataSetName?> |
---|
124 | heightmap opacity <value> <?dataSetName?> |
---|
125 | heightmap visible <bool> <?dataSetName?> |
---|
126 | heightmap volumeslice axis ratio <?dataSetName?> |
---|
127 | For 3D data, select a slice along a principle axis of the volume. The |
---|
128 | ratio is [0,1] |
---|
129 | |
---|
130 | lic add <?datasetName?> |
---|
131 | lic colormap <colormapName> <?datasetName?> |
---|
132 | lic delete <?datasetName?> |
---|
133 | lic edges <bool> <?datasetName?> |
---|
134 | lic lighting <bool> <?datasetName?> |
---|
135 | lic linecolor <r> <g> <b> <?datasetName?> |
---|
136 | lic linewidth <val> <?datasetName?> |
---|
137 | lic opacity <val> <?datasetName?> |
---|
138 | lic visible <bool> <?datasetName?> |
---|
139 | lic volumeslice <axis> <ratio> <?datasetName?> |
---|
140 | |
---|
141 | molecule add <?datasetName?> |
---|
142 | molecule atoms <bool> <?datasetName?> |
---|
143 | Toggle rendering of atoms |
---|
144 | molecule bonds <bool> <?datasetName?> |
---|
145 | Toggle rendering of bonds |
---|
146 | molecule colormap <colormapName> <?datasetName?> |
---|
147 | molecule delete <?datasetName?> |
---|
148 | molecule edges <bool> <?datasetName?> |
---|
149 | molecule lighting <bool> <?datasetName?> |
---|
150 | molecule linecolor <r> <g> <b> <?datasetName?> |
---|
151 | molecule linewidth <val> <?datasetName?> |
---|
152 | molecule opacity <val> <?datasetName?> |
---|
153 | molecule scaleatoms <val> <?dataSetName?> |
---|
154 | val = van_der_walls|covalent|atomic|none |
---|
155 | molecule visible <bool> <?datasetName?> |
---|
156 | molecule wireframe <bool> <?datasetName?> |
---|
157 | |
---|
158 | polydata add <?datasetName?> |
---|
159 | polydata color <r> <g> <b> <?datasetName?> |
---|
160 | polydata delete <?datasetName?> |
---|
161 | polydata edges <bool> <?datasetName?> |
---|
162 | polydata lighting <bool> <?datasetName?> |
---|
163 | polydata linecolor <r> <g> <b> <?datasetName?> |
---|
164 | polydata linewidth <val> <?datasetName?> |
---|
165 | polydata opacity <val> <?datasetName?> |
---|
166 | polydata visible <bool> <?datasetName?> |
---|
167 | polydata wireframe <bool> <?datasetName?> |
---|
168 | |
---|
169 | pseudocolor add <?datasetName?> |
---|
170 | pseudocolor colormap <colormapName> <?datasetName?> |
---|
171 | pseudocolor delete <?datasetName?> |
---|
172 | pseudocolor edges <bool> <?datasetName?> |
---|
173 | pseudocolor lighting <bool> <?datasetName?> |
---|
174 | pseudocolor linecolor <r> <g> <b> <?datasetName?> |
---|
175 | pseudocolor linewidth <val> <?datasetName?> |
---|
176 | pseudocolor opacity <val> <?datasetName?> |
---|
177 | pseudocolor visible <bool> <?datasetName?> |
---|
178 | pseudocolor wireframe <bool> <?datasetName?> |
---|
179 | |
---|
180 | streamlines add <?datasetName?> |
---|
181 | streamlines colormap <colormapName> <?datasetName?> |
---|
182 | Colormap used to color streamlines/tubes/ribbons by vector magnitude |
---|
183 | streamlines delete <?datasetName?> |
---|
184 | streamlines edges <bool> <?datasetName?> |
---|
185 | Turn on/off edges for tubes, ribbons |
---|
186 | streamlines length <?datasetName?> |
---|
187 | Set maximum length in world coordinates of streamlines |
---|
188 | streamlines lighting <bool> <?datasetName?> |
---|
189 | streamlines linecolor <r> <g> <b> <?datasetName?> |
---|
190 | Set color of edges for tubes, ribbons (lines are colored by colormap) |
---|
191 | streamlines lines <?datasetName?> |
---|
192 | Set rendering type to polylines |
---|
193 | streamlines linewidth <val> <?datasetName?> |
---|
194 | streamlines opacity <val> <?datasetName?> |
---|
195 | streamlines ribbons <width> <angle> <?datasetName?> |
---|
196 | Set rendering type to ribbons, width is minimum half-width, angle is |
---|
197 | degrees offset from normal orientation |
---|
198 | streamlines seed color <r> <g> <b> <?datasetName?> |
---|
199 | streamlines seed polygon <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <radius> <numSides> <?dataSetName?> |
---|
200 | streamlines seed rake <startX> <startY> <startZ> <endX> <endY> <endZ> <numPoints> <?datasetName?> |
---|
201 | streamlines seed random <numPoints> <?datasetName?> |
---|
202 | streamlines seed visible <bool> <?datasetName?> |
---|
203 | streamlines tubes <numSides> <radius> <?datasetName?> |
---|
204 | Set rendering type to tubes, numSides is number of sides of tubes, |
---|
205 | radius is minimum tube radius |
---|
206 | streamlines visible <bool> <?datasetName?> |
---|
207 | |
---|
208 | volume add <?datasetName?> |
---|
209 | volume colormap <colorMapName> <?datasetName?> |
---|
210 | volume delete <?datasetName?> |
---|
211 | volume lighting <bool> <?datasetName?> |
---|
212 | volume shading ambient <coeff> <?datasetName?> |
---|
213 | volume shading diffuse <coeff> <?datasetName?> |
---|
214 | volume shading specular <coeff> <power> <?datasetName?> |
---|
215 | volume visible <bool> <?datasetName?> |
---|
216 | |
---|
217 | ================================================================================ |
---|
218 | Replies: |
---|
219 | |
---|
220 | nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
221 | Reply to "camera get" |
---|
222 | nv>image -type image -bytes <nbytes> |
---|
223 | <binary RGB data> |
---|
224 | nv>image -type image -bbox {x1 y1 x2 y2} -bytes <nbytes> |
---|
225 | <binary RGB data> |
---|
226 | Note: in this form, the bbox is the upper left and lower right screen corners |
---|
227 | in world coordinates. This form is currently used only if the camera mode is |
---|
228 | set to 'image'. |
---|
229 | nv>legend <colormapName> <nbytes> |
---|
230 | <binary RGB data> |
---|
231 | nv>dataset value world <x> <y> <z> <value> |
---|
232 | nv>dataset value pixel <x> <y> <value> |
---|
233 | |
---|
234 | ================================================================================ |
---|
235 | Errors: |
---|
236 | |
---|
237 | Prefixed with "VtkVis Server Error: " |
---|
238 | Currently not guaranteed to be on a single line |
---|