#include <KoColor.h>
Graphe de collaboration de KoColor:
Fonctions membres publiques | |
KoColor () | |
Create an empty KoColor. It will be valid, but also black and transparent. | |
virtual | ~KoColor () |
KoColor (const QColor &color, KoColorSpace *colorSpace) | |
KoColor (const QColor &color, quint8 alpha, KoColorSpace *colorSpace) | |
KoColor (const quint8 *data, KoColorSpace *colorSpace) | |
Create a KoColor using a native color strategy. The data is copied. | |
KoColor (const KoColor &src, KoColorSpace *colorSpace) | |
Create a KoColor by converting src into another colorspace. | |
KoColor (const KoColor &rhs) | |
Copy constructor -- deep copies the colors. | |
KoColor & | operator= (const KoColor &) |
Effective C++, item 11. | |
quint8 * | data () const |
For easy memcpy'ing etc. | |
KoColorSpace * | colorSpace () const |
KoColorProfile * | profile () const |
void | convertTo (KoColorSpace *cs) |
void | setColor (quint8 *data, KoColorSpace *colorSpace=0) |
Replace the existing color data, and colorspace with the specified data. | |
void | toQColor (QColor *c) const |
To save the user the trouble of doing color->colorSpace()->toQColor(color->data(), &c, &a. | |
void | toQColor (QColor *c, quint8 *opacity) const |
QColor | toQColor () const |
void | dump () const |
Attributs privés | |
quint8 * | m_data |
KoColorSpace * | m_colorSpace |
Définition à la ligne 35 du fichier KoColor.h.
KoColor::KoColor | ( | ) |
Create an empty KoColor. It will be valid, but also black and transparent.
Définition à la ligne 27 du fichier KoColor.cpp.
Références KoColorSpaceRegistry::colorSpace(), KoColorSpaceRegistry::instance(), m_colorSpace, m_data, OPACITY_OPAQUE, KoColorSpace::pixelSize(), et KoColorSpace::setAlpha().
Voici le graphe d'appel pour cette fonction :
KoColor::~KoColor | ( | ) | [virtual] |
KoColor::KoColor | ( | const QColor & | color, | |
KoColorSpace * | colorSpace | |||
) |
Create a KoColor from a QColor. The QColor is immediately converted to native. The QColor is assumed to have the current monitor profile.
Définition à la ligne 40 du fichier KoColor.cpp.
Références colorSpace(), KoColorSpace::fromQColor(), m_colorSpace, m_data, OPACITY_OPAQUE, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
KoColor::KoColor | ( | const QColor & | color, | |
quint8 | alpha, | |||
KoColorSpace * | colorSpace | |||
) |
Create a KoColor from a QColor. The QColor is immediately converted to native. The QColor is assumed to have the current monitor profile.
Définition à la ligne 53 du fichier KoColor.cpp.
Références colorSpace(), KoColorSpace::fromQColor(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
KoColor::KoColor | ( | const quint8 * | data, | |
KoColorSpace * | colorSpace | |||
) |
Create a KoColor using a native color strategy. The data is copied.
Définition à la ligne 64 du fichier KoColor.cpp.
Références colorSpace(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
KoColor::KoColor | ( | const KoColor & | src, | |
KoColorSpace * | colorSpace | |||
) |
Create a KoColor by converting src into another colorspace.
Définition à la ligne 74 du fichier KoColor.cpp.
Références colorSpace(), KoColorSpace::convertPixelsTo(), data(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
KoColor::KoColor | ( | const KoColor & | rhs | ) |
Copy constructor -- deep copies the colors.
Définition à la ligne 83 du fichier KoColor.cpp.
Références colorSpace(), data(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
Effective C++, item 11.
Définition à la ligne 96 du fichier KoColor.cpp.
Références colorSpace(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Voici le graphe d'appel pour cette fonction :
quint8* KoColor::data | ( | ) | const [inline] |
For easy memcpy'ing etc.
Définition à la ligne 64 du fichier KoColor.h.
Référencé par KoXYColorSelector::drawContents(), KoColorSlider::drawContents(), KoColor(), KoUniColorChooser::slotHSVChanged(), KoUniColorChooser::slotOpacityChanged(), KoUniColorChooser::slotRGBChanged(), KoUniColorChooser::slotSliderChanged(), KoUniColorChooser::slotXYChanged(), et KoUniColorChooser::updateValues().
Voici le graphe d'appel pour cette fonction :
KoColorSpace* KoColor::colorSpace | ( | ) | const [inline] |
Définition à la ligne 66 du fichier KoColor.h.
Référencé par KoColorSlider::drawContents(), KoColor(), operator=(), setColor(), KoUniColorChooser::slotHSVChanged(), KoUniColorChooser::slotOpacityChanged(), KoUniColorChooser::slotRGBChanged(), KoUniColorChooser::slotSliderChanged(), KoUniColorChooser::slotXYChanged(), et KoUniColorChooser::updateValues().
Voici le graphe d'appel pour cette fonction :
KoColorProfile* KoColor::profile | ( | ) | const [inline] |
Définition à la ligne 68 du fichier KoColor.h.
Références KoColorSpace::getProfile().
Voici le graphe d'appel pour cette fonction :
void KoColor::convertTo | ( | KoColorSpace * | cs | ) |
Convert this KoColor to the specified colorspace. If the specified colorspace is the same as the original colorspace, do nothing. Returns the converted KoColor.
Définition à la ligne 111 du fichier KoColor.cpp.
Références KoColorSpace::convertPixelsTo(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Référencé par KoUniColorChooser::updateValues().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoColor::setColor | ( | quint8 * | data, | |
KoColorSpace * | colorSpace = 0 | |||
) |
Replace the existing color data, and colorspace with the specified data.
Définition à la ligne 130 du fichier KoColor.cpp.
Références colorSpace(), m_colorSpace, m_data, et KoColorSpace::pixelSize().
Référencé par KoUniColorChooser::slotHSVChanged(), KoUniColorChooser::slotRGBChanged(), KoUniColorChooser::slotSliderChanged(), et KoUniColorChooser::slotXYChanged().
Voici le graphe d'appel pour cette fonction :
void KoColor::toQColor | ( | QColor * | c | ) | const |
To save the user the trouble of doing color->colorSpace()->toQColor(color->data(), &c, &a.
Définition à la ligne 139 du fichier KoColor.cpp.
Références m_colorSpace, m_data, et KoColorSpace::toQColor().
Référencé par KoXYColorSelector::drawContents(), KoColorSlider::drawContents(), KoDualColorButton::mouseMoveEvent(), KoDualColorButton::paintEvent(), et KoColorPatch::paintEvent().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoColor::toQColor | ( | QColor * | c, | |
quint8 * | opacity | |||
) | const |
Définition à la ligne 149 du fichier KoColor.cpp.
Références m_colorSpace, m_data, et KoColorSpace::toQColor().
Voici le graphe d'appel pour cette fonction :
QColor KoColor::toQColor | ( | ) | const |
Définition à la ligne 158 du fichier KoColor.cpp.
void KoColor::dump | ( | ) | const |
Définition à la ligne 165 du fichier KoColor.cpp.
Références KoColorSpace::channels(), et m_colorSpace.
Voici le graphe d'appel pour cette fonction :
quint8* KoColor::m_data [private] |
Définition à la ligne 87 du fichier KoColor.h.
Référencé par convertTo(), KoColor(), operator=(), setColor(), toQColor(), et ~KoColor().
KoColorSpace* KoColor::m_colorSpace [private] |
Définition à la ligne 89 du fichier KoColor.h.
Référencé par convertTo(), dump(), KoColor(), operator=(), setColor(), et toQColor().