libpgplotxx.a (C++ interface to PGPLOT)

◆ operator!=()

bool pgplot::Tlinestyle::operator!= ( const Tlinestyle ls) const

compare

true if not equal

Definition at line 109 of file xpgplotxx.cc.

References pgplot::Tcol::b, Fci, Fhls, Fls, Flw, Frgb, pgplot::Tcol::g, Mci, Mcol, Mflags, Mls, Mlw, and pgplot::Tcol::r.

110  {
111  if (this->Mflags != ls.Mflags) return(true);
112  if ((Mflags&Flw) && (this->Mlw != ls.Mlw)) return(true);
113  if ((Mflags&Fls) && (this->Mls != ls.Mls)) return(true);
114  if ((Mflags&Fci) && (this->Mci != ls.Mci)) return(true);
115  if ((Mflags&Fci) && (Mflags&(Frgb|Fhls)) &&
116  (this->Mcol.r != ls.Mcol.r)) return(true);
117  if ((Mflags&Fci) && (Mflags&(Frgb|Fhls)) &&
118  (this->Mcol.g != ls.Mcol.g)) return(true);
119  if ((Mflags&Fci) && (Mflags&(Frgb|Fhls)) &&
120  (this->Mcol.b != ls.Mcol.b)) return(true);
121  return(false);
122  } // bool Tlinestyle::operator!=(const Tlinestyle& ls) const
int Mlw
line width
Definition: xpgplotxx.h:127
int Mls
line style
Definition: xpgplotxx.h:123
int Mci
color index
Definition: xpgplotxx.h:125
int Mflags
flags
Definition: xpgplotxx.h:129
Tcol Mcol
rgb or hls colour setting
Definition: xpgplotxx.h:131
float r
Definition: structs.h:222
float g
Definition: structs.h:224
float b
Definition: structs.h:226