Changeset 1890 in Sophya


Ignore:
Timestamp:
Jan 31, 2002, 4:20:42 PM (24 years ago)
Author:
ansari
Message:

Suite modifs PILineAtt (argument passe a const& ds PIGraphic::SelLine() - Reza 31/01/2002

Location:
trunk/SophyaPI/PI
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphgen.h

    r1887 r1890  
    9090  { _lwidth=b._lwidth; _ldash=b._ldash; _ljoincap=b._ljoincap; }
    9191 
    92   explicit PILineAtt(PILineTypes ltyp);
     92  PILineAtt(PILineTypes ltyp);
    9393
    9494  inline ~PILineAtt() {}
     
    9999  { *this=PILineAtt(ltyp);  return(*this); }
    100100   
    101   inline bool operator == (PILineAtt const& b)
     101  inline bool operator == (PILineAtt const& b) const
    102102  { return ((_lwidth==b._lwidth)&&(_ldash==b._ldash)&&(_ljoincap==b._ljoincap)); }
    103   inline bool operator == (PILineTypes ltyp)
     103  inline bool operator == (PILineTypes ltyp) const
    104104  { return ((*this) == PILineAtt(ltyp)); }
    105   inline bool operator != (PILineAtt const& b)
     105  inline bool operator != (PILineAtt const& b) const
    106106  { return ((_lwidth!=b._lwidth)||(_ldash!=b._ldash)||(_ljoincap!=b._ljoincap)); }
    107   inline bool operator != (PILineTypes ltyp)
     107  inline bool operator != (PILineTypes ltyp) const
    108108  { return ((*this) != PILineAtt(ltyp)); }
    109109
     
    183183  virtual void       SelBackground(PIColorMap& cmap, int cid)                  = 0;
    184184  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)); }
    187188  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker)           = 0;
    188189  virtual void       SelArrowMarker(int arrsz=5,
  • trunk/SophyaPI/PI/pigraphmac.cc

    r369 r1890  
    434434
    435435/* --Methode-- */
    436 void PIGraphicMac::SelLine(PILineAtt att)
     436void PIGraphicMac::SelLine(PILineAtt const & att)
    437437{
    438438  if (mPane->FocusDraw()) {
  • trunk/SophyaPI/PI/pigraphmac.h

    r369 r1890  
    4848                             PIFontAtt att=PI_RomanFont);
    4949  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);
    5151  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker);
    5252
  • trunk/SophyaPI/PI/pigraphps.cc

    r1887 r1890  
    8585SelBackground(PI_White);
    8686mLAtt = PI_ThinLine;
    87 SelLine();
     87SelLine(PI_NormalLine);
    8888// mFAtt = PI_BoldFont;  mFSize = 0;  $CHECK$ Plus besoin
    8989SelFont();
     
    396396
    397397/* --Methode-- */
    398 void PIGraphicPS::SelLine(PILineAtt att)
     398void PIGraphicPS::SelLine(PILineAtt const& att)
    399399{
    400400mLAtt = att;
  • trunk/SophyaPI/PI/pigraphps.h

    r1534 r1890  
    4747  virtual void       SelBackground(PIColorMap& cmap, int cid);
    4848  virtual void       SelGOMode(PIGOMode mod=PI_GOCopy);
    49   virtual void       SelLine(PILineAtt att=PI_NormalLine);
     49  virtual void       SelLine(PILineAtt const& att);
    5050  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker);
    5151
  • trunk/SophyaPI/PI/pigraphuc.cc

    r1887 r1890  
    787787
    788788/* --Methode-- */
    789 void PIGraphicUC::SelLine(PILineAtt att)
     789void PIGraphicUC::SelLine(PILineAtt const& att)
    790790{
    791791  if (!mGrC) return;
  • trunk/SophyaPI/PI/pigraphuc.h

    r1887 r1890  
    7474  virtual void       SelBackground(PIColorMap& cmap, int cid);
    7575  virtual void       SelGOMode(PIGOMode mod=PI_GOCopy);
    76   virtual void       SelLine(PILineAtt att=PI_NormalLine);
     76  virtual void       SelLine(PILineAtt const& att);
    7777  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker);
    7878
  • trunk/SophyaPI/PI/pigraphx.cc

    r1887 r1890  
    6868mLAtt = PI_NotDefLineAtt;
    6969 XSetFont(mDisp, DefGC(), myFont.GetXFontId());  // Pour initialiser la fonte ds le GC
    70 SelLine();
     70SelLine(PI_NormalLine);
    7171SelMarker(1, PI_DotMarker); 
    7272mFCfMap = colpix[PI_Black];  mBCfMap = colpix[PI_White];
     
    470470
    471471/* --Methode-- */
    472 void PIGraphicX::SelLine(PILineAtt att)
     472void PIGraphicX::SelLine(PILineAtt const& att)
    473473{
    474474
  • trunk/SophyaPI/PI/pigraphx.h

    r1034 r1890  
    4747  virtual void       SelBackground(PIColorMap& cmap, int cid);
    4848  virtual void       SelGOMode(PIGOMode mod=PI_GOCopy);
    49   virtual void       SelLine(PILineAtt att=PI_NormalLine);
     49  virtual void       SelLine(PILineAtt const& att);
    5050  virtual void       SelMarker(int msz=3, PIMarker mrk=PI_DotMarker);
    5151
Note: See TracChangeset for help on using the changeset viewer.