source: branches/1.3/packages/vizservers/vtkvis/protocol.txt @ 4238

Last change on this file since 4238 was 4238, checked in by ldelgass, 11 years ago

merge r4037 from trunk

  • Property svn:eol-style set to native
File size: 42.9 KB
Line 
1================================================================================
2================================================================================
3Protocol for vtkvis render server. 
4
5Commands take the general form of command and arguments using Tcl syntax and are
6terminated by a newline.  Some command arguments expect a Tcl list which can be
7sent by enclosing the list in curly braces to prevent the interpreter from
8splitting the list into multiple arguments.  Likewise, strings with spaces
9should be quoted or enclosed in curly braces.  In the documentation below,
10arguments are indicated by angle brackets and optional arguments are surrounded
11by question marks -- the brackets and question marks are not part of the
12protocol and should not be included in argument strings.  The arguments shown
13in angle brackets should be replaced with a string (where there are fixed
14choices this document indicates valid values by separating them with pipe
15symbols), a list in Tcl syntax, or a numeric value.  Boolean arguments can take
16the form of 0|1, true|false, or yes|no.  Since the protocol commands are
17executed in a Tcl interpreter, Tcl code such as math expressions in expr
18commands enclosed in square brackets are also allowed.  Since the interpreter
19is a "safe" interpreter, some Tcl commands that could cause security issues may
20not be available for use.
21
22When binary data is to be sent, it should follow the newline after a command
23that indicates incoming data including a byte count argument.
24================================================================================
25================================================================================
26Requests:
27================================================================================
28
29== General dataset, scene and renderer commands ==
30
31axis autobounds <axis> <bool>
32     Toggle between automatic and explicit bounds settings.  To set an explicit
33     range use the 'axis bounds...' command.
34     <axis> = x|y|z|all
35axis autorange <axis> <bool>
36     Toggle between automatic and explicit range settings.  To set an explicit
37     range use the 'axis range...' command.  For scaling based on axis bounds,
38     see 'axis scale...'
39     <axis> = x|y|z|all
40axis bounds <axis> <min> <max>
41     Explicitly specify bounds to use for an axis.
42     <axis> = x|y|z|all
43axis color <axis> <r> <g> <b> <?opacity?>
44     Set color of axis lines, labels, titles, ticks
45     <axis> = x|y|z|all
46axis exp <xPower> <yPower> <zPower> <?useCustom?>
47     Control power scaling of labels.  When an exponent is set, the labels
48     are adjusted to show mantissa and the exponent is indicated in the title.
49     <xPower> = Base 10 exponent for X axis
50     <yPower> = Base 10 exponent for Y axis
51     <zPower> = Base 10 exponent for Z axis
52     <useCustom> = Flag to control if custom/manual powers are used.  Setting
53     this to off will re-enable automatic power scaling.
54axis flymode <mode>
55     <mode> = static_edges|static_triad|outer_edges|furthest_triad|closest_triad
56axis fontsz <fontPixelSize>
57     Controls size of labels and text in 3D mode
58axis gpcolor <axis> <r> <g> <b> <?opacity?>
59     Set color/opacity of inner grid polygons
60     <axis> = x|y|z|all
61axis gpolys <axis> <bool>
62     Turn on/off inner grid polygons/planes
63     <axis> = x|y|z|all
64axis grcolor <axis> <r> <g> <b> <?opacity?>
65     Set color/opacity of gridlines
66     <axis> = x|y|z|all
67axis grid <axis> <bool>
68     Turn on/off outer gridlines
69     <axis> = x|y|z|all
70axis igcolor <axis> <r> <g> <b> <?opacity?>
71     Set color/opacity of inner gridlines
72     <axis> = x|y|z|all
73axis igrid <axis> <bool>
74     Turn on/off inner gridlines
75     <axis> = x|y|z|all
76axis labels <axis> <bool>
77     Toggle visibility of axis labels
78     <axis> = x|y|z|all
79axis lcolor <axis> <r> <g> <b> <?opacity?>
80     Set color/opacity of tick labels
81     <axis> = x|y|z|all
82axis lfont <axis> <fontName>
83     Set label font family
84     <axis> = x|y|z|all
85     <fontName> = Arial|Courier|Times
86axis lformat <axis> <formatString>
87     <axis> = x|y|z|all
88     <formatString> = printf style format string
89axis lfsize <axis> <fontSizePts>
90     Set font size of labels in 2D mode - currently relies on patched VTK in
91     runtime
92     <axis> = x|y|z|all
93     <fontSizePts> = Font size in points
94axis linecolor <axis> <r> <g> <b> <?opacity?>
95     Set color/opacity of main axis lines
96     <axis> = x|y|z|all
97axis lrot <axis> <rotation>
98     <axis> = x|y|z|all
99     <rotation> = rotation angle in degrees
100axis lscale <axis> <boolAuto> <xpow> <ypow> <zpow>
101     Control (auto-)scaling of labels with powers of 10
102     <axis> = x|y|z|all
103     <boolAuto> = Enable/disable automatic scaling with powers of 10
104     <xpow> = Explicitly set power on X axis
105     <ypow> = Explicitly set power on Y axis
106     <zpow> = Explicitly set power on Z axis
107axis minticks <axis> <bool>
108     Toggle visibility of axis minor tick marks
109     <axis> = x|y|z|all
110axis name <axis> <title>
111     <axis> = x|y|z|all
112     <title> = Title of axis
113axis origin <x> <y> <z> <?useCustom?>
114     <x>,<y>,<z> = point inside world coordinate bounds of axes box where axes
115     should intersect
116     <useCustom> = Set to false to disable use of custom origin and re-enable
117     automatic origin
118axis range <axis> <min> <max>
119     Explicitly set min,max range of axis labels.  Note that the min and max
120     values themselves may not be given labels if they don't fall on tick
121     divisions -- the min/max determine the value of the axis endpoints.  This
122     setting allows labeling axes independently of the world coordinate bounds.
123     <axis> = x|y|z|all
124     <min> = minimum value of axis for labels
125     <max> = maximum value of axis for labels
126axis scale <axis> <scale>
127     Set axis range to be computed based on scaling the axis bounds by the
128     given scale factor.
129     <axis> = x|y|z|all
130     <scale> = scale factor where range = bounds * scale
131axis tcolor <axis> <r> <g> <b> <?opacity?>
132     Set color/opacity of axis title
133     <axis> = x|y|z|all
134axis tickpos <position>
135     Set position of ticks on 3D axes (not implemented for 2D axes)
136     <position> = inside|outside|both
137axis ticks <axis> <bool>
138     Toggle visibility of axis tick marks
139     <axis> = x|y|z|all
140axis tfont <axis> <fontName>
141     Set title font family
142     <axis> = x|y|z|all
143     <fontName> = Arial|Courier|Times
144axis tfsize <axis> <fontSizePts>
145     Set font size of title in 2D mode - currently relies on patched VTK in
146     runtime
147     <axis> = x|y|z|all
148     <fontSizePts> = Font size in points
149axis trot <axis> <rotation>
150     Currently a no-op -- needs a fix in vtkCubeAxesActor
151     <axis> = x|y|z|all
152     <rotation> = rotation angle in degrees
153axis units <axis> <units>
154     Currently only supported when camera mode is not image mode
155axis visible <axis> <bool>
156     <axis> = x|y|z|all
157     Note: 'all' means all enabled axes.  To force all axes on, set each axis on
158     individually -- however, it is best to let the server determine which of
159     the individual axes are enabled based on the dataset bounds.
160
161camera aspect <aspectMode>
162       Set 2D aspect ratio mode
163       <aspectMode> = native|square|window
164camera get
165       Request current camera parameters
166camera mode <mode>
167       <mode> = persp|ortho|image
168camera orient <quatW> <quatX> <quatY> <quatZ>
169       Set scene orientation using a quaternion
170camera ortho <coordMode> <x> <y> <width> <height>
171       <coordMode> = pixel|world
172       Supply bounds of plot area for image camera mode
173camera pan <x> <y>
174       <x,y> viewport coordinates (window center at 0,0).  Positive x pan
175       means pan object to right (camera to left).  Positive y pan means
176       pan object down (camera up).  For example a pan of 0.5, 0.5 would
177       move the object center to the lower right corner of the window
178camera reset <?all?>
179       Option all resets orientation/rotation as well as pan/zoom/clip range
180camera rotate <yaw> <pitch> <roll>
181       Specify relative rotation in Euler angles
182camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
183       Set camera parameters: camera position, focal point and view up vector
184camera zoom <z>
185       Specify zoom ratio.  z > 1 is a zoom in, z < 1 is zoom out. z = 1
186       resets to default.
187
188clientinfo <list>
189
190colormap add <colorMapName> <colorMap> <opacityMap>
191         (Re-)define a colormap.  If colorMapName doesn't exist, it is created,
192         otherwise the colormap is redefined and all users will be updated.
193         colorMap = Tcl list of {value r g b} control points
194         opacityMap = Tcl list of {value alpha} control points
195colormap define <colorMapName> <colorMap> <opacityMap>
196         (Re-)define a colormap (same as 'add')
197colormap delete <?colorMapName?>
198colormap res <numberOfTableEntries>
199         Set the "resolution" or number of lookup table entries in the colormap
200         <numberOfTableEntries> = integer or "default"
201
202dataset add <datasetName> data follows <nbytes>
203dataset delete <?datasetName?>
204dataset getscalar world <x> <y> <z> <datasetName>
205dataset getscalar pixel <x> <y> <datasetName>
206dataset getvector world <x> <y> <z> <datasetName>
207dataset getvector pixel <x> <y> <datasetName>
208        Use pixel for image camera mode
209dataset maprange <val> <?min?> <?max?> <?fieldName?> <?fieldType?> <?numComp?> <?component?>
210        Controls if data range for colormapping and contours is based on
211        cumulative range of all datasets ("all"), only visible datasets
212        ("visible") or each individual dataset ("separate").  Defaults to
213        "all"
214        <val> = all|explicit|visible|separate
215        The following arguments are only used for 'explicit' mode:
216        <min>,<max> = Required in explicit mode, specify the range to use
217        <fieldName> = Required in explicit mode, specify the field to which the
218        range should be applied
219        <fieldType> = point_data|cell_data|field_data, optional (defaults to
220        point_data)
221        <numComp> = Number of components (1 = scalar, 3 = vector), optional (1
222        is default)
223        <component> = Component index for vector fields, required if numComp is
224        3, otherwise unused.
225dataset names
226        Returns a list of the loaded data sets
227dataset opacity <val> <?datasetName?>
228dataset scalar <scalarName> <?datasetName?>
229        Set the active scalar field to plot
230dataset vector <vectorName> <?datasetName?>
231        Set the active vector field to plot
232dataset visible <bool> <?datasetName?>
233
234legend <colormapName> <legendType> <fieldName> <legendTitle> <width> <height> <numLabels> <?datasetName?>
235       Causes legend to be rendered and written back with labels and title
236       (title may be left blank)
237       <legendType> = scalar|vmag|vx|vy|vz
238       <numLabels> Can be zero or more 'tick' value labels
239       If datasetName is omitted, the cumulative data range of all data sets
240       will be used to label the legend -- otherwise, the current setting of
241       'dataset maprange' will be used to determine if the individual dataset
242       range or cumulative range will be used.
243
244renderer clipplane <axis> <ratio> <direction>
245         Set a user clipping plane, ratio is [0,1] and is always interpreted as
246         0 = min_bound, 1 = max_bound, regardless of direction.  Sign of
247         direction determines normal of clipping plane.  User clip planes do not
248         apply if camera mode is image.
249renderer depthpeel <bool>
250         Set use of depth peeling algorithm for transparency
251renderer light2side <bool>
252         Toggle use of two-sided lighting (controls if backfaces are lit with a
253         flipped normal)
254renderer lights <lightNum> <bool>
255         Toggle lights on/off.  Light 0 is the headlight, light 1 the skylight
256renderer render
257         Force a new image to be rendered - use for advancing animation
258
259screen bgcolor <r> <g> <b>
260screen size <width> <height>
261
262== Graphics objects ==
263
264arc add <centerX> <centerY> <centerZ> <startX> <startY> <startZ> <normX> <normY> <normZ> <angle> <name>
265    Creates a circular arc given a center and starting point, a normal and a
266    sweep angle.
267arc color <r> <g> <b> <?name?>
268arc delete <?name?>
269arc linecolor <r> <g> <b> <?name?>
270arc linewidth <val> <?name?>
271arc opacity <val> <?name?>
272arc orient <qw> <qx> <qy> <qz> <?name?>
273arc origin <x> <y> <z> <?name?>
274arc pos <x> <y> <z> <?name?>
275arc resolution <res> <?name?>
276arc scale <sx> <sy> <sz> <?name?>
277arc visible <bool> <?name?>
278
279arrow add <tipRadius> <shaftRadius> <tipLength> <name>
280      Arrow will have base at 0,0,0 and tip at 1, 0, 0
281arrow color <r> <g> <b> <?name?>
282arrow culling <bool> <?name?>
283arrow delete <?name?>
284arrow edges <bool> <?name?>
285arrow flipnorm <bool> <?name?>
286arrow lighting <bool> <?name?>
287arrow linecolor <r> <g> <b> <?name?>
288arrow linewidth <val> <?name?>
289arrow material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
290arrow opacity <val> <?name?>
291arrow orient <qw> <qx> <qy> <qz> <?name?>
292arrow origin <x> <y> <z> <?name?>
293arrow pos <x> <y> <z> <?name?>
294arrow resolution <tipRes> <shaftRes> <?name?>
295arrow scale <sx> <sy> <sz> <?name?>
296arrow shading <val> <?name?>
297      val = flat|smooth
298arrow visible <bool> <?name?>
299arrow wireframe <bool> <?name?>
300
301box add <xLen> <yLen> <zLen> <name>
302box color <r> <g> <b> <?name?>
303box culling <bool> <?name?>
304box delete <?name?>
305box edges <bool> <?name?>
306box flipnorm <bool> <?name?>
307box lighting <bool> <?name?>
308box linecolor <r> <g> <b> <?name?>
309box linewidth <val> <?name?>
310box material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
311box opacity <val> <?name?>
312box orient <qw> <qx> <qy> <qz> <?name?>
313box origin <x> <y> <z> <?name?>
314box pos <x> <y> <z> <?name?>
315box scale <sx> <sy> <sz> <?name?>
316box shading <val> <?name?>
317    val = flat|smooth
318box visible <bool> <?name?>
319box wireframe <bool> <?name?>
320
321cone add <radius> <height> <cap> <name>
322     <cap> = boolean flag for cap disks
323cone color <r> <g> <b> <?name?>
324cone culling <bool> <?name?>
325cone delete <?name?>
326cone edges <bool> <?name?>
327cone flipnorm <bool> <?name?>
328cone lighting <bool> <?name?>
329cone linecolor <r> <g> <b> <?name?>
330cone linewidth <val> <?name?>
331cone material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
332cone opacity <val> <?name?>
333cone orient <qw> <qx> <qy> <qz> <?name?>
334cone origin <x> <y> <z> <?name?>
335cone pos <x> <y> <z> <?name?>
336cone resolution <res> <?name?>
337cone scale <sx> <sy> <sz> <?name?>
338cone shading <val> <?name?>
339     val = flat|smooth
340cone visible <bool> <?name?>
341cone wireframe <bool> <?name?>
342
343contour2d add numcontours <n> <?datasetName?>
344          Generate evenly spaced contours including range endpoints.  See also
345          'dataset maprange' command.
346contour2d add contourlist <list> <?datasetName?>
347          list = {isoval1 isoval2 isoval3...}
348contour2d color <r> <g> <b> <?datasetName?>
349          synonym for linecolor
350contour2d colormap <colormapName> <?datasetName?>
351contour2d colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
352          Set the field used to color the object.  'constant' means to use
353          the constant color defined by the color subcommand.  'scalar' uses
354          the active scalar field.  'vmag' uses the magnitude of the current
355          vector field, and 'vx','vy','vz' use the corresponding component of
356          the active vector field.
357contour2d contourlist <list> <?dataSetName?>
358contour2d delete <?datasetName?>
359contour2d lighting <bool> <?datasetName?>
360contour2d linecolor <r> <g> <b> <?datasetName?>
361          synonym for color
362contour2d linewidth <val> <?datasetName?>
363contour2d numcontours <n> <?dataSetName?>
364contour2d opacity <val> <?datasetName?>
365contour2d orient <qw> <qx> <qy> <qz> <?dataSetName?>
366contour2d pos <x> <y> <z> <?dataSetName?>
367contour2d scale <sx> <sy> <sz> <?dataSetName?>
368contour2d visible <bool> <?datasetName?>
369
370contour3d add numcontours <n> <?datasetName?>
371          Generate evenly spaced contours including range endpoints.  See also
372          'dataset maprange' command.
373contour3d add contourlist <list> <?datasetName?>
374          list = {isoval1 isoval2 isoval3...}
375contour3d color r g b <?datasetName?>
376contour3d colormap <colorMapName> <?dataSetName?>
377contour3d colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
378          Set the field used to color the object.  'constant' means to use
379          the constant color defined by the color subcommand.  'scalar' uses
380          the active scalar field.  'vmag' uses the magnitude of the current
381          vector field, and 'vx','vy','vz' use the corresponding component of
382          the active vector field.
383contour3d contourlist <list> <?dataSetName?>
384contour3d delete <?datasetName?>
385contour3d edges <bool> <?datasetName?>
386contour3d lighting <bool> <?datasetName?>
387contour3d linecolor <r> <g> <b> <?datasetName?>
388contour3d linewidth <val> <?datasetName?>
389contour3d numcontours <n> <?dataSetName?>
390contour3d opacity <val> <?datasetName?>
391contour3d orient <qw> <qx> <qy> <qz> <?dataSetName?>
392contour3d pos <x> <y> <z> <?dataSetName?>
393contour3d scale <sx> <sy> <sz> <?dataSetName?>
394contour3d visible <bool> <?datasetName?>
395contour3d wireframe <bool> <?datasetName?>
396
397cutplane add <?dataSetName?>
398cutplane axis <axis> <bool> <?dataSetName?>
399         Toggle visibility of the 3 principal axis cutplanes
400cutplane color r g b <?datasetName?>
401         Set color of outline bounding box
402cutplane cloudstyle <style> <?datasetName?>
403         <style> = mesh | splat
404cutplane colormap <colorMapName> <?dataSetName?>
405cutplane colormode <scalar|vmag|vx|vy|vz> <fieldName> <?datasetName?>
406         Set the field used to color the object.  'scalar' uses
407         the active scalar field.  'vmag' uses the magnitude of the current
408         vector field, and 'vx','vy','vz' use the corresponding component of
409         the active vector field.
410cutplane delete <?dataSetName?>
411cutplane edges <bool> <?dataSetName?>
412cutplane lighting <bool> <?dataSetName?>
413cutplane linecolor <r> <g> <b> <?dataSetName?>
414cutplane linewidth <width> <?dataSetName?>
415cutplane opacity <value> <?dataSetName?>
416cutplane orient <qw> <qx> <qy> <qz> <?dataSetName?>
417cutplane outline <bool> <?dataSetName?>
418         Toggle rendering of cutplane outlines
419cutplane pos <x> <y> <z> <?dataSetName?>
420cutplane preinterp <bool> <?dataSetName?>
421         Controls if VTK's InterpolateScalarsBeforeMapping option is set.
422         Setting this on will give more correct colors, as the interpolation
423         is done on texture coordinates that lookup into a 1D texture instead
424         of using color interpolation from triangle vertices.
425cutplane scale <sx> <sy> <sz> <?dataSetName?>
426cutplane slice axis ratio <?dataSetName?>
427         For 3D data, select a slice along a principle axis of the volume. The
428         ratio is [0,1]
429cutplane visible <bool> <?dataSetName?>
430cutplane wireframe <bool> <?datasetName?>
431
432cylinder add <radius> <height> <cap> <name>
433         <cap> = boolean flag for cap disks
434cylinder color <r> <g> <b> <?name?>
435cylinder culling <bool> <?name?>
436cylinder delete <?name?>
437cylinder edges <bool> <?name?>
438cylinder flipnorm <bool> <?name?>
439cylinder lighting <bool> <?name?>
440cylinder linecolor <r> <g> <b> <?name?>
441cylinder linewidth <val> <?name?>
442cylinder material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
443cylinder opacity <val> <?name?>
444cylinder orient <qw> <qx> <qy> <qz> <?name?>
445cylinder origin <x> <y> <z> <?name?>
446cylinder pos <x> <y> <z> <?name?>
447cylinder resolution <res> <?name?>
448cylinder scale <sx> <sy> <sz> <?name?>
449cylinder shading <val> <?name?>
450         val = flat|smooth
451cylinder visible <bool> <?name?>
452cylinder wireframe <bool> <?name?>
453
454disk add <innerRadius> <outerRadius> <name>
455disk color <r> <g> <b> <?name?>
456disk culling <bool> <?name?>
457disk delete <?name?>
458disk edges <bool> <?name?>
459disk flipnorm <bool> <?name?>
460disk lighting <bool> <?name?>
461disk linecolor <r> <g> <b> <?name?>
462disk linewidth <val> <?name?>
463disk material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
464disk opacity <val> <?name?>
465disk orient <qw> <qx> <qy> <qz> <?name?>
466disk origin <x> <y> <z> <?name?>
467disk pos <x> <y> <z> <?name?>
468disk resolution <resRadial> <resCircum> <?name?>
469disk scale <sx> <sy> <sz> <?name?>
470disk shading <val> <?name?>
471     val = flat|smooth
472disk visible <bool> <?name?>
473disk wireframe <bool> <?name?>
474
475glyphs add <shape> <?dataSetName?>
476       See 'glyphs shape' for list of shapes
477glyphs color r g b <?datasetName?>
478glyphs colormap <colorMapName> <?dataSetName?>
479glyphs colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?dataSetName?>
480       Set the color mode: color by scalar field or
481       vector magnitude -- uses the current color map,
482       or color for constant color
483glyphs delete <?dataSetName?>
484glyphs edges <bool> <?datasetName?>
485glyphs gorient <bool> <fieldName> <?datasetName?>
486       Set the glyph orientation mode: orient glyphs by
487       a named vector field, or set to default orientation (off)
488glyphs gscale <scaleFactor> <?datasetName?>
489       Set glyph scaling factor
490glyphs lighting <bool> <?datasetName?>
491glyphs linecolor <r> <g> <b> <?datasetName?>
492glyphs linewidth <val> <?datasetName?>
493glyphs normscale <bool> <?datasetName?>
494       Control if data values are normalized to [0,1] range before applying
495       glyph scaling factor (gscale)
496glyphs numglyphs <max> <random> <offset> <ratio> <?dataSetName?>
497       Limit the maximum number of glyphs displayed.  Can use either a random
498       sampling or every nth point sampling (useful for uniform grids)
499       <max> = integer maximum number of glyphs
500       <random> = bool indicating if random sampling should be used
501       <offset> = offset point index from which to start sampling
502       <ratio> = If random is false, use this to control every nth point sampling
503glyphs opacity <val> <?datasetName?>
504glyphs orient <qw> <qx> <qy> <qz> <?dataSetName?>
505glyphs pos <x> <y> <z> <?dataSetName?>
506glyphs ptsize <size> <?dataSetName?>
507glyphs quality <val> <?dataSetName?>
508       Set glyph shape resolution quality val=[0,10], 1 is default
509glyphs scale <sx> <sy> <sz> <?dataSetName?>
510glyphs shape <arrow|cone|cube|cylinder|dodecahedron|icosahedron|line|octahedron|point|sphere|tetrahedron> <?datasetName?>
511glyphs smode <scalar|vmag|vcomp|off> <fieldName> <?dataSetName?>
512       Set the scaling mode: use the scalar field, vector magnitude,
513       vector components, or disable scaling
514glyphs visible <bool> <?datasetName?>
515glyphs wireframe <bool> <?datasetName?>
516
517group add <nodeList> <name>
518      Add listed nodes to group named <name>.  Group will be created if
519      it doesn't exist, but nodes may be added to existing groups.  The
520      nodes will be removed from the virtual root scene.
521group delete <?name?>
522group orient <qw> <qx> <qy> <qz> <?name?>
523group origin <x> <y> <z> <?name?>
524group pos <x> <y> <z> <?name?>
525group remove <nodeList> <name>
526      Remove listed nodes from group.  Currently, nodes will be added back
527      to the virtual root scene, and so nodes must be explicitly deleted to
528      remove them from the scene.
529group scale <sx> <sy> <sz> <?name?>
530group visible <bool> <?name?>
531
532heightmap add numcontours <n> <heightScale> <?dataSetName?>
533          Generate evenly spaced contours including range endpoints.  See also
534          'dataset maprange' command.
535heightmap add contourlist <list> <heightScale> <?dataSetName?>
536          list = {isoval1 isoval2 isoval3...}
537heightmap aspect <aspectRatio>
538          Set scaling by aspect ratio
539          <aspectRatio> = width/height or 0 for native aspect
540heightmap cloudstyle <style> <?datasetName?>
541          <style> = mesh | splat
542heightmap colormap <colorMapName> <?dataSetName?>
543heightmap colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
544          Set the field used to color the object.  'constant' means to use
545          the constant color defined by the color subcommand.  'scalar' uses
546          the active scalar field.  'vmag' uses the magnitude of the current
547          vector field, and 'vx','vy','vz' use the corresponding component of
548          the active vector field.
549heightmap contourlist <list> <?dataSetName?>
550heightmap delete <?dataSetName?>
551heightmap edges <bool> <?dataSetName?>
552heightmap heightscale <value> <?dataSetName?>
553heightmap isolinecmap <bool> <?dataSetName?>
554          Toggle colormapping of isolines (false means to use constant color)
555heightmap isolinecolor <r> <g> <b> <?dataSetName?>
556heightmap isolines <bool> <?dataSetName?>
557heightmap isolinewidth <width> <?dataSetName?>
558heightmap lighting <bool> <?dataSetName?>
559heightmap linecolor <r> <g> <b> <?dataSetName?>
560heightmap linewidth <width> <?dataSetName?>
561heightmap numcontours <n> <?dataSetName?>
562heightmap opacity <value> <?dataSetName?>
563heightmap orient <qw> <qx> <qy> <qz> <?dataSetName?>
564heightmap pos <x> <y> <z> <?dataSetName?>
565heightmap preinterp <bool> <?dataSetName?>
566          Controls if VTK's InterpolateScalarsBeforeMapping option is set.
567          Setting this on will give more correct colors, as the interpolation
568          is done on texture coordinates that lookup into a 1D texture instead
569          of using color interpolation from triangle vertices.
570heightmap scale <sx> <sy> <sz> <?dataSetName?>
571heightmap slice <axis> <ratio> <?dataSetName?>
572          For 3D data, select a slice along a principle axis of the volume. The
573          ratio is [0,1]
574heightmap surface <bool> <?dataSetName?>
575          Toggle rendering of colormapped surface (mountain plot or cutplane)
576heightmap visible <bool> <?dataSetName?>
577heightmap wireframe <bool> <?datasetName?>
578
579image add <?dataSetName?>
580      Create an image from a vtkImageData data set
581image backing <bool> <?dataSetName?>
582image bg <bool> <?dataSetName?>
583image border <bool> <?dataSetName?>
584image color <r> <g> <b> <?dataSetName?>
585image colormap <colorMapName> <?dataSetName?>
586image delete <?dataSetName?>
587image extents <xmin> <xmax> <ymin> <ymax> <zmin> <zmax> <?dataSetName?>
588image level <level> <?dataSetName?>
589image opacity <opacity> <?dataSetName?>
590image orient <qw> <qx> <qy> <qz> <?dataSetName?>
591image pos <x> <y> <z> <?dataSetName?>
592image scale <sx> <sy> <sz> <?dataSetName?>
593image visible <bool> <?dataSetName?>
594image window <windowWidth> <?dataSetName?>
595image zslice <sliceNum> <?dataSetName?>
596
597lic add <?datasetName?>
598lic colormap <colormapName> <?datasetName?>
599lic delete <?datasetName?>
600lic edges <bool> <?datasetName?>
601lic lighting <bool> <?datasetName?>
602lic linecolor <r> <g> <b> <?datasetName?>
603lic linewidth <val> <?datasetName?>
604lic opacity <val> <?datasetName?>
605lic orient <qw> <qx> <qy> <qz> <?dataSetName?>
606lic pos <x> <y> <z> <?dataSetName?>
607lic preinterp <bool> <?dataSetName?>
608    Controls if VTK's InterpolateScalarsBeforeMapping option is set.
609    Setting this on will give more correct colors, as the interpolation
610    is done on texture coordinates that lookup into a 1D texture instead
611    of using color interpolation from triangle vertices.
612lic scale <sx> <sy> <sz> <?dataSetName?>
613lic slice <axis> <ratio> <?datasetName?>
614    For 3D data, select a slice along a principle axis of the volume. The
615    ratio is [0,1]
616lic visible <bool> <?datasetName?>
617
618line add <points> <name>
619     Create a polyline from the list of point coordinates in <points>. The
620     list size must be a multiple of 3 (each point's x,y,z coordinates)
621line color <r> <g> <b> <?name?>
622line delete <?name?>
623line linecolor <r> <g> <b> <?name?>
624     Synonym for color
625line linewidth <val> <?name?>
626line opacity <val> <?name?>
627line orient <qw> <qx> <qy> <qz> <?name?>
628line origin <x> <y> <z> <?name?>
629line pos <x> <y> <z> <?name?>
630line scale <sx> <sy> <sz> <?name?>
631line visible <bool> <?name?>
632
633molecule add <?datasetName?>
634molecule aquality <val> <?datasetName?>
635         Set atom sphere resolution quality val=[0,10], 1 is default
636molecule ascale <val> <?datasetName?>
637         Set atom scale factor
638molecule atoms <bool> <?datasetName?>
639         Toggle rendering of atoms
640molecule bcmode <by_elements|constant> <?datasetName?>
641         Set bond color mode
642molecule bcolor <r> <g> <b> <?datasetName?>
643         Set constant bond color
644molecule bonds <bool> <?datasetName?>
645         Toggle rendering of bonds
646molecule bquality <val> <?datasetName?>
647         Set bond cylinder resolution quality val=[0,10], 1 is default
648molecule bscale <val> <?datasetName?>
649         Set bond scale factor
650molecule bstyle <cylinder|line> <?datasetName?>
651         Set bond render style
652molecule color r g b <?datasetName?>
653molecule colormap <colormapName> <?datasetName?>
654molecule colormode <by_elements|scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
655         Set the field used to color the object.  'constant' means to use
656         the constant color defined by the color subcommand.  'scalar' uses
657         the active scalar field.  'vmag' uses the magnitude of the current
658         vector field, and 'vx','vy','vz' use the corresponding component of
659         the active vector field.
660molecule delete <?datasetName?>
661molecule edges <bool> <?datasetName?>
662molecule labels <bool> <?datasetName?>
663         Toggle display of atom labels
664molecule lfield <fieldName> <?datasetName?>
665         Set the field used for atom labels
666molecule lighting <bool> <?datasetName?>
667molecule linecolor <r> <g> <b> <?datasetName?>
668molecule linewidth <val> <?datasetName?>
669molecule material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?datasetName?>
670molecule opacity <val> <?datasetName?>
671molecule orient <qw> <qx> <qy> <qz> <?dataSetName?>
672molecule pos <x> <y> <z> <?dataSetName?>
673molecule rscale <val> <?dataSetName?>
674         Atom radius scaling
675         val = van_der_waals|covalent|atomic|none
676molecule scale <sx> <sy> <sz> <?dataSetName?>
677molecule visible <bool> <?datasetName?>
678molecule wireframe <bool> <?datasetName?>
679
680outline add <?datasetName?>
681outline color <r> <g> <b> <?datasetName?>
682outline delete <?datasetName?>
683outline linecolor <r> <g> <b> <?datasetName?>
684        Synonym for color
685outline linewidth <val> <?datasetName?>
686outline opacity <val> <?datasetName?>
687outline orient <qw> <qx> <qy> <qz> <?datasetName?>
688outline pos <x> <y> <z> <?datasetName?>
689outline scale <sx> <sy> <sz> <?datasetName?>
690outline visible <bool> <?datasetName?>
691
692parallelepiped add <v0x> <v0y> <v0z> <v1x> <v1y> <v1z> <v2x> <v2y> <v2z> <name>
693               Specify parallelepiped using 3 basis vectors.  The 3 vectors should
694               be given in order to create a right-handed coordinate system, i.e.
695               (v0 cross v1) dot v2 should be positive.
696parallelepiped color <r> <g> <b> <?name?>
697parallelepiped culling <bool> <?name?>
698parallelepiped delete <?name?>
699parallelepiped edges <bool> <?name?>
700parallelepiped flipnorm <bool> <?name?>
701parallelepiped lighting <bool> <?name?>
702parallelepiped linecolor <r> <g> <b> <?name?>
703parallelepiped linewidth <val> <?name?>
704parallelepiped material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
705parallelepiped opacity <val> <?name?>
706parallelepiped orient <qw> <qx> <qy> <qz> <?name?>
707parallelepiped origin <x> <y> <z> <?name?>
708parallelepiped pos <x> <y> <z> <?name?>
709parallelepiped scale <sx> <sy> <sz> <?name?>
710parallelepiped shading <val> <?name?>
711               val = flat|smooth
712parallelepiped visible <bool> <?name?>
713parallelepiped wireframe <bool> <?name?>
714
715polydata add <?datasetName?>
716polydata color <r> <g> <b> <?datasetName?>
717polydata cloudstyle <style> <?datasetName?>
718         <style> = mesh | points
719polydata colormap <colormapName> <?datasetName?>
720polydata colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
721         Set the field used to color the object.  'constant' means to use
722         the constant color defined by the color subcommand.  'scalar' uses
723         the active scalar field.  'vmag' uses the magnitude of the current
724         vector field, and 'vx','vy','vz' use the corresponding component of
725         the active vector field.
726polydata culling <bool> <?name?>
727polydata delete <?datasetName?>
728polydata edges <bool> <?datasetName?>
729polydata lighting <bool> <?datasetName?>
730polydata linecolor <r> <g> <b> <?datasetName?>
731polydata linewidth <val> <?datasetName?>
732polydata material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp>
733polydata opacity <val> <?datasetName?>
734polydata orient <qw> <qx> <qy> <qz> <?dataSetName?>
735polydata origin <x> <y> <z> <?name?>
736polydata pos <x> <y> <z> <?dataSetName?>
737polydata preinterp <bool> <?dataSetName?>
738         Controls if VTK's InterpolateScalarsBeforeMapping option is set.
739         Setting this on will give more correct colors, as the interpolation
740         is done on texture coordinates that lookup into a 1D texture instead
741         of using color interpolation from triangle vertices.
742polydata ptsize <size> <?dataSetName?>
743polydata scale <sx> <sy> <sz> <?dataSetName?>
744polydata shading <val> <?name?>
745         val = flat|smooth
746polydata visible <bool> <?datasetName?>
747polydata wireframe <bool> <?datasetName?>
748
749polygon add <numSides> <centerX> <centerY> <centerZ> <normX> <normY> <normZ> <radius> <name>
750polygon color <r> <g> <b> <?name?>
751polygon culling <bool> <?name?>
752polygon delete <?name?>
753polygon edges <bool> <?name?>
754polygon flipnorm <bool> <?name?>
755polygon lighting <bool> <?name?>
756polygon linecolor <r> <g> <b> <?name?>
757polygon linewidth <val> <?name?>
758polygon material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
759polygon opacity <val> <?name?>
760polygon orient <qw> <qx> <qy> <qz> <?name?>
761polygon origin <x> <y> <z> <?name?>
762polygon pos <x> <y> <z> <?name?>
763polygon scale <sx> <sy> <sz> <?name?>
764polygon shading <val> <?name?>
765        val = flat|smooth
766polygon visible <bool> <?name?>
767polygon wireframe <bool> <?name?>
768
769pseudocolor add <?datasetName?>
770pseudocolor color <r> <g> <b> <?datasetName?>
771pseudocolor cloudstyle <style> <?datasetName?>
772            <style> = mesh | points | splat
773pseudocolor colormap <colormapName> <?datasetName?>
774pseudocolor colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
775            Set the field used to color the object.  'constant' means to use
776            the constant color defined by the color subcommand.  'scalar' uses
777            the active scalar field.  'vmag' uses the magnitude of the current
778            vector field, and 'vx','vy','vz' use the corresponding component of
779            the active vector field.
780pseudocolor delete <?datasetName?>
781pseudocolor edges <bool> <?datasetName?>
782pseudocolor lighting <bool> <?datasetName?>
783pseudocolor linecolor <r> <g> <b> <?datasetName?>
784pseudocolor linewidth <val> <?datasetName?>
785pseudocolor opacity <val> <?datasetName?>
786pseudocolor orient <qw> <qx> <qy> <qz> <?dataSetName?>
787pseudocolor pos <x> <y> <z> <?dataSetName?>
788pseudocolor preinterp <bool> <?dataSetName?>
789            Controls if VTK's InterpolateScalarsBeforeMapping option is set.
790            Setting this on will give more correct colors, as the interpolation
791            is done on texture coordinates that lookup into a 1D texture instead
792            of using color interpolation from triangle vertices.
793pseudocolor ptsize <size> <?dataSetName?>
794pseudocolor scale <sx> <sy> <sz> <?dataSetName?>
795pseudocolor visible <bool> <?datasetName?>
796pseudocolor wireframe <bool> <?datasetName?>
797
798sphere add <centerX> <centerY> <centerZ> <radius> <name>
799sphere color <r> <g> <b> <?name?>
800sphere culling <bool> <?name?>
801sphere delete <?name?>
802sphere edges <bool> <?name?>
803sphere flipnorm <bool> <?name?>
804sphere lighting <bool> <?name?>
805sphere linecolor <r> <g> <b> <?name?>
806sphere linewidth <val> <?name?>
807sphere material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
808sphere opacity <val> <?name?>
809sphere orient <qw> <qx> <qy> <qz> <?name?>
810sphere origin <x> <y> <z> <?name?>
811sphere pos <x> <y> <z> <?name?>
812sphere resolution <thetaRes> <phiRes> <?name?>
813sphere scale <sx> <sy> <sz> <?name?>
814sphere section <thetaStart> <thetaEnd> <phiStart> <phiEnd> <?name?>
815       Angles are in degrees
816sphere shading <val> <?name?>
817       val = flat|smooth
818sphere visible <bool> <?name?>
819sphere wireframe <bool> <?name?>
820
821streamlines add <?datasetName?>
822streamlines color <r> <g> <b> <?datasetName?>
823            Set the constant color of streamlines used for color mode 'constant'
824streamlines colormap <colormapName> <?datasetName?>
825            Colormap used to color streamlines/tubes/ribbons by vector magnitude
826streamlines colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
827            Set the field used to color the streamlines.  'constant' means to use
828            the constant color defined by the color subcommand.  'scalar' uses
829            the active scalar field.  'vmag' uses the magnitude of the current
830            vector field, and 'vx','vy','vz' use the corresponding component of
831            the active vector field.
832streamlines delete <?datasetName?>
833streamlines edges <bool> <?datasetName?>
834            Turn on/off edges for tubes, ribbons
835streamlines length <?datasetName?>
836            Set maximum length in world coordinates of streamlines
837streamlines lighting <bool> <?datasetName?>
838streamlines linecolor <r> <g> <b> <?datasetName?>
839            Set color of edges for tubes, ribbons (lines are colored by
840            colormap)
841streamlines lines <?datasetName?>
842            Set rendering type to polylines
843streamlines linewidth <val> <?datasetName?>
844streamlines opacity <val> <?datasetName?>
845streamlines orient <qw> <qx> <qy> <qz> <?dataSetName?>
846streamlines pos <x> <y> <z> <?dataSetName?>
847streamlines ribbons <width> <angle> <?datasetName?>
848            Set rendering type to ribbons, width is minimum half-width, angle is
849            degrees offset from normal orientation
850streamlines scale <sx> <sy> <sz> <?dataSetName?>
851streamlines seed color <r> <g> <b> <?datasetName?>
852streamlines seed disk <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <radius> <innerRadius> <numPoints> <?dataSetName?>
853            Create a disk seed area with optional hole, filled with randomly
854            placed points
855streamlines seed fmesh <numPoints> data follows <nbytes> <?datasetName?>
856            Fill a mesh supplied as a VTK data file with randomly placed points
857streamlines seed fpoly <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <numPoints> <?dataSetName?>
858            Create a regular n-sided polygonal seed area filled with randomly
859            placed points
860streamlines seed mesh data follows <nbytes> <?datasetName?>
861            Use points of a mesh supplied as a VTK data file
862streamlines seed numpts <?datasetName?>
863            If seeds have been created using 'seed random', 'seed fmesh',
864            'seed mesh' or 'seed points' this command can be used to change the
865            number of randomly distributed seeds.  In the case of 'seed mesh'
866            or 'seed points', the number is the maximum number of points of the
867            mesh to be used -- the actual number may be fewer if the mesh
868            contains fewer points.  Set to a number less than 0 to use all the
869            points of the mesh.
870streamlines seed points <?datasetName?>
871            Use points of the streamlines' dataset mesh
872streamlines seed polygon <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <?dataSetName?>
873            Create seed points from vertices of a regular n-sided polygon
874streamlines seed ptsize <size> <?datasetName?>
875            Set the point size for rendering seed points
876streamlines seed rake <startX> <startY> <startZ> <endX> <endY> <endZ> <numPoints> <?datasetName?>
877streamlines seed random <numPoints> <?datasetName?>
878            Fill the streamlines' dataset mesh with randomly placed points
879streamlines seed visible <bool> <?datasetName?>
880streamlines tubes <numSides> <radius> <?datasetName?>
881            Set rendering type to tubes, numSides is number of sides of tubes,
882            radius is minimum tube radius
883streamlines visible <bool> <?datasetName?>
884
885text3d add <textString> <name>
886text3d color <r> <g> <b> <?name?>
887text3d delete <?name?>
888text3d fntfamily <fontName> <?name?>
889text3d fntsize <fontSize> <?name?>
890text3d opacity <opacity> <?name?>
891text3d orient <qw> <qx> <qy> <qz> <?name?>
892text3d origin <x> <y> <z> <?name?>
893text3d pos <x> <y> <z> <?name?>
894text3d scale <sx> <sy> <sz> <?name?>
895text3d visible <bool> <?name?>
896
897volume add <?datasetName?>
898volume blendmode <mode> <?dataSetName?>
899       mode = composite|max_intensity|min_intensity|additive
900volume colormap <colorMapName> <?datasetName?>
901volume delete <?datasetName?>
902volume lighting <bool> <?datasetName?>
903volume orient <qw> <qx> <qy> <qz> <?dataSetName?>
904volume pos <x> <y> <z> <?dataSetName?>
905volume quality <val> <?datasetName?>
906       val = [0,1]
907volume scale <sx> <sy> <sz> <?dataSetName?>
908volume shading ambient <coeff> <?datasetName?>
909volume shading diffuse <coeff> <?datasetName?>
910volume shading specular <coeff> <power> <?datasetName?>
911volume visible <bool> <?datasetName?>
912
913warp add <?dataSetName?>
914warp color <r> <g> <b> <?datasetName?>
915warp cloudstyle <style> <?datasetName?>
916     <style> = mesh | points
917warp colormap <colormapName> <?datasetName?>
918warp colormode <scalar|vmag|vx|vy|vz|constant> <fieldName> <?datasetName?>
919     Set the field used to color the object.  'constant' means to use
920     the constant color defined by the color subcommand.  'scalar' uses
921     the active scalar field.  'vmag' uses the magnitude of the current
922     vector field, and 'vx','vy','vz' use the corresponding component of
923     the active vector field.
924warp delete <?dataSetName?>
925warp edges <bool> <?dataSetName?>
926warp lighting <bool> <?dataSetName?>
927warp linecolor <r> <g> <b> <?dataSetName?>
928warp linewidth <width> <?dataSetName?>
929warp opacity <value> <?dataSetName?>
930warp orient <qw> <qx> <qy> <qz> <?dataSetName?>
931warp ptsize <size> <?dataSetName?>
932warp pos <x> <y> <z> <?dataSetName?>
933warp preinterp <bool> <?dataSetName?>
934     Controls if VTK's InterpolateScalarsBeforeMapping option is set.
935     Setting this on will give more correct colors, as the interpolation
936     is done on texture coordinates that lookup into a 1D texture instead
937     of using color interpolation from triangle vertices.
938warp scale <sx> <sy> <sz> <?dataSetName?>
939warp visible <bool> <?dataSetName?>
940warp warpscale <value> <?dataSetName?>
941     Specify amount to scale vector magnitudes when warping
942warp wireframe <bool> <?datasetName?>
943
944================================================================================
945Replies:
946================================================================================
947nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
948   Reply to "camera get"
949nv>image -type image -bytes <nbytes>
950  <binary RGB data>
951nv>image -type image -bbox {x y w h} -bytes <nbytes>
952  <binary RGB data>
953  The bounding box of the 2D image camera zoom region is supplied
954  Note: The bbox coordinates are in the form used by 'camera ortho world ...':
955  x,y - world coord. of lower left corner, w,h - width height in world coords
956  This form is currently used only if the camera mode is set to 'image'.
957nv>legend <colormapName> <title> <rmin> <rmax> <nbytes>
958  <binary RGB data>
959nv>dataset names <Tcl list of names>
960nv>dataset scalar world <x> <y> <z> <value> <dataSetName>
961nv>dataset scalar pixel <x> <y> <value> <dataSetName>
962nv>dataset vector world <x> <y> <z> <valueX> <valueY> <valueZ> <dataSetName>
963nv>dataset vector pixel <x> <y> <valueX> <valueY> <valueZ> <dataSetName>
964nv>ok -token <seqnum>
965   Reply indicated commands through <seqnum> (numbered beginning at 1) have been
966   processed, but no new image was rendered
967================================================================================
968Error Replies:
969================================================================================
970nv>viserror -bytes <nbytes>
971   <multi-line error string of nbytes>
972================================================================================
Note: See TracBrowser for help on using the repository browser.