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

Last change on this file since 3330 was 3330, checked in by gah, 12 years ago

merge (by hand) with Rappture1.2 branch

  • Property svn:eol-style set to native
File size: 33.3 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
188colormap add <colorMapName> <colorMap> <opacityMap>
189         colorMap = Tcl list of {value r g b} control points
190         opacityMap = Tcl list of {value alpha} control points
191colormap delete <?colorMapName?>
192colormap res <numberOfTableEntries>
193         Set the "resolution" or number of lookup table entries in the colormap
194         <numberOfTableEntries> = integer or "default"
195
196dataset add <datasetName> data follows <nbytes>
197dataset color <r> <g> <b> <?datasetName?>
198        Set color of outline bounding box
199dataset delete <?datasetName?>
200dataset getscalar world <x> <y> <z> <datasetName>
201dataset getscalar pixel <x> <y> <datasetName>
202dataset getvector world <x> <y> <z> <datasetName>
203dataset getvector pixel <x> <y> <datasetName>
204        Use pixel for image camera mode
205dataset maprange <val> <?min?> <?max?> <?fieldName?> <?fieldType?> <?numComp?> <?component?>
206        Controls if data range for colormapping and contours is based on
207        cumulative range of all datasets ("all"), only visible datasets
208        ("visible") or each individual dataset ("separate").  Defaults to
209        "all"
210        <val> = all|explicit|visible|separate
211        The following arguments are only used for 'explicit' mode:
212        <min>,<max> = Required in explicit mode, specify the range to use
213        <fieldName> = Required in explicit mode, specify the field to which the
214        range should be applied
215        <fieldType> = point_data|cell_data|field_data, optional (defaults to
216        point_data)
217        <numComp> = Number of components (1 = scalar, 3 = vector), optional (1
218        is default)
219        <component> = Component index for vector fields, required if numComp is
220        3, otherwise unused.
221dataset names
222        Returns a list of the loaded data sets
223dataset opacity <val> <?datasetName?>
224dataset outline <bool> <?datasetName?>
225        Toggle wireframe outline of dataset's bounding box
226dataset scalar <scalarName> <?datasetName?>
227        Set the active scalar field to plot
228dataset vector <vectorName> <?datasetName?>
229        Set the active vector field to plot
230dataset visible <bool> <?datasetName?>
231
232legend <colormapName> <legendType> <fieldName> <legendTitle> <width> <height> <numLabels> <?datasetName?>
233       Causes legend to be rendered and written back with labels and title
234       (title may be left blank)
235       <legendType> = scalar|vmag|vx|vy|vz
236       <numLabels> Can be zero or more 'tick' value labels
237       If datasetName is omitted, the cumulative data range of all data sets
238       will be used to label the legend -- otherwise, the current setting of
239       'dataset maprange' will be used to determine if the individual dataset
240       range or cumulative range will be used.
241
242renderer clipplane <axis> <ratio> <direction>
243         Set a user clipping plane, ratio is [0,1] and is always interpreted as
244         0 = min_bound, 1 = max_bound, regardless of direction.  Sign of
245         direction determines normal of clipping plane.  User clip planes do not
246         apply if camera mode is image.
247renderer depthpeel <bool>
248         Set use of depth peeling algorithm for transparency
249renderer light2side <bool>
250         Toggle use of two-sided lighting (controls if backfaces are lit with a
251         flipped normal)
252renderer render
253         Force a new image to be rendered - use for advancing animation
254
255screen bgcolor <r> <g> <b>
256screen size <width> <height>
257
258== Graphics objects ==
259
260arc add <pt1X> <pt1Y> <pt1Z> <pt2X> <pt2Y> <pt2Z> <name>
261arc color <r> <g> <b> <?name?>
262arc delete <?name?>
263arc linecolor <r> <g> <b> <?name?>
264arc linewidth <val> <?name?>
265arc opacity <val> <?name?>
266arc orient <qw> <qx> <qy> <qz> <?name?>
267arc pos <x> <y> <z> <?name?>
268arc resolution <res> <?name?>
269arc scale <sx> <sy> <sz> <?name?>
270arc visible <bool> <?name?>
271
272arrow add <tipRadius> <shaftRadius> <tipLength> <name>
273      Arrow will have base at 0,0,0 and tip at 1, 0, 0
274arrow color <r> <g> <b> <?name?>
275arrow delete <?name?>
276arrow edges <bool> <?name?>
277arrow lighting <bool> <?name?>
278arrow linecolor <r> <g> <b> <?name?>
279arrow linewidth <val> <?name?>
280arrow material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
281arrow opacity <val> <?name?>
282arrow orient <qw> <qx> <qy> <qz> <?name?>
283arrow pos <x> <y> <z> <?name?>
284arrow resolution <tipRes> <shaftRes> <?name?>
285arrow scale <sx> <sy> <sz> <?name?>
286arrow visible <bool> <?name?>
287arrow wireframe <bool> <?name?>
288
289box add <name>
290box color <r> <g> <b> <?name?>
291box delete <?name?>
292box edges <bool> <?name?>
293box lighting <bool> <?name?>
294box linecolor <r> <g> <b> <?name?>
295box linewidth <val> <?name?>
296box material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
297box opacity <val> <?name?>
298box orient <qw> <qx> <qy> <qz> <?name?>
299box pos <x> <y> <z> <?name?>
300box scale <sx> <sy> <sz> <?name?>
301box visible <bool> <?name?>
302box wireframe <bool> <?name?>
303
304cone add <radius> <height> <cap> <name>
305     <cap> = boolean flag for cap disks
306cone color <r> <g> <b> <?name?>
307cone delete <?name?>
308cone edges <bool> <?name?>
309cone lighting <bool> <?name?>
310cone linecolor <r> <g> <b> <?name?>
311cone linewidth <val> <?name?>
312cone material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
313cone opacity <val> <?name?>
314cone orient <qw> <qx> <qy> <qz> <?name?>
315cone pos <x> <y> <z> <?name?>
316cone resolution <res> <?name?>
317cone scale <sx> <sy> <sz> <?name?>
318cone visible <bool> <?name?>
319cone wireframe <bool> <?name?>
320
321contour2d add numcontours <n> <?datasetName?>
322          Generate evenly spaced contours including range endpoints.  See also
323          'dataset maprange' command.
324contour2d add contourlist <list> <?datasetName?>
325          list = {isoval1 isoval2 isoval3...}
326contour2d ccolor <r> <g> <b> <?datasetName?>
327          synonym for linecolor
328contour2d colormap <colormapName> <?datasetName?>
329contour2d colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
330          Set the field used to color the object.  'ccolor' means to use
331          the constant color defined by the ccolor subcommand.  'scalar' uses
332          the active scalar field.  'vmag' uses the magnitude of the current
333          vector field, and 'vx','vy','vz' use the corresponding component of
334          the active vector field.
335contour2d delete <?datasetName?>
336contour2d lighting <bool> <?datasetName?>
337contour2d linecolor <r> <g> <b> <?datasetName?>
338          synonym for color
339contour2d linewidth <val> <?datasetName?>
340contour2d opacity <val> <?datasetName?>
341contour2d orient <qw> <qx> <qy> <qz> <?dataSetName?>
342contour2d pos <x> <y> <z> <?dataSetName?>
343contour2d scale <sx> <sy> <sz> <?dataSetName?>
344contour2d visible <bool> <?datasetName?>
345
346contour3d add numcontours <n> <?datasetName?>
347          Generate evenly spaced contours including range endpoints.  See also
348          'dataset maprange' command.
349contour3d add contourlist <list> <?datasetName?>
350          list = {isoval1 isoval2 isoval3...}
351contour3d ccolor r g b <?datasetName?>
352contour3d colormap <colorMapName> <?dataSetName?>
353contour3d colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
354          Set the field used to color the object.  'ccolor' means to use
355          the constant color defined by the ccolor subcommand.  'scalar' uses
356          the active scalar field.  'vmag' uses the magnitude of the current
357          vector field, and 'vx','vy','vz' use the corresponding component of
358          the active vector field.
359contour3d delete <?datasetName?>
360contour3d edges <bool> <?datasetName?>
361contour3d lighting <bool> <?datasetName?>
362contour3d linecolor <r> <g> <b> <?datasetName?>
363contour3d linewidth <val> <?datasetName?>
364contour3d opacity <val> <?datasetName?>
365contour3d orient <qw> <qx> <qy> <qz> <?dataSetName?>
366contour3d pos <x> <y> <z> <?dataSetName?>
367contour3d scale <sx> <sy> <sz> <?dataSetName?>
368contour3d visible <bool> <?datasetName?>
369contour3d wireframe <bool> <?datasetName?>
370
371cutplane add <?dataSetName?>
372cutplane axis <axis> <bool> <?dataSetName?>
373         Toggle visibility of the 3 principal axis cutplanes
374cutplane ccolor r g b <?datasetName?>
375         Set color of outline bounding box
376cutplane colormap <colorMapName> <?dataSetName?>
377cutplane colormode <scalar|vmag|vx|vy|vz> <fieldName> <?datasetName?>
378         Set the field used to color the object.  'scalar' uses
379         the active scalar field.  'vmag' uses the magnitude of the current
380         vector field, and 'vx','vy','vz' use the corresponding component of
381         the active vector field.
382cutplane delete <?dataSetName?>
383cutplane edges <bool> <?dataSetName?>
384cutplane lighting <bool> <?dataSetName?>
385cutplane linecolor <r> <g> <b> <?dataSetName?>
386cutplane linewidth <width> <?dataSetName?>
387cutplane opacity <value> <?dataSetName?>
388cutplane orient <qw> <qx> <qy> <qz> <?dataSetName?>
389cutplane outline <bool> <?dataSetName?>
390         Toggle rendering of cutplane outlines
391cutplane pos <x> <y> <z> <?dataSetName?>
392cutplane scale <sx> <sy> <sz> <?dataSetName?>
393cutplane slice axis ratio <?dataSetName?>
394         For 3D data, select a slice along a principle axis of the volume. The
395         ratio is [0,1]
396cutplane visible <bool> <?dataSetName?>
397cutplane wireframe <bool> <?datasetName?>
398
399cylinder add <radius> <height> <cap> <name>
400         <cap> = boolean flag for cap disks
401cylinder color <r> <g> <b> <?name?>
402cylinder delete <?name?>
403cylinder edges <bool> <?name?>
404cylinder lighting <bool> <?name?>
405cylinder linecolor <r> <g> <b> <?name?>
406cylinder linewidth <val> <?name?>
407cylinder material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
408cylinder opacity <val> <?name?>
409cylinder orient <qw> <qx> <qy> <qz> <?name?>
410cylinder pos <x> <y> <z> <?name?>
411cylinder resolution <res> <?name?>
412cylinder scale <sx> <sy> <sz> <?name?>
413cylinder visible <bool> <?name?>
414cylinder wireframe <bool> <?name?>
415
416disk add <innerRadius> <outerRadius> <name>
417disk color <r> <g> <b> <?name?>
418disk delete <?name?>
419disk edges <bool> <?name?>
420disk lighting <bool> <?name?>
421disk linecolor <r> <g> <b> <?name?>
422disk linewidth <val> <?name?>
423disk material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
424disk opacity <val> <?name?>
425disk orient <qw> <qx> <qy> <qz> <?name?>
426disk pos <x> <y> <z> <?name?>
427disk resolution <resRadial> <resCircum> <?name?>
428disk scale <sx> <sy> <sz> <?name?>
429disk visible <bool> <?name?>
430disk wireframe <bool> <?name?>
431
432glyphs add <shape> <?dataSetName?>
433       See 'glyphs shape' for list of shapes
434glyphs ccolor r g b <?datasetName?>
435glyphs colormap <colorMapName> <?dataSetName?>
436glyphs colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?dataSetName?>
437       Set the color mode: color by scalar field or
438       vector magnitude -- uses the current color map,
439       or ccolor for constant color
440glyphs delete <?dataSetName?>
441glyphs edges <bool> <?datasetName?>
442glyphs gorient <bool> <fieldName> <?datasetName?>
443       Set the glyph orientation mode: orient glyphs by
444       a named vector field, or set to default orientation (off)
445glyphs gscale <scaleFactor> <?datasetName?>
446       Set glyph scaling factor
447glyphs lighting <bool> <?datasetName?>
448glyphs linecolor <r> <g> <b> <?datasetName?>
449glyphs linewidth <val> <?datasetName?>
450glyphs normscale <bool> <?datasetName?>
451       Control if data values are normalized to [0,1] range before applying
452       glyph scaling factor (gscale)
453glyphs opacity <val> <?datasetName?>
454glyphs orient <qw> <qx> <qy> <qz> <?dataSetName?>
455glyphs pos <x> <y> <z> <?dataSetName?>
456glyphs scale <sx> <sy> <sz> <?dataSetName?>
457glyphs shape <arrow|cone|cube|cylinder|dodecahedron|icosahedron|line|octahedron|sphere|tetrahedron> <?datasetName?>
458glyphs smode <scalar|vmag|vcomp|off> <fieldName> <?dataSetName?>
459       Set the scaling mode: use the scalar field, vector magnitude
460       (uniform scale), vector components, or disable scaling
461glyphs visible <bool> <?datasetName?>
462glyphs wireframe <bool> <?datasetName?>
463
464heightmap add numcontours <n> <heightScale> <?dataSetName?>
465          Generate evenly spaced contours including range endpoints.  See also
466          'dataset maprange' command.
467heightmap add contourlist <list> <heightScale> <?dataSetName?>
468          list = {isoval1 isoval2 isoval3...}
469heightmap aspect <aspectRatio>
470          Set scaling by aspect ratio
471          <aspectRatio> = width/height or 0 for native aspect
472heightmap colormap <colorMapName> <?dataSetName?>
473heightmap colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
474          Set the field used to color the object.  'ccolor' means to use
475          the constant color defined by the ccolor subcommand.  'scalar' uses
476          the active scalar field.  'vmag' uses the magnitude of the current
477          vector field, and 'vx','vy','vz' use the corresponding component of
478          the active vector field.
479heightmap contourlist <list> <?dataSetName?>
480heightmap delete <?dataSetName?>
481heightmap edges <bool> <?dataSetName?>
482heightmap heightscale <value> <?dataSetName?>
483heightmap isolinecmap <bool> <?dataSetName?>
484          Toggle colormapping of isolines (false means to use constant color)
485heightmap isolinecolor <r> <g> <b> <?dataSetName?>
486heightmap isolines <bool> <?dataSetName?>
487heightmap isolinewidth <width> <?dataSetName?>
488heightmap lighting <bool> <?dataSetName?>
489heightmap linecolor <r> <g> <b> <?dataSetName?>
490heightmap linewidth <width> <?dataSetName?>
491heightmap numcontours <n> <?dataSetName?>
492heightmap opacity <value> <?dataSetName?>
493heightmap orient <qw> <qx> <qy> <qz> <?dataSetName?>
494heightmap pos <x> <y> <z> <?dataSetName?>
495heightmap scale <sx> <sy> <sz> <?dataSetName?>
496heightmap slice <axis> <ratio> <?dataSetName?>
497          For 3D data, select a slice along a principle axis of the volume. The
498          ratio is [0,1]
499heightmap surface <bool> <?dataSetName?>
500          Toggle rendering of colormapped surface (mountain plot or cutplane)
501heightmap visible <bool> <?dataSetName?>
502heightmap wireframe <bool> <?datasetName?>
503
504lic add <?datasetName?>
505lic colormap <colormapName> <?datasetName?>
506lic delete <?datasetName?>
507lic edges <bool> <?datasetName?>
508lic lighting <bool> <?datasetName?>
509lic linecolor <r> <g> <b> <?datasetName?>
510lic linewidth <val> <?datasetName?>
511lic opacity <val> <?datasetName?>
512lic orient <qw> <qx> <qy> <qz> <?dataSetName?>
513lic pos <x> <y> <z> <?dataSetName?>
514lic scale <sx> <sy> <sz> <?dataSetName?>
515lic slice <axis> <ratio> <?datasetName?>
516    For 3D data, select a slice along a principle axis of the volume. The
517    ratio is [0,1]
518lic visible <bool> <?datasetName?>
519
520line add <pt1X> <pt1Y> <pt1Z> <pt2X> <pt2Y> <pt2Z> <name>
521line color <r> <g> <b> <?name?>
522line delete <?name?>
523line linecolor <r> <g> <b> <?name?>
524line linewidth <val> <?name?>
525line opacity <val> <?name?>
526line orient <qw> <qx> <qy> <qz> <?name?>
527line pos <x> <y> <z> <?name?>
528line scale <sx> <sy> <sz> <?name?>
529line visible <bool> <?name?>
530
531molecule add <?datasetName?>
532molecule atoms <bool> <?datasetName?>
533         Toggle rendering of atoms
534molecule ascale <val> <?datasetName?>
535         Set atom scale factor
536molecule bcmode <by_elements|constant> <?datasetName?>
537         Set bond color mode
538molecule bcolor <r> <g> <b> <?datasetName?>
539         Set constant bond color
540molecule bonds <bool> <?datasetName?>
541         Toggle rendering of bonds
542molecule bscale <val> <?datasetName?>
543         Set bond scale factor
544molecule bstyle <cylinder|line> <?datasetName?>
545         Set bond render style
546molecule ccolor r g b <?datasetName?>
547molecule colormap <colormapName> <?datasetName?>
548molecule colormode <by_elements|scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
549         Set the field used to color the object.  'ccolor' means to use
550         the constant color defined by the ccolor subcommand.  'scalar' uses
551         the active scalar field.  'vmag' uses the magnitude of the current
552         vector field, and 'vx','vy','vz' use the corresponding component of
553         the active vector field.
554molecule delete <?datasetName?>
555molecule edges <bool> <?datasetName?>
556molecule labels <bool> <?datasetName?>
557molecule lighting <bool> <?datasetName?>
558molecule linecolor <r> <g> <b> <?datasetName?>
559molecule linewidth <val> <?datasetName?>
560molecule opacity <val> <?datasetName?>
561molecule orient <qw> <qx> <qy> <qz> <?dataSetName?>
562molecule pos <x> <y> <z> <?dataSetName?>
563molecule rscale <val> <?dataSetName?>
564         Atom radius scaling
565         val = van_der_waals|covalent|atomic|none
566molecule scale <sx> <sy> <sz> <?dataSetName?>
567molecule visible <bool> <?datasetName?>
568molecule wireframe <bool> <?datasetName?>
569
570polydata add <?datasetName?>
571polydata color <r> <g> <b> <?datasetName?>
572polydata delete <?datasetName?>
573polydata edges <bool> <?datasetName?>
574polydata lighting <bool> <?datasetName?>
575polydata linecolor <r> <g> <b> <?datasetName?>
576polydata linewidth <val> <?datasetName?>
577polydata material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp>
578polydata opacity <val> <?datasetName?>
579polydata orient <qw> <qx> <qy> <qz> <?dataSetName?>
580polydata pos <x> <y> <z> <?dataSetName?>
581polydata ptsize <size> <?dataSetName?>
582polydata scale <sx> <sy> <sz> <?dataSetName?>
583polydata visible <bool> <?datasetName?>
584polydata wireframe <bool> <?datasetName?>
585
586polygon add <numSides> <name>
587polygon color <r> <g> <b> <?name?>
588polygon delete <?name?>
589polygon edges <bool> <?name?>
590polygon lighting <bool> <?name?>
591polygon linecolor <r> <g> <b> <?name?>
592polygon linewidth <val> <?name?>
593polygon material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
594polygon opacity <val> <?name?>
595polygon orient <qw> <qx> <qy> <qz> <?name?>
596polygon pos <x> <y> <z> <?name?>
597polygon scale <sx> <sy> <sz> <?name?>
598polygon visible <bool> <?name?>
599polygon wireframe <bool> <?name?>
600
601pseudocolor add <?datasetName?>
602pseudocolor ccolor <r> <g> <b> <?datasetName?>
603pseudocolor colormap <colormapName> <?datasetName?>
604pseudocolor colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
605            Set the field used to color the object.  'ccolor' means to use
606            the constant color defined by the ccolor subcommand.  'scalar' uses
607            the active scalar field.  'vmag' uses the magnitude of the current
608            vector field, and 'vx','vy','vz' use the corresponding component of
609            the active vector field.
610pseudocolor delete <?datasetName?>
611pseudocolor edges <bool> <?datasetName?>
612pseudocolor lighting <bool> <?datasetName?>
613pseudocolor linecolor <r> <g> <b> <?datasetName?>
614pseudocolor linewidth <val> <?datasetName?>
615pseudocolor opacity <val> <?datasetName?>
616pseudocolor orient <qw> <qx> <qy> <qz> <?dataSetName?>
617pseudocolor pos <x> <y> <z> <?dataSetName?>
618pseudocolor scale <sx> <sy> <sz> <?dataSetName?>
619pseudocolor visible <bool> <?datasetName?>
620pseudocolor wireframe <bool> <?datasetName?>
621
622sphere add <name>
623sphere color <r> <g> <b> <?name?>
624sphere delete <?name?>
625sphere edges <bool> <?name?>
626sphere lighting <bool> <?name?>
627sphere linecolor <r> <g> <b> <?name?>
628sphere linewidth <val> <?name?>
629sphere material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>
630sphere opacity <val> <?name?>
631sphere orient <qw> <qx> <qy> <qz> <?name?>
632sphere pos <x> <y> <z> <?name?>
633sphere resolution <thetaRes> <phiRes> <?name?>
634sphere scale <sx> <sy> <sz> <?name?>
635sphere section <thetaStart> <thetaEnd> <phiStart> <phiEnd> <?name?>
636       Angles are in degrees
637sphere visible <bool> <?name?>
638sphere wireframe <bool> <?name?>
639
640streamlines add <?datasetName?>
641streamlines ccolor <r> <g> <b> <?datasetName?>
642            Set the constant color of streamlines used for color mode 'ccolor'
643streamlines colormap <colormapName> <?datasetName?>
644            Colormap used to color streamlines/tubes/ribbons by vector magnitude
645streamlines colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
646            Set the field used to color the streamlines.  'ccolor' means to use
647            the constant color defined by the ccolor subcommand.  'scalar' uses
648            the active scalar field.  'vmag' uses the magnitude of the current
649            vector field, and 'vx','vy','vz' use the corresponding component of
650            the active vector field.
651streamlines delete <?datasetName?>
652streamlines edges <bool> <?datasetName?>
653            Turn on/off edges for tubes, ribbons
654streamlines length <?datasetName?>
655            Set maximum length in world coordinates of streamlines
656streamlines lighting <bool> <?datasetName?>
657streamlines linecolor <r> <g> <b> <?datasetName?>
658            Set color of edges for tubes, ribbons (lines are colored by
659            colormap)
660streamlines lines <?datasetName?>
661            Set rendering type to polylines
662streamlines linewidth <val> <?datasetName?>
663streamlines opacity <val> <?datasetName?>
664streamlines orient <qw> <qx> <qy> <qz> <?dataSetName?>
665streamlines pos <x> <y> <z> <?dataSetName?>
666streamlines ribbons <width> <angle> <?datasetName?>
667            Set rendering type to ribbons, width is minimum half-width, angle is
668            degrees offset from normal orientation
669streamlines scale <sx> <sy> <sz> <?dataSetName?>
670streamlines seed color <r> <g> <b> <?datasetName?>
671streamlines seed disk <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <radius> <innerRadius> <numPoints> <?dataSetName?>
672            Create a disk seed area with optional hole, filled with randomly
673            placed points
674streamlines seed fmesh <numPoints> data follows <nbytes> <?datasetName?>
675            Fill a mesh supplied as a VTK data file with randomly placed points
676streamlines seed fpoly <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <numPoints> <?dataSetName?>
677            Create a regular n-sided polygonal seed area filled with randomly
678            placed points
679streamlines seed mesh data follows <nbytes> <?datasetName?>
680            Use points of a mesh supplied as a VTK data file
681streamlines seed numpts <?datasetName?>
682            If seeds have been created using 'seed random' or 'seed fmesh',
683            this command can be used to change the number of randomly
684            distributed seeds
685streamlines seed points <?datasetName?>
686            Use points of the streamlines' dataset mesh
687streamlines seed polygon <centerX> <centerY> <centerZ> <normalX> <normalY> <normalZ> <angle> <radius> <numSides> <?dataSetName?>
688            Create seed points from vertices of a regular n-sided polygon
689streamlines seed rake <startX> <startY> <startZ> <endX> <endY> <endZ> <numPoints> <?datasetName?>
690streamlines seed random <numPoints> <?datasetName?>
691            Fill the streamlines' dataset mesh with randomly placed points
692streamlines seed visible <bool> <?datasetName?>
693streamlines tubes <numSides> <radius> <?datasetName?>
694            Set rendering type to tubes, numSides is number of sides of tubes,
695            radius is minimum tube radius
696streamlines visible <bool> <?datasetName?>
697
698volume add <?datasetName?>
699volume colormap <colorMapName> <?datasetName?>
700volume delete <?datasetName?>
701volume lighting <bool> <?datasetName?>
702volume orient <qw> <qx> <qy> <qz> <?dataSetName?>
703volume pos <x> <y> <z> <?dataSetName?>
704volume quality <val> <?datasetName?>
705       val = [0,1]
706volume scale <sx> <sy> <sz> <?dataSetName?>
707volume shading ambient <coeff> <?datasetName?>
708volume shading diffuse <coeff> <?datasetName?>
709volume shading specular <coeff> <power> <?datasetName?>
710volume visible <bool> <?datasetName?>
711
712warp add <?dataSetName?>
713warp ccolor <r> <g> <b> <?datasetName?>
714warp colormap <colormapName> <?datasetName?>
715warp colormode <scalar|vmag|vx|vy|vz|ccolor> <fieldName> <?datasetName?>
716     Set the field used to color the object.  'ccolor' means to use
717     the constant color defined by the ccolor subcommand.  'scalar' uses
718     the active scalar field.  'vmag' uses the magnitude of the current
719     vector field, and 'vx','vy','vz' use the corresponding component of
720     the active vector field.
721warp delete <?dataSetName?>
722warp edges <bool> <?dataSetName?>
723warp lighting <bool> <?dataSetName?>
724warp linecolor <r> <g> <b> <?dataSetName?>
725warp linewidth <width> <?dataSetName?>
726warp opacity <value> <?dataSetName?>
727warp orient <qw> <qx> <qy> <qz> <?dataSetName?>
728warp pos <x> <y> <z> <?dataSetName?>
729warp scale <sx> <sy> <sz> <?dataSetName?>
730warp visible <bool> <?dataSetName?>
731warp warpscale <value> <?dataSetName?>
732     Specify amount to scale vector magnitudes when warping
733warp wireframe <bool> <?datasetName?>
734
735================================================================================
736Replies:
737================================================================================
738nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
739   Reply to "camera get"
740nv>image -type image -bytes <nbytes>
741  <binary RGB data>
742nv>image -type image -bbox {x y w h} -bytes <nbytes>
743  <binary RGB data>
744  The bounding box of the 2D image camera zoom region is supplied
745  Note: The bbox coordinates are in the form used by 'camera ortho world ...':
746  x,y - world coord. of lower left corner, w,h - width height in world coords
747  This form is currently used only if the camera mode is set to 'image'.
748nv>legend <colormapName> <title> <rmin> <rmax> <nbytes>
749  <binary RGB data>
750nv>dataset names <Tcl list of names>
751nv>dataset scalar world <x> <y> <z> <value> <dataSetName>
752nv>dataset scalar pixel <x> <y> <value> <dataSetName>
753nv>dataset vector world <x> <y> <z> <valueX> <valueY> <valueZ> <dataSetName>
754nv>dataset vector pixel <x> <y> <valueX> <valueY> <valueZ> <dataSetName>
755
756================================================================================
757Error Replies:
758================================================================================
759nv>viserror -bytes <nbytes>
760   <multi-line error string of nbytes>
761================================================================================
Note: See TracBrowser for help on using the repository browser.