ot::ElasticFilterNode Class Reference

#include <ElasticFilterNode.h>

Inheritance diagram for ot::ElasticFilterNode:

Inheritance graph
[legend]
Collaboration diagram for ot::ElasticFilterNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &event, Node &generator)
void push ()

Protected Member Functions

 ElasticFilterNode (float force_=0.02, float damp_=0.5, int frequency_=1, int offset_=0)

Protected Attributes

bool init
int frequency
 frequency of updates
int offset
 offset of first update relative to main loop start
float damp
 the event that is posted to the EventObservers damping factor
float force
 the strength of the spring in our model
Event currentEvent
Event targetEvent
Event vEvent

Friends

class InterpolatorModule

Constructor & Destructor Documentation

ot::ElasticFilterNode::ElasticFilterNode float  force_ = 0.02,
float  damp_ = 0.5,
int  frequency_ = 1,
int  offset_ = 0
[protected]
 

constructor method. It sets initial values for the treshhold and type


Member Function Documentation

virtual int ot::ElasticFilterNode::isEventGenerator  )  [inline, virtual]
 

tests for EventGenerator interface being present and returns 1, if present.

Returns:
always 1

Reimplemented from ot::Node.

void ot::ElasticFilterNode::onEventGenerated Event event,
Node generator
[virtual]
 

This method is called by any child node.

Parameters:
event the event value passed
generator the node generating the event

Reimplemented from ot::Node.

void ot::ElasticFilterNode::push  ) 
 

pushes event down the line. Needed to access protected updateObservers method in EventGenerator


Friends And Related Function Documentation

friend class InterpolatorModule [friend]
 


Member Data Documentation

Event ot::ElasticFilterNode::currentEvent [protected]
 

float ot::ElasticFilterNode::damp [protected]
 

the event that is posted to the EventObservers damping factor

float ot::ElasticFilterNode::force [protected]
 

the strength of the spring in our model

int ot::ElasticFilterNode::frequency [protected]
 

frequency of updates

bool ot::ElasticFilterNode::init [protected]
 

int ot::ElasticFilterNode::offset [protected]
 

offset of first update relative to main loop start

Event ot::ElasticFilterNode::targetEvent [protected]
 

Event ot::ElasticFilterNode::vEvent [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:28:10 2007 for NaviTrack by  doxygen 1.4.6