DestPipelinePlugin< InputType > Class Template Reference
[Base class layer.]

class DestPipelinePlugin: A processing element at the end of a frame processing pipeline. More...

#include <pipelinePlugin.h>

Inheritance diagram for DestPipelinePlugin< InputType >:

GeneralViewer< InputType > List of all members.

Public Member Functions

 DestPipelinePlugin (vector< FrameProducer< InputType > * > inputProducers)
 Constructor.
 DestPipelinePlugin (FrameProducer< InputType > *inputProducer)
 Constructor.
void onTimer ()
 Per frame processing trigger.

Protected Member Functions

virtual void mainFrame (InputType *sourcePtr)=0
 Primary per-frame processing function.
virtual void combineFrames (vector< InputType * > &manyFrames, InputType &oneFrame)
 Generates a single input frame by aggregating the current frame from each input FrameProducer.

Detailed Description

template<class InputType>
class DestPipelinePlugin< InputType >

class DestPipelinePlugin: A processing element at the end of a frame processing pipeline.

This element will accept frames from preceding frameProducer subclasses and perform some processing operation on the data.


Constructor & Destructor Documentation

template<class InputType>
DestPipelinePlugin< InputType >::DestPipelinePlugin vector< FrameProducer< InputType > * >  inputProducers  ) 
 

Constructor.

Parameters:
[in] inputProducers A vector of pointers to frame producers of type InputType.

template<class InputType>
DestPipelinePlugin< InputType >::DestPipelinePlugin FrameProducer< InputType > *  inputProducer  ) 
 

Constructor.

Parameters:
[in] inputProducer A pointer to a frame producer of type InputType.


Member Function Documentation

template<class InputType>
void DestPipelinePlugin< InputType >::combineFrames vector< InputType * > &  manyFrames,
InputType &  oneFrame
[protected, virtual]
 

Generates a single input frame by aggregating the current frame from each input FrameProducer.

Called prior to mainFrame() in order to generate a single input frame by performing some operation on the current frame of each input FrameProducer.

Redefined by subclasses in order to define what this combining operation entails. If not redefined, default behavior is to copy the first input frame to the output frame.

Parameters:
[in] manyFrames A vector of input frames, one from each input FrameProducer.
[out] outFrame A single frame which represents the data from each input FrameProducer.

template<class InputType>
virtual void DestPipelinePlugin< InputType >::mainFrame InputType *  sourcePtr  )  [protected, pure virtual]
 

Primary per-frame processing function.

Called once per frame after the combineFrames() function has aggregated the data from each input FrameProducer. If only one input FrameProducer exists, then sourcePtr is it's current frame, and combineFrames() is not called.

Redefined by subclasses to implement per-frame functionality.

Parameters:
[in] sourcePtr A single frame of data representing the combined input from each input FrameProducer.

Implemented in ByteVectorViewer, QuantaShipper, and TrackVectorViewer.

template<class InputType>
void DestPipelinePlugin< InputType >::onTimer  ) 
 

Per frame processing trigger.

Called by client application to invoke per-frame processing.


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