DISTRHO Plugin Framework
|
#include <Geometry.hpp>
Public Member Functions | |
Line () noexcept | |
Line (const T &startX, const T &startY, const T &endX, const T &endY) noexcept | |
Line (const T &startX, const T &startY, const Point< T > &endPos) noexcept | |
Line (const Point< T > &startPos, const T &endX, const T &endY) noexcept | |
Line (const Point< T > &startPos, const Point< T > &endPos) noexcept | |
Line (const Line< T > &line) noexcept | |
const T & | getStartX () const noexcept |
const T & | getStartY () const noexcept |
const T & | getEndX () const noexcept |
const T & | getEndY () const noexcept |
const Point< T > & | getStartPos () const noexcept |
const Point< T > & | getEndPos () const noexcept |
void | setStartX (const T &x) noexcept |
void | setStartY (const T &y) noexcept |
void | setStartPos (const T &x, const T &y) noexcept |
void | setStartPos (const Point< T > &pos) noexcept |
void | setEndX (const T &x) noexcept |
void | setEndY (const T &y) noexcept |
void | setEndPos (const T &x, const T &y) noexcept |
void | setEndPos (const Point< T > &pos) noexcept |
void | moveBy (const T &x, const T &y) noexcept |
void | moveBy (const Point< T > &pos) noexcept |
bool | isNull () const noexcept |
bool | isNotNull () const noexcept |
void | draw (const GraphicsContext &context, T width=1) |
Line< T > & | operator= (const Line< T > &line) noexcept |
bool | operator== (const Line< T > &line) const noexcept |
bool | operator!= (const Line< T > &line) const noexcept |
void | draw () |
DGL Line class.
This class describes a line, defined by two points.
|
noexcept |
Constructor using custom start X, start Y, end X and end Y values.
|
noexcept |
Constructor using custom start X, start Y and end pos values.
|
noexcept |
Constructor using custom start pos, end X and end Y values.
|
noexcept |
Constructor using custom start and end pos values.
Constructor using another Line class values.
|
noexcept |
Get start X value.
|
noexcept |
Get start Y value.
|
noexcept |
Get end X value.
|
noexcept |
Get end Y value.
|
noexcept |
Set start X value to x.
|
noexcept |
Set start Y value to y.
|
noexcept |
Set start X and Y values to x and y respectively.
Set start X and Y values according to pos.
|
noexcept |
Set end X value to x.
|
noexcept |
Set end Y value to y.
|
noexcept |
Set end X and Y values to x and y respectively.
Set end X and Y values according to pos.
|
noexcept |
Move this line by x and y values.
Move this line by pos.
|
noexcept |
Return true if line is null (start and end pos are equal).
|
noexcept |
Return true if line is not null (start and end pos are different).
void Line< T >::draw | ( | const GraphicsContext & | context, |
T | width = 1 |
||
) |
Draw this line using the provided graphics context, optionally specifying line width.
void Line< T >::draw | ( | ) |
Draw this line using the current OpenGL state.
DEPRECATED Please use draw(const GraphicsContext&) instead.