Multiplexer Class Reference
[Pipeline element 4: Multiplexer.]

class Multiplexer: combines a number of input TrackVector pipes into a single output TrackVector pipe. More...

#include <Multiplexer.h>

Inheritance diagram for Multiplexer:

PipelinePlugin< TrackVector, TrackVector > FrameProducer< TrackVector > List of all members.

Public Member Functions

 Multiplexer (vector< FrameProducer< TrackVector > * > inputProducers)
 Constructor: param@ inputProducers a vector of pointers to FrameProducer elements that each generate TrackVector frames.
virtual ~Multiplexer ()
 Destructor.

Protected Member Functions

void mainFrame (TrackVector *inFrame, TrackVector &outFrame)
 Main frame processing operation.
void combineFrames (vector< TrackVector * > &manyFrames, TrackVector &oneFrame)
 The primary function of the Multiplexer; merges the frames from each input FrameProducer into a single frame to pass to the mainFrame() method.

Detailed Description

class Multiplexer: combines a number of input TrackVector pipes into a single output TrackVector pipe.


Member Function Documentation

void Multiplexer::combineFrames vector< TrackVector * > &  manyFrames,
TrackVector oneFrame
[protected]
 

The primary function of the Multiplexer; merges the frames from each input FrameProducer into a single frame to pass to the mainFrame() method.

Called by superclass onTimer() method.

Parameters:
[in] manyFrames a vector filled with the frames from each input FrameProducer.
[out] oneFrame a single frame to be passed to the mainFrame() method. The Multiplexer expects that each input frame will have already been converted into normalized table coordinates. Therefore this method simply copies all the tracks from the input vectors into a single vector.

void Multiplexer::mainFrame TrackVector inFrame,
TrackVector outFrame
[protected]
 

Main frame processing operation.

In this case it doesn't do much, just passes on the input frame. Most of the work in this subclass is performed by the combineFrames() method.

Parameters:
[in] inFrame a single frame that has been generated from a previous call to combineFrames().
[out] outFrame in this case, the inFrame is just copied to the outFrame.


The documentation for this class was generated from the following file:
Generated on Wed Mar 15 08:01:32 2006 for pvclib by  doxygen 1.4.6-NO