Equalizer  1.4.1
Public Member Functions | Public Types | Protected Member Functions
eq::fabric::Frame Class Reference

A holder for a frame data and related parameters. More...

#include <frame.h>

+ Inheritance diagram for eq::fabric::Frame:
+ Collaboration diagram for eq::fabric::Frame:

List of all members.

Public Member Functions

 Frame ()
 Construct a new frame.
virtual ~Frame ()
 Destruct the frame.
const std::vector< uint128_t > & getInputNodes (const Eye eye) const
const std::vector< uint128_t > & getInputNetNodes (const Eye eye) const
Data Access
void setName (const std::string &name)
 Set the name of the frame.
const std::string & getName () const
const Vector2igetOffset () const
void setOffset (const Vector2i &offset)
 Set the position of the frame wrt the channel.
void setZoom (const Zoom &zoom)
 Set the zoom for this frame holder.
const ZoomgetZoom () const
const co::ObjectVersiongetDataVersion (const Eye) const

Public Types

enum  Buffer {
  BUFFER_NONE = LB_BIT_NONE, BUFFER_UNDEFINED = LB_BIT1, BUFFER_COLOR = LB_BIT5, BUFFER_DEPTH = LB_BIT9,
  BUFFER_ALL = LB_BIT_ALL_32
}
 The buffer format defines which components of the frame are to be used during readback and assembly. More...
enum  Type { TYPE_MEMORY, TYPE_TEXTURE }
 The storage type for pixel data. More...

Protected Member Functions

virtual ChangeType getChangeType () const
virtual void getInstanceData (co::DataOStream &os)
 Serialize all instance information of this distributed object.
virtual void applyInstanceData (co::DataIStream &is)
 Deserialize the instance data.
void _setDataVersion (const unsigned i, const co::ObjectVersion &ov)
std::vector< uint128_t > & _getInputNodes (const unsigned i)
std::vector< uint128_t > & _getInputNetNodes (const unsigned i)

Detailed Description

A holder for a frame data and related parameters.

Definition at line 32 of file fabric/frame.h.


Member Enumeration Documentation

The buffer format defines which components of the frame are to be used during readback and assembly.

Version:
1.0
Enumerator:
BUFFER_UNDEFINED 

Inherit, only if no others are set.

BUFFER_COLOR 

Use color images.

BUFFER_DEPTH 

Use depth images.

Definition at line 40 of file fabric/frame.h.

The storage type for pixel data.

Version:
1.0
Enumerator:
TYPE_MEMORY 

use main memory to store pixel data

TYPE_TEXTURE 

use a GL texture to store pixel data

Definition at line 50 of file fabric/frame.h.


Constructor & Destructor Documentation

Construct a new frame.

Version:
1.0

Reimplemented in eq::Frame.

virtual eq::fabric::Frame::~Frame ( ) [virtual]

Destruct the frame.

Version:
1.0

Reimplemented in eq::Frame.


Member Function Documentation

virtual void eq::fabric::Frame::applyInstanceData ( co::DataIStream is) [protected, virtual]

Deserialize the instance data.

This method is called during object mapping to populate slave instances with the master object's data.

Parameters:
isthe input stream.

Implements co::Object.

virtual ChangeType eq::fabric::Frame::getChangeType ( ) const [inline, protected, virtual]
Returns:
how the changes are to be handled.

Reimplemented from co::Object.

Definition at line 109 of file fabric/frame.h.

References co::Object::INSTANCE.

virtual void eq::fabric::Frame::getInstanceData ( co::DataOStream os) [protected, virtual]

Serialize all instance information of this distributed object.

Parameters:
osThe output stream.

Implements co::Object.

const std::string& eq::fabric::Frame::getName ( ) const
Returns:
the name of the frame.
Version:
1.0

Reimplemented in eq::Frame.

Returns:
the position of the frame wrt the channel.
Version:
1.0

Referenced by eVolve::Channel::frameAssemble().

+ Here is the caller graph for this function:

const Zoom& eq::fabric::Frame::getZoom ( ) const
Returns:
the zoom factor for readback or assemble.
Version:
1.0

Referenced by eVolve::Channel::frameAssemble().

+ Here is the caller graph for this function:

void eq::fabric::Frame::setName ( const std::string &  name)

Set the name of the frame.

Version:
1.3.3
void eq::fabric::Frame::setOffset ( const Vector2i offset)

Set the position of the frame wrt the channel.

The offset is only applied for operations on this frame holder, i.e., it does not apply to other (input) frames using the same underlying frame data.

Version:
1.0

Referenced by eVolve::Channel::frameAssemble().

+ Here is the caller graph for this function:

void eq::fabric::Frame::setZoom ( const Zoom zoom)

Set the zoom for this frame holder.

The zoom is only applied for operations on this frame holder, i.e., it does not apply to other (input) frames using the same underlying frame data.

Version:
1.0

Referenced by eVolve::Channel::frameAssemble().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 2012 14:41:50 for Equalizer 1.4.1 by  doxygen 1.7.6.1