Changeset 2637 in Sophya
- Timestamp:
- Nov 19, 2004, 6:40:30 PM (21 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pieldrw.cc
r2615 r2637 143 143 D_CN_To_CG_X((*it).edx), D_CN_To_CG_Y((*it).edy) ); 144 144 else g->DrawFBox((*it).ex, (*it).ey, (*it).edx, (*it).edy ); 145 break; 146 case PIDEL_Oval : 147 if ((*it).scc) // Coord specifie normalise 0..1 148 g->DrawOval(CN_To_CG_X((*it).ex), CN_To_CG_Y((*it).ey), 149 D_CN_To_CG_X((*it).edx), D_CN_To_CG_Y((*it).edy) ); 150 else g->DrawOval((*it).ex, (*it).ey, (*it).edx, (*it).edy ); 151 break; 152 case PIDEL_FOval : 153 if ((*it).scc) // Coord specifie normalise 0..1 154 g->DrawFOval(CN_To_CG_X((*it).ex), CN_To_CG_Y((*it).ey), 155 D_CN_To_CG_X((*it).edx), D_CN_To_CG_Y((*it).edy) ); 156 else g->DrawFOval((*it).ex, (*it).ey, (*it).edx, (*it).edy ); 145 157 break; 146 158 case PIDEL_Circ : -
trunk/SophyaPI/PI/pieldrw.h
r2503 r2637 17 17 PIDEL_Rect = 3, PIDEL_FRect = 4, 18 18 PIDEL_Circ = 5, PIDEL_FCirc = 6, 19 PIDEL_Arc = 7, PIDEL_FArc = 8, 20 PIDEL_Arc3P = 9, PIDEL_FArc3P = 10, 21 PIDEL_Poly = 11, PIDEL_FPoly = 12, 22 PIDEL_Mark = 13, PIDEL_Arrow = 14, 23 PIDEL_CText = 15 } ; 19 PIDEL_Oval = 7, PIDEL_FOval = 8, 20 PIDEL_Arc = 9, PIDEL_FArc = 10, 21 PIDEL_Arc3P = 11, PIDEL_FArc3P = 12, 22 PIDEL_Poly = 13, PIDEL_FPoly = 14, 23 PIDEL_Mark = 15, PIDEL_Arrow = 16, 24 PIDEL_CText = 17 } ; 24 25 25 26 PIElDrwMgr(); … … 103 104 { return( ElAdd(PIDEL_FCirc, x, y, 0., 360., NULL, gatt, 0, fgsc, r) ); } 104 105 106 // ---- Ajout d' ovales 107 inline int ElAddOval(double x, double y, double dx, double dy, bool fgsc=false) 108 { PIGraphicAtt gatt; return( ElAdd(PIDEL_Oval, x, y, dx, dy, NULL, gatt, 0, fgsc) ); } 109 inline int ElAddOval(double x, double y, double dx, double dy, 110 PIGraphicAtt const & gatt, bool fgsc=false) 111 { return( ElAdd(PIDEL_Oval, x, y, dx, dy, NULL, gatt, 0, fgsc) ); } 112 113 inline int ElAddFOval(double x, double y, double dx, double dy, bool fgsc=false) 114 { PIGraphicAtt gatt; return( ElAdd(PIDEL_FOval, x, y, dx, dy, NULL, gatt, 0, fgsc) ); } 115 inline int ElAddFOval(double x, double y, double dx, double dy, 116 PIGraphicAtt const & gatt, bool fgsc=false) 117 { return( ElAdd(PIDEL_FOval, x, y, dx, dy, NULL, gatt, 0, fgsc) ); } 118 105 119 // ---- Ajout d' arcs specifies par deux angles 106 120 inline int ElAddArc(double x, double y, double r,
Note:
See TracChangeset
for help on using the changeset viewer.