11.07.2015 Views

Download document (10.35 MB) - Escuela Superior de Informática ...

Download document (10.35 MB) - Escuela Superior de Informática ...

Download document (10.35 MB) - Escuela Superior de Informática ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

160 Capítulo D. Código fuente713 fgets (cadaux, 499, ficheroMARCAS);714 longitud = strlen (cadaux);715 while (cadaux[0]!=’0’) {716 fputs (cadaux, ficheroSAVE);717 fgets (cadaux, 499, ficheroMARCAS);718 }719720 /* Se rellenan los valores "interesantes" <strong>de</strong> nuestras listas */721 printf("Guardando poses <strong>de</strong> brazos...\n");722723 for (j=0; jx);731 fprintf (ficheroSAVE, " %i \t %i \t %f\r\n", i*3+1, j, punto3D->y);732 fprintf (ficheroSAVE, " %i \t %i \t %f\r\n", i*3+2, j, punto3D->z);733 }734 }735 }736 fclose (ficheroSAVE);737 printf("Fichero brazos guardado correctamente\n");738 return 0;739740 }741742 /********************************************************************743 * Funcion: showImages744 * Descripcion: Muestra las imágenes en los widgets745 * Entradas: Ninguna.746 * Salidas: Devuelve 1 si error.747 *******************************************************************/748 int showImages(void)749 {750 GtkWidget *hscale_frame;751752 int i;753 int frameactual;754755 DIR *dip;756 struct dirent *dit;757 char name [50]= DIR_IMAGES;758759 char nameImg [50];760761 /* Localizamos los widgets que vamos a usar... */762 hscale_frame = gla<strong>de</strong>_xml_get_widget (gxml, "hscale_frame");763 frameactual = (int) gtk_range_get_value (GTK_RANGE (hscale_frame));764765 if (ficheroMARCAS!=NULL) {766 if (frameactual == 1 && archivoImagenVi<strong>de</strong>o == NULL)767 {768 archivoImagenVi<strong>de</strong>o = strrchr(ficheroAVIAbierto,’/’);769 frameInitialized = 1;770771 archivoImagenVi<strong>de</strong>o[strlen(archivoImagenVi<strong>de</strong>o) - 4] = ’\0’;772

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!