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