Changeset 917 for trunk/vizservers/nanovis/Command.cpp
- Timestamp:
- Mar 4, 2008 4:48:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/Command.cpp
r915 r917 4 4 * Command.cpp 5 5 * 6 * This modules creates the Tcl interface to the nanovis server. 7 * The communication protocol of the server is the Tcl language.8 * Commands given to the server by clients are executed in a9 * safe interpreter and the resulting image rendered offscreen10 * i s returned as BMP-formatted image data.6 * This modules creates the Tcl interface to the nanovis server. The 7 * communication protocol of the server is the Tcl language. Commands 8 * given to the server by clients are executed in a safe interpreter and 9 * the resulting image rendered offscreen is returned as BMP-formatted 10 * image data. 11 11 * 12 12 * ====================================================================== … … 108 108 109 109 // default transfer function 110 static const char def_transfunc[] = "transfunc define default {\n\ 110 static const char def_transfunc[] = 111 "transfunc define default {\n\ 111 112 0.0 1 1 1\n\ 112 113 0.2 1 1 0\n\ … … 137 138 static Tcl_ObjCmdProc CameraCmd; 138 139 static Tcl_ObjCmdProc CutplaneCmd; 140 static Tcl_ObjCmdProc FlowCmd; 139 141 static Tcl_ObjCmdProc GridCmd; 140 142 static Tcl_ObjCmdProc LegendCmd; … … 148 150 static Tcl_ObjCmdProc UpCmd; 149 151 static Tcl_ObjCmdProc VolumeCmd; 150 static Tcl_ObjCmdProc FlowCmd;151 152 static int GetVolumeIndices(Tcl_Interp *interp, int objc, Tcl_Obj *CONST *objv,153 vector<unsigned int>* vectorPtr);154 static int GetVolumes(Tcl_Interp *interp, int objc, Tcl_Obj *CONST *objv,155 vector<Volume *>* vectorPtr);156 static int GetVolumeFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr,157 Volume **volPtrPtr);158 static int GetVolumeIndex(Tcl_Interp *interp, Tcl_Obj *objPtr,159 unsigned int *indexPtr);160 static int GetHeightMap(Tcl_Interp *interp, Tcl_Obj *objPtr, HeightMap **hmPtrPtr);161 static int GetIndices(Tcl_Interp *interp, int objc, Tcl_Obj *CONST *objv,162 vector<unsigned int>* vectorPtr);163 static int GetAxisFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, int *indexPtr);164 static int GetAxisDirFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, int *indexPtr,165 int *dirPtr);166 static int GetColor(Tcl_Interp *interp, int objc, Tcl_Obj *CONST *objv,167 float *rgbPtr);168 static int GetDataStream(Tcl_Interp *interp, Rappture::Buffer &buf,169 int nBytes);170 static HeightMap *CreateHeightMap(ClientData clientData, Tcl_Interp *interp,171 int objc, Tcl_Obj *CONST *objv);172 152 173 153 static int … … 2573 2553 initTcl() 2574 2554 { 2555 /* 2556 * Ideally the connection is authenticated by nanoscale. I still like the 2557 * idea of creating a non-safe master interpreter with a safe slave 2558 * interpreter. Alias all the nanovis commands in the slave. That way we 2559 * can still run Tcl code within nanovis. The eventual goal is to create 2560 * a test harness through the interpreter for nanovis. 2561 */ 2575 2562 interp = Tcl_CreateInterp(); 2576 2563 Tcl_MakeSafe(interp);
Note: See TracChangeset
for help on using the changeset viewer.