eq::Viewport Class Reference

Holds a fractional viewport along with some methods for manipulation. More...

#include <viewport.h>

Collaboration diagram for eq::Viewport:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Holds a fractional viewport along with some methods for manipulation.

Definition at line 39 of file viewport.h.


Member Function Documentation

bool eq::Viewport::isValid (  )  const [inline]
Returns:
true if the viewport has a non-negative, but potentially empty, size.

Definition at line 85 of file viewport.h.

Referenced by intersect().

Here is the caller graph for this function:

bool eq::Viewport::hasArea (  )  const [inline]
Returns:
true if the viewport has a non-zero area, i.e, it is not empty.

Definition at line 92 of file viewport.h.

Referenced by eq::server::Config::addCanvas(), intersect(), eq::server::Window::setViewport(), and eq::server::Channel::setViewport().

Here is the caller graph for this function:

float eq::Viewport::getArea (  )  const [inline]
Returns:
the area of this viewport

Definition at line 95 of file viewport.h.

float eq::Viewport::getXEnd (  )  const [inline]
Returns:
the X end position

Definition at line 98 of file viewport.h.

float eq::Viewport::getYEnd (  )  const [inline]
Returns:
the Y end position

Definition at line 101 of file viewport.h.

Viewport eq::Viewport::getCoverage ( const Viewport with  )  const [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:06:41 2010 for Equalizer 0.9.1 by  doxygen 1.6.1