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

Last change on this file since 2402 was 2402, checked in by ldelgass, 13 years ago
  • Let graphics objects handle DataSet? cumulative range changes, track vectors as well as scalars, also supply cumulative ranges in setDataSet()
  • Be more consistent about naming enums and commands for vectors
  • Add constructor arguments to some graphics objects to speed initialization (eliminates some pipeline changes)
  • Apply a scale factor to glyphs based on cell sizes
  • Add line glyph shape
  • Don't delete ColorMaps? in use
  • Update graphics objects when a ColorMap? is edited
  • Property svn:eol-style set to native
File size: 13.7 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
43camera get
44       Request current camera parameters
45camera mode <mode>
46       <mode> = persp|ortho|image
47camera orient <quatW> <quatX> <quatY> <quatZ>
48       Set scene orientation using a quaternion
49camera ortho <x> <y> <width> <height>
50       Supply world coordinate bounds of plot area for image camera mode
51       Data is assumed to lie in XY plane (z = 0)
52camera pan <x> <y>
53       <x,y> viewport coordinates (window center at 0,0).  Positive x pan
54       means pan object to right (camera to left).  Positive y pan means
55       pan object down (camera up).  For example a pan of 0.5, 0.5 would
56       move the object center to the lower right corner of the window
57camera reset <?all?>
58       Option all resets orientation/rotation as well as pan/zoom/clip range
59camera rotate <yaw> <pitch> <roll>
60       Specify relative rotation in Euler angles
61camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
62       Set camera parameters: camera position, focal point and view up vector
63camera zoom <z>
64       Specify zoom ratio.  z > 1 is a zoom in, z < 1 is zoom out. z = 1
65       resets to default.
66
67colormap add <colorMapName> <colorMap> <opacityMap>
68         colorMap = Tcl list of {value r g b} control points
69         opacityMap = Tcl list of {value alpha} control points
70colormap delete <?colorMapName?>
71
72legend <colormapName> <legendTitle> <width> <height> <?datasetName?>
73       Causes legend to be rendered and written back with labels and title
74
75dataset add <datasetName> data follows <nbytes>
76dataset delete <?datasetName?>
77dataset getvalue world <x> <y> <z> <datasetName>
78dataset getvalue pixel <x> <y> <datasetName>
79        Use pixel for image camera mode
80dataset maprange <val>
81        <val> = all|visible|separate
82        Controls if data range for colormapping and contours is based on
83        cumulative range of all datasets ("all"), only visible datasets
84        ("visible") or each individual dataset ("separate").  Defaults to
85        "all"
86dataset opacity <val> <?datasetName?>
87dataset scalar <scalarName> <?datasetName?>
88        Set the active scalar field to plot
89dataset vector <vectorName> <?datasetName?>
90        Set the active vector field to plot
91dataset visible <bool> <?datasetName?>
92
93contour2d add numcontours <n> <?datasetName?>
94          Generate evenly spaced contours including range endpoints.  See also
95          'dataset maprange' command.
96contour2d add contourlist <list> <?datasetName?>
97          list = {isoval1 isoval2 isoval3...}
98contour2d delete <?datasetName?>
99contour2d lighting <bool> <?datasetName?>
100contour2d linecolor <r> <g> <b> <?datasetName?>
101contour2d linewidth <val> <?datasetName?>
102contour2d opacity <val> <?datasetName?>
103contour2d orient <qw> <qx> <qy> <qz> <?dataSetName?>
104contour2d pos <x> <y> <z> <?dataSetName?>
105contour2d scale <sx> <sy> <sz> <?dataSetName?>
106contour2d visible <bool> <?datasetName?>
107
108contour3d add numcontours <n> <?datasetName?>
109          Generate evenly spaced contours including range endpoints.  See also
110          'dataset maprange' command.
111contour3d add contourlist <list> <?datasetName?>
112          list = {isoval1 isoval2 isoval3...}
113contour3d ccolor r g b <?datasetName?>
114contour3d colormap <colorMapName> <?dataSetName?>
115contour3d delete <?datasetName?>
116contour3d edges <bool> <?datasetName?>
117contour3d lighting <bool> <?datasetName?>
118contour3d linecolor <r> <g> <b> <?datasetName?>
119contour3d linewidth <val> <?datasetName?>
120contour3d opacity <val> <?datasetName?>
121contour3d orient <qw> <qx> <qy> <qz> <?dataSetName?>
122contour3d pos <x> <y> <z> <?dataSetName?>
123contour3d scale <sx> <sy> <sz> <?dataSetName?>
124contour3d visible <bool> <?datasetName?>
125contour3d wireframe <bool> <?datasetName?>
126
127glyphs add <?dataSetName?>
128glyphs ccolor r g b <?datasetName?>
129glyphs colormap <colorMapName> <?dataSetName?>
130glyphs colormode <scale|scalar|vmag|ccolor> <?dataSetName?>
131       Set the color mode: color by scale, scalar field or
132       vector magnitude -- uses the current color map
133glyphs delete <?dataSetName?>
134glyphs edges <bool> <?datasetName?>
135glyphs gscale <scaleFactor> <?datasetName?>
136       Set glyph scaling factor
137glyphs lighting <bool> <?datasetName?>
138glyphs linecolor <r> <g> <b> <?datasetName?>
139glyphs linewidth <val> <?datasetName?>
140glyphs opacity <val> <?datasetName?>
141glyphs orient <qw> <qx> <qy> <qz> <?dataSetName?>
142glyphs pos <x> <y> <z> <?dataSetName?>
143glyphs scale <sx> <sy> <sz> <?dataSetName?>
144glyphs shape <arrow|cone|cube|cylinder|dodecahedron|icosahedron|line|octahedron|sphere|tetrahedron> <?datasetName?>
145glyphs smode <scalar|vmag|vcomp|off> <?dataSetName?>
146       Set the scaling mode: use the scalar field, vector magnitude
147       (uniform scale), vector components, or disable scaling
148glyphs visible <bool> <?datasetName?>
149glyphs wireframe <bool> <?datasetName?>
150
151heightmap add numcontours <n> <?dataSetName?>
152          Generate evenly spaced contours including range endpoints.  See also
153          'dataset maprange' command.
154heightmap add contourlist <list> <?dataSetName?>
155          list = {isoval1 isoval2 isoval3...}
156heightmap colormap <colorMapName> <?dataSetName?>
157heightmap delete <?dataSetName?>
158heightmap edges <bool> <?dataSetName?>
159heightmap heightscale <value> <?dataSetName?>
160heightmap isolinecolor <r> <g> <b> <?dataSetName?>
161heightmap isolines <bool> <?dataSetName?>
162heightmap isolinewidth <width> <?dataSetName?>
163heightmap lighting <bool> <?dataSetName?>
164heightmap linecolor <r> <g> <b> <?dataSetName?>
165heightmap linewidth <width> <?dataSetName?>
166heightmap opacity <value> <?dataSetName?>
167heightmap orient <qw> <qx> <qy> <qz> <?dataSetName?>
168heightmap pos <x> <y> <z> <?dataSetName?>
169heightmap scale <sx> <sy> <sz> <?dataSetName?>
170heightmap visible <bool> <?dataSetName?>
171heightmap volumeslice axis ratio <?dataSetName?>
172          For 3D data, select a slice along a principle axis of the volume. The
173          ratio is [0,1]
174
175lic add <?datasetName?>
176lic colormap <colormapName> <?datasetName?>
177lic delete <?datasetName?>
178lic edges <bool> <?datasetName?>
179lic lighting <bool> <?datasetName?>
180lic linecolor <r> <g> <b> <?datasetName?>
181lic linewidth <val> <?datasetName?>
182lic opacity <val> <?datasetName?>
183lic orient <qw> <qx> <qy> <qz> <?dataSetName?>
184lic pos <x> <y> <z> <?dataSetName?>
185lic scale <sx> <sy> <sz> <?dataSetName?>
186lic visible <bool> <?datasetName?>
187lic volumeslice <axis> <ratio> <?datasetName?>
188
189molecule add <?datasetName?>
190molecule atoms <bool> <?datasetName?>
191         Toggle rendering of atoms
192molecule bonds <bool> <?datasetName?>
193         Toggle rendering of bonds
194molecule colormap <colormapName> <?datasetName?>
195molecule delete <?datasetName?>
196molecule edges <bool> <?datasetName?>
197molecule lighting <bool> <?datasetName?>
198molecule linecolor <r> <g> <b> <?datasetName?>
199molecule linewidth <val> <?datasetName?>
200molecule opacity <val> <?datasetName?>
201molecule orient <qw> <qx> <qy> <qz> <?dataSetName?>
202molecule pos <x> <y> <z> <?dataSetName?>
203molecule rscale <val> <?dataSetName?>
204         Atom radius scaling
205         val = van_der_walls|covalent|atomic|none
206molecule scale <sx> <sy> <sz> <?dataSetName?>
207molecule visible <bool> <?datasetName?>
208molecule wireframe <bool> <?datasetName?>
209
210polydata add <?datasetName?>
211polydata color <r> <g> <b> <?datasetName?>
212polydata delete <?datasetName?>
213polydata edges <bool> <?datasetName?>
214polydata lighting <bool> <?datasetName?>
215polydata linecolor <r> <g> <b> <?datasetName?>
216polydata linewidth <val> <?datasetName?>
217polydata opacity <val> <?datasetName?>
218polydata orient <qw> <qx> <qy> <qz> <?dataSetName?>
219polydata pos <x> <y> <z> <?dataSetName?>
220polydata scale <sx> <sy> <sz> <?dataSetName?>
221polydata visible <bool> <?datasetName?>
222polydata wireframe <bool> <?datasetName?>
223
224pseudocolor add <?datasetName?>
225pseudocolor colormap <colormapName> <?datasetName?>
226pseudocolor delete <?datasetName?>
227pseudocolor edges <bool> <?datasetName?>
228pseudocolor lighting <bool> <?datasetName?>
229pseudocolor linecolor <r> <g> <b> <?datasetName?>
230pseudocolor linewidth <val> <?datasetName?>
231pseudocolor opacity <val> <?datasetName?>
232pseudocolor orient <qw> <qx> <qy> <qz> <?dataSetName?>
233pseudocolor pos <x> <y> <z> <?dataSetName?>
234pseudocolor scale <sx> <sy> <sz> <?dataSetName?>
235pseudocolor visible <bool> <?datasetName?>
236pseudocolor wireframe <bool> <?datasetName?>
237
238streamlines add <?datasetName?>
239streamlines ccolor <r> <g> <b> <?datasetName?>
240            Set the constant color of streamlines used for color mode 'ccolor'
241streamlines colormap <colormapName> <?datasetName?>
242            Colormap used to color streamlines/tubes/ribbons by vector magnitude
243streamlines colormode <scalar|vmag|vx|vy|vz|ccolor> <?datasetName?>
244            Set the field used to color the streamlines.  'ccolor' means to use
245            the constant color defined by the ccolor subcommand.  'scalar' uses
246            the active scalar field.  'vmag' uses the magnitude of the current
247            vector field, and 'vx','vy','vz' use the corresponding component of
248            the active vector field.
249streamlines delete <?datasetName?>
250streamlines edges <bool> <?datasetName?>
251            Turn on/off edges for tubes, ribbons
252streamlines length <?datasetName?>
253            Set maximum length in world coordinates of streamlines
254streamlines lighting <bool> <?datasetName?>
255streamlines linecolor <r> <g> <b> <?datasetName?>
256            Set color of edges for tubes, ribbons (lines are colored by colormap)
257streamlines lines <?datasetName?>
258            Set rendering type to polylines
259streamlines linewidth <val> <?datasetName?>
260streamlines opacity <val> <?datasetName?>
261streamlines orient <qw> <qx> <qy> <qz> <?dataSetName?>
262streamlines pos <x> <y> <z> <?dataSetName?>
263streamlines ribbons <width> <angle> <?datasetName?>
264            Set rendering type to ribbons, width is minimum half-width, angle is
265            degrees offset from normal orientation
266streamlines scale <sx> <sy> <sz> <?dataSetName?>
267streamlines seed color <r> <g> <b> <?datasetName?>
268streamlines seed disk <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <radius> <innerRadius> <numPoints> <?dataSetName?>
269            Create a disk seed area with optional hole, filled with randomly
270            placed points
271streamlines seed fpoly <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <numPoints> <?dataSetName?>
272            Create a regular n-sided polygonal seed area filled with randomly
273            placed points
274streamlines seed polygon <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <?dataSetName?>
275            Create seed points from vertices of a regular n-sided polygon
276streamlines seed rake <startX> <startY> <startZ> <endX> <endY> <endZ> <numPoints> <?datasetName?>
277streamlines seed random <numPoints> <?datasetName?>
278streamlines seed visible <bool> <?datasetName?>
279streamlines tubes <numSides> <radius> <?datasetName?>
280            Set rendering type to tubes, numSides is number of sides of tubes,
281            radius is minimum tube radius
282streamlines visible <bool> <?datasetName?>
283
284volume add <?datasetName?>
285volume colormap <colorMapName> <?datasetName?>
286volume delete <?datasetName?>
287volume lighting <bool> <?datasetName?>
288volume orient <qw> <qx> <qy> <qz> <?dataSetName?>
289volume pos <x> <y> <z> <?dataSetName?>
290volume scale <sx> <sy> <sz> <?dataSetName?>
291volume shading ambient <coeff> <?datasetName?>
292volume shading diffuse <coeff> <?datasetName?>
293volume shading specular <coeff> <power> <?datasetName?>
294volume visible <bool> <?datasetName?>
295
296================================================================================
297Replies:
298
299nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
300   Reply to "camera get"
301nv>image -type image -bytes <nbytes>
302  <binary RGB data>
303nv>image -type image -bbox {x1 y1 x2 y2} -bytes <nbytes>
304  <binary RGB data>
305  Note: in this form, the bbox is the upper left and lower right screen corners
306  in world coordinates.  This form is currently used only if the camera mode is
307  set to 'image'.
308nv>legend <colormapName> <nbytes>
309  <binary RGB data>
310nv>dataset value world <x> <y> <z> <value>
311nv>dataset value pixel <x> <y> <value>
312
313================================================================================
314Errors:
315
316Prefixed with "VtkVis Server Error: "
317Currently not guaranteed to be on a single line
Note: See TracBrowser for help on using the repository browser.