eq::PixelViewport Class Reference

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

#include <pixelViewport.h>

List of all members.

Public Member Functions

void invalidate ()
 Invalidates the pixel viewport.
bool isValid () const
bool hasArea () const
uint32_t getArea () const
Constructors
 PixelViewport ()
 PixelViewport (const int32_t x_, const int32_t y_, const int32_t w_, const int32_t h_)
Operators
void apply (const Viewport &rhs)
void apply (const Pixel &pixel)
void apply (const Zoom &zoom)
const PixelViewport getSubPVP (const Viewport &rhs) const
const Viewport getSubVP (const PixelViewport &rhs) const
const Zoom getZoom (const PixelViewport &rhs) const
int32_t getXEnd () const
int32_t getYEnd () const
const PixelViewport operator+ (const Vector2i &offset) const
const PixelViewport operator* (const eq::Pixel &pixel) const
PixelViewportoperator*= (const eq::Pixel &pixel)
bool operator== (const PixelViewport &rhs) const
bool operator!= (const PixelViewport &rhs) const
void merge (const PixelViewport &rhs)
 create a pixel viewport that includes both viewports (union)
void intersect (const PixelViewport &rhs)
 create the intersection pixel viewport

Tests

int32_t x
int32_t y
int32_t w
int32_t h
bool isPointInside (const int32_t pX, const int32_t pY) const


Detailed Description

Holds a pixel viewport along with some methods for manipulation.

Definition at line 37 of file pixelViewport.h.


Member Function Documentation

bool eq::PixelViewport::isValid (  )  const [inline]

bool eq::PixelViewport::hasArea (  )  const [inline]

Returns:
true if the pixel viewport has a non-zero area, i.e, it is not empty.

Definition at line 66 of file pixelViewport.h.

Referenced by eq::Viewport::applyView(), eq::Channel::applyViewport(), intersect(), merge(), eq::server::Window::notifyViewportChanged(), eq::server::Pipe::setPixelViewport(), and eq::Channel::setupAssemblyState().

Here is the caller graph for this function:

uint32_t eq::PixelViewport::getArea (  )  const [inline]

Returns:
the area in pixels.

Definition at line 69 of file pixelViewport.h.

Referenced by eq::Image::getPixelDataSize(), eq::Compositor::mergeFramesCPU(), and eq::ROITracker::useROIFinder().

Here is the caller graph for this function:

int32_t eq::PixelViewport::getXEnd (  )  const [inline]

Returns:
the X end position

Definition at line 172 of file pixelViewport.h.

Referenced by eq::Channel::drawStatistics(), eq::Channel::getScreenFrustum(), and eq::Channel::outlineViewport().

Here is the caller graph for this function:

int32_t eq::PixelViewport::getYEnd (  )  const [inline]

Returns:
the Y end position

Definition at line 175 of file pixelViewport.h.

Referenced by eq::Channel::drawStatistics(), eq::Channel::getScreenFrustum(), and eq::Channel::outlineViewport().

Here is the caller graph for this function:

bool eq::PixelViewport::isPointInside ( const int32_t  pX,
const int32_t  pY 
) const [inline]

Returns:
true if the point (pX,pY) is inside, false if not.

Definition at line 266 of file pixelViewport.h.

Referenced by eq::Window::getRenderContext().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Mon Aug 10 18:58:43 2009 for Equalizer 0.9 by  doxygen 1.5.8