source: trunk/packages/vizservers/vtkvis/protocol.txt @ 2467

Last change on this file since 2467 was 2467, checked in by ldelgass, 13 years ago

Add numLabels option to legend -- 0 is allowed, will suppress labels. Also add
support for using new Glyph3DMapper from vtk 5.8, currently disabled by default.

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