Changeset 3452 for trunk/packages/vizservers/nanovis/Command.cpp
- Timestamp:
- Mar 4, 2013, 8:57:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Command.cpp
r3394 r3452 508 508 } 509 509 Rappture::Outcome err; 510 TRACE("Checking header[%.13s] \n", buf.bytes());510 TRACE("Checking header[%.13s]", buf.bytes()); 511 511 if (strncmp (buf.bytes(), "@@RP-ENC:", 9) == 0) { 512 512 /* There's a header on the buffer, use it to decode the data. */ … … 1064 1064 1065 1065 fraction = ((float)frame_num) / (total - 1); 1066 TRACE("fraction : %f \n", fraction);1066 TRACE("fraction : %f", fraction); 1067 1067 //interpolator->update(((float)frame_num) / (total - 1)); 1068 1068 interpolator->update(fraction); … … 1116 1116 return TCL_ERROR; 1117 1117 } 1118 TRACE("parsing volume data identifier \n");1118 TRACE("parsing volume data identifier"); 1119 1119 Tcl_HashSearch iter; 1120 1120 Tcl_HashEntry *hPtr; … … 1156 1156 Tcl_Obj *const *objv) 1157 1157 { 1158 TRACE("Data Loading \n");1158 TRACE("Data Loading"); 1159 1159 1160 1160 int nbytes; … … 1174 1174 nBytes = buf.size(); 1175 1175 1176 TRACE("Checking header[%.20s] \n", bytes);1176 TRACE("Checking header[%.20s]", bytes); 1177 1177 1178 1178 Volume *volPtr = NULL; 1179 1179 1180 1180 if ((nBytes > 5) && (strncmp(bytes, "<HDR>", 5) == 0)) { 1181 TRACE("ZincBlende stream is in \n");1181 TRACE("ZincBlende stream is in"); 1182 1182 //std::stringstream fdata(std::ios_base::out|std::ios_base::in|std::ios_base::binary); 1183 1183 //fdata.write(buf.bytes(),buf.size()); … … 1189 1189 return TCL_ERROR; 1190 1190 } 1191 TRACE("finish loading \n");1191 TRACE("finish loading"); 1192 1192 1193 1193 Vector3 scale = volPtr->getPhysicalScaling(); … … 1212 1212 nBytes -= 5; 1213 1213 } 1214 TRACE("DX loading... \n");1214 TRACE("DX loading..."); 1215 1215 std::stringstream fdata; 1216 1216 fdata.write(bytes, nBytes); 1217 1217 if (nBytes <= 0) { 1218 ERROR("data buffer is empty \n");1218 ERROR("data buffer is empty"); 1219 1219 abort(); 1220 1220 } … … 1502 1502 return TCL_ERROR; 1503 1503 } 1504 TRACE("set opacity %f \n", opacity);1504 TRACE("set opacity %f", opacity); 1505 1505 std::vector<Volume *> ivol; 1506 1506 if (GetVolumes(interp, objc - 4, objv + 4, &ivol) != TCL_OK) { … … 1576 1576 std::vector<Volume *>::iterator iter; 1577 1577 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(), 1579 1579 tfPtr->name()); 1580 1580 (*iter)->transferFunction(tfPtr); … … 1729 1729 hmPtr = (HeightMap *)Tcl_GetHashValue(hPtr); 1730 1730 } 1731 TRACE("Number of heightmaps=%d \n", NanoVis::heightmapTable.numEntries);1731 TRACE("Number of heightmaps=%d", NanoVis::heightmapTable.numEntries); 1732 1732 // Must set units before the heights. 1733 1733 hmPtr->xAxis.units(data.xUnits()); … … 1881 1881 Tcl_SetStringObj(Tcl_GetObjResult(interp), tag, -1);; 1882 1882 NanoVis::eventuallyRedraw(); 1883 TRACE("Number of heightmaps=%d \n", NanoVis::heightmapTable.numEntries);1883 TRACE("Number of heightmaps=%d", NanoVis::heightmapTable.numEntries); 1884 1884 return TCL_OK; 1885 1885 } … … 2142 2142 Tcl_Obj *const *objv) 2143 2143 { 2144 TRACE("load plane for 2D visualization command \n");2144 TRACE("load plane for 2D visualization command"); 2145 2145 2146 2146 int index, w, h; … … 2187 2187 Tcl_Obj *const *objv) 2188 2188 { 2189 TRACE("link the plane to the 2D renderer command \n");2189 TRACE("link the plane to the 2D renderer command"); 2190 2190 2191 2191 int plane_index; … … 2214 2214 Tcl_Obj *const *objv) 2215 2215 { 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"); 2217 2217 2218 2218 if (objc != 3) { … … 2340 2340 // create a default transfer function 2341 2341 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", 2343 2343 Tcl_GetStringResult(interp)); 2344 2344 }
Note: See TracChangeset
for help on using the changeset viewer.