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

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

Add Molecule (ball-and-stick) and Line Integral Convolution (LIC) rendering to
vtkvis. LIC is a work in progress, and rendering LIC textures on PolyDatas?
conflicts with offscreen rendering in the main render window. However, LIC
textures on other data sets work, as the vtkImageDataLIC2D class will create
it's own render window/context for its FBOs.

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