Changeset 1890 in Sophya
- Timestamp:
- Jan 31, 2002, 4:20:42 PM (24 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphgen.h
r1887 r1890 90 90 { _lwidth=b._lwidth; _ldash=b._ldash; _ljoincap=b._ljoincap; } 91 91 92 explicitPILineAtt(PILineTypes ltyp);92 PILineAtt(PILineTypes ltyp); 93 93 94 94 inline ~PILineAtt() {} … … 99 99 { *this=PILineAtt(ltyp); return(*this); } 100 100 101 inline bool operator == (PILineAtt const& b) 101 inline bool operator == (PILineAtt const& b) const 102 102 { return ((_lwidth==b._lwidth)&&(_ldash==b._ldash)&&(_ljoincap==b._ljoincap)); } 103 inline bool operator == (PILineTypes ltyp) 103 inline bool operator == (PILineTypes ltyp) const 104 104 { return ((*this) == PILineAtt(ltyp)); } 105 inline bool operator != (PILineAtt const& b) 105 inline bool operator != (PILineAtt const& b) const 106 106 { return ((_lwidth!=b._lwidth)||(_ldash!=b._ldash)||(_ljoincap!=b._ljoincap)); } 107 inline bool operator != (PILineTypes ltyp) 107 inline bool operator != (PILineTypes ltyp) const 108 108 { return ((*this) != PILineAtt(ltyp)); } 109 109 … … 183 183 virtual void SelBackground(PIColorMap& cmap, int cid) = 0; 184 184 virtual void SelGOMode(PIGOMode mod=PI_GOCopy) = 0; 185 virtual void SelLine(PILineAtt att=PI_NormalLine) = 0; 186 inline void SelLine(PILineTypes lt) { SelLine(PILineAtt(lt)); } 185 virtual void SelLine(PILineAtt const& att) = 0; 186 inline void SelLine(PILineTypes lt=PI_NormalLine) 187 { SelLine(PILineAtt(lt)); } 187 188 virtual void SelMarker(int msz=3, PIMarker mrk=PI_DotMarker) = 0; 188 189 virtual void SelArrowMarker(int arrsz=5, -
trunk/SophyaPI/PI/pigraphmac.cc
r369 r1890 434 434 435 435 /* --Methode-- */ 436 void PIGraphicMac::SelLine(PILineAtt att)436 void PIGraphicMac::SelLine(PILineAtt const & att) 437 437 { 438 438 if (mPane->FocusDraw()) { -
trunk/SophyaPI/PI/pigraphmac.h
r369 r1890 48 48 PIFontAtt att=PI_RomanFont); 49 49 virtual void SelFontSzPt(int npt=12, PIFontAtt att=PI_RomanFont); 50 virtual void SelLine(PILineAtt att=PI_NormalLine);50 virtual void SelLine(PILineAtt const& att); 51 51 virtual void SelMarker(int msz=3, PIMarker mrk=PI_DotMarker); 52 52 -
trunk/SophyaPI/PI/pigraphps.cc
r1887 r1890 85 85 SelBackground(PI_White); 86 86 mLAtt = PI_ThinLine; 87 SelLine( );87 SelLine(PI_NormalLine); 88 88 // mFAtt = PI_BoldFont; mFSize = 0; $CHECK$ Plus besoin 89 89 SelFont(); … … 396 396 397 397 /* --Methode-- */ 398 void PIGraphicPS::SelLine(PILineAtt att)398 void PIGraphicPS::SelLine(PILineAtt const& att) 399 399 { 400 400 mLAtt = att; -
trunk/SophyaPI/PI/pigraphps.h
r1534 r1890 47 47 virtual void SelBackground(PIColorMap& cmap, int cid); 48 48 virtual void SelGOMode(PIGOMode mod=PI_GOCopy); 49 virtual void SelLine(PILineAtt att=PI_NormalLine);49 virtual void SelLine(PILineAtt const& att); 50 50 virtual void SelMarker(int msz=3, PIMarker mrk=PI_DotMarker); 51 51 -
trunk/SophyaPI/PI/pigraphuc.cc
r1887 r1890 787 787 788 788 /* --Methode-- */ 789 void PIGraphicUC::SelLine(PILineAtt att)789 void PIGraphicUC::SelLine(PILineAtt const& att) 790 790 { 791 791 if (!mGrC) return; -
trunk/SophyaPI/PI/pigraphuc.h
r1887 r1890 74 74 virtual void SelBackground(PIColorMap& cmap, int cid); 75 75 virtual void SelGOMode(PIGOMode mod=PI_GOCopy); 76 virtual void SelLine(PILineAtt att=PI_NormalLine);76 virtual void SelLine(PILineAtt const& att); 77 77 virtual void SelMarker(int msz=3, PIMarker mrk=PI_DotMarker); 78 78 -
trunk/SophyaPI/PI/pigraphx.cc
r1887 r1890 68 68 mLAtt = PI_NotDefLineAtt; 69 69 XSetFont(mDisp, DefGC(), myFont.GetXFontId()); // Pour initialiser la fonte ds le GC 70 SelLine( );70 SelLine(PI_NormalLine); 71 71 SelMarker(1, PI_DotMarker); 72 72 mFCfMap = colpix[PI_Black]; mBCfMap = colpix[PI_White]; … … 470 470 471 471 /* --Methode-- */ 472 void PIGraphicX::SelLine(PILineAtt att)472 void PIGraphicX::SelLine(PILineAtt const& att) 473 473 { 474 474 -
trunk/SophyaPI/PI/pigraphx.h
r1034 r1890 47 47 virtual void SelBackground(PIColorMap& cmap, int cid); 48 48 virtual void SelGOMode(PIGOMode mod=PI_GOCopy); 49 virtual void SelLine(PILineAtt att=PI_NormalLine);49 virtual void SelLine(PILineAtt const& att); 50 50 virtual void SelMarker(int msz=3, PIMarker mrk=PI_DotMarker); 51 51
Note:
See TracChangeset
for help on using the changeset viewer.