Equalizer  2.0.0
Parallel Rendering Framework
eq::fabric::Pixel Class Reference

Holds a pixel decomposition specification with methods for manipulation. More...

#include <pixel.h>

+ Collaboration diagram for eq::fabric::Pixel:

Public Member Functions

void apply (const Pixel &rhs)
 Apply (accumulate) another pixel specification.
 
bool operator== (const Pixel &rhs) const
 
bool operator!= (const Pixel &rhs) const
 
void invalidate ()
 Make the pixel specification invalid.
 
void validate ()
 Make the pixel specification valid.
 
bool isValid () const
 
Constructors
 Pixel ()
 Construct a pixel specification covering all pixels of a frustum. More...
 
 Pixel (const uint32_t x_, const uint32_t y_, const uint32_t w_, const uint32_t h_)
 Construct a pixel specification with default values. More...
 

Public Attributes

uint32_t x
 
uint32_t y
 
uint32_t w
 
uint32_t h
 

Static Public Attributes

static EQFABRIC_API const Pixel ALL
 A pixel specification covering all pixels.
 

Detailed Description

Holds a pixel decomposition specification with methods for manipulation.

The w, h size determines how many contributors are sending pixels to the destination. The x, y index determines the position of the contributor within the decomposition pixel grid.

Definition at line 40 of file pixel.h.

Constructor & Destructor Documentation

eq::fabric::Pixel::Pixel ( )
inline

Construct a pixel specification covering all pixels of a frustum.

Version
1.0

Definition at line 49 of file pixel.h.

eq::fabric::Pixel::Pixel ( const uint32_t  x_,
const uint32_t  y_,
const uint32_t  w_,
const uint32_t  h_ 
)
inline

Construct a pixel specification with default values.

Version
1.0

Definition at line 52 of file pixel.h.

Member Function Documentation

bool eq::fabric::Pixel::isValid ( ) const
inline
Returns
true if the pixel specification is valid.

Definition at line 103 of file pixel.h.

Referenced by apply(), and validate().

+ Here is the caller graph for this function:

bool eq::fabric::Pixel::operator!= ( const Pixel rhs) const
inline
Returns
true if the pixel specification are not identical.
Version
1.0

Definition at line 82 of file pixel.h.

bool eq::fabric::Pixel::operator== ( const Pixel rhs) const
inline
Returns
true if the pixel specification are identical.
Version
1.0

Definition at line 73 of file pixel.h.


The documentation for this class was generated from the following file: