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

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

Add GPU volume rendering support to vtkvis render server

  • Property svn:eol-style set to native
File size: 5.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
10axis color <r> <g> <b>
11     Set color of axis lines, labels, titles, ticks
12axis flymode <mode>
13     <mode> = static_edges|static_triad|outer_edges|furthest_triad|closest_triad
14axis grid <bool>
15axis name <axis> <title>
16axis units <axis> <units>
17     Currently only supported when camera mode is not image mode
18axis visible <axis> <bool>
19     <axis> = x|y|z|all
20
21camera get
22       Request current camera orientation
23camera mode <mode>
24       <mode> = persp|ortho|image
25camera orient <quatW> <quatX> <quatY> <quatZ>
26       Set scene orientation using a quaternion
27camera ortho <x> <y> <width> <height>
28       Supply world coordinate bounds of plot area for image camera mode
29       Data is assumed to lie in XY plane (z = 0)
30camera pan <x> <y>
31       <x,y> world coordinates
32camera reset <?all?>
33       Option all resets orientation/rotation as well as pan/zoom/clip range
34camera rotate <yaw> <pitch> <roll>
35       Specify relative rotation in Euler angles (FIXME)
36camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
37       Set camera orientation using camera position, focal point and view up
38       vector
39camera zoom <z>
40       Specify zoom ratio
41
42colormap add <colorMapName> <colorMap> <opacityMap>
43         colorMap = Tcl list of {value r g b} control points
44         opacityMap = Tcl list of {value alpha} control points
45colormap delete <?colorMapName?>
46
47legend <colormapName> <legendTitle> <width> <height> <?datasetName?>
48       Causes legend to be rendered and written back with labels and title
49
50dataset add <datasetName> data follows <nbytes>
51dataset delete <?datasetName?>
52dataset getvalue world <x> <y> <z> <datasetName>
53dataset getvalue pixel <x> <y> <datasetName>
54        Use pixel for image camera mode
55dataset maprange <val>
56        <val> = all|visible|separate
57        Controls if data range for colormapping and contours is based on
58        cumulative range of all datasets ("all"), only visible datasets
59        ("visible") or each individual dataset ("separate").  Defaults to
60        "all"
61dataset opacity <val> <?datasetName?>
62dataset visible <bool> <?datasetName?>
63
64pseudocolor add <?datasetName?>
65pseudocolor colormap <colormapName> <?datasetName?>
66pseudocolor delete <?datasetName?>
67pseudocolor edges <bool> <?datasetName?>
68pseudocolor lighting <bool> <?datasetName?>
69pseudocolor linecolor <r> <g> <b> <?datasetName?>
70pseudocolor linewidth <val> <?datasetName?>
71pseudocolor opacity <val> <?datasetName?>
72pseudocolor visible <bool> <?datasetName?>
73
74contour2d add numcontours <n> <?datasetName?>
75          Generate evenly spaced contours including range endpoints.  See also
76          'dataset maprange' command.
77contour2d add contourlist <list> <?datasetName?>
78          list = {isoval1 isoval2 isoval3...}
79contour2d delete <?datasetName?>
80contour2d lighting <bool> <?datasetName?>
81contour2d linecolor <r> <g> <b> <?datasetName?>
82contour2d linewidth <val> <?datasetName?>
83contour2d opacity <val> <?datasetName?>
84contour2d visible <bool> <?datasetName?>
85
86heightmap add numcontours <n> <?dataSetName?>
87          Generate evenly spaced contours including range endpoints.  See also
88          'dataset maprange' command.
89heightmap add contourlist <list> <?dataSetName?>
90          list = {isoval1 isoval2 isoval3...}
91heightmap colormap <colorMapName> <?dataSetName?>
92heightmap delete <?dataSetName?>
93heightmap edges <bool> <?dataSetName?>
94heightmap heightscale <value> <?dataSetName?>
95heightmap isolinecolor <r> <g> <b> <?dataSetName?>
96heightmap isolines <bool> <?dataSetName?>
97heightmap isolinewidth <width> <?dataSetName?>
98heightmap lighting <bool> <?dataSetName?>
99heightmap linecolor <r> <g> <b> <?dataSetName?>
100heightmap linewidth <width> <?dataSetName?>
101heightmap opacity <value> <?dataSetName?>
102heightmap visible <bool> <?dataSetName?>
103heightmap volumeslice axis ratio <?dataSetName?>
104          For 3D data, select a slice along a principle axis of the volume. The
105          ratio is [0,1]
106
107polydata add <?datasetName?>
108polydata color <r> <g> <b> <?datasetName?>
109polydata delete <?datasetName?>
110polydata edges <bool> <?datasetName?>
111polydata lighting <bool> <?datasetName?>
112polydata linecolor <r> <g> <b> <?datasetName?>
113polydata linewidth <val> <?datasetName?>
114polydata opacity <val> <?datasetName?>
115polydata visible <bool> <?datasetName?>
116polydata wireframe <bool> <?datasetName?>
117
118volume add <?datasetName?>
119volume colormap <colorMapName> <?datasetName?>
120volume delete <?datasetName?>
121volume lighting <bool> <?datasetName?>
122volume shading ambient <coeff> <?datasetName?>
123volume shading diffuse <coeff> <?datasetName?>
124volume shading specular <coeff> <power> <?datasetName?>
125volume visible <bool> <?datasetName?>
126
127================================================================================
128Replies:
129
130nv>camera orient <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
131   Reply to "camera get"
132nv>image -type image -bytes <nbytes>
133  <binary RGB data>
134nv>image -type image -bbox {x1 y1 x2 y2} -bytes <nbytes>
135  <binary RGB data>
136  Note: in this form, the bbox is the upper left and lower right screen corners
137  in world coordinates.  This form is currently used only if the camera mode is
138  set to 'image'.
139nv>legend <colormapName> <nbytes>
140  <binary RGB data>
141nv>dataset value world <x> <y> <z> <value>
142nv>dataset value pixel <x> <y> <value>
143
144================================================================================
145Errors:
146
147Prefixed with "VtkVis Server Error: "
148Currently not guaranteed to be on a single line
Note: See TracBrowser for help on using the repository browser.