// tcl wrapper for vtkInfoColision object // #define VTK_STREAMS_FWD_ONLY #include "vtkSystemIncludes.h" #include "vtkInfoColision.h" #include "vtkTclUtil.h" ClientData vtkInfoColisionNewCommand() { vtkInfoColision *temp = vtkInfoColision::New(); return ((ClientData)temp); } int vtkObjectCppCommand(vtkObject *op, Tcl_Interp *interp, int argc, char *argv[]); int VTKTCL_EXPORT vtkInfoColisionCppCommand(vtkInfoColision *op, Tcl_Interp *interp, int argc, char *argv[]); int VTKTCL_EXPORT vtkInfoColisionCommand(ClientData cd, Tcl_Interp *interp, int argc, char *argv[]) { if ((argc == 2)&&(!strcmp("Delete",argv[1]))&& !vtkTclInDelete(interp)) { Tcl_DeleteCommand(interp,argv[0]); return TCL_OK; } return vtkInfoColisionCppCommand((vtkInfoColision *)(((vtkTclCommandArgStruct *)cd)->Pointer),interp, argc, argv); } int VTKTCL_EXPORT vtkInfoColisionCppCommand(vtkInfoColision *op, Tcl_Interp *interp, int argc, char *argv[]) { int tempi; double tempd; static char temps[80]; int error; error = 0; error = error; tempi = 0; tempi = tempi; tempd = 0; tempd = tempd; temps[0] = 0; temps[0] = temps[0]; if (argc < 2) { Tcl_SetResult(interp, (char *) "Could not find requested method.", TCL_VOLATILE); return TCL_ERROR; } if (!interp) { if (!strcmp("DoTypecasting",argv[0])) { if (!strcmp("vtkInfoColision",argv[1])) { argv[2] = (char *)((void *)op); return TCL_OK; } if (vtkObjectCppCommand((vtkObject *)op,interp,argc,argv) == TCL_OK) { return TCL_OK; } } return TCL_ERROR; } if (!strcmp("GetSuperClassName",argv[1])) { Tcl_SetResult(interp,(char *) "vtkObject", TCL_VOLATILE); return TCL_OK; } if ((!strcmp("GetClassName",argv[1]))&&(argc == 2)) { const char *temp20; error = 0; if (!error) { temp20 = (op)->GetClassName(); if (temp20) { Tcl_SetResult(interp, (char*)temp20, TCL_VOLATILE); } else { Tcl_ResetResult(interp); } return TCL_OK; } } if ((!strcmp("IsA",argv[1]))&&(argc == 3)) { char *temp0; int temp20; error = 0; temp0 = argv[2]; if (!error) { temp20 = (op)->IsA(temp0); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("NewInstance",argv[1]))&&(argc == 2)) { vtkInfoColision *temp20; int vtkInfoColisionCommand(ClientData, Tcl_Interp *, int, char *[]); error = 0; if (!error) { temp20 = (op)->NewInstance(); vtkTclGetObjectFromPointer(interp,(void *)temp20,vtkInfoColisionCommand); return TCL_OK; } } if ((!strcmp("SafeDownCast",argv[1]))&&(argc == 3)) { vtkObject *temp0; vtkInfoColision *temp20; int vtkInfoColisionCommand(ClientData, Tcl_Interp *, int, char *[]); error = 0; temp0 = (vtkObject *)(vtkTclGetPointerFromObject(argv[2],(char *) "vtkObject",interp,error)); if (!error) { temp20 = (op)->SafeDownCast(temp0); vtkTclGetObjectFromPointer(interp,(void *)temp20,vtkInfoColisionCommand); return TCL_OK; } } if ((!strcmp("New",argv[1]))&&(argc == 2)) { vtkInfoColision *temp20; int vtkInfoColisionCommand(ClientData, Tcl_Interp *, int, char *[]); error = 0; if (!error) { temp20 = (op)->New(); vtkTclGetObjectFromPointer(interp,(void *)temp20,vtkInfoColisionCommand); return TCL_OK; } } if ((!strcmp("GetClassName",argv[1]))&&(argc == 2)) { const char *temp20; error = 0; if (!error) { temp20 = (op)->GetClassName(); if (temp20) { Tcl_SetResult(interp, (char*)temp20, TCL_VOLATILE); } else { Tcl_ResetResult(interp); } return TCL_OK; } } if ((!strcmp("DeepCopy",argv[1]))&&(argc == 3)) { vtkInfoColision *temp0; error = 0; temp0 = (vtkInfoColision *)(vtkTclGetPointerFromObject(argv[2],(char *) "vtkInfoColision",interp,error)); if (!error) { op->DeepCopy(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("SetnHerramienta",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnHerramienta(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnHerramienta",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnHerramienta(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetnCaja",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnCaja(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnCaja",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnCaja(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetnDeformable",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnDeformable(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnDeformable",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnDeformable(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetnEstatico",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnEstatico(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnEstatico",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnEstatico(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetnVertice",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnVertice(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnVertice",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnVertice(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetnCara",argv[1]))&&(argc == 3)) { int temp0; error = 0; if (Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; temp0 = tempi; if (!error) { op->SetnCara(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetnCara",argv[1]))&&(argc == 2)) { int temp20; error = 0; if (!error) { temp20 = (op)->GetnCara(); char tempResult[1024]; sprintf(tempResult,"%i",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if ((!strcmp("SetRestMovimiento",argv[1]))&&(argc == 5)) { float temp0; float temp1; float temp2; error = 0; if (Tcl_GetDouble(interp,argv[2],&tempd) != TCL_OK) error = 1; temp0 = tempd; if (Tcl_GetDouble(interp,argv[3],&tempd) != TCL_OK) error = 1; temp1 = tempd; if (Tcl_GetDouble(interp,argv[4],&tempd) != TCL_OK) error = 1; temp2 = tempd; if (!error) { op->SetRestMovimiento(temp0,temp1,temp2); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("SetDesplazamiento",argv[1]))&&(argc == 3)) { float temp0; error = 0; if (Tcl_GetDouble(interp,argv[2],&tempd) != TCL_OK) error = 1; temp0 = tempd; if (!error) { op->SetDesplazamiento(temp0); Tcl_ResetResult(interp); return TCL_OK; } } if ((!strcmp("GetDesplazamiento",argv[1]))&&(argc == 2)) { float temp20; error = 0; if (!error) { temp20 = (op)->GetDesplazamiento(); char tempResult[1024]; sprintf(tempResult,"%g",temp20); Tcl_SetResult(interp, tempResult, TCL_VOLATILE); return TCL_OK; } } if (!strcmp("ListInstances",argv[1])) { vtkTclListInstances(interp,(ClientData)vtkInfoColisionCommand); return TCL_OK; } if (!strcmp("ListMethods",argv[1])) { vtkObjectCppCommand(op,interp,argc,argv); Tcl_AppendResult(interp,"Methods from vtkInfoColision:\n",NULL); Tcl_AppendResult(interp," GetSuperClassName\n",NULL); Tcl_AppendResult(interp," GetClassName\n",NULL); Tcl_AppendResult(interp," IsA\t with 1 arg\n",NULL); Tcl_AppendResult(interp," NewInstance\n",NULL); Tcl_AppendResult(interp," SafeDownCast\t with 1 arg\n",NULL); Tcl_AppendResult(interp," New\n",NULL); Tcl_AppendResult(interp," GetClassName\n",NULL); Tcl_AppendResult(interp," DeepCopy\t with 1 arg\n",NULL); Tcl_AppendResult(interp," SetnHerramienta\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnHerramienta\n",NULL); Tcl_AppendResult(interp," SetnCaja\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnCaja\n",NULL); Tcl_AppendResult(interp," SetnDeformable\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnDeformable\n",NULL); Tcl_AppendResult(interp," SetnEstatico\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnEstatico\n",NULL); Tcl_AppendResult(interp," SetnVertice\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnVertice\n",NULL); Tcl_AppendResult(interp," SetnCara\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetnCara\n",NULL); Tcl_AppendResult(interp," SetRestMovimiento\t with 3 args\n",NULL); Tcl_AppendResult(interp," SetDesplazamiento\t with 1 arg\n",NULL); Tcl_AppendResult(interp," GetDesplazamiento\n",NULL); return TCL_OK; } if (vtkObjectCppCommand((vtkObject *)op,interp,argc,argv) == TCL_OK) { return TCL_OK; } if ((argc >= 2)&&(!strstr(interp->result,"Object named:"))) { char temps2[256]; sprintf(temps2,"Object named: %s, could not find requested method: %s\nor the method was called with incorrect arguments.\n",argv[0],argv[1]); Tcl_AppendResult(interp,temps2,NULL); } return TCL_ERROR; }