JUCE  v5.1.1-3-g1a0b28c73
JUCE API
RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType > Class Template Reference

Fills an edge-table with a gradient. More...

#include <juce_RenderingHelpers.h>

Inheritance diagram for RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >:
Collaboration diagram for RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >:

Public Member Functions

 Gradient (const Image::BitmapData &dest, const ColourGradient &gradient, const AffineTransform &transform, const PixelARGB *const colours, const int numColours)
 
void handleEdgeTableLine (int x, int width, const int alphaLevel) const noexcept
 
void handleEdgeTableLineFull (int x, int width) const noexcept
 
forcedinline void handleEdgeTablePixel (const int x, const int alphaLevel) const noexcept
 
forcedinline void handleEdgeTablePixelFull (const int x) const noexcept
 
forcedinline void setEdgeTableYPos (const int y) noexcept
 

Private Member Functions

forcedinline PixelType * getPixel (const int x) const noexcept
 

Private Attributes

const Image::BitmapDatadestData
 
PixelType * linePixels
 

Detailed Description

template<class PixelType, class GradientType>
class RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >

Fills an edge-table with a gradient.

Constructor & Destructor Documentation

◆ Gradient()

template<class PixelType, class GradientType>
RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::Gradient ( const Image::BitmapData dest,
const ColourGradient< PixelType, GradientType > &  gradient,
const AffineTransform transform,
const PixelARGB *const  colours,
const int  numColours 
)
inline

Member Function Documentation

◆ getPixel()

template<class PixelType, class GradientType>
forcedinline PixelType* RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::getPixel ( const int  x) const
inlineprivatenoexcept

◆ handleEdgeTableLine()

template<class PixelType, class GradientType>
void RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::handleEdgeTableLine ( int  x,
int  width,
const int  alphaLevel 
) const
inlinenoexcept

◆ handleEdgeTableLineFull()

template<class PixelType, class GradientType>
void RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::handleEdgeTableLineFull ( int  x,
int  width 
) const
inlinenoexcept

◆ handleEdgeTablePixel()

template<class PixelType, class GradientType>
forcedinline void RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::handleEdgeTablePixel ( const int  x,
const int  alphaLevel 
) const
inlinenoexcept

◆ handleEdgeTablePixelFull()

template<class PixelType, class GradientType>
forcedinline void RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::handleEdgeTablePixelFull ( const int  x) const
inlinenoexcept

◆ setEdgeTableYPos()

template<class PixelType, class GradientType>
forcedinline void RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::setEdgeTableYPos ( const int  y)
inlinenoexcept

Member Data Documentation

◆ destData

template<class PixelType, class GradientType>
const Image::BitmapData& RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::destData
private

◆ linePixels

template<class PixelType, class GradientType>
PixelType* RenderingHelpers::EdgeTableFillers::Gradient< PixelType, GradientType >::linePixels
private

The documentation for this class was generated from the following file: