Changeset 1558


Ignore:
Timestamp:
Jul 28, 2009 4:01:14 PM (15 years ago)
Author:
gah
Message:

fix and re-enable <ODX> output type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.cpp

    r1546 r1558  
    12091209        fflush(stdout);
    12101210        std::stringstream fdata;
    1211         fdata.write(nBytes + 5, bytes - 5);
    1212         volPtr = load_volume_stream3(err, tag, fdata);
     1211        fdata.write(nBytes - 5, bytes + 5);
     1212        Rappture::Outcome context;
     1213        volPtr = load_volume_stream3(context, tag, fdata);
    12131214        if (volPtr == NULL) {
    1214             Tcl_AppendResult(interp, err.remark(), (char*)NULL);
     1215            Tcl_AppendResult(interp, context.remark(), (char*)NULL);
    12151216            return TCL_ERROR;
    12161217        }
    12171218#endif  /*__TEST_CODE__*/
    12181219    } else if ((nBytes > 5) && (strncmp(bytes, "<ODX>", 5) == 0)) {
    1219         /*
    1220         Rappture::Outcome err;
    1221 
    1222         printf("Loading DX using OpenDX library...\n");
     1220        printf("Loading DX using OpenDX library...\n");
    12231221        fflush(stdout);
    1224         volPtr = load_volume_stream_odx(err, n, buf.bytes()+5, buf.size()-5);
     1222        Rappture::Outcome context;
     1223        volPtr = load_volume_stream_odx(context, tag, bytes + 5, nBytes -5);
    12251224        if (volPtr == NULL) {
    1226             Tcl_AppendResult(interp, err.remark(), (char*)NULL);
     1225            Tcl_AppendResult(interp, context.remark(), (char*)NULL);
    12271226            return TCL_ERROR;
    12281227        }
    1229         */
    12301228    } else {
    12311229        printf("OpenDX loading...\n");
Note: See TracChangeset for help on using the changeset viewer.