Changeset 3861 for trunk/packages/vizservers/vtkvis/RendererCmd.cpp
- Timestamp:
- Aug 8, 2013, 3:59:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r3859 r3861 8559 8559 8560 8560 static int 8561 Parallel pipedAddOp(ClientData clientData, Tcl_Interp *interp, int objc,8562 Tcl_Obj *const *objv)8561 ParallelepipedAddOp(ClientData clientData, Tcl_Interp *interp, int objc, 8562 Tcl_Obj *const *objv) 8563 8563 { 8564 8564 double vec1[3], vec2[3], vec3[3]; … … 8575 8575 } 8576 8576 const char *name = Tcl_GetString(objv[11]); 8577 if (!g_renderer->addParallel piped(name, vec1, vec2, vec3)) {8578 Tcl_AppendResult(interp, "Failed to create parallel piped", (char*)NULL);8579 return TCL_ERROR; 8580 } 8581 return TCL_OK; 8582 } 8583 8584 static int 8585 Parallel pipedDeleteOp(ClientData clientData, Tcl_Interp *interp, int objc,8586 Tcl_Obj *const *objv)8577 if (!g_renderer->addParallelepiped(name, vec1, vec2, vec3)) { 8578 Tcl_AppendResult(interp, "Failed to create parallelepiped", (char*)NULL); 8579 return TCL_ERROR; 8580 } 8581 return TCL_OK; 8582 } 8583 8584 static int 8585 ParallelepipedDeleteOp(ClientData clientData, Tcl_Interp *interp, int objc, 8586 Tcl_Obj *const *objv) 8587 8587 { 8588 8588 if (objc == 3) { 8589 8589 const char *name = Tcl_GetString(objv[2]); 8590 g_renderer->deleteGraphicsObject<Parallel piped>(name);8591 } else { 8592 g_renderer->deleteGraphicsObject<Parallel piped>("all");8593 } 8594 return TCL_OK; 8595 } 8596 8597 static int 8598 Parallel pipedColorOp(ClientData clientData, Tcl_Interp *interp, int objc,8599 Tcl_Obj *const *objv)8590 g_renderer->deleteGraphicsObject<Parallelepiped>(name); 8591 } else { 8592 g_renderer->deleteGraphicsObject<Parallelepiped>("all"); 8593 } 8594 return TCL_OK; 8595 } 8596 8597 static int 8598 ParallelepipedColorOp(ClientData clientData, Tcl_Interp *interp, int objc, 8599 Tcl_Obj *const *objv) 8600 8600 { 8601 8601 float color[3]; … … 8607 8607 if (objc == 6) { 8608 8608 const char *name = Tcl_GetString(objv[5]); 8609 g_renderer->setGraphicsObjectColor<Parallel piped>(name, color);8610 } else { 8611 g_renderer->setGraphicsObjectColor<Parallel piped>("all", color);8612 } 8613 return TCL_OK; 8614 } 8615 8616 static int 8617 Parallel pipedCullingOp(ClientData clientData, Tcl_Interp *interp, int objc,8618 Tcl_Obj *const *objv)8609 g_renderer->setGraphicsObjectColor<Parallelepiped>(name, color); 8610 } else { 8611 g_renderer->setGraphicsObjectColor<Parallelepiped>("all", color); 8612 } 8613 return TCL_OK; 8614 } 8615 8616 static int 8617 ParallelepipedCullingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8618 Tcl_Obj *const *objv) 8619 8619 { 8620 8620 bool state; … … 8624 8624 if (objc == 4) { 8625 8625 const char *name = Tcl_GetString(objv[3]); 8626 g_renderer->setGraphicsObjectCulling<Parallel piped>(name, state);8627 } else { 8628 g_renderer->setGraphicsObjectCulling<Parallel piped>("all", state);8629 } 8630 return TCL_OK; 8631 } 8632 8633 static int 8634 Parallel pipedEdgeVisibilityOp(ClientData clientData, Tcl_Interp *interp, int objc,8635 Tcl_Obj *const *objv)8626 g_renderer->setGraphicsObjectCulling<Parallelepiped>(name, state); 8627 } else { 8628 g_renderer->setGraphicsObjectCulling<Parallelepiped>("all", state); 8629 } 8630 return TCL_OK; 8631 } 8632 8633 static int 8634 ParallelepipedEdgeVisibilityOp(ClientData clientData, Tcl_Interp *interp, int objc, 8635 Tcl_Obj *const *objv) 8636 8636 { 8637 8637 bool state; … … 8641 8641 if (objc == 4) { 8642 8642 const char *name = Tcl_GetString(objv[3]); 8643 g_renderer->setGraphicsObjectEdgeVisibility<Parallel piped>(name, state);8644 } else { 8645 g_renderer->setGraphicsObjectEdgeVisibility<Parallel piped>("all", state);8646 } 8647 return TCL_OK; 8648 } 8649 8650 static int 8651 Parallel pipedFlipNormalsOp(ClientData clientData, Tcl_Interp *interp, int objc,8652 Tcl_Obj *const *objv)8643 g_renderer->setGraphicsObjectEdgeVisibility<Parallelepiped>(name, state); 8644 } else { 8645 g_renderer->setGraphicsObjectEdgeVisibility<Parallelepiped>("all", state); 8646 } 8647 return TCL_OK; 8648 } 8649 8650 static int 8651 ParallelepipedFlipNormalsOp(ClientData clientData, Tcl_Interp *interp, int objc, 8652 Tcl_Obj *const *objv) 8653 8653 { 8654 8654 bool state; … … 8658 8658 if (objc == 4) { 8659 8659 const char *name = Tcl_GetString(objv[3]); 8660 g_renderer->setGraphicsObjectFlipNormals<Parallel piped>(name, state);8661 } else { 8662 g_renderer->setGraphicsObjectFlipNormals<Parallel piped>("all", state);8663 } 8664 return TCL_OK; 8665 } 8666 8667 static int 8668 Parallel pipedLightingOp(ClientData clientData, Tcl_Interp *interp, int objc,8669 Tcl_Obj *const *objv)8660 g_renderer->setGraphicsObjectFlipNormals<Parallelepiped>(name, state); 8661 } else { 8662 g_renderer->setGraphicsObjectFlipNormals<Parallelepiped>("all", state); 8663 } 8664 return TCL_OK; 8665 } 8666 8667 static int 8668 ParallelepipedLightingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8669 Tcl_Obj *const *objv) 8670 8670 { 8671 8671 bool state; … … 8675 8675 if (objc == 4) { 8676 8676 const char *name = Tcl_GetString(objv[3]); 8677 g_renderer->setGraphicsObjectLighting<Parallel piped>(name, state);8678 } else { 8679 g_renderer->setGraphicsObjectLighting<Parallel piped>("all", state);8680 } 8681 return TCL_OK; 8682 } 8683 8684 static int 8685 Parallel pipedLineColorOp(ClientData clientData, Tcl_Interp *interp, int objc,8686 Tcl_Obj *const *objv)8677 g_renderer->setGraphicsObjectLighting<Parallelepiped>(name, state); 8678 } else { 8679 g_renderer->setGraphicsObjectLighting<Parallelepiped>("all", state); 8680 } 8681 return TCL_OK; 8682 } 8683 8684 static int 8685 ParallelepipedLineColorOp(ClientData clientData, Tcl_Interp *interp, int objc, 8686 Tcl_Obj *const *objv) 8687 8687 { 8688 8688 float color[3]; … … 8694 8694 if (objc == 6) { 8695 8695 const char *name = Tcl_GetString(objv[5]); 8696 g_renderer->setGraphicsObjectEdgeColor<Parallel piped>(name, color);8697 } else { 8698 g_renderer->setGraphicsObjectEdgeColor<Parallel piped>("all", color);8699 } 8700 return TCL_OK; 8701 } 8702 8703 static int 8704 Parallel pipedLineWidthOp(ClientData clientData, Tcl_Interp *interp, int objc,8705 Tcl_Obj *const *objv)8696 g_renderer->setGraphicsObjectEdgeColor<Parallelepiped>(name, color); 8697 } else { 8698 g_renderer->setGraphicsObjectEdgeColor<Parallelepiped>("all", color); 8699 } 8700 return TCL_OK; 8701 } 8702 8703 static int 8704 ParallelepipedLineWidthOp(ClientData clientData, Tcl_Interp *interp, int objc, 8705 Tcl_Obj *const *objv) 8706 8706 { 8707 8707 float width; … … 8711 8711 if (objc == 4) { 8712 8712 const char *name = Tcl_GetString(objv[3]); 8713 g_renderer->setGraphicsObjectEdgeWidth<Parallel piped>(name, width);8714 } else { 8715 g_renderer->setGraphicsObjectEdgeWidth<Parallel piped>("all", width);8716 } 8717 return TCL_OK; 8718 } 8719 8720 static int 8721 Parallel pipedMaterialOp(ClientData clientData, Tcl_Interp *interp, int objc,8722 Tcl_Obj *const *objv)8713 g_renderer->setGraphicsObjectEdgeWidth<Parallelepiped>(name, width); 8714 } else { 8715 g_renderer->setGraphicsObjectEdgeWidth<Parallelepiped>("all", width); 8716 } 8717 return TCL_OK; 8718 } 8719 8720 static int 8721 ParallelepipedMaterialOp(ClientData clientData, Tcl_Interp *interp, int objc, 8722 Tcl_Obj *const *objv) 8723 8723 { 8724 8724 double ambient, diffuse, specCoeff, specPower; … … 8732 8732 if (objc == 7) { 8733 8733 const char *name = Tcl_GetString(objv[6]); 8734 g_renderer->setGraphicsObjectAmbient<Parallel piped>(name, ambient);8735 g_renderer->setGraphicsObjectDiffuse<Parallel piped>(name, diffuse);8736 g_renderer->setGraphicsObjectSpecular<Parallel piped>(name, specCoeff, specPower);8737 } else { 8738 g_renderer->setGraphicsObjectAmbient<Parallel piped>("all", ambient);8739 g_renderer->setGraphicsObjectDiffuse<Parallel piped>("all", diffuse);8740 g_renderer->setGraphicsObjectSpecular<Parallel piped>("all", specCoeff, specPower);8741 } 8742 return TCL_OK; 8743 } 8744 8745 static int 8746 Parallel pipedOpacityOp(ClientData clientData, Tcl_Interp *interp, int objc,8747 Tcl_Obj *const *objv)8734 g_renderer->setGraphicsObjectAmbient<Parallelepiped>(name, ambient); 8735 g_renderer->setGraphicsObjectDiffuse<Parallelepiped>(name, diffuse); 8736 g_renderer->setGraphicsObjectSpecular<Parallelepiped>(name, specCoeff, specPower); 8737 } else { 8738 g_renderer->setGraphicsObjectAmbient<Parallelepiped>("all", ambient); 8739 g_renderer->setGraphicsObjectDiffuse<Parallelepiped>("all", diffuse); 8740 g_renderer->setGraphicsObjectSpecular<Parallelepiped>("all", specCoeff, specPower); 8741 } 8742 return TCL_OK; 8743 } 8744 8745 static int 8746 ParallelepipedOpacityOp(ClientData clientData, Tcl_Interp *interp, int objc, 8747 Tcl_Obj *const *objv) 8748 8748 { 8749 8749 double opacity; … … 8753 8753 if (objc == 4) { 8754 8754 const char *name = Tcl_GetString(objv[3]); 8755 g_renderer->setGraphicsObjectOpacity<Parallel piped>(name, opacity);8756 } else { 8757 g_renderer->setGraphicsObjectOpacity<Parallel piped>("all", opacity);8758 } 8759 return TCL_OK; 8760 } 8761 8762 static int 8763 Parallel pipedOrientOp(ClientData clientData, Tcl_Interp *interp, int objc,8764 Tcl_Obj *const *objv)8755 g_renderer->setGraphicsObjectOpacity<Parallelepiped>(name, opacity); 8756 } else { 8757 g_renderer->setGraphicsObjectOpacity<Parallelepiped>("all", opacity); 8758 } 8759 return TCL_OK; 8760 } 8761 8762 static int 8763 ParallelepipedOrientOp(ClientData clientData, Tcl_Interp *interp, int objc, 8764 Tcl_Obj *const *objv) 8765 8765 { 8766 8766 double quat[4]; … … 8773 8773 if (objc == 7) { 8774 8774 const char *name = Tcl_GetString(objv[6]); 8775 g_renderer->setGraphicsObjectOrientation<Parallel piped>(name, quat);8776 } else { 8777 g_renderer->setGraphicsObjectOrientation<Parallel piped>("all", quat);8778 } 8779 return TCL_OK; 8780 } 8781 8782 static int 8783 Parallel pipedOriginOp(ClientData clientData, Tcl_Interp *interp, int objc,8784 Tcl_Obj *const *objv)8775 g_renderer->setGraphicsObjectOrientation<Parallelepiped>(name, quat); 8776 } else { 8777 g_renderer->setGraphicsObjectOrientation<Parallelepiped>("all", quat); 8778 } 8779 return TCL_OK; 8780 } 8781 8782 static int 8783 ParallelepipedOriginOp(ClientData clientData, Tcl_Interp *interp, int objc, 8784 Tcl_Obj *const *objv) 8785 8785 { 8786 8786 double origin[3]; … … 8792 8792 if (objc == 6) { 8793 8793 const char *name = Tcl_GetString(objv[5]); 8794 g_renderer->setGraphicsObjectOrigin<Parallel piped>(name, origin);8795 } else { 8796 g_renderer->setGraphicsObjectOrigin<Parallel piped>("all", origin);8797 } 8798 return TCL_OK; 8799 } 8800 8801 static int 8802 Parallel pipedPositionOp(ClientData clientData, Tcl_Interp *interp, int objc,8803 Tcl_Obj *const *objv)8794 g_renderer->setGraphicsObjectOrigin<Parallelepiped>(name, origin); 8795 } else { 8796 g_renderer->setGraphicsObjectOrigin<Parallelepiped>("all", origin); 8797 } 8798 return TCL_OK; 8799 } 8800 8801 static int 8802 ParallelepipedPositionOp(ClientData clientData, Tcl_Interp *interp, int objc, 8803 Tcl_Obj *const *objv) 8804 8804 { 8805 8805 double pos[3]; … … 8811 8811 if (objc == 6) { 8812 8812 const char *name = Tcl_GetString(objv[5]); 8813 g_renderer->setGraphicsObjectPosition<Parallel piped>(name, pos);8814 } else { 8815 g_renderer->setGraphicsObjectPosition<Parallel piped>("all", pos);8816 } 8817 return TCL_OK; 8818 } 8819 8820 static int 8821 Parallel pipedScaleOp(ClientData clientData, Tcl_Interp *interp, int objc,8822 Tcl_Obj *const *objv)8813 g_renderer->setGraphicsObjectPosition<Parallelepiped>(name, pos); 8814 } else { 8815 g_renderer->setGraphicsObjectPosition<Parallelepiped>("all", pos); 8816 } 8817 return TCL_OK; 8818 } 8819 8820 static int 8821 ParallelepipedScaleOp(ClientData clientData, Tcl_Interp *interp, int objc, 8822 Tcl_Obj *const *objv) 8823 8823 { 8824 8824 double scale[3]; … … 8830 8830 if (objc == 6) { 8831 8831 const char *name = Tcl_GetString(objv[5]); 8832 g_renderer->setGraphicsObjectScale<Parallel piped>(name, scale);8833 } else { 8834 g_renderer->setGraphicsObjectScale<Parallel piped>("all", scale);8835 } 8836 return TCL_OK; 8837 } 8838 8839 static int 8840 Parallel pipedShadingOp(ClientData clientData, Tcl_Interp *interp, int objc,8841 Tcl_Obj *const *objv)8832 g_renderer->setGraphicsObjectScale<Parallelepiped>(name, scale); 8833 } else { 8834 g_renderer->setGraphicsObjectScale<Parallelepiped>("all", scale); 8835 } 8836 return TCL_OK; 8837 } 8838 8839 static int 8840 ParallelepipedShadingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8841 Tcl_Obj *const *objv) 8842 8842 { 8843 8843 GraphicsObject::ShadingModel shadeModel; … … 8854 8854 if (objc == 4) { 8855 8855 const char *name = Tcl_GetString(objv[3]); 8856 g_renderer->setGraphicsObjectShadingModel<Parallel piped>(name, shadeModel);8857 } else { 8858 g_renderer->setGraphicsObjectShadingModel<Parallel piped>("all", shadeModel);8859 } 8860 return TCL_OK; 8861 } 8862 8863 static int 8864 Parallel pipedVisibleOp(ClientData clientData, Tcl_Interp *interp, int objc,8865 Tcl_Obj *const *objv)8856 g_renderer->setGraphicsObjectShadingModel<Parallelepiped>(name, shadeModel); 8857 } else { 8858 g_renderer->setGraphicsObjectShadingModel<Parallelepiped>("all", shadeModel); 8859 } 8860 return TCL_OK; 8861 } 8862 8863 static int 8864 ParallelepipedVisibleOp(ClientData clientData, Tcl_Interp *interp, int objc, 8865 Tcl_Obj *const *objv) 8866 8866 { 8867 8867 bool state; … … 8871 8871 if (objc == 4) { 8872 8872 const char *name = Tcl_GetString(objv[3]); 8873 g_renderer->setGraphicsObjectVisibility<Parallel piped>(name, state);8874 } else { 8875 g_renderer->setGraphicsObjectVisibility<Parallel piped>("all", state);8876 } 8877 return TCL_OK; 8878 } 8879 8880 static int 8881 Parallel pipedWireframeOp(ClientData clientData, Tcl_Interp *interp, int objc,8882 Tcl_Obj *const *objv)8873 g_renderer->setGraphicsObjectVisibility<Parallelepiped>(name, state); 8874 } else { 8875 g_renderer->setGraphicsObjectVisibility<Parallelepiped>("all", state); 8876 } 8877 return TCL_OK; 8878 } 8879 8880 static int 8881 ParallelepipedWireframeOp(ClientData clientData, Tcl_Interp *interp, int objc, 8882 Tcl_Obj *const *objv) 8883 8883 { 8884 8884 bool state; … … 8888 8888 if (objc == 4) { 8889 8889 const char *name = Tcl_GetString(objv[3]); 8890 g_renderer->setGraphicsObjectWireframe<Parallel piped>(name, state);8891 } else { 8892 g_renderer->setGraphicsObjectWireframe<Parallel piped>("all", state);8893 } 8894 return TCL_OK; 8895 } 8896 8897 static Rappture::CmdSpec parallel pipedOps[] = {8898 {"add", 1, Parallel pipedAddOp, 12, 12, "v0x v0y v0z v1x v1y v1z v2x v2y v2z name"},8899 {"color", 2, Parallel pipedColorOp, 5, 6, "r g b ?name?"},8900 {"culling", 2, Parallel pipedCullingOp, 3, 4, "bool ?name?"},8901 {"delete", 1, Parallel pipedDeleteOp, 2, 3, "?name?"},8902 {"edges", 1, Parallel pipedEdgeVisibilityOp, 3, 4, "bool ?name?"},8903 {"flipnorms", 1, Parallel pipedFlipNormalsOp, 3, 4, "bool ?name?"},8904 {"lighting", 3, Parallel pipedLightingOp, 3, 4, "bool ?name?"},8905 {"linecolor", 5, Parallel pipedLineColorOp, 5, 6, "r g b ?name?"},8906 {"linewidth", 5, Parallel pipedLineWidthOp, 3, 4, "width ?name?"},8907 {"material", 1, Parallel pipedMaterialOp, 6, 7, "ambientCoeff diffuseCoeff specularCoeff specularPower ?name?"},8908 {"opacity", 2, Parallel pipedOpacityOp, 3, 4, "value ?name?"},8909 {"orient", 4, Parallel pipedOrientOp, 6, 7, "qw qx qy qz ?name?"},8910 {"origin", 4, Parallel pipedOriginOp, 5, 6, "x y z ?name?"},8911 {"pos", 1, Parallel pipedPositionOp, 5, 6, "x y z ?name?"},8912 {"scale", 2, Parallel pipedScaleOp, 5, 6, "sx sy sz ?name?"},8913 {"shading", 2, Parallel pipedShadingOp, 3, 4, "val ?name?"},8914 {"visible", 1, Parallel pipedVisibleOp, 3, 4, "bool ?name?"},8915 {"wireframe", 1, Parallel pipedWireframeOp, 3, 4, "bool ?name?"}8890 g_renderer->setGraphicsObjectWireframe<Parallelepiped>(name, state); 8891 } else { 8892 g_renderer->setGraphicsObjectWireframe<Parallelepiped>("all", state); 8893 } 8894 return TCL_OK; 8895 } 8896 8897 static Rappture::CmdSpec parallelepipedOps[] = { 8898 {"add", 1, ParallelepipedAddOp, 12, 12, "v0x v0y v0z v1x v1y v1z v2x v2y v2z name"}, 8899 {"color", 2, ParallelepipedColorOp, 5, 6, "r g b ?name?"}, 8900 {"culling", 2, ParallelepipedCullingOp, 3, 4, "bool ?name?"}, 8901 {"delete", 1, ParallelepipedDeleteOp, 2, 3, "?name?"}, 8902 {"edges", 1, ParallelepipedEdgeVisibilityOp, 3, 4, "bool ?name?"}, 8903 {"flipnorms", 1, ParallelepipedFlipNormalsOp, 3, 4, "bool ?name?"}, 8904 {"lighting", 3, ParallelepipedLightingOp, 3, 4, "bool ?name?"}, 8905 {"linecolor", 5, ParallelepipedLineColorOp, 5, 6, "r g b ?name?"}, 8906 {"linewidth", 5, ParallelepipedLineWidthOp, 3, 4, "width ?name?"}, 8907 {"material", 1, ParallelepipedMaterialOp, 6, 7, "ambientCoeff diffuseCoeff specularCoeff specularPower ?name?"}, 8908 {"opacity", 2, ParallelepipedOpacityOp, 3, 4, "value ?name?"}, 8909 {"orient", 4, ParallelepipedOrientOp, 6, 7, "qw qx qy qz ?name?"}, 8910 {"origin", 4, ParallelepipedOriginOp, 5, 6, "x y z ?name?"}, 8911 {"pos", 1, ParallelepipedPositionOp, 5, 6, "x y z ?name?"}, 8912 {"scale", 2, ParallelepipedScaleOp, 5, 6, "sx sy sz ?name?"}, 8913 {"shading", 2, ParallelepipedShadingOp, 3, 4, "val ?name?"}, 8914 {"visible", 1, ParallelepipedVisibleOp, 3, 4, "bool ?name?"}, 8915 {"wireframe", 1, ParallelepipedWireframeOp, 3, 4, "bool ?name?"} 8916 8916 }; 8917 static int nParallel pipedOps = NumCmdSpecs(parallelpipedOps);8918 8919 static int 8920 Parallel pipedCmd(ClientData clientData, Tcl_Interp *interp, int objc,8917 static int nParallelepipedOps = NumCmdSpecs(parallelepipedOps); 8918 8919 static int 8920 ParallelepipedCmd(ClientData clientData, Tcl_Interp *interp, int objc, 8921 8921 Tcl_Obj *const *objv) 8922 8922 { 8923 8923 Tcl_ObjCmdProc *proc; 8924 8924 8925 proc = Rappture::GetOpFromObj(interp, nParallel pipedOps, parallelpipedOps,8925 proc = Rappture::GetOpFromObj(interp, nParallelepipedOps, parallelepipedOps, 8926 8926 Rappture::CMDSPEC_ARG1, objc, objv, 0); 8927 8927 if (proc == NULL) { … … 12601 12601 { 12602 12602 Tcl_MakeSafe(interp); 12603 Tcl_CreateObjCommand(interp, "arc", ArcCmd,clientData, NULL);12604 Tcl_CreateObjCommand(interp, "arrow", ArrowCmd,clientData, NULL);12605 Tcl_CreateObjCommand(interp, "axis", AxisCmd,clientData, NULL);12606 Tcl_CreateObjCommand(interp, "box", BoxCmd,clientData, NULL);12607 Tcl_CreateObjCommand(interp, "camera", CameraCmd,clientData, NULL);12608 Tcl_CreateObjCommand(interp, "clientinfo", ClientInfoCmd,clientData, NULL);12609 Tcl_CreateObjCommand(interp, "colormap", ColorMapCmd,clientData, NULL);12610 Tcl_CreateObjCommand(interp, "cone", ConeCmd,clientData, NULL);12611 Tcl_CreateObjCommand(interp, "contour2d", Contour2DCmd,clientData, NULL);12612 Tcl_CreateObjCommand(interp, "contour3d", Contour3DCmd,clientData, NULL);12613 Tcl_CreateObjCommand(interp, "cutplane", CutplaneCmd,clientData, NULL);12614 Tcl_CreateObjCommand(interp, "cylinder", CylinderCmd,clientData, NULL);12615 Tcl_CreateObjCommand(interp, "dataset", DataSetCmd,clientData, NULL);12616 Tcl_CreateObjCommand(interp, "disk", DiskCmd,clientData, NULL);12617 Tcl_CreateObjCommand(interp, "glyphs", GlyphsCmd,clientData, NULL);12618 Tcl_CreateObjCommand(interp, "group", GroupCmd,clientData, NULL);12619 Tcl_CreateObjCommand(interp, "heightmap", HeightMapCmd,clientData, NULL);12620 Tcl_CreateObjCommand(interp, "image", ImageCmd,clientData, NULL);12621 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd,clientData, NULL);12622 Tcl_CreateObjCommand(interp, "legend", LegendCmd,clientData, NULL);12623 Tcl_CreateObjCommand(interp, "legend2", LegendSimpleCmd,clientData, NULL);12624 Tcl_CreateObjCommand(interp, "lic", LICCmd,clientData, NULL);12625 Tcl_CreateObjCommand(interp, "line", LineCmd,clientData, NULL);12626 Tcl_CreateObjCommand(interp, "molecule", MoleculeCmd,clientData, NULL);12627 Tcl_CreateObjCommand(interp, "outline", OutlineCmd,clientData, NULL);12628 Tcl_CreateObjCommand(interp, "parallel piped", ParallelpipedCmd, clientData, NULL);12629 Tcl_CreateObjCommand(interp, "polydata", PolyDataCmd,clientData, NULL);12630 Tcl_CreateObjCommand(interp, "polygon", PolygonCmd,clientData, NULL);12631 Tcl_CreateObjCommand(interp, "pseudocolor", PseudoColorCmd,clientData, NULL);12632 Tcl_CreateObjCommand(interp, "renderer", RendererCmd,clientData, NULL);12633 Tcl_CreateObjCommand(interp, "screen", ScreenCmd,clientData, NULL);12634 Tcl_CreateObjCommand(interp, "sphere", SphereCmd,clientData, NULL);12635 Tcl_CreateObjCommand(interp, "streamlines", StreamlinesCmd,clientData, NULL);12636 Tcl_CreateObjCommand(interp, "text3d", Text3DCmd,clientData, NULL);12637 Tcl_CreateObjCommand(interp, "volume", VolumeCmd,clientData, NULL);12638 Tcl_CreateObjCommand(interp, "warp", WarpCmd,clientData, NULL);12603 Tcl_CreateObjCommand(interp, "arc", ArcCmd, clientData, NULL); 12604 Tcl_CreateObjCommand(interp, "arrow", ArrowCmd, clientData, NULL); 12605 Tcl_CreateObjCommand(interp, "axis", AxisCmd, clientData, NULL); 12606 Tcl_CreateObjCommand(interp, "box", BoxCmd, clientData, NULL); 12607 Tcl_CreateObjCommand(interp, "camera", CameraCmd, clientData, NULL); 12608 Tcl_CreateObjCommand(interp, "clientinfo", ClientInfoCmd, clientData, NULL); 12609 Tcl_CreateObjCommand(interp, "colormap", ColorMapCmd, clientData, NULL); 12610 Tcl_CreateObjCommand(interp, "cone", ConeCmd, clientData, NULL); 12611 Tcl_CreateObjCommand(interp, "contour2d", Contour2DCmd, clientData, NULL); 12612 Tcl_CreateObjCommand(interp, "contour3d", Contour3DCmd, clientData, NULL); 12613 Tcl_CreateObjCommand(interp, "cutplane", CutplaneCmd, clientData, NULL); 12614 Tcl_CreateObjCommand(interp, "cylinder", CylinderCmd, clientData, NULL); 12615 Tcl_CreateObjCommand(interp, "dataset", DataSetCmd, clientData, NULL); 12616 Tcl_CreateObjCommand(interp, "disk", DiskCmd, clientData, NULL); 12617 Tcl_CreateObjCommand(interp, "glyphs", GlyphsCmd, clientData, NULL); 12618 Tcl_CreateObjCommand(interp, "group", GroupCmd, clientData, NULL); 12619 Tcl_CreateObjCommand(interp, "heightmap", HeightMapCmd, clientData, NULL); 12620 Tcl_CreateObjCommand(interp, "image", ImageCmd, clientData, NULL); 12621 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd, clientData, NULL); 12622 Tcl_CreateObjCommand(interp, "legend", LegendCmd, clientData, NULL); 12623 Tcl_CreateObjCommand(interp, "legend2", LegendSimpleCmd, clientData, NULL); 12624 Tcl_CreateObjCommand(interp, "lic", LICCmd, clientData, NULL); 12625 Tcl_CreateObjCommand(interp, "line", LineCmd, clientData, NULL); 12626 Tcl_CreateObjCommand(interp, "molecule", MoleculeCmd, clientData, NULL); 12627 Tcl_CreateObjCommand(interp, "outline", OutlineCmd, clientData, NULL); 12628 Tcl_CreateObjCommand(interp, "parallelepiped", ParallelepipedCmd, clientData, NULL); 12629 Tcl_CreateObjCommand(interp, "polydata", PolyDataCmd, clientData, NULL); 12630 Tcl_CreateObjCommand(interp, "polygon", PolygonCmd, clientData, NULL); 12631 Tcl_CreateObjCommand(interp, "pseudocolor", PseudoColorCmd, clientData, NULL); 12632 Tcl_CreateObjCommand(interp, "renderer", RendererCmd, clientData, NULL); 12633 Tcl_CreateObjCommand(interp, "screen", ScreenCmd, clientData, NULL); 12634 Tcl_CreateObjCommand(interp, "sphere", SphereCmd, clientData, NULL); 12635 Tcl_CreateObjCommand(interp, "streamlines", StreamlinesCmd, clientData, NULL); 12636 Tcl_CreateObjCommand(interp, "text3d", Text3DCmd, clientData, NULL); 12637 Tcl_CreateObjCommand(interp, "volume", VolumeCmd, clientData, NULL); 12638 Tcl_CreateObjCommand(interp, "warp", WarpCmd, clientData, NULL); 12639 12639 } 12640 12640 … … 12669 12669 Tcl_DeleteCommand(interp, "molecule"); 12670 12670 Tcl_DeleteCommand(interp, "outline"); 12671 Tcl_DeleteCommand(interp, "parallel piped");12671 Tcl_DeleteCommand(interp, "parallelepiped"); 12672 12672 Tcl_DeleteCommand(interp, "polydata"); 12673 12673 Tcl_DeleteCommand(interp, "polygon");
Note: See TracChangeset
for help on using the changeset viewer.