Holds a fractional viewport along with some methods for manipulation. More...
#include <viewport.h>

Public Member Functions | |
| void | invalidate () |
| void | apply (const Viewport &rhs) |
| void | transform (const Viewport &rhs) |
| 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 viewport | |
| 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 () | |
| Viewport (const float x_, const float y_, const float w_, const float h_) | |
Public Attributes | |
| float | x |
| float | y |
| float | w |
| float | h |
Static Public Attributes | |
| static const Viewport | FULL |
Holds a fractional viewport along with some methods for manipulation.
Definition at line 39 of file viewport.h.
| bool eq::Viewport::isValid | ( | ) | const [inline] |
Definition at line 85 of file viewport.h.
Referenced by intersect().

| bool eq::Viewport::hasArea | ( | ) | const [inline] |
Definition at line 92 of file viewport.h.
Referenced by eq::server::Config::addCanvas(), intersect(), eq::server::Window::setViewport(), and eq::server::Channel::setViewport().

| float eq::Viewport::getArea | ( | ) | const [inline] |
Definition at line 95 of file viewport.h.
| float eq::Viewport::getXEnd | ( | ) | const [inline] |
Definition at line 98 of file viewport.h.
| float eq::Viewport::getYEnd | ( | ) | const [inline] |
Definition at line 101 of file viewport.h.
Compute the coverage of another Viewport on this viewport.
Definition at line 136 of file viewport.h.
References intersect().
Referenced by eq::server::Compound::updateFrustum().


| void eq::Viewport::applyView | ( | const Viewport & | segmentVP, | |
| const Viewport & | viewVP, | |||
| const PixelViewport & | pvp, | |||
| const Vector4i & | overdraw | |||
| ) |
Apply the view coverage to this viewport.
Definition at line 26 of file viewport.cpp.
References eq::PixelViewport::hasArea(), and intersect().

0.9.1 by
1.6.1