int pvMain(PARAM *p) { int ret; pvSendVersion(p); pvSetCaption(p,"pvs"); pvResize(p,0,1280,1024); //pvScreenHint(p,1024,768); // this may be used to automatically set the zoomfactor ret = 1; pvGetInitialMask(p); if(strcmp(p->initial_mask,"mask1") == 0) ret = 1; while(1) { if(trace) printf("show_mask%d\n", ret); switch(ret) { case 1: pvStatusMessage(p,-1,-1,-1,"mask1"); ret = show_mask1(p); break; default: pvStatusMessage(p,-1,-1,-1,"mask1"); ret = show_mask1(p); break; } } }
int pvMain(PARAM *p) { int ret; pvSetCaption(p,"pvsdemo"); pvResize(p,0,1280,1024); //pvScreenHint(p,1024,768); // this may be used to automatically set the zoom factor ret = 1; pvGetInitialMask(p); printf("pvMain::version=%s\n",p->version); if(strcmp(p->initial_mask,"1") == 0) ret = 1; if(strcmp(p->initial_mask,"2") == 0) ret = 2; if(strcmp(p->initial_mask,"3") == 0) ret = 3; if(strcmp(p->initial_mask,"4") == 0) ret = 4; if(strcmp(p->initial_mask,"periodic") == 0) ret = 5; if(strcmp(p->initial_mask,"vtk") == 0) ret = 6; if(strcmp(p->initial_mask,"qwt") == 0) ret = 7; while(1) { switch(ret) { case 1: pvStatusMessage(p,-1,-1,-1,"Mask1"); ret = show_mask1(p); break; case 2: pvStatusMessage(p,RED,"Mask2"); ret = show_mask2(p); break; case 3: pvStatusMessage(p,GREEN,"Mask3"); ret = show_mask3(p); break; case 4: pvStatusMessage(p,BLUE,"Mask4"); ret = show_mask4(p); break; case 5: pvStatusMessage(p,YELLOW,"Mask periodic"); ret = show_periodic(p); break; case 6: pvStatusMessage(p,CYAN,"Mask vtk"); ret = show_maskvtk(p); break; case 7: pvStatusMessage(p,WHEAT,"Mask qwt"); ret = show_qwt(p); break; default: return 0; } } }
int pvMain(PARAM *p) { int ret; pvSetCaption(p,"RealTimePVB"); pvResize(p,0,1280,1024); //pvScreenHint(p,1024,768); // this may be used to automatically set the zoomfactor ret = 1; pvGetInitialMask(p); if(strcmp(p->initial_mask,"mask1") == 0) ret = 1; while(1) { switch(ret) { case 1: pvStatusMessage(p,-1,-1,-1,"mask1"); ret = show_mask1(p); break; default: return 0; } } }
int pvMain(PARAM *p) { int ret; POPUP_DATA popup_data; memset(&popup_data, 0, sizeof(popup_data)); p->user = &popup_data; pvSetCaption(p,"pvsexample"); pvResize(p,0,1280,1024); //pvScreenHint(p,1024,768); // this may be used to automatically set the zoomfactor ret = 1; pvGetInitialMask(p); if(strcmp(p->initial_mask,"mask1") == 0) { ret = 1; } else if(strncmp(p->initial_mask,"mask10",6) == 0) { getParams(p->initial_mask, &popup_data); ret = 10; } if(trace) printf("initial_mask=%s\n",p->initial_mask); if(trace) printf("url=%s\n",p->url); pvDownloadFile(p,"index.html"); // provide help for the user // you can also download pages linked within index.html pvDownloadFile(p,"page.html"); // provide help for the user // you can also download pages linked within index.html while(1) { switch(ret) { case 11: pvStatusMessage(p,-1,-1,-1,"mask11"); ret = show_mask11(p); break; case 10: pvStatusMessage(p,-1,-1,-1,"mask10"); ret = show_mask10(p); break; case 9: pvStatusMessage(p,-1,-1,-1,"mask9"); ret = show_mask9(p); break; case 8: pvStatusMessage(p,-1,-1,-1,"mask8"); ret = show_mask8(p); break; case 7: pvStatusMessage(p,-1,-1,-1,"mask7"); ret = show_mask7(p); break; case 6: pvStatusMessage(p,-1,-1,-1,"mask6"); ret = show_mask6(p); break; case 5: pvStatusMessage(p,-1,-1,-1,"mask5"); ret = show_mask5(p); break; case 4: pvStatusMessage(p,-1,-1,-1,"mask4"); ret = show_mask4(p); break; case 3: pvStatusMessage(p,-1,-1,-1,"mask3"); ret = show_mask3(p); break; case 2: pvStatusMessage(p,-1,-1,-1,"mask2"); ret = show_mask2(p); break; case 1: pvStatusMessage(p,-1,-1,-1,"mask1"); ret = show_mask1(p); break; default: return 0; } } }