Changeset 2638 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Nov 19, 2004, 6:41:07 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r2615 r2638 1148 1148 } 1149 1149 /* --Methode-- */ 1150 void 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 1154 ZSync zs(thr_glsyn, 2); 1155 1156 PIDrawer *eld=CurrentElDrawer(); 1157 if (eld == NULL) return; 1158 PIElDrawer* eld2 = dynamic_cast<PIElDrawer *>(eld); 1159 PIElDrawer3D* eld3 = dynamic_cast<PIElDrawer3D *>(eld); 1160 if ((eld2 == NULL) && (eld3 == NULL)) return; 1161 PIElDrwMgr* elmgr = NULL; 1162 if (eld2) elmgr = &(eld2->ElDrwMgr()); 1163 else if (eld3) elmgr = &(eld3->ElDrwMgr()); 1164 1165 1166 vector<string> opts; 1167 ParseDisplayOption(sop, opts); 1168 PIGraphicAtt gratt(opts); 1169 1170 if (fgfill) elmgr->ElAddFOval(xp, yp, dx, dy, gratt, fgcn); 1171 else elmgr->ElAddOval(xp, yp, dx, dy, gratt, fgcn); 1172 eld->Refresh(); 1173 } 1174 1175 /* --Methode-- */ 1150 1176 void PIStdImgApp::AddArc(double xc, double yc, double r, double a, double da, 1151 1177 string const& sop, bool fgfill, bool fgcn)
Note:
See TracChangeset
for help on using the changeset viewer.