Changeset 714 in Sophya for trunk/SophyaPI/PI/Tests/xp3.cc


Ignore:
Timestamp:
Feb 4, 2000, 7:39:48 PM (26 years ago)
Author:
ercodmgr
Message:

Modifs cosmetiques, liees a la documentation, Reza 4/2/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Tests/xp3.cc

    r688 r714  
    4747// First menu
    4848m[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
     50m[0]->AppendItem("ShowImageTools", 10101);   
     51// Show drawer Tools (Graphic Att.) window
     52m[0]->AppendItem("ShowDrawerTools", 10102);   
     53// Creating eps file from a graphic / image
     54m[0]->AppendItem("PostScript (EPS)", 10105); 
    5255m[0]->AppendItem("Exit", 10150);
    5356// Appending menu to menu bar
     
    5659// 2nd Menu
    5760m[1] = new PIMenu(Menubar(),"Graphics");
    58 m[1]->AppendItem("2-Drawers", 10201);         // 2x 2D drawer superposition
    59 m[1]->AppendItem("Surf-3D", 10202);
    60 m[1]->AppendItem("Image", 10203);
     61m[1]->AppendItem("2-Drawers", 10201); // 2D drawer superposition
     62m[1]->AppendItem("Surf-3D", 10202);   //  Surface (3D) drawer
     63m[1]->AppendItem("Image", 10203);     //  Image view object
    6164// Appending menu to menu bar
    6265AppendMenu(m[1]);
     
    8386static double fsinc(double x)
    8487{ 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
     89static float *  surf_fill_matx();   
     90// fill sx * sy array with random stars
     91static float *  img_fill_array(int sx, int sy);   
    8792
    8893/* --Methode-- */
     
    136141     
    137142    // Using PIYfXDrawer and P1DAdapter<T>
    138     PIYfXDrawer* mxyd = new   PIYfXDrawer( new P1DAdapter<float>(vpx, 30, true),
    139                                              new P1DAdapter<float>(vpy, 30, true), true);
     143    PIYfXDrawer* mxyd = new PIYfXDrawer(new P1DAdapter<float>(vpx, 30, true),
     144                                  new P1DAdapter<float>(vpy, 30, true), true);
    140145    // Changing graphic attributes for the drawer
    141146    mxyd->SetColAtt(PI_Magenta);
Note: See TracChangeset for help on using the changeset viewer.