Equalizer
1.2.1
|
A fractional viewport with methods for manipulation. More...
#include <viewport.h>
Public Member Functions | |
void | invalidate () |
Make the viewport invalid. | |
void | apply (const Viewport &rhs) |
Apply (accumulate) another viewport. | |
void | transform (const Viewport &rhs) |
Transform this viewport into the rhs viewport space. | |
bool | operator== (const Viewport &rhs) const |
bool | operator!= (const Viewport &rhs) const |
bool | isValid () const |
bool | hasArea () const |
float | getArea () const |
float | getXEnd () const |
float | getYEnd () const |
void | intersect (const Viewport &rhs) |
Create the intersection of the two viewports. | |
void | unite (const Viewport &rhs) |
Create the union of the two viewports. | |
Viewport | getCoverage (const Viewport &with) const |
Compute the coverage of another viewport on this viewport. | |
void | applyView (const Viewport &segmentVP, const Viewport &viewVP, const PixelViewport &pvp, const Vector4i &overdraw) |
Apply the view coverage to this viewport. | |
Constructors | |
Viewport () | |
Construct a full fractional viewport. | |
Viewport (const float x_, const float y_, const float w_, const float h_) | |
Construct a fractional viewport with default values. | |
Public Attributes | |
float | x |
The X coordinate. | |
float | y |
The Y coordinate. | |
float | w |
The width. | |
float | h |
The height. | |
Static Public Attributes | |
static const Viewport | FULL |
A full viewport. |
A fractional viewport with methods for manipulation.
Definition at line 36 of file viewport.h.
eq::fabric::Viewport::Viewport | ( | ) | [inline] |
eq::fabric::Viewport::Viewport | ( | const float | x_, |
const float | y_, | ||
const float | w_, | ||
const float | h_ | ||
) | [inline] |
Construct a fractional viewport with default values.
Definition at line 45 of file viewport.h.
float eq::fabric::Viewport::getArea | ( | ) | const [inline] |
Definition at line 106 of file viewport.h.
References h.
float eq::fabric::Viewport::getXEnd | ( | ) | const [inline] |
Definition at line 109 of file viewport.h.
References w.
Referenced by unite().
float eq::fabric::Viewport::getYEnd | ( | ) | const [inline] |
Definition at line 112 of file viewport.h.
References h.
Referenced by unite().
bool eq::fabric::Viewport::hasArea | ( | ) | const [inline] |
Definition at line 103 of file viewport.h.
Referenced by intersect().
void eq::fabric::Viewport::intersect | ( | const Viewport & | rhs | ) | [inline] |
Create the intersection of the two viewports.
Definition at line 115 of file viewport.h.
References h, hasArea(), invalidate(), isValid(), w, x, and y.
Referenced by getCoverage().
bool eq::fabric::Viewport::isValid | ( | ) | const [inline] |
Definition at line 95 of file viewport.h.
Referenced by apply(), and intersect().
bool eq::fabric::Viewport::operator!= | ( | const Viewport & | rhs | ) | const [inline] |
bool eq::fabric::Viewport::operator== | ( | const Viewport & | rhs | ) | const [inline] |
void eq::fabric::Viewport::unite | ( | const Viewport & | rhs | ) | [inline] |