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 grid <bool> |
---|
13 | axis name <axis> <title> |
---|
14 | axis units <axis> <units> |
---|
15 | Currently only supported when camera mode is not image mode |
---|
16 | axis visible <axis> <bool> |
---|
17 | <axis> = x|y|z|all |
---|
18 | |
---|
19 | camera get |
---|
20 | Request current camera orientation |
---|
21 | camera mode <mode> |
---|
22 | <mode> = persp|ortho|image |
---|
23 | camera orient <quatX> <quatY> <quatZ> <quatW> |
---|
24 | Set scene orientation using a quaternion |
---|
25 | camera ortho <x> <y> <width> <height> |
---|
26 | Supply world coordinate bounds of plot area for image camera mode |
---|
27 | Data is assumed to lie in XY plane (z = 0) |
---|
28 | camera pan <x> <y> |
---|
29 | <x,y> world coordinates |
---|
30 | camera reset <?all?> |
---|
31 | Option all resets orientation/rotation as well as pan/zoom/clip range |
---|
32 | camera rotate <yaw> <pitch> <roll> |
---|
33 | Specify relative rotation in Euler angles (FIXME) |
---|
34 | camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
35 | Set camera orientation using camera position, focal point and view up |
---|
36 | vector |
---|
37 | camera zoom <z> |
---|
38 | Specify zoom ratio |
---|
39 | |
---|
40 | colormap add <colorMapName> <colorMap> <opacityMap> |
---|
41 | colorMap = Tcl list of {value r g b} control points |
---|
42 | opacityMap = Tcl list of {value alpha} control points |
---|
43 | colormap delete <?colorMapName?> |
---|
44 | |
---|
45 | legend <colormapName> <legendTitle> <width> <height> <?datasetName?> |
---|
46 | Causes legend to be rendered and written back with labels and title |
---|
47 | |
---|
48 | dataset add <datasetName> data follows <nbytes> |
---|
49 | dataset delete <?datasetName?> |
---|
50 | dataset getvalue world <x> <y> <z> <datasetName> |
---|
51 | dataset getvalue pixel <x> <y> <datasetName> |
---|
52 | Use pixel for image camera mode |
---|
53 | dataset maprange <val> |
---|
54 | <val> = all|visible|separate |
---|
55 | Controls if data range for colormapping and contours is based on |
---|
56 | cumulative range of all datasets ("all"), only visible datasets |
---|
57 | ("visible") or each individual dataset ("separate"). Defaults to |
---|
58 | "all" |
---|
59 | dataset opacity <val> <?datasetName?> |
---|
60 | dataset visible <bool> <?datasetName?> |
---|
61 | |
---|
62 | pseudocolor add <?datasetName?> |
---|
63 | pseudocolor colormap <colormapName> <?datasetName?> |
---|
64 | pseudocolor delete <?datasetName?> |
---|
65 | pseudocolor edges <bool> <?datasetName?> |
---|
66 | pseudocolor lighting <bool> <?datasetName?> |
---|
67 | pseudocolor linecolor <r> <g> <b> <?datasetName?> |
---|
68 | pseudocolor linewidth <val> <?datasetName?> |
---|
69 | pseudocolor opacity <val> <?datasetName?> |
---|
70 | pseudocolor visible <bool> <?datasetName?> |
---|
71 | |
---|
72 | contour2d add numcontours <n> <?datasetName?> |
---|
73 | Generate evenly spaced contours including range endpoints. See also |
---|
74 | 'dataset maprange' command. |
---|
75 | contour2d add contourlist <list> <?datasetName?> |
---|
76 | list = {isoval1 isoval2 isoval3...} |
---|
77 | contour2d delete <?datasetName?> |
---|
78 | contour2d lighting <bool> <?datasetName?> |
---|
79 | contour2d linecolor <r> <g> <b> <?datasetName?> |
---|
80 | contour2d linewidth <val> <?datasetName?> |
---|
81 | contour2d opacity <val> <?datasetName?> |
---|
82 | contour2d visible <bool> <?datasetName?> |
---|
83 | |
---|
84 | polydata add <?datasetName?> |
---|
85 | polydata color <r> <g> <b> <?datasetName?> |
---|
86 | polydata delete <?datasetName?> |
---|
87 | polydata edges <bool> <?datasetName?> |
---|
88 | polydata lighting <bool> <?datasetName?> |
---|
89 | polydata linecolor <r> <g> <b> <?datasetName?> |
---|
90 | polydata linewidth <val> <?datasetName?> |
---|
91 | polydata opacity <val> <?datasetName?> |
---|
92 | polydata visible <bool> <?datasetName?> |
---|
93 | polydata wireframe <bool> <?datasetName?> |
---|
94 | |
---|
95 | ================================================================================ |
---|
96 | Replies: |
---|
97 | |
---|
98 | nv>camera orient <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ> |
---|
99 | Reply to "camera get" |
---|
100 | nv>image -type image -bytes <nbytes> |
---|
101 | <binary RGB data> |
---|
102 | nv>image -type image -bbox {x1 y1 x2 y2} -bytes <nbytes> |
---|
103 | <binary RGB data> |
---|
104 | Note: in this form, the bbox is the upper left and lower right screen corners |
---|
105 | in world coordinates. This form is currently used only if the camera mode is |
---|
106 | set to 'image'. |
---|
107 | nv>legend <colormapName> <nbytes> |
---|
108 | <binary RGB data> |
---|
109 | nv>dataset value world <x> <y> <z> <value> |
---|
110 | nv>dataset value pixel <x> <y> <value> |
---|
111 | |
---|
112 | ================================================================================ |
---|
113 | Errors: |
---|
114 | |
---|
115 | Prefixed with "VtkVis Server Error: " |
---|
116 | Currently not guaranteed to be on a single line |
---|