eq::server::LoadEqualizer Class Reference

Adapts the 2D tiling or DB range of the attached compound's children. More...

#include <loadEqualizer.h>

Inheritance diagram for eq::server::LoadEqualizer:
Inheritance graph
[legend]
Collaboration diagram for eq::server::LoadEqualizer:
Collaboration graph
[legend]

List of all members.

Classes

struct  Data
struct  Node

Public Types

enum  Mode { MODE_DB = 0, MODE_HORIZONTAL, MODE_VERTICAL, MODE_2D }

Public Member Functions

 LoadEqualizer (const LoadEqualizer &from)
virtual Equalizerclone () const
 Create a copy.
virtual void toStream (std::ostream &os) const
 Output to a stream.
void setMode (const Mode mode)
 Set the load balancer adaptation mode.
Mode getMode () const
void setDamping (const float damping)
 Set the damping factor for the viewport or range adjustment.
float getDamping () const
virtual void notifyUpdatePre (Compound *compound, const uint32_t frameNumber)
virtual void notifyLoadData (Channel *channel, const uint32_t frameNumber, const uint32_t nStatistics, const eq::Statistic *statistics)
void setBoundary (const Vector2i &boundary)
 Set a boundary for 2D tiles.
void setBoundary (const float boundary)
 Set a boundary for DB ranges.
const Vector2igetBoundary2i () const
float getBoundaryf () const

Protected Member Functions

virtual void notifyChildAdded (Compound *compound, Compound *child)
 Notify that the compound has a new child.
virtual void notifyChildRemove (Compound *compound, Compound *child)
 Notify that the compound is about to remove a child.

Friends

std::ostream & operator<< (std::ostream &os, const Node *node)

Detailed Description

Adapts the 2D tiling or DB range of the attached compound's children.

Definition at line 39 of file loadEqualizer.h.


Member Enumeration Documentation

Enumerator:
MODE_DB 

Adapt for a sort-last decomposition.

MODE_HORIZONTAL 

Adapt for sort-first using horizontal stripes.

MODE_VERTICAL 

Adapt for sort-first using vertical stripes.

MODE_2D 

Adapt for a sort-first decomposition.

Definition at line 48 of file loadEqualizer.h.


Member Function Documentation

virtual Equalizer* eq::server::LoadEqualizer::clone (  )  const [inline, virtual]

Create a copy.

Implements eq::server::Equalizer.

Definition at line 45 of file loadEqualizer.h.

virtual void eq::server::LoadEqualizer::toStream ( std::ostream &  os  )  const [inline, virtual]

Output to a stream.

Implements eq::server::Equalizer.

Definition at line 46 of file loadEqualizer.h.

void eq::server::LoadEqualizer::setMode ( const Mode  mode  )  [inline]

Set the load balancer adaptation mode.

Definition at line 57 of file loadEqualizer.h.

Mode eq::server::LoadEqualizer::getMode (  )  const [inline]
Returns:
the load balancer adaptation mode.

Definition at line 60 of file loadEqualizer.h.

void eq::server::LoadEqualizer::setDamping ( const float  damping  )  [inline]

Set the damping factor for the viewport or range adjustment.

Definition at line 63 of file loadEqualizer.h.

float eq::server::LoadEqualizer::getDamping (  )  const [inline]
Returns:
the damping factor.

Definition at line 66 of file loadEqualizer.h.

void eq::server::LoadEqualizer::notifyUpdatePre ( Compound compound,
const uint32_t  frameNumber 
) [virtual]
See also:
CompoundListener::notifyUpdatePre

Reimplemented from eq::server::CompoundListener.

Definition at line 69 of file loadEqualizer.cpp.

References EQLOG, eq::server::Compound::getChildren(), eq::server::Equalizer::getCompound(), and eq::server::Compound::isActive().

Here is the call graph for this function:

void eq::server::LoadEqualizer::notifyLoadData ( Channel channel,
const uint32_t  frameNumber,
const uint32_t  nStatistics,
const eq::Statistic statistics 
) [virtual]
See also:
ChannelListener::notifyLoadData

Implements eq::server::ChannelListener.

Definition at line 154 of file loadEqualizer.cpp.

References EQ_MAX, EQ_MIN, and EQLOG.

void eq::server::LoadEqualizer::setBoundary ( const Vector2i boundary  )  [inline]

Set a boundary for 2D tiles.

Definition at line 79 of file loadEqualizer.h.

void eq::server::LoadEqualizer::setBoundary ( const float  boundary  )  [inline]

Set a boundary for DB ranges.

Definition at line 86 of file loadEqualizer.h.

const Vector2i& eq::server::LoadEqualizer::getBoundary2i (  )  const [inline]
Returns:
the boundary for 2D tiles.

Definition at line 93 of file loadEqualizer.h.

float eq::server::LoadEqualizer::getBoundaryf (  )  const [inline]
Returns:
the boundary for DB ranges.

Definition at line 96 of file loadEqualizer.h.

virtual void eq::server::LoadEqualizer::notifyChildAdded ( Compound compound,
Compound child 
) [inline, protected, virtual]

Notify that the compound has a new child.

Parameters:
compound the parent compound.
child the child compound.

Reimplemented from eq::server::Equalizer.

Definition at line 99 of file loadEqualizer.h.

virtual void eq::server::LoadEqualizer::notifyChildRemove ( Compound compound,
Compound child 
) [inline, protected, virtual]

Notify that the compound is about to remove a child.

Parameters:
compound the parent compound.
child the child compound.

Reimplemented from eq::server::Equalizer.

Definition at line 101 of file loadEqualizer.h.


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