Logo Search packages:      
Sourcecode: agave version File versions  Download package

bool gcs::Color::operator== ( const Color c  ) 

compares two Color objects to see if they're equal

Definition at line 267 of file gcs-color.cc.

References get_hexstring(), and pColor.

    {
        bool status = false;
        // first check if we're comparing it to itself, then check all of the
        // attributes to see if their values are the same
        if ((this == &c) || (*pColor == *c.pColor))
        {
            status = true;
        }
        else
        {
            if (get_hexstring() == c.get_hexstring())
            {
                status = true;
            }
        }
        return status;
    }


Generated by  Doxygen 1.6.0   Back to index