Changeset 1904 in Sophya for trunk/SophyaPI
- Timestamp:
- Feb 18, 2002, 11:37:22 PM (24 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 6 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Makefile
r1837 r1904 4 4 5 5 all: $(LIB)libPI.a 6 $(LIB)libPI.a : $(OBJ)lut.o $(OBJ)parradapter.o $(OBJ)pi3ddrw.o $(OBJ)piapplgen.o $(OBJ)piapplx.o $(OBJ)piaxestools.o $(OBJ)pibwdggen.o $(OBJ)pibwdgx.o $(OBJ)picmap.o $(OBJ)picmapgen.o $(OBJ)picmapview.o $(OBJ)picmapx.o $(OBJ)picons.o $(OBJ)picontainergen.o $(OBJ)picontainerx.o $(OBJ)pidrawer.o $(OBJ)pidrawwin.o $(OBJ)pidrwtools.o $(OBJ)pie vthandler.o $(OBJ)pifilechogen.o $(OBJ)pifilechox.o $(OBJ)pifontgen.o $(OBJ)pifontx.o $(OBJ)pigraph3d.o $(OBJ)pigraphgen.o $(OBJ)pigraphps.o $(OBJ)pigraphuc.o $(OBJ)pigraphx.o $(OBJ)piimage.o $(OBJ)piimgtools.o $(OBJ)pilistgen.o $(OBJ)pilistx.o $(OBJ)pimenubargen.o $(OBJ)pimenubarx.o $(OBJ)pimenugen.o $(OBJ)pimenux.o $(OBJ)pimsghandler.o $(OBJ)pioptmenugen.o $(OBJ)pioptmenux.o $(OBJ)piperiodx.o $(OBJ)pipixmapgen.o $(OBJ)pipixmapx.o $(OBJ)piscdrawwdg.o $(OBJ)pistdwdggen.o $(OBJ)pistdwdgx.o $(OBJ)pistzwin.o $(OBJ)pisurfdr.o $(OBJ)pitherm.o $(OBJ)piwdggen.o $(OBJ)piwdgx.o $(OBJ)piwindowgen.o $(OBJ)piwindowx.o $(OBJ)pixtbase.o $(OBJ)psfile.o6 $(LIB)libPI.a : $(OBJ)lut.o $(OBJ)parradapter.o $(OBJ)pi3ddrw.o $(OBJ)piapplgen.o $(OBJ)piapplx.o $(OBJ)piaxestools.o $(OBJ)pibwdggen.o $(OBJ)pibwdgx.o $(OBJ)picmap.o $(OBJ)picmapgen.o $(OBJ)picmapview.o $(OBJ)picmapx.o $(OBJ)picons.o $(OBJ)picontainergen.o $(OBJ)picontainerx.o $(OBJ)pidrawer.o $(OBJ)pidrawwin.o $(OBJ)pidrwtools.o $(OBJ)pieldrw.o $(OBJ)pievthandler.o $(OBJ)pifilechogen.o $(OBJ)pifilechox.o $(OBJ)pifontgen.o $(OBJ)pifontx.o $(OBJ)pigraph3d.o $(OBJ)pigraphgen.o $(OBJ)pigraphps.o $(OBJ)pigraphuc.o $(OBJ)pigraphx.o $(OBJ)pigratt.o $(OBJ)piimage.o $(OBJ)piimgtools.o $(OBJ)pilistgen.o $(OBJ)pilistx.o $(OBJ)pimenubargen.o $(OBJ)pimenubarx.o $(OBJ)pimenugen.o $(OBJ)pimenux.o $(OBJ)pimsghandler.o $(OBJ)pioptmenugen.o $(OBJ)pioptmenux.o $(OBJ)piperiodx.o $(OBJ)pipixmapgen.o $(OBJ)pipixmapx.o $(OBJ)piscdrawwdg.o $(OBJ)pistdwdggen.o $(OBJ)pistdwdgx.o $(OBJ)pistzwin.o $(OBJ)pisurfdr.o $(OBJ)pitherm.o $(OBJ)piwdggen.o $(OBJ)piwdgx.o $(OBJ)piwindowgen.o $(OBJ)piwindowx.o $(OBJ)pixtbase.o $(OBJ)piyfxdrw.o $(OBJ)psfile.o 7 7 $(AR) $(ARFLAGS) $@ $($(ARARGS)) 8 8 ifeq ($(CXX),cxx) … … 11 11 12 12 clean: 13 rm -f $(OBJ)lut.o $(OBJ)parradapter.o $(OBJ)pi3ddrw.o $(OBJ)piapplgen.o $(OBJ)piapplx.o $(OBJ)piaxestools.o $(OBJ)pibwdggen.o $(OBJ)pibwdgx.o $(OBJ)picmap.o $(OBJ)picmapgen.o $(OBJ)picmapview.o $(OBJ)picmapx.o $(OBJ)picons.o $(OBJ)picontainergen.o $(OBJ)picontainerx.o $(OBJ)pidrawer.o $(OBJ)pidrawwin.o $(OBJ)pidrwtools.o $(OBJ)pie vthandler.o $(OBJ)pifilechogen.o $(OBJ)pifilechox.o $(OBJ)pifontgen.o $(OBJ)pifontx.o $(OBJ)pigraph3d.o $(OBJ)pigraphgen.o $(OBJ)pigraphps.o $(OBJ)pigraphuc.o $(OBJ)pigraphx.o $(OBJ)piimage.o $(OBJ)piimgtools.o $(OBJ)pilistgen.o $(OBJ)pilistx.o $(OBJ)pimenubargen.o $(OBJ)pimenubarx.o $(OBJ)pimenugen.o $(OBJ)pimenux.o $(OBJ)pimsghandler.o $(OBJ)pioptmenugen.o $(OBJ)pioptmenux.o $(OBJ)piperiodx.o $(OBJ)pipixmapgen.o $(OBJ)pipixmapx.o $(OBJ)piscdrawwdg.o $(OBJ)pistdwdggen.o $(OBJ)pistdwdgx.o $(OBJ)pistzwin.o $(OBJ)pisurfdr.o $(OBJ)pitherm.o $(OBJ)piwdggen.o $(OBJ)piwdgx.o $(OBJ)piwindowgen.o $(OBJ)piwindowx.o $(OBJ)pixtbase.o $(OBJ)psfile.o13 rm -f $(OBJ)lut.o $(OBJ)parradapter.o $(OBJ)pi3ddrw.o $(OBJ)piapplgen.o $(OBJ)piapplx.o $(OBJ)piaxestools.o $(OBJ)pibwdggen.o $(OBJ)pibwdgx.o $(OBJ)picmap.o $(OBJ)picmapgen.o $(OBJ)picmapview.o $(OBJ)picmapx.o $(OBJ)picons.o $(OBJ)picontainergen.o $(OBJ)picontainerx.o $(OBJ)pidrawer.o $(OBJ)pidrawwin.o $(OBJ)pidrwtools.o $(OBJ)pieldrw.o $(OBJ)pievthandler.o $(OBJ)pifilechogen.o $(OBJ)pifilechox.o $(OBJ)pifontgen.o $(OBJ)pifontx.o $(OBJ)pigraph3d.o $(OBJ)pigraphgen.o $(OBJ)pigraphps.o $(OBJ)pigraphuc.o $(OBJ)pigraphx.o $(OBJ)pigratt.o $(OBJ)piimage.o $(OBJ)piimgtools.o $(OBJ)pilistgen.o $(OBJ)pilistx.o $(OBJ)pimenubargen.o $(OBJ)pimenubarx.o $(OBJ)pimenugen.o $(OBJ)pimenux.o $(OBJ)pimsghandler.o $(OBJ)pioptmenugen.o $(OBJ)pioptmenux.o $(OBJ)piperiodx.o $(OBJ)pipixmapgen.o $(OBJ)pipixmapx.o $(OBJ)piscdrawwdg.o $(OBJ)pistdwdggen.o $(OBJ)pistdwdgx.o $(OBJ)pistzwin.o $(OBJ)pisurfdr.o $(OBJ)pitherm.o $(OBJ)piwdggen.o $(OBJ)piwdgx.o $(OBJ)piwindowgen.o $(OBJ)piwindowx.o $(OBJ)pixtbase.o $(OBJ)piyfxdrw.o $(OBJ)psfile.o 14 14 ifeq ($(CXX),cxx) 15 15 cd $(REPM); rm -f *.o … … 23 23 piwdgx.h piwdggen.h pimsghandler.h picolist.h picmap.h picmapx.h \ 24 24 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 25 pievthandler.h psfile.h pigra ph3d.h pibwdgx.h pigraphps.h \26 pi drwtools.h pistdwdgx.h pistdwdggen.h pioptmenux.h pioptmenugen.h \27 pi menux.h pimenugen.h piwindowx.h piwindowgen.h picontainerx.h \28 picontainer gen.h piapplx.h piapplgen.h pimenubarx.h pimenubargen.h \29 pi cons.h25 pievthandler.h psfile.h pigratt.h pieldrw.h pigraph3d.h pibwdgx.h \ 26 pigraphps.h pidrwtools.h pistdwdgx.h pistdwdggen.h pioptmenux.h \ 27 pioptmenugen.h pimenux.h pimenugen.h piwindowx.h piwindowgen.h \ 28 picontainerx.h picontainergen.h piapplx.h piapplgen.h pimenubarx.h \ 29 pimenubargen.h picons.h 30 30 $(OBJ)piapplgen.o: piapplgen.cc piapplgen.h pimsghandler.h \ 31 31 $(INC)machdefs.h pisysdep.h picontainerx.h \ … … 49 49 pimenubargen.h picons.h pibwdgx.h pibwdggen.h picmap.h picmapx.h \ 50 50 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 51 pievthandler.h psfile.h pigraphps.h piscdrawwdg.h pidrawer.h 51 pievthandler.h psfile.h pigraphps.h piscdrawwdg.h pidrawer.h \ 52 pigratt.h pieldrw.h 52 53 $(OBJ)pibwdggen.o: pibwdggen.cc pibwdggen.h pisysdep.h \ 53 54 $(INC)machdefs.h piwdgx.h piwdggen.h \ 54 55 pimsghandler.h picolist.h picmap.h picmapx.h picmapgen.h pigraphx.h \ 55 56 pigraphgen.h pifontx.h pifontgen.h pigraphuc.h pievthandler.h \ 56 psfile.h pidrawer.h pigra phps.h pidrwtools.h pistdwdgx.h \57 psfile.h pidrawer.h pigratt.h pigraphps.h pidrwtools.h pistdwdgx.h \ 57 58 pistdwdggen.h pioptmenux.h pioptmenugen.h pimenux.h pimenugen.h \ 58 59 piwindowx.h piwindowgen.h picontainerx.h picontainergen.h piapplx.h \ … … 90 91 pidrawer.h pibwdggen.h pisysdep.h piwdgx.h piwdggen.h pimsghandler.h \ 91 92 picolist.h picmap.h picmapx.h picmapgen.h pigraphx.h pigraphgen.h \ 92 pifontx.h pifontgen.h pigraphuc.h pievthandler.h psfile.h \93 pifontx.h pifontgen.h pigraphuc.h pievthandler.h psfile.h pigratt.h \ 93 94 pidrwtools.h pistdwdgx.h pistdwdggen.h pioptmenux.h pioptmenugen.h \ 94 95 pimenux.h pimenugen.h piwindowx.h piwindowgen.h picontainerx.h \ … … 101 102 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 102 103 pievthandler.h psfile.h pigraphps.h pistdwdgx.h pistdwdggen.h \ 103 pidrawer.h 104 pidrawer.h pigratt.h pieldrw.h 104 105 $(OBJ)pidrwtools.o: pidrwtools.cc pidrwtools.h pisysdep.h \ 105 106 $(INC)machdefs.h pistdwdgx.h pistdwdggen.h \ … … 110 111 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 111 112 pievthandler.h psfile.h pigraphps.h piscdrawwdg.h pidrawer.h \ 112 pi3ddrw.h pigraph3d.h 113 pigratt.h pieldrw.h pi3ddrw.h pigraph3d.h 114 $(OBJ)pieldrw.o: pieldrw.cc $(INC)machdefs.h \ 115 pieldrw.h pidrawer.h pibwdggen.h pisysdep.h piwdgx.h piwdggen.h \ 116 pimsghandler.h picolist.h picmap.h picmapx.h picmapgen.h pigraphx.h \ 117 pigraphgen.h pifontx.h pifontgen.h pigraphuc.h pievthandler.h \ 118 psfile.h pigratt.h 113 119 $(OBJ)pievthandler.o: pievthandler.cc pievthandler.h pisysdep.h \ 114 120 $(INC)machdefs.h pimsghandler.h piwdgx.h \ … … 153 159 piwdggen.h pimsghandler.h picolist.h picmap.h picmapx.h picmapgen.h \ 154 160 pifontx.h pifontgen.h 161 $(OBJ)pigratt.o: pigratt.cc pigratt.h pisysdep.h \ 162 $(INC)machdefs.h pigraphgen.h piwdgx.h \ 163 piwdggen.h pimsghandler.h picolist.h picmap.h picmapx.h picmapgen.h \ 164 pifontx.h pifontgen.h 155 165 $(OBJ)piimage.o: piimage.cc piimage.h parradapter.h \ 156 $(INC)machdefs.h lut.h pisysdep.h pi drawer.h \157 pi bwdggen.h piwdgx.h piwdggen.h pimsghandler.h picolist.h picmap.h \158 picmap x.h picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h \159 pi graphuc.h pievthandler.h psfile.h pipixmapx.h pipixmapgen.h \160 pi bwdgx.h pigraphps.h pistdwdgx.h pistdwdggen.h piwindowx.h \161 piwindow gen.h picontainerx.h picontainergen.h picmapview.h \162 pi imgtools.h pioptmenux.h pioptmenugen.h pimenux.h pimenugen.h \163 pi applx.h piapplgen.h pimenubarx.h pimenubargen.h picons.h \164 pi drwtools.h piscdrawwdg.h166 $(INC)machdefs.h lut.h pisysdep.h pieldrw.h \ 167 pidrawer.h pibwdggen.h piwdgx.h piwdggen.h pimsghandler.h picolist.h \ 168 picmap.h picmapx.h picmapgen.h pigraphx.h pigraphgen.h pifontx.h \ 169 pifontgen.h pigraphuc.h pievthandler.h psfile.h pigratt.h pipixmapx.h \ 170 pipixmapgen.h pibwdgx.h pigraphps.h pistdwdgx.h pistdwdggen.h \ 171 piwindowx.h piwindowgen.h picontainerx.h picontainergen.h \ 172 picmapview.h piimgtools.h pioptmenux.h pioptmenugen.h pimenux.h \ 173 pimenugen.h piapplx.h piapplgen.h pimenubarx.h pimenubargen.h \ 174 picons.h pidrwtools.h piscdrawwdg.h piyfxdrw.h 165 175 $(OBJ)piimgtools.o: piimgtools.cc piimgtools.h pisysdep.h \ 166 176 $(INC)machdefs.h pistdwdgx.h pistdwdggen.h \ … … 171 181 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 172 182 pievthandler.h psfile.h pigraphps.h piimage.h parradapter.h lut.h \ 173 pi drawer.h pipixmapx.h pipixmapgen.h picmapview.h183 pieldrw.h pidrawer.h pigratt.h pipixmapx.h pipixmapgen.h picmapview.h 174 184 $(OBJ)pilistgen.o: pilistgen.cc pilistgen.h pisysdep.h \ 175 185 $(INC)machdefs.h piwdgx.h piwdggen.h \ … … 229 239 pifontgen.h pigraphuc.h pievthandler.h psfile.h pigraphps.h \ 230 240 pistdwdgx.h pistdwdggen.h piwindowx.h piwindowgen.h picontainerx.h \ 231 picontainergen.h pidrawer.h pi drwtools.h pioptmenux.h pioptmenugen.h \232 pi menux.h pimenugen.h piapplx.h piapplgen.h pimenubarx.h \233 pi menubargen.h picons.h piaxestools.h parradapter.h lut.h241 picontainergen.h pidrawer.h pigratt.h pieldrw.h pidrwtools.h \ 242 pioptmenux.h pioptmenugen.h pimenux.h pimenugen.h piapplx.h \ 243 piapplgen.h pimenubarx.h pimenubargen.h picons.h piaxestools.h 234 244 $(OBJ)pistdwdggen.o: pistdwdggen.cc pistdwdggen.h pisysdep.h \ 235 245 $(INC)machdefs.h piwdgx.h piwdggen.h \ … … 249 259 pidrawer.h pibwdggen.h piwdgx.h piwdggen.h pimsghandler.h picolist.h \ 250 260 picmap.h picmapx.h picmapgen.h pigraphx.h pigraphgen.h pifontx.h \ 251 pifontgen.h pigraphuc.h pievthandler.h psfile.h pigra ph3d.h pibwdgx.h \252 pigraph ps.h261 pifontgen.h pigraphuc.h pievthandler.h psfile.h pigratt.h pieldrw.h \ 262 pigraph3d.h pibwdgx.h pigraphps.h 253 263 $(OBJ)pitherm.o: pitherm.cc pitherm.h pisysdep.h \ 254 264 $(INC)machdefs.h pibwdgx.h pibwdggen.h \ … … 278 288 pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 279 289 pievthandler.h psfile.h pigraphps.h pixtbase.h 290 $(OBJ)piyfxdrw.o: piyfxdrw.cc $(INC)machdefs.h \ 291 piyfxdrw.h pisysdep.h parradapter.h lut.h pidrawer.h pibwdggen.h \ 292 piwdgx.h piwdggen.h pimsghandler.h picolist.h picmap.h picmapx.h \ 293 picmapgen.h pigraphx.h pigraphgen.h pifontx.h pifontgen.h pigraphuc.h \ 294 pievthandler.h psfile.h pigratt.h 280 295 $(OBJ)psfile.o: psfile.cc psfile.h $(INC)machdefs.h \ 281 296 pisysdep.h pifontgen.h pigraphgen.h piwdgx.h piwdggen.h \ -
trunk/SophyaPI/PI/objlist.list
r1589 r1904 17 17 pidrawwin.o 18 18 pidrwtools.o 19 pieldrw.o 19 20 pievthandler.o 20 21 pifilechogen.o … … 27 28 pigraphuc.o 28 29 pigraphx.o 30 pigratt.o 29 31 piimage.o 30 32 piimgtools.o … … 52 54 piwindowx.o 53 55 pixtbase.o 56 piyfxdrw.o 54 57 psfile.o -
trunk/SophyaPI/PI/pi3ddrw.cc
r1827 r1904 141 141 double yl1, double yl2, double zl1, double zl2) 142 142 { 143 if (m LAtt== PI_NotDefLineAtt) g3->SelLine(PI_ThinLine);144 if (mFSz== PI_NotDefFontSize) g3->SelFontSz((YMax()-YMin())/150.);143 if (mGrAtt.GetLineAtt() == PI_NotDefLineAtt) g3->SelLine(PI_ThinLine); 144 // RZZZZZ if (mGrAtt. == PI_NotDefFontSize) g3->SelFontSz((YMax()-YMin())/150.); 145 145 146 146 PIGrCoord x1,y1,z1,x2,y2,z2; -
trunk/SophyaPI/PI/pi3ddrw.h
r348 r1904 9 9 #include "pisysdep.h" 10 10 #include "pidrawer.h" 11 #include "pieldrw.h" 11 12 #include "pigraph3d.h" 12 13 -
trunk/SophyaPI/PI/picons.cc
r1640 r1904 968 968 break; 969 969 case 3103 : 970 SelectFont(PI_ BigSizeFont);970 SelectFont(PI_LargeSizeFont); 971 971 AutoSize(); 972 972 break; -
trunk/SophyaPI/PI/pidrawer.cc
r1899 r1904 1 1 // Module PI : Peida Interactive PIDrawer 2 // Classe de traceurs pouva t être attachés à une PIBaseWdg2 // Classe de traceurs pouvant être attachés à une PIBaseWdg 3 3 // E. Aubourg , R.Ansari 96-98 4 4 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA … … 56 56 mFgHighLight = false; // Flag de control d'affichage en mode HighLight 57 57 58 mFCol = mBCol = PI_NotDefColor;59 mLAtt = PI_NotDefLineAtt;60 mFSz = PI_NotDefFontSize;61 mFAtt = PI_NotDefFontAtt;62 mMSz = -1;63 mMrk = PI_NotDefMarker;64 mCmapid = CMAP_OTHER;65 mRevCmap = false;66 mFName = PI_DefaultFont;67 58 68 59 // Nom par defaut : Le nom de la classe … … 239 230 //-- 240 231 241 void242 PIDrawer::SetColAtt(PIColors fg, PIColors bg)243 {244 mFCol = fg;245 mBCol = bg;246 }247 248 void249 PIDrawer::SetLineAtt(PILineAtt lat)250 {251 mLAtt = lat;252 }253 254 void255 PIDrawer::SetFontAtt(PIFontSize fsz, PIFontAtt fat)256 {257 mFSz = fsz;258 mFAtt = fat;259 }260 261 void262 PIDrawer::SetFont(PIFontName fn, PIFontSize fsz, PIFontAtt fat)263 {264 mFName = fn;265 mFSz = fsz;266 mFAtt = fat;267 }268 269 void270 PIDrawer::SetMarkerAtt(int sz, PIMarker mrk)271 {272 mMSz = sz;273 mMrk = mrk;274 }275 276 void277 PIDrawer::SetArrowMarkerAtt(int sz, PIArrowMarker mrk)278 {279 mArrowMrkSz = sz;280 mArrowMrk = mrk;281 }282 283 void284 PIDrawer::SetColMapId(CMapId cid, bool rev)285 {286 mCmapid = cid;287 mRevCmap = rev;288 }289 232 290 233 void 291 234 PIDrawer::SelGraAtt(PIGraphicUC* g) 292 235 { 293 if (mFCol != PI_NotDefColor) g->SelForeground(mFCol); 294 if (mBCol != PI_NotDefColor) g->SelBackground(mBCol); 295 if (mLAtt != PI_NotDefLineAtt) g->SelLine(mLAtt); 296 if (mFName != PI_DefaultFont) { 297 PIFont myfont(mFName); 298 myfont.SetFontAtt(mFAtt); 299 myfont.SetFontSz(mFSz); 300 g->SelFont(myfont); 301 } 302 else if ( (mFSz != PI_NotDefFontSize) || (mFAtt != PI_NotDefFontAtt) ) 303 g->SelFont(mFSz, mFAtt); 304 if ( (mMrk != PI_NotDefMarker) || (mMSz >= 0) ) 305 g->SelMarker(mMSz, mMrk); 236 PIColors fcol = GetGraphicAtt().GetFgColor(); 237 if (fcol != PI_NotDefColor) g->SelForeground(fcol); 238 PIColors bcol = GetGraphicAtt().GetBgColor(); 239 if (bcol != PI_NotDefColor) g->SelBackground(bcol); 240 if (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) 241 g->SelLine(GetGraphicAtt().GetLineAtt()); 242 if ( (GetGraphicAtt().GetFontName() != PI_DefaultFont) || 243 (GetGraphicAtt().GetFontAtt() != PI_NotDefFontAtt) ) 244 g->SelFont(GetGraphicAtt().GetFont()); 245 if (GetGraphicAtt().GetMarker() != PI_NotDefMarker) 246 g->SelMarker(GetGraphicAtt().GetMarkerSize(), GetGraphicAtt().GetMarker()); 306 247 } 307 248 … … 343 284 344 285 int 345 PIDrawer::DecodeOptionString(vector<string> & opt )286 PIDrawer::DecodeOptionString(vector<string> & opt, bool rmdecop) 346 287 { 347 288 // a faire un jour OP+Reza 30/11/01 … … 422 363 { 423 364 g->NoClip(); 424 if ( mLAtt== PI_NotDefLineAtt) g->SelLine(PI_ThinLine);425 else g->SelLine( mLAtt);426 if ( mFCol== PI_NotDefColor) g->SelForeground(PI_Black);427 else g->SelForeground( mFCol);365 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 366 else g->SelLine(GetGraphicAtt().GetLineAtt()); 367 if (GetGraphicAtt().GetColor() == PI_NotDefColor) g->SelForeground(PI_Black); 368 else g->SelForeground(GetGraphicAtt().GetColor()); 428 369 // On calcule les ticks 429 370 CalcTicks(); … … 575 516 int kk; 576 517 577 if ( mFSz == PI_NotDefFontSize)578 g->SelFontSz(xMajTickLen*4. , mFAtt); // Passage de x3. a x4. - Reza Janvier 2002518 if (axesAFSz) 519 g->SelFontSz(xMajTickLen*4.); // Passage de x3. a x4. - Reza Janvier 2002 579 520 580 521 // Choix du bon format pour les labels des axes; … … 606 547 double xOffset = 0; 607 548 608 if ( mFSz == PI_NotDefFontSize)609 g->SelFontSz(xMajTickLen*4. , mFAtt);// Passage de x3. a x4. - Reza Janvier 2002549 if (axesAFSz) 550 g->SelFontSz(xMajTickLen*4.); // Passage de x3. a x4. - Reza Janvier 2002 610 551 611 552 // Choix du bon format pour les labels des axes; … … 714 655 } 715 656 716 /* -------------------------------------------------------------- */717 /* ------------------- Classe PIElDrawer ------------------------ */718 /* -------------------------------------------------------------- */719 720 //++721 // Class PIElDrawer722 // Lib PI723 // include pidrawer.h724 //725 // Classe de traceur ("Drawer") capable de gérer et de726 // tracer une liste d'éléments simples. Cette classe727 // est utilisé pour le tracé des axes et des éléments de728 // texte ds les "PIScDrawWdg", "PIDraw3DWdg" et "PIImage".729 //--730 //++731 // Links Parents732 // PIDrawer733 //--734 735 //++736 // Titre Constructeurs et méthodes737 //--738 739 //++740 // PIElDrawer()741 // Constructeur742 //--743 744 /* --Methode-- */745 PIElDrawer::PIElDrawer()746 {747 mEn = 0;748 titleT = titleB = "";749 }750 751 /* --Methode-- */752 PIElDrawer::~PIElDrawer()753 {754 }755 756 757 //++758 // void SetTitles(const char* tt=NULL, const char* tb=NULL)759 // Ajout de titres haut ("tt") et bas ("tb")760 // void SetTitles(string const & tt, string const & tb)761 // Ajout de titres haut ("tt") et bas ("tb")762 //--763 764 /* --Methode-- */765 void PIElDrawer::SetTitles(const char* tt, const char* tb)766 {767 if (tt != NULL) titleT = tt;768 if (tb != NULL) titleB = tb;769 }770 771 /* --Methode-- */772 void PIElDrawer::SetTitles(string const & tt, string const & tb)773 {774 titleT = tt; titleB = tb;775 }776 777 //++778 // int ElAddText(PIGrCoord x, PIGrCoord y, const char* s, PIColors c=PI_NotDefColor)779 // Ajout d'un élément texte avec un attribut de couleur.780 // Renvoie le numéro identificateur de l'élément.781 // int ElAddLine(PIGrCoord x1, PIGrCoord y1, PIGrCoord x2, PIGrCoord y2, -782 // PIColors c=PI_NotDefColor)783 // Ajout d'un élément de ligne avec un attribut de couleur.784 // Renvoie le numéro identificateur de l'élément.785 // int ElAddRect(PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy, -786 // PIColors c=PI_NotDefColor)787 // Ajout d'un élément de type rectangle avec un attribut de couleur.788 // Renvoie le numéro identificateur de l'élément.789 // int ElAddFRect(PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy, -790 // PIColors c=PI_NotDefColor)791 // Ajout d'un élément de type rectangle plein avec un attribut de couleur.792 // Renvoie le numéro identificateur de l'élément.793 // int ElAddCirc(PIGrCoord x, PIGrCoord y, PIGrCoord r, PIColors c=PI_NotDefColor)794 // Ajout d'un élément de type cercle avec un attribut de couleur.795 // Renvoie le numéro identificateur de l'élément.796 // int ElAddFCirc(PIGrCoord x, PIGrCoord y, PIGrCoord r, PIColors c=PI_NotDefColor)797 // Ajout d'un élément de type cercle plein avec un attribut de couleur.798 // Renvoie le numéro identificateur de l'élément.799 //800 // void ElDel(int id)801 // Suppression de l'élément avec l'identificateur "id".802 // void ElDelAll()803 // Suppression de tous les éléments du dessin.804 //--805 806 /* --Methode-- */807 void PIElDrawer::Draw(PIGraphicUC* g, double /*xmin*/, double /*ymin*/, double /*xmax*/, double /*ymax*/)808 {809 SelGraAtt(g); // DrawAxes change certains attributs graphiques810 DrawAxes(g); // Trace des axes811 g->SelFont(PI_NormalSizeFont, mFAtt);812 SelGraAtt(g); // DrawAxes change certains attributs graphiques813 814 // Trace des titres815 if ( (titleT.length() > 0) || (titleB.length() > 0) ) {816 aXdir = false; // Vrai si Axe X de Droite vers Gauche817 aYdir = false; // Vrai si Axe Y de Haut vers Bas818 PIGrCoord gas, gds;819 double fx, fy, fh;820 // fh = g->GetFontHeightUC(gas, gds);821 fh = 0.075*(YMax()-YMin());822 if ( titleT.length() > 0) {823 fx = g->CalcStringWidth(titleT.c_str());824 if(aXdir) fx = g->DeltaUCX(XMax(), -(XMax()-XMin()-fx)/2.);825 else fx = g->DeltaUCX(XMin(), (XMax()-XMin()-fx)/2.);826 if (g->isAxeYDirUpDown()) fy = g->DeltaUCY(YMin(), -fh);827 else fy = g->DeltaUCY(YMax(), fh);828 g->DrawString(fx, fy, titleT.c_str());829 // printf(" PIElDrawer::Draw()/DBG (%g , %g) %s - %g \n", fx, fy, titleT.c_str(), fh);830 }831 if ( titleB.length() > 0) {832 fx = g->CalcStringWidth(titleB.c_str());833 if(aXdir) fx = g->DeltaUCX(XMax(), -(XMax()-XMin()-fx)/2.);834 else fx = g->DeltaUCX(XMin(), (XMax()-XMin()-fx)/2.);835 if (g->isAxeYDirUpDown()) fy = g->DeltaUCY(YMax(), fh*1.5);836 else fy = g->DeltaUCY(YMin(), -fh*1.5);837 g->DrawString(fx, fy, titleB.c_str());838 // printf(" PIElDrawer::Draw()/DBG (%g , %g) %s - %g \n", fx, fy, titleT.c_str(), fh);839 }840 }841 DrwElList::iterator it;842 PIColors cc = g->GetForeground();843 for (it = mElist.begin(); it != mElist.end(); it++)844 {845 if ((*it).col != PI_NotDefColor) g->SelForeground((*it).col);846 switch ( (*it).etyp )847 {848 case PIDEL_Line :849 g->DrawLine((*it).ex, (*it).ey, (*it).edx, (*it).edy );850 break;851 case PIDEL_Text :852 g->DrawString((*it).ex, (*it).ey, (char*) ((*it).es.c_str()) );853 break;854 case PIDEL_Rect :855 g->DrawBox((*it).ex, (*it).ey, (*it).edx, (*it).edy );856 break;857 case PIDEL_FRect :858 g->DrawFBox((*it).ex, (*it).ey, (*it).edx, (*it).edy );859 break;860 case PIDEL_Circ :861 g->DrawCircle((*it).ex, (*it).ey, (*it).edx );862 break;863 case PIDEL_FCirc :864 g->DrawFCircle((*it).ex, (*it).ey, (*it).edx );865 break;866 default :867 break;868 }869 g->SelForeground(cc);870 }871 }872 873 874 /* --Methode-- */875 int PIElDrawer::ElAdd(int typ, PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy, const char* s, PIColors c)876 {877 DrwEl dre;878 mEn++;879 dre.eid = mEn; dre.etyp = typ;880 dre.ex = x; dre.ey = y;881 dre.edx = dx; dre.edy = dy;882 dre.col = c;883 if (s) dre.es = s;884 mElist.push_back(dre);885 return(mEn);886 }887 888 /* --Methode-- */889 void PIElDrawer::ElDel(int id)890 {891 DrwElList::iterator it;892 for (it = mElist.begin(); it != mElist.end(); it++)893 if ( (*it).eid == id) { mElist.erase(it); break; }894 return;895 }896 897 /* --Methode-- */898 void PIElDrawer::ElDelAll()899 {900 mElist.erase(mElist.begin(), mElist.end());901 return;902 }903 -
trunk/SophyaPI/PI/pidrawer.h
r1899 r1904 8 8 #include "pibwdggen.h" 9 9 #include "pigraphuc.h" 10 #include "pigratt.h" 10 11 11 12 … … 38 39 { aXlog = logx; aYlog = logy; } 39 40 41 virtual void SetAxesFlags(unsigned int flags=kAxesNone); 42 inline void SetAxesAutoFontSize(bool fg=true) { axesAFSz = fg; } 43 40 44 virtual void DrawAxes(PIGraphicUC* g); 41 virtual void SetAxesFlags(unsigned int flags=kAxesNone); 42 45 43 46 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax); 44 47 … … 66 69 67 70 inline unsigned int GetAxesFlags() { return(axesFlags); } 71 inline bool isAxesAutoFontSize(bool fg=true) { return axesAFSz; } 68 72 69 73 inline PIGraphicUC* GetGraphicUC() { return(mGrUC); } … … 72 76 inline void FreeLimits() {limitsFixed = 0;} 73 77 78 virtual void SelGraAtt(PIGraphicUC* g); 79 74 80 // Changement des attributs graphiques 75 virtual void SetColAtt(PIColors fg=PI_NotDefColor, 76 PIColors bg=PI_NotDefColor); 77 virtual void SetLineAtt(PILineAtt lat=PI_NotDefLineAtt); 78 virtual void SetFontAtt(PIFontSize fsz=PI_NotDefFontSize, 79 PIFontAtt fat=PI_NotDefFontAtt); 80 virtual void SetFont(PIFontName fn, PIFontSize fsz=PI_NotDefFontSize, 81 PIFontAtt fat=PI_NotDefFontAtt); 82 virtual void SetMarkerAtt(int sz=1, PIMarker mrk=PI_NotDefMarker); 83 virtual void SetArrowMarkerAtt(int sz=5, PIArrowMarker mrk=PI_NotDefArrowMarker); 84 virtual void SetColMapId(CMapId cid=CMAP_OTHER, bool rev=false); 85 86 void SelGraAtt(PIGraphicUC* g); 81 inline void SetGraphicAtt(PIGraphicAtt const& att) { mGrAtt = att; } 82 inline void UpdateGraphicAtt(PIGraphicAtt const& att) 83 { mGrAtt.UpdateFrom(att); } 87 84 88 85 // Acces aux attributs graphiques 89 inline PIColors GetFgColAtt() { return(mFCol); } 90 inline PIColors GetBgColAtt() { return(mBCol); } 91 inline PILineAtt GetLineAtt() { return(mLAtt); } 92 inline PIFontSize GetFontSz() { return(mFSz); } 93 inline PIFontAtt GetFontAtt() { return(mFAtt); } 94 inline PIFontName GetFontName() { return(mFName);} 95 inline int GetMarkerSz() { return(mMSz); } 96 inline PIMarker GetMarker() { return(mMrk); } 97 inline int GetArrowMarkerSz() { return(mArrowMrkSz); } 98 inline PIArrowMarker GetArrowMarker() { return(mArrowMrk); } 99 inline CMapId GetColMapId() { return(mCmapid); } 100 inline CMapId GetColMapId(bool & rev) { rev = mRevCmap; return(mCmapid); } 101 86 inline PIGraphicAtt GetGraphicAtt() const { return(mGrAtt); } 87 inline PIGraphicAtt& GetGraphicAtt() { return(mGrAtt); } 102 88 103 89 // Methode permettant l'affichage d'une fenetre de controle specialisee … … 107 93 108 94 // Methode permettant de decoder des options a partir de chaines 109 virtual int DecodeOptionString(vector<string> & opt );95 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true); 110 96 111 97 // On peut donner un nom a un drawer (par defaut = nom de la classe) … … 158 144 int limitsFixed; 159 145 unsigned int axesFlags; 160 146 bool axesAFSz; 161 147 PIBaseWdgGen* mBWdg; 162 148 PIGraphicUC* mGrUC; … … 173 159 174 160 // Gestion d attributs graphiques associes a chaque drawer 175 PIColors mFCol, mBCol; 176 PILineAtt mLAtt; 177 PIFontName mFName; 178 PIFontSize mFSz; 179 PIFontAtt mFAtt; 180 int mMSz; 181 PIMarker mMrk; 182 int mArrowMrkSz; 183 PIArrowMarker mArrowMrk; 184 CMapId mCmapid; 185 bool mRevCmap; 161 PIGraphicAtt mGrAtt; 186 162 187 163 }; 188 164 189 165 190 // Classe avec gestion d une liste d elements a tracer191 192 class PIElDrawer : public PIDrawer193 {194 public:195 enum { PIDEL_Line = 1, PIDEL_Text = 2,196 PIDEL_Rect = 3, PIDEL_FRect = 4,197 PIDEL_Circ = 5, PIDEL_FCirc = 6 } ;198 199 PIElDrawer();200 virtual ~PIElDrawer();201 202 virtual void SetTitles(const char* tt=NULL, const char* tb=NULL);203 virtual void SetTitles(string const & tt, string const & tb);204 205 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);206 207 inline int ElAddLine(PIGrCoord x1, PIGrCoord y1, PIGrCoord x2, PIGrCoord y2,208 PIColors c=PI_NotDefColor)209 { return( ElAdd(PIDEL_Line, x1, y1, x2, y2, NULL, c) ); }210 inline int ElAddText(PIGrCoord x, PIGrCoord y, const char* s, PIColors c=PI_NotDefColor)211 { return( ElAdd(PIDEL_Text, x, y, 0, 0, s, c) ); }212 inline int ElAddRect(PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy,213 PIColors c=PI_NotDefColor)214 { return( ElAdd(PIDEL_Rect, x, y, dx, dy, NULL, c) ); }215 inline int ElAddFRect(PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy,216 PIColors c=PI_NotDefColor)217 { return( ElAdd(PIDEL_FRect, x, y, dx, dy, NULL, c) ); }218 inline int ElAddCirc(PIGrCoord x, PIGrCoord y, PIGrCoord r, PIColors c=PI_NotDefColor)219 { return( ElAdd(PIDEL_Circ, x, y, r, r, NULL, c) ); }220 inline int ElAddFCirc(PIGrCoord x, PIGrCoord y, PIGrCoord r, PIColors c=PI_NotDefColor)221 { return( ElAdd(PIDEL_FCirc, x, y, r, r, NULL, c) ); }222 223 void ElDel(int id);224 void ElDelAll();225 226 protected:227 int ElAdd(int typ, PIGrCoord x, PIGrCoord y, PIGrCoord dx, PIGrCoord dy,228 const char* s, PIColors c=PI_NotDefColor);229 #ifdef __DECCXX230 public:231 #endif232 struct DrwEl{233 int eid, etyp;234 PIGrCoord ex,ey;235 PIGrCoord edx,edy;236 string es;237 PIColors col;238 };239 #ifdef __DECCXX240 protected:241 #endif242 typedef list<DrwEl> DrwElList;243 244 DrwElList mElist;245 int mEn;246 247 string titleT, titleB; // Titre Haut - Bas248 249 };250 166 251 167 #endif -
trunk/SophyaPI/PI/pidrwtools.cc
r1887 r1904 250 250 mOpt[7]->AppendItem("Small FontSz", 802); 251 251 mOpt[7]->AppendItem("Normal FontSz", 803); 252 mOpt[7]->AppendItem(" BigFontSz", 804);252 mOpt[7]->AppendItem("Large FontSz", 804); 253 253 mOpt[7]->AppendItem("Huge FontSz", 805); 254 254 mOpt[7]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); … … 348 348 PI_ItalicFont, PI_BoldItalicFont }; 349 349 static PIFontSize fntsz[6] = { PI_NotDefFontSize, PI_TinySizeFont, PI_SmallSizeFont, 350 PI_NormalSizeFont, PI_ BigSizeFont, PI_HugeSizeFont };350 PI_NormalSizeFont, PI_LargeSizeFont, PI_HugeSizeFont }; 351 351 352 352 /* --Methode-- */ … … 438 438 if (!dr) return; 439 439 int ii,jj,kk; 440 PIColors fc = dr->GetFgColAtt(); 440 PIGraphicAtt const & gratt = dr->GetGraphicAtt(); 441 PIColors fc = gratt.GetFgColor(); 441 442 for(kk=0; kk<MYNMXCOLORS; kk++) 442 443 if (fc == cols[kk]) { mOpt[0]->SetValue(100+kk); break; } 443 CMapId cmi = dr->GetColMapId();444 CMapId cmi = gratt.GetColMapId(); 444 445 if (cmi == CMAP_OTHER) mOpt[1]->SetValue(200); 445 446 else for(kk=0; kk<PIColorMap::NumberStandardColorMaps(); kk++) 446 447 if (cmi == PIColorMap::GetStandardColorMapId(kk)) { mOpt[1]->SetValue(201+kk); break; } 447 PIMarker mk = dr->GetMarker();448 PIMarker mk = gratt.GetMarker(); 448 449 for(kk=0; kk<12; kk++) 449 450 if (mk == mrk[kk]) { mOpt[2]->SetValue(300+kk); break; } 450 kk = dr->GetMarkerSz();451 kk = gratt.GetMarkerSz(); 451 452 if (kk < 1) kk = 1; 452 453 if (kk > 15) kk = 15; 453 454 if (kk%2 == 0) kk++; 454 455 mOpt[3]->SetValue(400+kk); 455 PIFontName fnm = dr->GetFontName(); 456 PIFontAtt fat = dr->GetFontAtt(); 457 PIFontSize fsz = dr->GetFontSz(); 456 PIFontName fnm = gratt.GetFontName(); 457 PIFontAtt fat = gratt.GetFontAtt(); 458 PIFontSize fsz = gratt.GetFontSz(); 459 458 460 for(ii=0; ii<5; ii++) 459 461 if (fnm == fntname[ii]) break; … … 470 472 mOpt[7]->SetValue(800+jj); 471 473 472 PILineAtt lat = dr->GetLineAtt();474 PILineAtt lat = gratt.GetLineAtt(); 473 475 for(kk=0; kk<13; kk++) 474 476 if (lat == line[kk]) { mOpt[5]->SetValue(600+kk); break; } … … 484 486 if (drw == NULL) return; 485 487 mCurBW->SetActiveDrawer(mNDr); 488 PIGraphicAtt gratt; 486 489 int k,ii,jj,kk; 487 490 k = mOpt[0]->GetValue()-100; 488 491 if ( (k < 0) || (k >= MYNMXCOLORS) ) k = 0; 489 drw->SetColAtt(cols[k]);492 gratt.SetColAtt(cols[k]); 490 493 k = mOpt[1]->GetValue()-200; 491 if (k == 0) drw->SetColMapId(CMAP_OTHER);492 else drw->SetColMapId(PIColorMap::GetStandardColorMapId(k-1));494 if (k == 0) gratt.SetColMapId(CMAP_OTHER); 495 else gratt.SetColMapId(PIColorMap::GetStandardColorMapId(k-1)); 493 496 k = mOpt[2]->GetValue()-300; 494 497 if ( (k < 0) || (k > 11) ) k = 0; … … 499 502 // kk = 3; 500 503 // } 501 drw->SetMarkerAtt(kk, mrk[k]);504 gratt.SetMarkerAtt(kk, mrk[k]); 502 505 ii = (mOpt[4]->GetValue()-500); 503 506 jj = (mOpt[6]->GetValue()-700); 504 507 kk = (mOpt[7]->GetValue()-800); 505 drw->SetFont(fntname[ii], fntsz[kk], fntatt[jj]);508 gratt.SetFontAtt(fntname[ii], fntsz[kk], fntatt[jj]); 506 509 507 510 k = mOpt[5]->GetValue()-600; 508 511 if ( (k < 0) || (k > 12) ) k = 0; 509 drw->SetLineAtt(PILineAtt(line[k]));512 gratt.SetLineAtt(PILineAtt(line[k])); 510 513 if (fgref) mCurBW->Refresh(); 511 514 else drw->Refresh(); … … 515 518 void PIDrwTools::Process(PIMessage msg, PIMsgHandler* /*sender*/, void* /*data*/) 516 519 { 517 char strg[64];518 520 519 521 PIMessage mod = ModMsg(msg); -
trunk/SophyaPI/PI/pifontgen.cc
r322 r1904 21 21 // et de la taille *PIFontSize*. 22 22 // * PIFontName : 23 //| PI_DefaultFont , PI_CourierFont , PI_SymbolFont 23 //| PI_DefaultFont , PI_CourierFont , PI_HelveticaFont, 24 //| PI_TimesFont, PI_SymbolFont 24 25 // * PIFontSize : 25 //| PI_SmallSizeFont , PI_NormalSizeFont , PI_BigSizeFont, PI_HugeSizeFont 26 //| PI_TinySizeFont, PI_SmallSizeFont , PI_NormalSizeFont , 27 //| PI_LargeSizeFont, PI_VeryLargeSizeFont, PI_HugeSizeFont 26 28 // * PIFontAtt : 27 //| PI_RomanFont , PI_BoldFont , PI_ItalicFont 29 //| PI_RomanFont , PI_BoldFont , PI_ItalicFont , PI_BoldItalicFont 28 30 //-- 29 31 … … 76 78 // PIFontAtt GetFontAtt() 77 79 // Retourne l'attribut de fonte 78 // int GetFontSize() 80 // PIFontSize GetFontSz() 81 // Retourne la taille de fonte converti en enum PIFontSize 82 // int GetFontSzPt() 79 83 // Retourne la taille de fonte en points (pixels) 84 // int GetFontSeze() 85 // Retourne la taille de fonte en points (pixels) - idem GetFontSzPt() 80 86 // int GetFontHeight(int& asc, int& desc) 81 87 // Renvoie la hauteur des caractères, ainsi que la taille au dessus -
trunk/SophyaPI/PI/pifontgen.h
r1564 r1904 14 14 PI_TinySizeFont = 1, 15 15 PI_SmallSizeFont = 2, PI_NormalSizeFont = 3, 16 PI_BigSizeFont = 4, PI_HugeSizeFont = 5 }; 16 PI_LargeSizeFont = 4, PI_VeryLargeSizeFont = 5, 17 PI_HugeSizeFont = 6 }; 17 18 18 19 enum PIFontAtt { PI_NotDefFontAtt = -1, … … 35 36 virtual void SetFontSzPt(int npt) = 0; 36 37 37 virtual PIFontName GetFontName() = 0; 38 virtual PIFontAtt GetFontAtt() = 0; 39 virtual int GetFontSize() = 0; 38 virtual PIFontName GetFontName() const = 0; 39 virtual PIFontAtt GetFontAtt() const = 0; 40 virtual PIFontSize GetFontSz() const = 0; 41 virtual int GetFontSzPt() const = 0; 42 inline int GetFontSize() const { return GetFontSzPt(); } 40 43 41 virtual int GetFontHeight(int& asc, int& desc) = 0;42 virtual int GetStringWidth(char const* s) = 0;44 virtual int GetFontHeight(int& asc, int& desc) const = 0; 45 virtual int GetStringWidth(char const* s) const = 0; 43 46 }; 44 47 -
trunk/SophyaPI/PI/pifontx.cc
r1564 r1904 82 82 83 83 /* --Methode-- */ 84 PIFontName PIFontX::GetFontName() 84 PIFontName PIFontX::GetFontName() const 85 85 { 86 86 return(mFName); … … 88 88 89 89 /* --Methode-- */ 90 PIFontAtt PIFontX::GetFontAtt() 90 PIFontAtt PIFontX::GetFontAtt() const 91 91 { 92 92 return(mFAtt); … … 94 94 95 95 /* --Methode-- */ 96 int PIFontX::GetFontS ize()96 int PIFontX::GetFontSzPt() const 97 97 { 98 98 return(mFSize); 99 99 } 100 100 101 /* --Methode-- */ 102 int PIFontX::GetFontHeight(int& asc, int& desc) 101 102 /* --Methode-- */ 103 int PIFontX::GetFontHeight(int& asc, int& desc) const 103 104 { 104 105 char a[2]; … … 111 112 112 113 /* --Methode-- */ 113 int PIFontX::GetStringWidth(char const* s) 114 int PIFontX::GetStringWidth(char const* s) const 114 115 { 115 116 return(XTextWidth(mFSt, s, strlen(s))); … … 117 118 118 119 119 #define NMAXFONTSZ 9120 #define NMAXFONTSZ 13 120 121 #define NMAXFONTATT 4 121 122 #define NMAXFONTTYP 5 … … 123 124 /* Variables globales pour la gestion des fontes */ 124 125 static XFontStruct * fntst[NMAXFONTSZ][NMAXFONTATT][NMAXFONTTYP]; 125 static int fntsz[NMAXFONTSZ] = {8,9,10,11,12,14,18,24,36}; 126 static int TinyFontIndex = 0; 127 static int SmallFontIndex = 2; 128 static int NormalFontIndex = 4; 129 static int BigFontIndex = 6; 130 static int HugeFontIndex = 8; 126 static int fntsz[NMAXFONTSZ] = {8,9,10,11,12,14,16,18,20,24,28,32,36}; 127 static int TinyFontIndex = 1; 128 static int SmallFontIndex = 3; 129 static int NormalFontIndex = 5; 130 static int LargeFontIndex = 7; 131 static int VeryLargeFontIndex = 9; 132 static int HugeFontIndex = 11; 131 133 static PIFontAtt fntatt[NMAXFONTATT] = 132 134 { PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_BoldItalicFont }; … … 136 138 137 139 /* --Methode-- */ 140 PIFontSize PIFontX::GetFontSz() const 141 { 142 int fnidx[6],k; 143 fnidx[0] = TinyFontIndex; 144 fnidx[1] = SmallFontIndex; 145 fnidx[2] = NormalFontIndex; 146 fnidx[3] = LargeFontIndex; 147 fnidx[4] = VeryLargeFontIndex; 148 fnidx[5] = HugeFontIndex; 149 PIFontSize rfnsz[6] = {PI_TinySizeFont, PI_SmallSizeFont, PI_NormalSizeFont, 150 PI_LargeSizeFont, PI_VeryLargeSizeFont, PI_HugeSizeFont}; 151 PIFontSize rs = PI_NormalSizeFont; 152 int diff = mFSize-fntsz[NormalFontIndex]; 153 int diffsz = (diff < 0) ? -diff : diff; 154 for(k=0; k<6; k++) { 155 diff = mFSize-fntsz[fnidx[k]]; 156 if (diff < 0) diff = -diff; 157 if (diff < diffsz) { 158 diffsz = diff; 159 rs = rfnsz[k]; 160 } 161 } 162 return(rs); 163 } 164 165 /* --Methode-- */ 138 166 void PIFontX::SelectFont(PIFontName fn, PIFontAtt fa, PIFontSize fs) 139 167 { … … 149 177 isz = fntsz[NormalFontIndex]; 150 178 break; 151 case PI_BigSizeFont: 152 isz = fntsz[BigFontIndex]; 179 case PI_LargeSizeFont: 180 isz = fntsz[LargeFontIndex]; 181 break; 182 case PI_VeryLargeSizeFont: 183 isz = fntsz[VeryLargeFontIndex]; 153 184 break; 154 185 case PI_HugeSizeFont: … … 360 391 NormalFontIndex = kksel; 361 392 SmallFontIndex = (kksel > 1) ? kksel-2 : 0 ; 362 BigFontIndex = (kksel < NMAXFONTSZ-2) ? kksel+2 : NMAXFONTSZ-1; 393 TinyFontIndex = (kksel > 3) ? kksel-4 : 0 ; 394 LargeFontIndex = (kksel < NMAXFONTSZ-2) ? kksel+2 : NMAXFONTSZ-1; 395 VeryLargeFontIndex = (kksel < NMAXFONTSZ-4) ? kksel+4 : NMAXFONTSZ-1; 396 HugeFontIndex = (kksel < NMAXFONTSZ-6) ? kksel+6 : NMAXFONTSZ-1; 363 397 // On garde HugeFontIndex et TinyFontIndex aux tailles extremes 364 398 // HugeFontIndex = NMAXFONTSZ-1; -
trunk/SophyaPI/PI/pifontx.h
r317 r1904 28 28 virtual void SetFontSzPt(int npt); 29 29 30 virtual PIFontName GetFontName(); 31 virtual PIFontAtt GetFontAtt(); 32 virtual int GetFontSize(); 30 virtual PIFontName GetFontName() const ; 31 virtual PIFontAtt GetFontAtt() const ; 32 virtual PIFontSize GetFontSz() const; 33 virtual int GetFontSzPt() const ; 33 34 34 virtual int GetFontHeight(int& asc, int& desc) ;35 virtual int GetStringWidth(char const* s) ;35 virtual int GetFontHeight(int& asc, int& desc) const ; 36 virtual int GetStringWidth(char const* s) const ; 36 37 37 38 // En public pour PIGraphicX -
trunk/SophyaPI/PI/pigraphuc.cc
r1899 r1904 45 45 // Permet de modifier l'objet "PIGraphic" de départ et l'espace graphique correspondant. 46 46 // 47 // void SelFontSz(PIGrCoord sz , PIFontAtt att=PI_RomanFont)47 // void SelFontSz(PIGrCoord sz) 48 48 // Sélection de fonte avec la taille exprimée en coordonnées utilisateur 49 // void SelFontSz(PIGrCoord sz, PIFontAtt att) 50 // Sélection de fonte avec la taille exprimée en coordonnées utilisateur, avec 51 // Spécification d'attribut de fonte 49 52 // void SelMarkerSz(PIGrCoord msz, PIMarker mrk=PI_DotMarker) 50 53 // Sélection de marker avec la taille exprimée en coordonnées utilisateur … … 802 805 803 806 /* --Methode-- */ 807 void PIGraphicUC::SelFontSz(PIGrCoord sz) 808 { 809 if (!mGrC) return; 810 SelFontSz(sz, mGrC->GetFont().GetFontAtt()); 811 } 812 813 /* --Methode-- */ 804 814 void PIGraphicUC::SelFontSz(PIGrCoord sz, PIFontAtt att) 805 815 { -
trunk/SophyaPI/PI/pigraphuc.h
r1899 r1904 89 89 virtual void SelFontSzPt(int npt=12, PIFontAtt att=PI_RomanFont); 90 90 // Fonctions specifiques a PIGraphicUC : 91 virtual void SelFontSz(PIGrCoord sz, PIFontAtt att=PI_RomanFont); 91 virtual void SelFontSz(PIGrCoord sz); 92 virtual void SelFontSz(PIGrCoord sz, PIFontAtt att); 92 93 virtual void SelMarkerSz(PIGrCoord msz, PIMarker mrk=PI_DotMarker); 93 94 -
trunk/SophyaPI/PI/piimage.cc
r1549 r1904 13 13 #include "pidrwtools.h" 14 14 #include "piscdrawwdg.h" 15 #include "piyfxdrw.h" 15 16 #include PIAPP_H 16 17 … … 352 353 string dum = ""; 353 354 drw = new PIYfXDrawer(cutarrx, NULL, true); 354 drw-> SetColAtt(PI_Red);355 drw-> SetMarkerAtt(5, PI_CrossMarker);356 drw-> SetLineAtt(PI_ThinLine);355 drw->GetGraphicAtt().SetColAtt(PI_Red); 356 drw->GetGraphicAtt().SetMarkerAtt(5, PI_CrossMarker); 357 drw->GetGraphicAtt().SetLineAtt(PI_ThinLine); 357 358 cutscw->AddScDrawer(drw, true); 358 359 dum += "Red: X, "; 359 360 drw = new PIYfXDrawer(cutarry, NULL, true); 360 drw-> SetColAtt(PI_Blue);361 drw-> SetMarkerAtt(5, PI_TriangleMarker);362 drw-> SetLineAtt(PI_ThinLine);361 drw->GetGraphicAtt().SetColAtt(PI_Blue); 362 drw->GetGraphicAtt().SetMarkerAtt(5, PI_TriangleMarker); 363 drw->GetGraphicAtt().SetLineAtt(PI_ThinLine); 363 364 cutscw->AddScDrawer(drw, true); 364 365 dum += "Blue: Y, "; 365 366 drw = new PIYfXDrawer(cutarrd, NULL, true); 366 drw-> SetColAtt(PI_Green);367 drw-> SetMarkerAtt(5, PI_PlusMarker);368 drw-> SetLineAtt(PI_ThinLine);367 drw->GetGraphicAtt().SetColAtt(PI_Green); 368 drw->GetGraphicAtt().SetMarkerAtt(5, PI_PlusMarker); 369 drw->GetGraphicAtt().SetLineAtt(PI_ThinLine); 369 370 cutscw->AddScDrawer(drw, true); 370 371 dum += "Green: XY, "; 371 372 drw = new PIYfXDrawer(cutarra, NULL, true); 372 drw-> SetColAtt(PI_Orange);373 drw-> SetMarkerAtt(5, PI_BoxMarker);374 drw-> SetLineAtt(PI_ThinLine);373 drw->GetGraphicAtt().SetColAtt(PI_Orange); 374 drw->GetGraphicAtt().SetMarkerAtt(5, PI_BoxMarker); 375 drw->GetGraphicAtt().SetLineAtt(PI_ThinLine); 375 376 cutscw->AddScDrawer(drw, true); 376 377 dum += "Orange: -XY"; … … 533 534 int cmapid = cmp->Type(); 534 535 if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) || 535 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) mdrw-> SetColAtt(PI_Red);536 else mdrw-> SetColAtt(PI_Turquoise);536 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) mdrw->GetGraphicAtt().SetColAtt(PI_Red); 537 else mdrw->GetGraphicAtt().SetColAtt(PI_Turquoise); 537 538 PIPixmap::SetColMap(cmp, refr); 538 539 if (refr) { xcurs = ycurs = -1; } … … 547 548 { 548 549 if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) || 549 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) mdrw-> SetColAtt(PI_Red);550 else mdrw-> SetColAtt(PI_Turquoise);550 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) mdrw->GetGraphicAtt().SetColAtt(PI_Red); 551 else mdrw->GetGraphicAtt().SetColAtt(PI_Turquoise); 551 552 PIPixmap::SetColMapId(cmapid, revidx, refr); 552 553 if (zow) zow->SetColMapId(cmapid, revidx, refr); … … 1019 1020 int cmapid = cmap->Type(); 1020 1021 if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) || 1021 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) gvdrw->SetColAtt(PI_Red); 1022 else gvdrw->SetColAtt(PI_Turquoise); 1023 gvdrw->SetLineAtt(PI_NormalLine); 1022 (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128)) 1023 gvdrw->GetGraphicAtt().SetColAtt(PI_Red); 1024 else gvdrw->GetGraphicAtt().SetColAtt(PI_Turquoise); 1025 gvdrw->GetGraphicAtt().SetLineAtt(PI_NormalLine); 1024 1026 gvdrw->ElAddRect(x,y,dx,dy); 1025 1027 gvw->AddDrawer(gvdrw, xw1, yw1, xw2, yw2, false); -
trunk/SophyaPI/PI/piimage.h
r1640 r1904 11 11 #include "pisysdep.h" 12 12 13 #include "pi drawer.h"13 #include "pieldrw.h" 14 14 #include PIPIXMAP_H 15 15 #include PISTDWDG_H -
trunk/SophyaPI/PI/piscdrawwdg.cc
r1884 r1904 10 10 #include "pidrwtools.h" 11 11 #include "piaxestools.h" 12 #include "parradapter.h"13 12 14 13 … … 565 564 } 566 565 567 // -------------------------------------------------------------------------- 568 // -------------------------------------------------------------------------- 569 // -------------------------------------------------------------------------- 570 // ---------------------------------------------------------- 571 // Classe de trace de points/fonctions Y=f(X) 572 // Trace Y=ay->Value() = f(X= ax->Value()) si ax et ay != NULL 573 // Trace Y=ax->Value() = f(X= ax->X()) si ay == NULL 574 // ---------------------------------------------------------- 575 // -------------------------------------------------------------------------- 576 577 //++ 578 // Class PIYfXDrawer 579 // Lib PI 580 // include piscdrawwdg.h 581 // 582 // Classe de traceur de points/fonctions Y = f(X). 583 //-- 584 //++ 585 // Links Parents 586 // PIDrawer 587 //-- 588 //++ 589 // Links Voir aussi 590 // P1DArrayAdapter 591 //-- 592 //++ 593 // Titre Constructeur 594 //-- 595 596 //++ 597 // PIYfXDrawer(P1DArrayAdapter* ax, P1DArrayAdapter* ay, bool ad) 598 // Constructeur. Tracé de 599 //| Y=ay->Value() = f(X= ax->Value()) si ax et ay != NULL 600 //| Y=ax->Value() = f(X= ax->X()) si ay == NULL 601 // Si "ad==true" les objets "ax" et "ay" sont détruits par 602 // le destructeur de "PIYfXDrawer". 603 //-- 604 605 /* --Methode-- */ 606 PIYfXDrawer::PIYfXDrawer(P1DArrayAdapter* ax, P1DArrayAdapter* ay, bool ad) 607 : PIDrawer() 608 { 609 mAdDO = ad; 610 mAx = ax; 611 mAy = ay; 612 mName = "YfXDrawer"; 613 } 614 615 /* --Methode-- */ 616 PIYfXDrawer::~PIYfXDrawer() 617 { 618 if (mAdDO && mAx) delete mAx; 619 if (mAdDO && mAy) delete mAy; 620 } 621 622 /* --Methode-- */ 623 void PIYfXDrawer::UpdateLimits() 624 { 625 if ((mAx == NULL)) mSz = 0; 626 else { 627 if (!mAy) mSz = mAx->Size(); 628 else mSz = (mAx->Size() < mAy->Size()) ? mAx->Size() : mAy->Size(); 629 } 630 if (mSz <= 0) return; 631 double xmin, xmax, ymin, ymax; 632 int i=0; 633 double cv; 634 if (mAy) { 635 xmin = xmax = mAx->Value(0); 636 ymin = ymax = mAy->Value(0); 637 for(i=1; i<mSz; i++) { 638 cv = mAx->Value(i); 639 if (cv < xmin) xmin = cv; 640 if (cv > xmax) xmax = cv; 641 cv = mAy->Value(i); 642 if (cv < ymin) ymin = cv; 643 if (cv > ymax) ymax = cv; 644 } 645 } 646 else { 647 xmin = xmax = mAx->X(0); 648 ymin = ymax = mAx->Value(0); 649 for(i=1; i<mSz; i++) { 650 cv = mAx->X(i); 651 if (cv < xmin) xmin = cv; 652 if (cv > xmax) xmax = cv; 653 cv = mAx->Value(i); 654 if (cv < ymin) ymin = cv; 655 if (cv > ymax) ymax = cv; 656 } 657 } 658 659 double dx, dy; 660 dx = 0.02*(xmax-xmin); 661 dy = 0.02*(ymax-ymin); 662 663 SetLimits(xmin-dx, xmax+dx, ymin-dy, ymax+dy); 664 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); 665 } 666 667 668 /* --Methode-- */ 669 void PIYfXDrawer::Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax) 670 { 671 double xp,yp; 672 int i; 673 674 if ((mAx == NULL)) mSz = 0; 675 else { 676 if (!mAy) mSz = mAx->Size(); 677 else mSz = (mAx->Size() < mAy->Size()) ? mAx->Size() : mAy->Size(); 678 } 679 if (mSz <= 0) return; 680 681 // Trace des markers 682 if ( (mMrk != PI_NotDefMarker) || (mLAtt == PI_NotDefLineAtt) ) { 683 for(i=0; i<mSz; i++) { 684 if (mAy) { xp = mAx->Value(i); yp = mAy->Value(i); } 685 else { xp = mAx->X(i); yp = mAx->Value(i); } 686 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 687 g->DrawMarker(xp, yp); 688 } 689 } 690 691 if (mLAtt == PI_NotDefLineAtt) return; 692 693 // Trace des lignes 694 double xp2, yp2; 695 if (mAy) { xp2 = mAx->Value(0); yp2 = mAy->Value(0); } 696 else { xp2 = mAx->X(0); yp2 = mAx->Value(0); } 697 for(i=1; i<mSz; i++) { 698 xp = xp2; yp = yp2; 699 if (mAy) { xp2 = mAx->Value(i); yp2 = mAy->Value(i); } 700 else { xp2 = mAx->X(i); yp2 = mAx->Value(i); } 701 if ( ((xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax)) && 702 ((xp2 < xmin) || (xp2 > xmax) || (yp2 < ymin) || (yp2 > ymax)) ) continue; 703 g->DrawLine(xp, yp, xp2, yp2); 704 } 705 } 706 707 708 //================================================================ 709 // PIFuncDrawer 710 // Classe de traceur de fonction double = f(fouble) 711 //================================================================ 712 713 //++ 714 // Class PIFuncDrawer 715 // Lib PI 716 // include piscdrawwdg.h 717 // 718 // Classe de traceur de fonctions Y = f(double X). 719 //-- 720 //++ 721 // Links Parents 722 // PIDrawer 723 //-- 724 //++ 725 // Titre Constructeur 726 //-- 727 //++ 728 // PIFuncDrawer(FUNC f) 729 // Cosntructeur de traceur d'une fonction "FUNC f" avec 730 //| typedef double(*FUNC)(double) 731 //-- 732 733 734 /* --Methode-- */ 735 PIFuncDrawer::PIFuncDrawer(PIFuncDrawer::FUNC f) 736 : mFunc(f) 737 {} 738 739 /* --Methode-- */ 740 PIFuncDrawer::~PIFuncDrawer() 741 { 742 } 743 744 /* --Methode-- */ 745 void 746 PIFuncDrawer::Draw(PIGraphicUC* g, double /*xmin*/, double/*ymin*/, double/*xmax*/, double/*ymax*/) 747 { 748 PIGrCoord x1, x2, y1, y2; 749 g->GetGrSpace(x1, x2, y1, y2); 750 double xMax = x2; 751 double xMin = x1; 752 double yMax = y2; 753 double yMin = y1; 754 double xStep = (xMax - xMin)/100; 755 double xOld = xMin; 756 double yOld = mFunc(xMin); 757 for (double x = xMin+xStep; x<xMax; x+=xStep) { 758 double y = mFunc(x); 759 if (y>yMin && yOld>yMin && 760 y<yMax && yOld<yMax) 761 g->DrawLine(xOld, yOld, x, y); 762 xOld = x; 763 yOld = y; 764 } 765 } 566 -
trunk/SophyaPI/PI/piscdrawwdg.h
r1884 r1904 1 1 // This may look like C code, but it is really -*- C++ -*- 2 // Module PI : Peida Interactive PIScDrawWdg PIYfXDrawer2 // Module PI : Peida Interactive PIScDrawWdg 3 3 // Gestionnaire Drawer-2D E.Aubourg, R. Ansari 96-98 4 4 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA … … 12 12 #include PIWIN_H 13 13 #include "pidrawer.h" 14 #include "pieldrw.h" 14 15 15 16 … … 121 122 122 123 123 // ----------------------------------------------------------124 // Classe de traceur de points/fonction Y=F(x)125 // Trace Y=ay->Value() = f(X= ax->Value()) si ax et ay != NULL126 // Trace Y=ax->Value() = f(X= ax->X()) si ay == NULL127 128 class P1DArrayAdapter;129 class PIYfXDrawer : public PIDrawer {130 public:131 PIYfXDrawer(P1DArrayAdapter* ax, P1DArrayAdapter* ay, bool ad);132 virtual ~PIYfXDrawer();133 134 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);135 virtual void UpdateLimits();136 137 138 protected:139 P1DArrayAdapter* mAx;140 P1DArrayAdapter* mAy;141 int mSz;142 bool mAdDO;143 };144 145 // ----------------------------------------------------------146 // Classe de traceur de fonction double = f(fouble)147 // ----------------------------------------------------------148 149 class PIFuncDrawer : public PIDrawer {150 public:151 typedef double(*FUNC)(double);152 PIFuncDrawer(FUNC);153 virtual ~PIFuncDrawer();154 155 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);156 protected:157 FUNC mFunc;158 };159 124 160 125 #endif -
trunk/SophyaPI/PI/pisurfdr.cc
r1855 r1904 226 226 227 227 PIGrCoord xg[5],yg[5],zg[5]; 228 PIColors fgc; 229 230 231 if (mCmapid == CMAP_OTHER) { // Trace avec des lignes 232 if (mLAtt == PI_NotDefLineAtt) g3->SelLine(PI_ThinLine); 233 fgc = ( mFCol == PI_NotDefColor ) ? PI_Black : mFCol; 228 PIColors mfcol = GetGraphicAtt().GetFgColor(); 229 PIColors fgc = mfcol; 230 231 232 if (GetGraphicAtt().GetColMapId() == CMAP_OTHER) { // Trace avec des lignes 233 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g3->SelLine(PI_ThinLine); 234 fgc = (mfcol == PI_NotDefColor ) ? PI_Black : mfcol; 234 235 for(l=0;l<k;l++) { 235 236 i = ijzp[l].ij%xsz; … … 254 255 } 255 256 else { // Trace avec niveaux de couleur 256 PIColorMap* cmap = new PIColorMap( mCmapid);257 PIColors fgc;258 if ( (m Cmapid == CMAP_GREY32) || (mCmapid == CMAP_GREYINV32) ||259 (m Cmapid == CMAP_GREY128) || (mCmapid == CMAP_GREYINV128) )260 fgc = ( m FCol == PI_NotDefColor ) ? PI_Red : mFCol;261 else fgc = ( m FCol == PI_NotDefColor ) ? PI_Black : mFCol;257 PIColorMap* cmap = new PIColorMap(GetGraphicAtt().GetColMapId()); 258 CMapId mcmapid = GetGraphicAtt().GetColMapId(); 259 if ( (mcmapid == CMAP_GREY32) || (mcmapid == CMAP_GREYINV32) || 260 (mcmapid == CMAP_GREY128) || (mcmapid == CMAP_GREYINV128) ) 261 fgc = ( mfcol == PI_NotDefColor ) ? PI_Red : mfcol; 262 else fgc = ( mfcol == PI_NotDefColor ) ? PI_Black : mfcol; 262 263 for(l=0;l<k;l++) { 263 264 i = ijzp[l].ij%xsz; … … 275 276 g3->DrawFPolygon3D(xg,yg,zg,5); 276 277 // On trace 277 if ( mLAtt== PI_NotDefLineAtt) continue;278 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) continue; 278 279 g3->SelForeground(fgc); 279 280 g3->DrawPolygon3D(xg,yg,zg,5); -
trunk/SophyaPI/PI/psfile.cc
r1899 r1904 57 57 \ 58 58 PI_RomanFont, PI_BoldFont, PI_ItalicFont, PI_NotDefFontAtt,\ 59 PI_SmallSizeFont, PI_NormalSizeFont, PI_ BigSizeFont, PI_NotDefFontSize, \59 PI_SmallSizeFont, PI_NormalSizeFont, PI_LargeSizeFont, PI_NotDefFontSize, \ 60 60 \ 61 61 PI_NormalLine, PI_ThinLine, PI_ThickLine, PI_NotDefLineAtt … … 95 95 %%/FS%-2d {8 scalefont setfont} bind def %% PI_SmallSizeFont\n\ 96 96 %%/FS%-2d {12 scalefont setfont} bind def %% PI_NormalSizeFont\n\ 97 %%/FS%-2d {16 scalefont setfont} bind def %% PI_ BigSizeFont\n\97 %%/FS%-2d {16 scalefont setfont} bind def %% PI_LargeSizeFont\n\ 98 98 /FS%-2d {} bind def %% PI_NotDefFontSize\n\ 99 99 /L%-2d {1 slw} bind def %% PI_NormalLine\n\
Note:
See TracChangeset
for help on using the changeset viewer.