62 if (!
d->
node->inherits(
"KisLayer"))
return false;
66 for (
uint i = 0; i < channelInfo.size(); ++i) {
70 return flags.isEmpty() || flags.testBit(i);
80 if (!
d->
node->inherits(
"KisLayer"))
return;
86 if (flags.isEmpty()) {
87 flags.fill(1, channelInfo.size());
90 for (
uint i = 0; i < channelInfo.size(); ++i) {
92 flags.setBit(i,
value);
159 QDataStream stream(&ba, QIODevice::WriteOnly);
201 QDataStream stream(&
value, QIODevice::ReadOnly);
float value(const T *src, size_t ch)
const KoID Float32BitsColorDepthID("F32", ki18n("32-bit float/channel"))
const KoID Float16BitsColorDepthID("F16", ki18n("16-bit float/channel"))
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))
const KoID Integer16BitsColorDepthID("U16", ki18n("16-bit integer/channel"))
bool operator==(const Channel &other) const
void setVisible(bool value)
setvisible set the visibility of the channel to the given value.
Channel(KisNodeSP node, KoChannelInfo *channel, QObject *parent=0)
bool operator!=(const Channel &other) const
bool visible() const
visible checks whether this channel is visible in the node
void setPixelData(QByteArray value, const QRect &rect)
setPixelData writes the given data to the relevant channel in the Node. This is only possible for Nod...
QByteArray pixelData(const QRect &rect) const
QRect exactBounds() const
ALWAYS_INLINE quint8 * rawData()
ALWAYS_INLINE const quint8 * rawDataConst() const
QList< KoChannelInfo * > channels
virtual KoID colorDepthId() const =0
virtual KisPaintDeviceSP projection() const =0
virtual QRect exactBounds() const
virtual const KoColorSpace * colorSpace() const =0
virtual KisPaintDeviceSP paintDevice() const =0
virtual void setChannelFlags(const QBitArray &channelFlags)
static KoColorSpaceRegistry * instance()