A table of horizontal scan-line segments - used for rasterising Paths.
More...
#include <juce_EdgeTable.h>
A table of horizontal scan-line segments - used for rasterising Paths.
- See also
- Path, Graphics
◆ EdgeTable() [1/6]
Creates an edge table containing a path.
A table is created with a fixed vertical range, and only sections of the path which lie within this range will be added to the table.
- Parameters
-
clipLimits | only the region of the path that lies within this area will be added |
pathToAdd | the path to add to the table |
transform | a transform to apply to the path being added |
◆ EdgeTable() [2/6]
EdgeTable::EdgeTable |
( |
const Rectangle< int > & |
rectangleToAdd | ) |
|
|
explicit |
Creates an edge table containing a rectangle.
◆ EdgeTable() [3/6]
Creates an edge table containing a rectangle list.
◆ EdgeTable() [4/6]
EdgeTable::EdgeTable |
( |
const RectangleList< float > & |
rectanglesToAdd | ) |
|
|
explicit |
Creates an edge table containing a rectangle list.
◆ EdgeTable() [5/6]
EdgeTable::EdgeTable |
( |
const Rectangle< float > & |
rectangleToAdd | ) |
|
|
explicit |
Creates an edge table containing a rectangle.
◆ EdgeTable() [6/6]
Creates a copy of another edge table.
◆ ~EdgeTable()
EdgeTable::~EdgeTable |
( |
| ) |
|
◆ addEdgePoint()
void EdgeTable::addEdgePoint |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
winding |
|
) |
| |
|
private |
◆ addEdgePointPair()
void EdgeTable::addEdgePointPair |
( |
int |
x1, |
|
|
int |
x2, |
|
|
int |
y, |
|
|
int |
winding |
|
) |
| |
|
private |
◆ allocate()
void EdgeTable::allocate |
( |
| ) |
|
|
private |
◆ clearLineSizes()
void EdgeTable::clearLineSizes |
( |
| ) |
|
|
privatenoexcept |
◆ clipEdgeTableLineToRange()
void EdgeTable::clipEdgeTableLineToRange |
( |
int * |
line, |
|
|
int |
x1, |
|
|
int |
x2 |
|
) |
| |
|
privatenoexcept |
◆ clipLineToMask()
void EdgeTable::clipLineToMask |
( |
int |
x, |
|
|
int |
y, |
|
|
const uint8 * |
mask, |
|
|
int |
maskStride, |
|
|
int |
numPixels |
|
) |
| |
◆ clipToEdgeTable()
void EdgeTable::clipToEdgeTable |
( |
const EdgeTable & |
| ) |
|
◆ clipToRectangle()
void EdgeTable::clipToRectangle |
( |
const Rectangle< int > & |
r | ) |
|
◆ copyEdgeTableData()
static void EdgeTable::copyEdgeTableData |
( |
int * |
dest, |
|
|
int |
destLineStride, |
|
|
const int * |
src, |
|
|
int |
srcLineStride, |
|
|
int |
numLines |
|
) |
| |
|
staticprivatenoexcept |
◆ excludeRectangle()
void EdgeTable::excludeRectangle |
( |
const Rectangle< int > & |
r | ) |
|
◆ getMaximumBounds()
◆ intersectWithEdgeTableLine()
void EdgeTable::intersectWithEdgeTableLine |
( |
int |
y, |
|
|
const int * |
otherLine |
|
) |
| |
|
private |
◆ isEmpty()
bool EdgeTable::isEmpty |
( |
| ) |
|
|
noexcept |
◆ iterate()
template<class EdgeTableIterationCallback >
void EdgeTable::iterate |
( |
EdgeTableIterationCallback & |
iterationCallback | ) |
const |
|
inlinenoexcept |
Iterates the lines in the table, for rendering.
This function will iterate each line in the table, and call a user-defined class to render each pixel or continuous line of pixels that the table contains.
- Parameters
-
iterationCallback | this templated class must contain the following methods: inline void setEdgeTableYPos (int y); inline void handleEdgeTablePixel (int x, int alphaLevel) const; inline void handleEdgeTablePixelFull (int x) const; inline void handleEdgeTableLine (int x, int width, int alphaLevel) const; inline void handleEdgeTableLineFull (int x, int width) const; (these don't necessarily have to be 'const', but it might help it go faster) |
References juce::isPositiveAndBelow(), and jassert.
◆ multiplyLevels()
void EdgeTable::multiplyLevels |
( |
float |
factor | ) |
|
◆ operator=()
Copies from another edge table.
◆ optimiseTable()
void EdgeTable::optimiseTable |
( |
| ) |
|
Reduces the amount of space the table has allocated.
This will shrink the table down to use as little memory as possible - useful for read-only tables that get stored and re-used for rendering.
◆ remapTableForNumEdges()
void EdgeTable::remapTableForNumEdges |
( |
int |
newNumEdgesPerLine | ) |
|
|
private |
◆ sanitiseLevels()
void EdgeTable::sanitiseLevels |
( |
bool |
useNonZeroWinding | ) |
|
|
privatenoexcept |
◆ translate()
void EdgeTable::translate |
( |
float |
dx, |
|
|
int |
dy |
|
) |
| |
|
noexcept |
◆ bounds
◆ lineStrideElements
int EdgeTable::lineStrideElements |
|
private |
◆ maxEdgesPerLine
int EdgeTable::maxEdgesPerLine |
|
private |
◆ needToCheckEmptiness
bool EdgeTable::needToCheckEmptiness |
|
private |
◆ table
The documentation for this class was generated from the following file: