Changeset 2892 for trunk/packages


Ignore:
Timestamp:
Mar 28, 2012, 11:38:33 AM (13 years ago)
Author:
ldelgass
Message:

Add protocol documentation for NanoVis? server. Add header to vtkvis protocol
document with description of syntax and notes about using the documentation.

Location:
trunk/packages/vizservers
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/protocol.txt

    r2771 r2892  
    11================================================================================
    2 On connection, send 32-bit little endian int indicating memory requirements
    3 (comsumed by nanoscale server before exec-ing vtkvis)
     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================================================================================
    425================================================================================
    526Requests:
    6 
     27================================================================================
    728screen bgcolor <r> <g> <b>
    829screen size <width> <height>
     
    377398================================================================================
    378399Replies:
    379 
     400================================================================================
    380401nv>camera set <posX> <posY> <posZ> <focalPtX> <focalPtY> <focalPtZ> <viewUpX> <viewUpY> <viewUpZ>
    381402   Reply to "camera get"
     
    396417
    397418================================================================================
    398 Errors:
    399 
     419Error Replies:
     420================================================================================
    400421Prefixed with "VtkVis Server Error: "
    401422Currently not guaranteed to be on a single line
     423================================================================================
Note: See TracChangeset for help on using the changeset viewer.