DirectionFilter Class Reference
[Processing modules]

A ProcessModule. More...

#include <DirectionFilter.h>

Inheritance diagram for DirectionFilter:

Inheritance graph
[legend]
Collaboration diagram for DirectionFilter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DirectionFilter (double threshold, AbstractModule *successor)
 DirectionFilter (ConfigSection *config, AbstractModule *successor)
virtual ~DirectionFilter ()
 Destructor.
virtual void processFrameData (IFrameData *data)
const double getThreshold () const
void setThreshold (double tr)


Detailed Description

A ProcessModule.

Filters out vectors which have not changed too much from the last vector passed through (which directions are "equivalent")

Definition at line 16 of file DirectionFilter.h.


Constructor & Destructor Documentation

DirectionFilter::DirectionFilter ( double  threshold,
AbstractModule successor 
)

Parameters:
threshold The threshold of the filter
successor Next module in chain

Definition at line 8 of file DirectionFilter.cpp.

DirectionFilter::DirectionFilter ( ConfigSection config,
AbstractModule successor 
)

Parameters:
config Pointer to a config section object holding the threshold value
successor Next module in chain

Definition at line 16 of file DirectionFilter.cpp.

virtual DirectionFilter::~DirectionFilter (  )  [inline, virtual]

Destructor.

Definition at line 32 of file DirectionFilter.h.


Member Function Documentation

const double DirectionFilter::getThreshold (  )  const [inline]

Returns:
the threshold

Definition at line 44 of file DirectionFilter.h.

void DirectionFilter::processFrameData ( IFrameData data  )  [virtual]

Filters incoming Vectors. Throws Warning if data is not of type Vector3D or Signal.

The output of frame-date is of type Vector3D or Signal

Parameters:
data Incoming vectors or signals

Reimplemented from ProcessModule.

Definition at line 33 of file DirectionFilter.cpp.

void DirectionFilter::setThreshold ( double  tr  )  [inline]

Parameters:
tr threshold to be set

Definition at line 47 of file DirectionFilter.h.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1