Changeset 714 in Sophya for trunk/SophyaPI/PI/Tests/xp3.cc
- Timestamp:
- Feb 4, 2000, 7:39:48 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Tests/xp3.cc
r688 r714 47 47 // First menu 48 48 m[0] = new PIMenu(Menubar(),"Fichier"); 49 m[0]->AppendItem("ShowImageTools", 10101); // Show Image Tools window 50 m[0]->AppendItem("ShowDrawerTools", 10102); // Show drawer Tools (Graphic Att.) window 51 m[0]->AppendItem("PostScript (EPS)", 10105); // Creating eps file from a graphic / image 49 // Show Image Tools window 50 m[0]->AppendItem("ShowImageTools", 10101); 51 // Show drawer Tools (Graphic Att.) window 52 m[0]->AppendItem("ShowDrawerTools", 10102); 53 // Creating eps file from a graphic / image 54 m[0]->AppendItem("PostScript (EPS)", 10105); 52 55 m[0]->AppendItem("Exit", 10150); 53 56 // Appending menu to menu bar … … 56 59 // 2nd Menu 57 60 m[1] = new PIMenu(Menubar(),"Graphics"); 58 m[1]->AppendItem("2-Drawers", 10201); // 2x2D drawer superposition59 m[1]->AppendItem("Surf-3D", 10202); 60 m[1]->AppendItem("Image", 10203); 61 m[1]->AppendItem("2-Drawers", 10201); // 2D drawer superposition 62 m[1]->AppendItem("Surf-3D", 10202); // Surface (3D) drawer 63 m[1]->AppendItem("Image", 10203); // Image view object 61 64 // Appending menu to menu bar 62 65 AppendMenu(m[1]); … … 83 86 static double fsinc(double x) 84 87 { if ( (x>-1.e-8) && (x<1.e-8) ) return(0.); else return (sin(x)/x); } 85 static float * surf_fill_matx(); // fill 50x50 array 86 static float * img_fill_array(int sx, int sy); // fill sx * sy array with random stars 88 // fill 50x50 array 89 static float * surf_fill_matx(); 90 // fill sx * sy array with random stars 91 static float * img_fill_array(int sx, int sy); 87 92 88 93 /* --Methode-- */ … … 136 141 137 142 // Using PIYfXDrawer and P1DAdapter<T> 138 PIYfXDrawer* mxyd = new PIYfXDrawer(new P1DAdapter<float>(vpx, 30, true),139 143 PIYfXDrawer* mxyd = new PIYfXDrawer(new P1DAdapter<float>(vpx, 30, true), 144 new P1DAdapter<float>(vpy, 30, true), true); 140 145 // Changing graphic attributes for the drawer 141 146 mxyd->SetColAtt(PI_Magenta);
Note:
See TracChangeset
for help on using the changeset viewer.