Changeset 2638 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Nov 19, 2004, 6:41:07 PM (21 years ago)
Author:
ansari
Message:

Ajout commandes addoval addfoval pour trace d'ellipse - Reza 19/11/2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2615 r2638  
    11481148}
    11491149/* --Methode-- */
     1150void PIStdImgApp::AddOval(double xp, double yp, double dx, double dy,
     1151                          string const& sop, bool fgfill, bool fgcn)
     1152{
     1153// <ZThread> global PIApplication event loop synchronisation
     1154ZSync zs(thr_glsyn, 2); 
     1155
     1156PIDrawer *eld=CurrentElDrawer();
     1157if (eld == NULL) return;
     1158PIElDrawer* eld2 = dynamic_cast<PIElDrawer *>(eld);
     1159PIElDrawer3D* eld3 = dynamic_cast<PIElDrawer3D *>(eld);
     1160if ((eld2 == NULL) && (eld3 == NULL)) return;
     1161PIElDrwMgr* elmgr = NULL;
     1162if (eld2) elmgr = &(eld2->ElDrwMgr());
     1163else if (eld3) elmgr = &(eld3->ElDrwMgr());
     1164
     1165
     1166vector<string> opts;
     1167ParseDisplayOption(sop, opts);
     1168PIGraphicAtt gratt(opts);
     1169
     1170if (fgfill) elmgr->ElAddFOval(xp, yp, dx, dy, gratt, fgcn);
     1171else elmgr->ElAddOval(xp, yp, dx, dy, gratt, fgcn);
     1172eld->Refresh();
     1173}
     1174
     1175/* --Methode-- */
    11501176void PIStdImgApp::AddArc(double xc, double yc, double r, double a, double da,
    11511177                         string const& sop, bool fgfill, bool fgcn)
Note: See TracChangeset for help on using the changeset viewer.