Ignore:
Timestamp:
Mar 4, 2013, 8:57:13 PM (11 years ago)
Author:
ldelgass
Message:

Remove XINETD define from nanovis. We only support server mode now, no glut
interaction loop with mouse/keyboard handlers. Fixes for trace logging to make
output closer to vtkvis: inlcude function name for trace messages, remove
newlines from format strings in macros since newlines get added by syslog.

File:
1 edited

Legend:

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

    r3394 r3452  
    508508    }
    509509    Rappture::Outcome err;
    510     TRACE("Checking header[%.13s]\n", buf.bytes());
     510    TRACE("Checking header[%.13s]", buf.bytes());
    511511    if (strncmp (buf.bytes(), "@@RP-ENC:", 9) == 0) {
    512512        /* There's a header on the buffer, use it to decode the data. */
     
    10641064
    10651065            fraction = ((float)frame_num) / (total - 1);
    1066             TRACE("fraction : %f\n", fraction);
     1066            TRACE("fraction : %f", fraction);
    10671067            //interpolator->update(((float)frame_num) / (total - 1));
    10681068            interpolator->update(fraction);
     
    11161116        return TCL_ERROR;
    11171117    }
    1118     TRACE("parsing volume data identifier\n");
     1118    TRACE("parsing volume data identifier");
    11191119    Tcl_HashSearch iter;
    11201120    Tcl_HashEntry *hPtr;
     
    11561156                    Tcl_Obj *const *objv)
    11571157{
    1158     TRACE("Data Loading\n");
     1158    TRACE("Data Loading");
    11591159
    11601160    int nbytes;
     
    11741174    nBytes = buf.size();
    11751175
    1176     TRACE("Checking header[%.20s]\n", bytes);
     1176    TRACE("Checking header[%.20s]", bytes);
    11771177
    11781178    Volume *volPtr = NULL;
    11791179
    11801180    if ((nBytes > 5) && (strncmp(bytes, "<HDR>", 5) == 0)) {
    1181         TRACE("ZincBlende stream is in\n");
     1181        TRACE("ZincBlende stream is in");
    11821182         //std::stringstream fdata(std::ios_base::out|std::ios_base::in|std::ios_base::binary);
    11831183        //fdata.write(buf.bytes(),buf.size());
     
    11891189            return TCL_ERROR;
    11901190        }
    1191         TRACE("finish loading\n");
     1191        TRACE("finish loading");
    11921192
    11931193        Vector3 scale = volPtr->getPhysicalScaling();
     
    12121212            nBytes -= 5;
    12131213        }
    1214         TRACE("DX loading...\n");
     1214        TRACE("DX loading...");
    12151215        std::stringstream fdata;
    12161216        fdata.write(bytes, nBytes);
    12171217        if (nBytes <= 0) {
    1218             ERROR("data buffer is empty\n");
     1218            ERROR("data buffer is empty");
    12191219            abort();
    12201220        }
     
    15021502        return TCL_ERROR;
    15031503    }
    1504     TRACE("set opacity %f\n", opacity);
     1504    TRACE("set opacity %f", opacity);
    15051505    std::vector<Volume *> ivol;
    15061506    if (GetVolumes(interp, objc - 4, objv + 4, &ivol) != TCL_OK) {
     
    15761576    std::vector<Volume *>::iterator iter;
    15771577    for (iter = ivol.begin(); iter != ivol.end(); iter++) {
    1578         TRACE("setting %s with transfer function %s\n", (*iter)->name(),
     1578        TRACE("setting %s with transfer function %s", (*iter)->name(),
    15791579               tfPtr->name());
    15801580        (*iter)->transferFunction(tfPtr);
     
    17291729        hmPtr = (HeightMap *)Tcl_GetHashValue(hPtr);
    17301730    }
    1731     TRACE("Number of heightmaps=%d\n", NanoVis::heightmapTable.numEntries);
     1731    TRACE("Number of heightmaps=%d", NanoVis::heightmapTable.numEntries);
    17321732    // Must set units before the heights.
    17331733    hmPtr->xAxis.units(data.xUnits());
     
    18811881    Tcl_SetStringObj(Tcl_GetObjResult(interp), tag, -1);;
    18821882    NanoVis::eventuallyRedraw();
    1883     TRACE("Number of heightmaps=%d\n", NanoVis::heightmapTable.numEntries);
     1883    TRACE("Number of heightmaps=%d", NanoVis::heightmapTable.numEntries);
    18841884    return TCL_OK;
    18851885}
     
    21422142           Tcl_Obj *const *objv)
    21432143{
    2144     TRACE("load plane for 2D visualization command\n");
     2144    TRACE("load plane for 2D visualization command");
    21452145
    21462146    int index, w, h;
     
    21872187            Tcl_Obj *const *objv)
    21882188{
    2189     TRACE("link the plane to the 2D renderer command\n");
     2189    TRACE("link the plane to the 2D renderer command");
    21902190
    21912191    int plane_index;
     
    22142214              Tcl_Obj *const *objv)
    22152215{
    2216     TRACE("enable a plane so the 2D renderer can render it command\n");
     2216    TRACE("enable a plane so the 2D renderer can render it command");
    22172217
    22182218    if (objc != 3) {
     
    23402340    // create a default transfer function
    23412341    if (Tcl_Eval(interp, def_transfunc) != TCL_OK) {
    2342         WARN("bad default transfer function\n%s\n",
     2342        WARN("bad default transfer function:\n%s",
    23432343             Tcl_GetStringResult(interp));
    23442344    }
Note: See TracChangeset for help on using the changeset viewer.