Changeset 4510 for branches/1.3/packages
- Timestamp:
- Jul 16, 2014, 2:11:08 PM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/packages/vizservers/vtkvis/CmdProc.cpp
r3712 r4510 11 11 #include "CmdProc.h" 12 12 13 using namespace Rappture;13 using namespace VtkVis; 14 14 15 15 /** … … 116 116 */ 117 117 Tcl_ObjCmdProc * 118 Rappture::GetOpFromObj(Tcl_Interp *interp, /* Interpreter to report errors to */119 120 121 118 VtkVis::GetOpFromObj(Tcl_Interp *interp, /* Interpreter to report errors to */ 119 int nSpecs, /* Number of specifications in array */ 120 CmdSpec *specs, /* Op specification array */ 121 int operPos, /* Position of operation in argument 122 122 * list. */ 123 int objc,/* Number of arguments in the argument123 int objc, /* Number of arguments in the argument 124 124 * vector. This includes any prefixed 125 125 * arguments */ 126 127 126 Tcl_Obj *const *objv, /* Argument vector */ 127 int flags) 128 128 { 129 129 CmdSpec *specPtr; -
branches/1.3/packages/vizservers/vtkvis/CmdProc.h
r3615 r4510 6 6 */ 7 7 8 #ifndef RAPPTURE_CMDPROC_H9 #define RAPPTURE_CMDPROC_H8 #ifndef VTKVIS_CMDPROC_H 9 #define VTKVIS_CMDPROC_H 10 10 11 11 #include <tcl.h> 12 12 13 namespace Rappture{13 namespace VtkVis { 14 14 15 15 /** … … 43 43 CmdSpec *specs, int operPos, int objc, Tcl_Obj *const *objv, int flags); 44 44 45 #define NumCmdSpecs(s) (sizeof(s) / sizeof( Rappture::CmdSpec))45 #define NumCmdSpecs(s) (sizeof(s) / sizeof(VtkVis::CmdSpec)) 46 46 47 47 } -
branches/1.3/packages/vizservers/vtkvis/RendererCmd.cpp
r4498 r4510 330 330 } 331 331 332 static Rappture::CmdSpec arcOps[] = {332 static CmdSpec arcOps[] = { 333 333 {"add", 1, ArcAddOp, 13, 13, "centerX centerY centerZ startX startY startZ normX normY normZ angle name"}, 334 334 {"color", 1, ArcColorOp, 5, 6, "r g b ?name?"}, … … 352 352 Tcl_ObjCmdProc *proc; 353 353 354 proc = Rappture::GetOpFromObj(interp, nArcOps, arcOps,355 Rappture::CMDSPEC_ARG1, objc, objv, 0);354 proc = GetOpFromObj(interp, nArcOps, arcOps, 355 CMDSPEC_ARG1, objc, objv, 0); 356 356 if (proc == NULL) { 357 357 return TCL_ERROR; … … 709 709 } 710 710 711 static Rappture::CmdSpec arrowOps[] = {711 static CmdSpec arrowOps[] = { 712 712 {"add", 1, ArrowAddOp, 6, 6, "tipRadius shaftRadius tipLength name"}, 713 713 {"color", 2, ArrowColorOp, 5, 6, "r g b ?name?"}, … … 738 738 Tcl_ObjCmdProc *proc; 739 739 740 proc = Rappture::GetOpFromObj(interp, nArrowOps, arrowOps,741 Rappture::CMDSPEC_ARG1, objc, objv, 0);740 proc = GetOpFromObj(interp, nArrowOps, arrowOps, 741 CMDSPEC_ARG1, objc, objv, 0); 742 742 if (proc == NULL) { 743 743 return TCL_ERROR; … … 1652 1652 } 1653 1653 1654 static Rappture::CmdSpec axisOps[] = {1654 static CmdSpec axisOps[] = { 1655 1655 {"autobounds", 5, AxisAutoBoundsOp, 4, 4, "axis bool"}, 1656 1656 {"autorange", 5, AxisAutoRangeOp, 4, 4, "axis bool"}, … … 1696 1696 Tcl_ObjCmdProc *proc; 1697 1697 1698 proc = Rappture::GetOpFromObj(interp, nAxisOps, axisOps,1699 Rappture::CMDSPEC_ARG1, objc, objv, 0);1698 proc = GetOpFromObj(interp, nAxisOps, axisOps, 1699 CMDSPEC_ARG1, objc, objv, 0); 1700 1700 if (proc == NULL) { 1701 1701 return TCL_ERROR; … … 2035 2035 } 2036 2036 2037 static Rappture::CmdSpec boxOps[] = {2037 static CmdSpec boxOps[] = { 2038 2038 {"add", 1, BoxAddOp, 6, 6, "xLen yLen zLen name"}, 2039 2039 {"color", 2, BoxColorOp, 5, 6, "r g b ?name?"}, … … 2063 2063 Tcl_ObjCmdProc *proc; 2064 2064 2065 proc = Rappture::GetOpFromObj(interp, nBoxOps, boxOps,2066 Rappture::CMDSPEC_ARG1, objc, objv, 0);2065 proc = GetOpFromObj(interp, nBoxOps, boxOps, 2066 CMDSPEC_ARG1, objc, objv, 0); 2067 2067 if (proc == NULL) { 2068 2068 return TCL_ERROR; … … 2282 2282 } 2283 2283 2284 static Rappture::CmdSpec cameraOps[] = {2284 static CmdSpec cameraOps[] = { 2285 2285 {"aspect", 1, CameraAspectOp, 3, 3, "aspect"}, 2286 2286 {"get", 1, CameraGetOp, 2, 2, ""}, … … 2302 2302 Tcl_ObjCmdProc *proc; 2303 2303 2304 proc = Rappture::GetOpFromObj(interp, nCameraOps, cameraOps,2305 Rappture::CMDSPEC_ARG1, objc, objv, 0);2304 proc = GetOpFromObj(interp, nCameraOps, cameraOps, 2305 CMDSPEC_ARG1, objc, objv, 0); 2306 2306 if (proc == NULL) { 2307 2307 return TCL_ERROR; … … 2507 2507 } 2508 2508 2509 static Rappture::CmdSpec colorMapOps[] = {2509 static CmdSpec colorMapOps[] = { 2510 2510 {"add", 1, ColorMapAddOp, 5, 5, "colorMapName colormap alphamap"}, 2511 2511 {"define", 3, ColorMapAddOp, 5, 5, "colorMapName colormap alphamap"}, … … 2521 2521 Tcl_ObjCmdProc *proc; 2522 2522 2523 proc = Rappture::GetOpFromObj(interp, nColorMapOps, colorMapOps,2524 Rappture::CMDSPEC_ARG1, objc, objv, 0);2523 proc = GetOpFromObj(interp, nColorMapOps, colorMapOps, 2524 CMDSPEC_ARG1, objc, objv, 0); 2525 2525 if (proc == NULL) { 2526 2526 return TCL_ERROR; … … 2878 2878 } 2879 2879 2880 static Rappture::CmdSpec coneOps[] = {2880 static CmdSpec coneOps[] = { 2881 2881 {"add", 1, ConeAddOp, 6, 6, "radius height cap name"}, 2882 2882 {"color", 2, ConeColorOp, 5, 6, "r g b ?name?"}, … … 2907 2907 Tcl_ObjCmdProc *proc; 2908 2908 2909 proc = Rappture::GetOpFromObj(interp, nConeOps, coneOps,2910 Rappture::CMDSPEC_ARG1, objc, objv, 0);2909 proc = GetOpFromObj(interp, nConeOps, coneOps, 2910 CMDSPEC_ARG1, objc, objv, 0); 2911 2911 if (proc == NULL) { 2912 2912 return TCL_ERROR; … … 2974 2974 } 2975 2975 2976 static Rappture::CmdSpec contour2dAddOps[] = {2976 static CmdSpec contour2dAddOps[] = { 2977 2977 {"contourlist", 1, Contour2DAddContourListOp, 4, 5, "contourList ?dataSetName?"}, 2978 2978 {"numcontours", 1, Contour2DAddNumContoursOp, 4, 5, "numContours ?dataSetName?"} … … 2986 2986 Tcl_ObjCmdProc *proc; 2987 2987 2988 proc = Rappture::GetOpFromObj(interp, nContour2dAddOps, contour2dAddOps,2989 Rappture::CMDSPEC_ARG2, objc, objv, 0);2988 proc = GetOpFromObj(interp, nContour2dAddOps, contour2dAddOps, 2989 CMDSPEC_ARG2, objc, objv, 0); 2990 2990 if (proc == NULL) { 2991 2991 return TCL_ERROR; … … 3252 3252 } 3253 3253 3254 static Rappture::CmdSpec contour2dOps[] = {3254 static CmdSpec contour2dOps[] = { 3255 3255 {"add", 1, Contour2DAddOp, 4, 5, "oper value ?dataSetName?"}, 3256 3256 {"ccolor", 2, Contour2DLineColorOp, 5, 6, "r g b ?dataSetName?"}, … … 3278 3278 Tcl_ObjCmdProc *proc; 3279 3279 3280 proc = Rappture::GetOpFromObj(interp, nContour2dOps, contour2dOps,3281 Rappture::CMDSPEC_ARG1, objc, objv, 0);3280 proc = GetOpFromObj(interp, nContour2dOps, contour2dOps, 3281 CMDSPEC_ARG1, objc, objv, 0); 3282 3282 if (proc == NULL) { 3283 3283 return TCL_ERROR; … … 3345 3345 } 3346 3346 3347 static Rappture::CmdSpec contour3dAddOps[] = {3347 static CmdSpec contour3dAddOps[] = { 3348 3348 {"contourlist", 1, Contour3DAddContourListOp, 4, 5, "contourList ?dataSetName?"}, 3349 3349 {"numcontours", 1, Contour3DAddNumContoursOp, 4, 5, "numContours ?dataSetName?"} … … 3357 3357 Tcl_ObjCmdProc *proc; 3358 3358 3359 proc = Rappture::GetOpFromObj(interp, nContour3dAddOps, contour3dAddOps,3360 Rappture::CMDSPEC_ARG2, objc, objv, 0);3359 proc = GetOpFromObj(interp, nContour3dAddOps, contour3dAddOps, 3360 CMDSPEC_ARG2, objc, objv, 0); 3361 3361 if (proc == NULL) { 3362 3362 return TCL_ERROR; … … 3689 3689 } 3690 3690 3691 static Rappture::CmdSpec contour3dOps[] = {3691 static CmdSpec contour3dOps[] = { 3692 3692 {"add", 1, Contour3DAddOp, 4, 5, "oper value ?dataSetName?"}, 3693 3693 {"ccolor", 2, Contour3DColorOp, 5, 6, "r g b ?dataSetName?"}, … … 3718 3718 Tcl_ObjCmdProc *proc; 3719 3719 3720 proc = Rappture::GetOpFromObj(interp, nContour3dOps, contour3dOps,3721 Rappture::CMDSPEC_ARG1, objc, objv, 0);3720 proc = GetOpFromObj(interp, nContour3dOps, contour3dOps, 3721 CMDSPEC_ARG1, objc, objv, 0); 3722 3722 if (proc == NULL) { 3723 3723 return TCL_ERROR; … … 4122 4122 } 4123 4123 4124 static Rappture::CmdSpec cutplaneOps[] = {4124 static CmdSpec cutplaneOps[] = { 4125 4125 {"add", 2, CutplaneAddOp, 2, 3, "oper value ?dataSetName?"}, 4126 4126 {"axis", 2, CutplaneSliceVisibilityOp, 4, 5, "axis bool ?dataSetName?"}, … … 4153 4153 Tcl_ObjCmdProc *proc; 4154 4154 4155 proc = Rappture::GetOpFromObj(interp, nCutplaneOps, cutplaneOps,4156 Rappture::CMDSPEC_ARG1, objc, objv, 0);4155 proc = GetOpFromObj(interp, nCutplaneOps, cutplaneOps, 4156 CMDSPEC_ARG1, objc, objv, 0); 4157 4157 if (proc == NULL) { 4158 4158 return TCL_ERROR; … … 4510 4510 } 4511 4511 4512 static Rappture::CmdSpec cylinderOps[] = {4512 static CmdSpec cylinderOps[] = { 4513 4513 {"add", 1, CylinderAddOp, 6, 6, "radius height cap name"}, 4514 4514 {"color", 2, CylinderColorOp, 5, 6, "r g b ?name?"}, … … 4539 4539 Tcl_ObjCmdProc *proc; 4540 4540 4541 proc = Rappture::GetOpFromObj(interp, nCylinderOps, cylinderOps,4542 Rappture::CMDSPEC_ARG1, objc, objv, 0);4541 proc = GetOpFromObj(interp, nCylinderOps, cylinderOps, 4542 CMDSPEC_ARG1, objc, objv, 0); 4543 4543 if (proc == NULL) { 4544 4544 return TCL_ERROR; … … 4715 4715 } 4716 4716 4717 static Rappture::CmdSpec dataSetGetScalarOps[] = {4717 static CmdSpec dataSetGetScalarOps[] = { 4718 4718 {"pixel", 1, DataSetGetScalarPixelOp, 6, 6, "x y dataSetName"}, 4719 4719 {"world", 1, DataSetGetScalarWorldOp, 7, 7, "x y z dataSetName"} … … 4727 4727 Tcl_ObjCmdProc *proc; 4728 4728 4729 proc = Rappture::GetOpFromObj(interp, nDataSetGetScalarOps, dataSetGetScalarOps,4730 Rappture::CMDSPEC_ARG2, objc, objv, 0);4729 proc = GetOpFromObj(interp, nDataSetGetScalarOps, dataSetGetScalarOps, 4730 CMDSPEC_ARG2, objc, objv, 0); 4731 4731 if (proc == NULL) { 4732 4732 return TCL_ERROR; … … 4805 4805 } 4806 4806 4807 static Rappture::CmdSpec dataSetGetVectorOps[] = {4807 static CmdSpec dataSetGetVectorOps[] = { 4808 4808 {"pixel", 1, DataSetGetVectorPixelOp, 6, 6, "x y dataSetName"}, 4809 4809 {"world", 1, DataSetGetVectorWorldOp, 7, 7, "x y z dataSetName"} … … 4817 4817 Tcl_ObjCmdProc *proc; 4818 4818 4819 proc = Rappture::GetOpFromObj(interp, nDataSetGetVectorOps, dataSetGetVectorOps,4820 Rappture::CMDSPEC_ARG2, objc, objv, 0);4819 proc = GetOpFromObj(interp, nDataSetGetVectorOps, dataSetGetVectorOps, 4820 CMDSPEC_ARG2, objc, objv, 0); 4821 4821 if (proc == NULL) { 4822 4822 return TCL_ERROR; … … 4950 4950 } 4951 4951 4952 static Rappture::CmdSpec dataSetOps[] = {4952 static CmdSpec dataSetOps[] = { 4953 4953 {"add", 1, DataSetAddOp, 6, 6, "name data follows nBytes"}, 4954 4954 {"delete", 1, DataSetDeleteOp, 2, 3, "?name?"}, … … 4970 4970 Tcl_ObjCmdProc *proc; 4971 4971 4972 proc = Rappture::GetOpFromObj(interp, nDataSetOps, dataSetOps,4973 Rappture::CMDSPEC_ARG1, objc, objv, 0);4972 proc = GetOpFromObj(interp, nDataSetOps, dataSetOps, 4973 CMDSPEC_ARG1, objc, objv, 0); 4974 4974 if (proc == NULL) { 4975 4975 return TCL_ERROR; … … 5326 5326 } 5327 5327 5328 static Rappture::CmdSpec diskOps[] = {5328 static CmdSpec diskOps[] = { 5329 5329 {"add", 1, DiskAddOp, 5, 5, "innerRadius outerRadius name"}, 5330 5330 {"color", 2, DiskColorOp, 5, 6, "r g b ?name?"}, … … 5355 5355 Tcl_ObjCmdProc *proc; 5356 5356 5357 proc = Rappture::GetOpFromObj(interp, nDiskOps, diskOps,5358 Rappture::CMDSPEC_ARG1, objc, objv, 0);5357 proc = GetOpFromObj(interp, nDiskOps, diskOps, 5358 CMDSPEC_ARG1, objc, objv, 0); 5359 5359 if (proc == NULL) { 5360 5360 return TCL_ERROR; … … 5865 5865 } 5866 5866 5867 static Rappture::CmdSpec glyphsOps[] = {5867 static CmdSpec glyphsOps[] = { 5868 5868 {"add", 1, GlyphsAddOp, 3, 4, "shape ?dataSetName?"}, 5869 5869 {"ccolor", 2, GlyphsColorOp, 5, 6, "r g b ?dataSetName?"}, … … 5899 5899 Tcl_ObjCmdProc *proc; 5900 5900 5901 proc = Rappture::GetOpFromObj(interp, nGlyphsOps, glyphsOps,5902 Rappture::CMDSPEC_ARG1, objc, objv, 0);5901 proc = GetOpFromObj(interp, nGlyphsOps, glyphsOps, 5902 CMDSPEC_ARG1, objc, objv, 0); 5903 5903 if (proc == NULL) { 5904 5904 return TCL_ERROR; … … 6057 6057 } 6058 6058 6059 static Rappture::CmdSpec groupOps[] = {6059 static CmdSpec groupOps[] = { 6060 6060 {"add", 1, GroupAddOp, 4, 4, "nodeList groupName"}, 6061 6061 {"delete", 1, GroupDeleteOp, 2, 3, "?name?"}, … … 6075 6075 Tcl_ObjCmdProc *proc; 6076 6076 6077 proc = Rappture::GetOpFromObj(interp, nGroupOps, groupOps,6078 Rappture::CMDSPEC_ARG1, objc, objv, 0);6077 proc = GetOpFromObj(interp, nGroupOps, groupOps, 6078 CMDSPEC_ARG1, objc, objv, 0); 6079 6079 if (proc == NULL) { 6080 6080 return TCL_ERROR; … … 6151 6151 } 6152 6152 6153 static Rappture::CmdSpec heightmapAddOps[] = {6153 static CmdSpec heightmapAddOps[] = { 6154 6154 {"contourlist", 1, HeightMapAddContourListOp, 5, 6, "contourList heightscale ?dataSetName?"}, 6155 6155 {"numcontours", 1, HeightMapAddNumContoursOp, 5, 6, "numContours heightscale ?dataSetName?"} … … 6163 6163 Tcl_ObjCmdProc *proc; 6164 6164 6165 proc = Rappture::GetOpFromObj(interp, nHeightmapAddOps, heightmapAddOps,6166 Rappture::CMDSPEC_ARG2, objc, objv, 0);6165 proc = GetOpFromObj(interp, nHeightmapAddOps, heightmapAddOps, 6166 CMDSPEC_ARG2, objc, objv, 0); 6167 6167 if (proc == NULL) { 6168 6168 return TCL_ERROR; … … 6750 6750 } 6751 6751 6752 static Rappture::CmdSpec heightmapOps[] = {6752 static CmdSpec heightmapOps[] = { 6753 6753 {"add", 2, HeightMapAddOp, 5, 6, "oper value heightscale ?dataSetName?"}, 6754 6754 {"aspect", 2, HeightMapAspectOp, 3, 4, "aspect ?dataSetName?"}, … … 6789 6789 Tcl_ObjCmdProc *proc; 6790 6790 6791 proc = Rappture::GetOpFromObj(interp, nHeightmapOps, heightmapOps,6792 Rappture::CMDSPEC_ARG1, objc, objv, 0);6791 proc = GetOpFromObj(interp, nHeightmapOps, heightmapOps, 6792 CMDSPEC_ARG1, objc, objv, 0); 6793 6793 if (proc == NULL) { 6794 6794 return TCL_ERROR; … … 7078 7078 } 7079 7079 7080 static Rappture::CmdSpec imageOps[] = {7080 static CmdSpec imageOps[] = { 7081 7081 {"add", 1, ImageAddOp, 2, 3, "?dataSetName?"}, 7082 7082 {"backing", 2, ImageBackingOp, 3, 4, "bool ?dataSetName?"}, … … 7104 7104 Tcl_ObjCmdProc *proc; 7105 7105 7106 proc = Rappture::GetOpFromObj(interp, nImageOps, imageOps,7107 Rappture::CMDSPEC_ARG1, objc, objv, 0);7106 proc = GetOpFromObj(interp, nImageOps, imageOps, 7107 CMDSPEC_ARG1, objc, objv, 0); 7108 7108 if (proc == NULL) { 7109 7109 return TCL_ERROR; … … 7538 7538 } 7539 7539 7540 static Rappture::CmdSpec licOps[] = {7540 static CmdSpec licOps[] = { 7541 7541 {"add", 1, LICAddOp, 2, 3, "?dataSetName?"}, 7542 7542 {"colormap", 1, LICColorMapOp, 3, 4, "colorMapName ?dataSetName?"}, … … 7562 7562 Tcl_ObjCmdProc *proc; 7563 7563 7564 proc = Rappture::GetOpFromObj(interp, nLICOps, licOps,7565 Rappture::CMDSPEC_ARG1, objc, objv, 0);7564 proc = GetOpFromObj(interp, nLICOps, licOps, 7565 CMDSPEC_ARG1, objc, objv, 0); 7566 7566 if (proc == NULL) { 7567 7567 return TCL_ERROR; … … 7759 7759 } 7760 7760 7761 static Rappture::CmdSpec lineOps[] = {7761 static CmdSpec lineOps[] = { 7762 7762 {"add", 1, LineAddOp, 4, 4, "points name"}, 7763 7763 {"color", 1, LineColorOp, 5, 6, "r g b ?name?"}, … … 7780 7780 Tcl_ObjCmdProc *proc; 7781 7781 7782 proc = Rappture::GetOpFromObj(interp, nLineOps, lineOps,7783 Rappture::CMDSPEC_ARG1, objc, objv, 0);7782 proc = GetOpFromObj(interp, nLineOps, lineOps, 7783 CMDSPEC_ARG1, objc, objv, 0); 7784 7784 if (proc == NULL) { 7785 7785 return TCL_ERROR; … … 8329 8329 } 8330 8330 8331 static Rappture::CmdSpec moleculeOps[] = {8331 static CmdSpec moleculeOps[] = { 8332 8332 {"add", 2, MoleculeAddOp, 2, 3, "?dataSetName?"}, 8333 8333 {"aquality", 2, MoleculeAtomQualityOp, 3, 4, "value ?dataSetName?"}, … … 8368 8368 Tcl_ObjCmdProc *proc; 8369 8369 8370 proc = Rappture::GetOpFromObj(interp, nMoleculeOps, moleculeOps,8371 Rappture::CMDSPEC_ARG1, objc, objv, 0);8370 proc = GetOpFromObj(interp, nMoleculeOps, moleculeOps, 8371 CMDSPEC_ARG1, objc, objv, 0); 8372 8372 if (proc == NULL) { 8373 8373 return TCL_ERROR; … … 8536 8536 } 8537 8537 8538 static Rappture::CmdSpec outlineOps[] = {8538 static CmdSpec outlineOps[] = { 8539 8539 {"add", 1, OutlineAddOp, 2, 3, "?dataSetName?"}, 8540 8540 {"color", 1, OutlineColorOp, 5, 6, "r g b ?dataSetName?"}, … … 8556 8556 Tcl_ObjCmdProc *proc; 8557 8557 8558 proc = Rappture::GetOpFromObj(interp, nOutlineOps, outlineOps,8559 Rappture::CMDSPEC_ARG1, objc, objv, 0);8558 proc = GetOpFromObj(interp, nOutlineOps, outlineOps, 8559 CMDSPEC_ARG1, objc, objv, 0); 8560 8560 if (proc == NULL) { 8561 8561 return TCL_ERROR; … … 8901 8901 } 8902 8902 8903 static Rappture::CmdSpec parallelepipedOps[] = {8903 static CmdSpec parallelepipedOps[] = { 8904 8904 {"add", 1, ParallelepipedAddOp, 12, 12, "v0x v0y v0z v1x v1y v1z v2x v2y v2z name"}, 8905 8905 {"color", 2, ParallelepipedColorOp, 5, 6, "r g b ?name?"}, … … 8929 8929 Tcl_ObjCmdProc *proc; 8930 8930 8931 proc = Rappture::GetOpFromObj(interp, nParallelepipedOps, parallelepipedOps,8932 Rappture::CMDSPEC_ARG1, objc, objv, 0);8931 proc = GetOpFromObj(interp, nParallelepipedOps, parallelepipedOps, 8932 CMDSPEC_ARG1, objc, objv, 0); 8933 8933 if (proc == NULL) { 8934 8934 return TCL_ERROR; … … 9362 9362 } 9363 9363 9364 static Rappture::CmdSpec polyDataOps[] = {9364 static CmdSpec polyDataOps[] = { 9365 9365 {"add", 1, PolyDataAddOp, 2, 3, "?dataSetName?"}, 9366 9366 {"ccolor", 2, PolyDataColorOp, 5, 6, "r g b ?dataSetName?"}, … … 9395 9395 Tcl_ObjCmdProc *proc; 9396 9396 9397 proc = Rappture::GetOpFromObj(interp, nPolyDataOps, polyDataOps,9398 Rappture::CMDSPEC_ARG1, objc, objv, 0);9397 proc = GetOpFromObj(interp, nPolyDataOps, polyDataOps, 9398 CMDSPEC_ARG1, objc, objv, 0); 9399 9399 if (proc == NULL) { 9400 9400 return TCL_ERROR; … … 9740 9740 } 9741 9741 9742 static Rappture::CmdSpec polygonOps[] = {9742 static CmdSpec polygonOps[] = { 9743 9743 {"add", 1, PolygonAddOp, 11, 11, "numSides centerX centerY centerZ normalX normalY normalZ radius name"}, 9744 9744 {"color", 1, PolygonColorOp, 5, 6, "r g b ?name?"}, … … 9768 9768 Tcl_ObjCmdProc *proc; 9769 9769 9770 proc = Rappture::GetOpFromObj(interp, nPolygonOps, polygonOps,9771 Rappture::CMDSPEC_ARG1, objc, objv, 0);9770 proc = GetOpFromObj(interp, nPolygonOps, polygonOps, 9771 CMDSPEC_ARG1, objc, objv, 0); 9772 9772 if (proc == NULL) { 9773 9773 return TCL_ERROR; … … 10118 10118 } 10119 10119 10120 static Rappture::CmdSpec pseudoColorOps[] = {10120 static CmdSpec pseudoColorOps[] = { 10121 10121 {"add", 1, PseudoColorAddOp, 2, 3, "?dataSetName?"}, 10122 10122 {"ccolor", 2, PseudoColorColorOp, 5, 6, "r g b ?dataSetName?"}, … … 10147 10147 Tcl_ObjCmdProc *proc; 10148 10148 10149 proc = Rappture::GetOpFromObj(interp, nPseudoColorOps, pseudoColorOps,10150 Rappture::CMDSPEC_ARG1, objc, objv, 0);10149 proc = GetOpFromObj(interp, nPseudoColorOps, pseudoColorOps, 10150 CMDSPEC_ARG1, objc, objv, 0); 10151 10151 if (proc == NULL) { 10152 10152 return TCL_ERROR; … … 10259 10259 } 10260 10260 10261 static Rappture::CmdSpec rendererOps[] = {10261 static CmdSpec rendererOps[] = { 10262 10262 {"clipplane", 1, RendererClipPlaneOp, 5, 5, "axis ratio direction"}, 10263 10263 {"depthpeel", 1, RendererDepthPeelingOp, 3, 5, "bool ?occlusionRatio maxPeels?"}, … … 10274 10274 Tcl_ObjCmdProc *proc; 10275 10275 10276 proc = Rappture::GetOpFromObj(interp, nRendererOps, rendererOps,10277 Rappture::CMDSPEC_ARG1, objc, objv, 0);10276 proc = GetOpFromObj(interp, nRendererOps, rendererOps, 10277 CMDSPEC_ARG1, objc, objv, 0); 10278 10278 if (proc == NULL) { 10279 10279 return TCL_ERROR; … … 10313 10313 } 10314 10314 10315 static Rappture::CmdSpec screenOps[] = {10315 static CmdSpec screenOps[] = { 10316 10316 {"bgcolor", 1, ScreenBgColorOp, 5, 5, "r g b"}, 10317 10317 {"size", 1, ScreenSizeOp, 4, 4, "width height"} … … 10325 10325 Tcl_ObjCmdProc *proc; 10326 10326 10327 proc = Rappture::GetOpFromObj(interp, nScreenOps, screenOps,10328 Rappture::CMDSPEC_ARG1, objc, objv, 0);10327 proc = GetOpFromObj(interp, nScreenOps, screenOps, 10328 CMDSPEC_ARG1, objc, objv, 0); 10329 10329 if (proc == NULL) { 10330 10330 return TCL_ERROR; … … 10703 10703 } 10704 10704 10705 static Rappture::CmdSpec sphereOps[] = {10705 static CmdSpec sphereOps[] = { 10706 10706 {"add", 1, SphereAddOp, 7, 7, "centerX centerY centerZ radius name"}, 10707 10707 {"color", 2, SphereColorOp, 5, 6, "r g b ?name?"}, … … 10733 10733 Tcl_ObjCmdProc *proc; 10734 10734 10735 proc = Rappture::GetOpFromObj(interp, nSphereOps, sphereOps,10736 Rappture::CMDSPEC_ARG1, objc, objv, 0);10735 proc = GetOpFromObj(interp, nSphereOps, sphereOps, 10736 CMDSPEC_ARG1, objc, objv, 0); 10737 10737 if (proc == NULL) { 10738 10738 return TCL_ERROR; … … 11372 11372 } 11373 11373 11374 static Rappture::CmdSpec streamlinesSeedOps[] = {11374 static CmdSpec streamlinesSeedOps[] = { 11375 11375 {"color", 1, StreamlinesSeedColorOp, 6, 7, "r g b ?dataSetName?"}, 11376 11376 {"disk", 1, StreamlinesSeedDiskOp, 12, 13, "centerX centerY centerZ normalX normalY normalZ radius innerRadius numPoints ?dataSetName?"}, … … 11394 11394 Tcl_ObjCmdProc *proc; 11395 11395 11396 proc = Rappture::GetOpFromObj(interp, nStreamlinesSeedOps, streamlinesSeedOps,11397 Rappture::CMDSPEC_ARG2, objc, objv, 0);11396 proc = GetOpFromObj(interp, nStreamlinesSeedOps, streamlinesSeedOps, 11397 CMDSPEC_ARG2, objc, objv, 0); 11398 11398 if (proc == NULL) { 11399 11399 return TCL_ERROR; … … 11457 11457 } 11458 11458 11459 static Rappture::CmdSpec streamlinesOps[] = {11459 static CmdSpec streamlinesOps[] = { 11460 11460 {"add", 1, StreamlinesAddOp, 2, 3, "?dataSetName?"}, 11461 11461 {"ccolor", 2, StreamlinesColorOp, 5, 6, "r g b ?dataSetName?"}, … … 11488 11488 Tcl_ObjCmdProc *proc; 11489 11489 11490 proc = Rappture::GetOpFromObj(interp, nStreamlinesOps, streamlinesOps,11491 Rappture::CMDSPEC_ARG1, objc, objv, 0);11490 proc = GetOpFromObj(interp, nStreamlinesOps, streamlinesOps, 11491 CMDSPEC_ARG1, objc, objv, 0); 11492 11492 if (proc == NULL) { 11493 11493 return TCL_ERROR; … … 11770 11770 } 11771 11771 11772 static Rappture::CmdSpec text3DOps[] = {11772 static CmdSpec text3DOps[] = { 11773 11773 {"add", 1, Text3DAddOp, 6, 6, "font size text name"}, 11774 11774 {"bold", 1, Text3DBoldOp, 3, 4, "bool ?name?"}, … … 11796 11796 Tcl_ObjCmdProc *proc; 11797 11797 11798 proc = Rappture::GetOpFromObj(interp, nText3DOps, text3DOps,11799 Rappture::CMDSPEC_ARG1, objc, objv, 0);11798 proc = GetOpFromObj(interp, nText3DOps, text3DOps, 11799 CMDSPEC_ARG1, objc, objv, 0); 11800 11800 if (proc == NULL) { 11801 11801 return TCL_ERROR; … … 12060 12060 } 12061 12061 12062 static Rappture::CmdSpec volumeShadingOps[] = {12062 static CmdSpec volumeShadingOps[] = { 12063 12063 {"ambient", 1, VolumeShadingAmbientOp, 4, 5, "coeff ?dataSetName?"}, 12064 12064 {"diffuse", 1, VolumeShadingDiffuseOp, 4, 5, "coeff ?dataSetName?"}, … … 12073 12073 Tcl_ObjCmdProc *proc; 12074 12074 12075 proc = Rappture::GetOpFromObj(interp, nVolumeShadingOps, volumeShadingOps,12076 Rappture::CMDSPEC_ARG2, objc, objv, 0);12075 proc = GetOpFromObj(interp, nVolumeShadingOps, volumeShadingOps, 12076 CMDSPEC_ARG2, objc, objv, 0); 12077 12077 if (proc == NULL) { 12078 12078 return TCL_ERROR; … … 12098 12098 } 12099 12099 12100 static Rappture::CmdSpec volumeOps[] = {12100 static CmdSpec volumeOps[] = { 12101 12101 {"add", 1, VolumeAddOp, 2, 3, "?dataSetName?"}, 12102 12102 {"blendmode", 1, VolumeBlendModeOp, 3, 4, "blendMode ?dataSetName?"}, … … 12120 12120 Tcl_ObjCmdProc *proc; 12121 12121 12122 proc = Rappture::GetOpFromObj(interp, nVolumeOps, volumeOps,12123 Rappture::CMDSPEC_ARG1, objc, objv, 0);12122 proc = GetOpFromObj(interp, nVolumeOps, volumeOps, 12123 CMDSPEC_ARG1, objc, objv, 0); 12124 12124 if (proc == NULL) { 12125 12125 return TCL_ERROR; … … 12485 12485 } 12486 12486 12487 static Rappture::CmdSpec warpOps[] = {12487 static CmdSpec warpOps[] = { 12488 12488 {"add", 1, WarpAddOp, 2, 3, "?dataSetName?"}, 12489 12489 {"ccolor", 2, WarpColorOp, 5, 6, "r g b ?dataSetName?"}, … … 12515 12515 Tcl_ObjCmdProc *proc; 12516 12516 12517 proc = Rappture::GetOpFromObj(interp, nWarpOps, warpOps,12518 Rappture::CMDSPEC_ARG1, objc, objv, 0);12517 proc = GetOpFromObj(interp, nWarpOps, warpOps, 12518 CMDSPEC_ARG1, objc, objv, 0); 12519 12519 if (proc == NULL) { 12520 12520 return TCL_ERROR;
Note: See TracChangeset
for help on using the changeset viewer.