00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <stdio.h>
00042 #include <string.h>
00043 #include "mensagem.h"
00044 #include "memvirtu.h"
00045 #include "lowparam.h"
00046 #include "lowmacro.h"
00047 #include "lowsolid.h"
00048 #include "mancommd.h"
00049 #include "disdispl.h"
00050
00051 #ifdef __Extended_Version
00052 void MSD_execNameSetCurrentCamera(void)
00053 {
00054 char name1[15];
00055
00056 while (1 != sscanf(restbuf, "%s", name1))
00057 {
00058 printf(MEN_PerguntaNome, NAM_SetCamaraCorrente);
00059 if (!lineins("? "))
00060 {
00061 return;
00062 }
00063 }
00064 MSD_highNameSetCurrentCamera(name1);
00065 }
00066
00067 #endif
00068
00069 int MSD_highNameSetCurrentCamera(char *name)
00070 {
00071 CTYPE *cptr;
00072
00073 if ((cptr = MSD_lowFindCameraByName(name)) == (CTYPE *)NIL)
00074 {
00075 fprintf(stderr, MEN_CamaraNomeNaoEncontrada,
00076 NAM_SetCamaraCorrente, name);
00077 return(FALSE);
00078 }
00079 return(MSD_lowSetCurrentCamera(cptr));
00080 }
00081
00082 #ifdef __Extended_Version
00083 void MSD_execSetCurrentCamera(void)
00084 {
00085 int i1;
00086
00087 while (1 != sscanf(restbuf, "%d", &i1))
00088 {
00089 printf(MEN_PerguntaId, NAM_SetCamaraCorrente);
00090 if (!lineins("? "))
00091 {
00092 return;
00093 }
00094 }
00095 MSD_highSetCurrentCamera(i1);
00096 }
00097
00098 #endif
00099
00100 int MSD_highSetCurrentCamera(Id cn)
00101 {
00102 CTYPE *cptr;
00103
00104 if ((cptr = MSD_getCamera(cn)) == (CTYPE *)NIL)
00105 {
00106 fprintf(stderr, MEN_CamaraIdNaoEncontrada,
00107 NAM_SetCamaraCorrente, cn);
00108 return(FALSE);
00109 }
00110 return(MSD_lowSetCurrentCamera(cptr));
00111 }
00112
00113 int MSD_lowSetCurrentCamera(CTYPE *cptr)
00114 {
00115 camptr = cptr;
00116 return(TRUE);
00117 }