Changeset 1312 for trunk/packages/vizservers/nanovis/Command.cpp
- Timestamp:
- Mar 12, 2009 9:03:18 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Command.cpp
r1311 r1312 1737 1737 std::stringstream fdata; 1738 1738 fdata.write(buf.bytes(),buf.size()); 1739 // load_vector_stream(n, fdata);1739 // load_vector_stream(n, fdata); 1740 1740 load_vector_stream2(n, fdata); 1741 1741 Volume *volPtr = NanoVis::volume[n]; … … 1751 1751 if (volPtr != NULL) { 1752 1752 volPtr->set_n_slice(256-n); 1753 // volPtr->set_n_slice(512-n);1753 // volPtr->set_n_slice(512-n); 1754 1754 volPtr->disable_cutplane(0); 1755 1755 volPtr->disable_cutplane(1); 1756 1757 1756 volPtr->disable_cutplane(2); 1758 1757 … … 1766 1765 volPtr->move(Vector3(dx0, dy0, dz0)); 1767 1766 1768 //1769 volPtr->disable();1770 1767 } 1771 1768 … … 1808 1805 } 1809 1806 1810 const char *fileName = Tcl_GetString(objv[3]); 1807 char fileName[128]; 1808 sprintf(fileName,"/tmp/flow%d.mpeg",getpid()); 1809 1811 1810 1812 1811 Trace("FLOW started\n"); … … 1855 1854 NanoVis::initParticle(); 1856 1855 1857 // send the movie back to the client 1858 // FIXME: find a way to get the data from the movie object as a char* 1856 // FIXME: find a way to get the data from the movie object as a void* 1859 1857 Rappture::Buffer data; 1860 1858 data.load(fileName); … … 1862 1860 sprintf(command,"nv>file -bytes %lu\n",data.size()); 1863 1861 NanoVis::sendDataToClient(command,data.bytes(),data.size()); 1862 if (remove(fileName) != 0) { 1863 fprintf(stderr, "Error deleting flow movie file: %s\n", fileName); 1864 fflush(stderr); 1865 } 1864 1866 1865 1867 return TCL_OK; … … 1877 1879 return TCL_OK; 1878 1880 } 1879 1880 1881 1881 1882 static int … … 1907 1908 static int 1908 1909 FlowSlicePositionOp(ClientData cdata, Tcl_Interp *interp, int objc, 1909 1910 Tcl_Obj *const *objv) 1910 1911 { 1911 1912 int axis; … … 1955 1956 1956 1957 proc = Rappture::GetOpFromObj(interp, nFlowSliceOps, flowSliceOps, 1957 1958 Rappture::CMDSPEC_ARG2, objc, objv, 0); 1958 1959 if (proc == NULL) { 1959 1960 return TCL_ERROR; … … 2068 2069 2069 2070 static Rappture::CmdSpec flowOps[] = { 2070 {"capture", 1, FlowCaptureOp, 4, 4, "frames filename",},2071 {"capture", 1, FlowCaptureOp, 3, 3, "frames",}, 2071 2072 {"data", 1, FlowDataOp, 3, 0, "oper ?args?",}, 2072 2073 {"lic", 1, FlowLicOp, 3, 3, "on|off",},
Note: See TracChangeset
for help on using the changeset viewer.