Nuke binary plugins 15.0.5
 
Loading...
Searching...
No Matches
DD::Image::Pixel Class Reference

#include <Pixel.h>

Public Member Functions

 Pixel (const ChannelSetInit c)
 
 Pixel (const ChannelSet &c)
 
 Pixel (Channel c)
 
 Pixel (const Pixel &b)
 
float & operator[] (Channel z)
 
const float & operator[] (Channel z) const
 
float * array ()
 
InterestRatchetinterestRatchet ()
 
void setInterestRatchet (InterestRatchet *interestRatchet)
 
void copyInterestRatchet (const Pixel &from)
 
void set (float d)
 
void set (const ChannelSet &c, float d)
 
void set (const ChannelPack &c, float d)
 
void erase ()
 
void erase (Channel z)
 
void erase (const ChannelSet &mask)
 
void erase (const ChannelPack &mask)
 
void replace (const Pixel &b, const ChannelSet &c)
 
void replace (const Pixel &b, const ChannelPack &c)
 
void replace (const Pixel &b)
 
Pixeloperator= (float d)
 
Pixel operator* (float d) const
 
Pixeloperator*= (float d)
 
Pixel operator* (const Pixel &v) const
 
Pixeloperator*= (const Pixel &v)
 
Pixel operator/ (float d) const
 
Pixeloperator/= (float d)
 
Pixel operator/ (const Pixel &v) const
 
Pixeloperator/= (const Pixel &v)
 
Pixel operator+ (float d) const
 
Pixeloperator+= (float d)
 
Pixel operator+ (const Pixel &v) const
 
Pixeloperator+= (const Pixel &v)
 
Pixel operator- (float d) const
 
Pixeloperator-= (float d)
 
Pixel operator- (const Pixel &v) const
 
Pixeloperator-= (const Pixel &v)
 
void lerp (const Pixel &b, float t)
 Destructive linear interpolate between this Pixel and Pixel b by t(0..1).
 
void over (const Pixel &A, float a, const ChannelSet &channels)
 
void over (const Pixel &A, float a, const ChannelPack &channels)
 
void over (const Pixel &A, float a)
 
void under (const Pixel &A, const ChannelSet &channels)
 
void under (const Pixel &A, const ChannelPack &channels)
 
void under (const Pixel &A)
 
void setRGBAToBlack ()
 Convenience color functions.
 
void setRGBAToWhite ()
 
void setRGBToBlack ()
 
void setRGBToWhite ()
 
void setOpacityToFull ()
 
void setOpacityToNone ()
 
fdk::Vec3f getVec3Chans (Channel *clist) const
 
fdk::Vec3f getVec3Chans (Channel x, Channel y, Channel z) const
 
fdk::Vec4f getVec4Chans (Channel *clist) const
 
fdk::Vec4f getVec4Chans (Channel x, Channel y, Channel z, Channel w) const
 
void setVec2Chans (float x, float y, Channel *clist)
 
void setVec2Chans (const fdk::Vec2f &v, Channel *clist)
 
void setVec3Chans (float x, float y, float z, Channel *clist)
 
void setVec3Chans (const fdk::Vec3f &v, Channel *clist)
 
void setVec4Chans (float x, float y, float z, float w, Channel *clist)
 
void setVec4Chans (const fdk::Vec4f &v, Channel *clist)
 
fdk::Vec4f & P ()
 
const fdk::Vec4f & P () const
 
float & x ()
 
float x () const
 
float & y ()
 
float y () const
 
float & z ()
 
float z () const
 
float & w ()
 
float w () const
 
float & Z ()
 
float Z () const
 
float & Zf ()
 
float Zf () const
 
float & Zb ()
 
float Zb () const
 
fdk::Vec3f & PL ()
 
const fdk::Vec3f & PL () const
 
fdk::Vec3f & PW ()
 
const fdk::Vec3f & PW () const
 
fdk::Vec3f & MB ()
 
const fdk::Vec3f & MB () const
 
fdk::Vec4f & UV ()
 
const fdk::Vec4f & UV () const
 
fdk::Vec3f & N ()
 
const fdk::Vec3f & N () const
 
fdk::Vec3f & VEL ()
 
const fdk::Vec3f & VEL () const
 
fdk::Vec4f & Cf ()
 
const fdk::Vec4f & Cf () const
 
fdk::Vec4f & rgba ()
 
const fdk::Vec4f & rgba () const
 
fdk::Vec3f & rgb ()
 
const fdk::Vec3f & rgb () const
 
float & r ()
 
float r () const
 
float & g ()
 
float g () const
 
float & b ()
 
float b () const
 
float & a ()
 
float a () const
 
float & red ()
 
float red () const
 
float & green ()
 
float green () const
 
float & blue ()
 
float blue () const
 
float & alpha ()
 
float alpha () const
 
float & coverage ()
 
float coverage () const
 
float & cutoutAlpha ()
 
float cutoutAlpha () const
 
float & cutoutDepth ()
 
float cutoutDepth () const
 
fdk::Vec3f & color ()
 
const fdk::Vec3f & color () const
 
float & opacity ()
 
float opacity () const
 
fdk::Vec3f & position ()
 
const fdk::Vec3f & position () const
 
fdk::Vec3f & velocity ()
 
const fdk::Vec3f & velocity () const
 
fdk::Vec3f & normal ()
 
const fdk::Vec3f & normal () const
 
 mFnDeprecatedInNuke14 ("under(Pixel, float, ChannelSet) has been deprecated, use under(Pixel, ChannelSet) instead.") void under(const Pixel &A
 
 mFnDeprecatedInNuke14 ("under(Pixel, float) has been deprecated, use under(Pixel) instead.") void under(const Pixel &A
 

Public Attributes

ChannelSet channels
 
float chan [Chan_Last+1]
 
float a
 
float const ChannelSetchannels
 

Detailed Description

Holds a single pixel's worth of image data. Contains a ChannelSet to indicate active planes.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com