#include "orfilter_template_filter.h"
static const char* ORFilterErrorTable [ORFilter_Template::eErrorCount] =
{
"Left Unchanged",
};
#define ORFILTERTEMPLATE__CLASS ORFilter_Template
#define ORFILTERTEMPLATE__NAME "OR - Filter Template"
#define ORFILTERTEMPLATE__LABEL "OR - Filter Template"
#define ORFILTERTEMPLATE__DESC "OR - Filter Template Description"
#define ORFILTERTEMPLATE__TYPE kFBFilterNumber | kFBFilterVector
#define ORFILTERTEMPLATE__ERRTABLE ORFilterErrorTable
#define ORFILTERTEMPLATE__ERRCOUNT ORFilter_Template::eErrorCount
ORFILTERTEMPLATE__NAME,
ORFILTERTEMPLATE__LABEL,
ORFILTERTEMPLATE__TYPE,
ORFILTERTEMPLATE__ERRTABLE,
ORFILTERTEMPLATE__ERRCOUNT,
bool ORFilter_Template::FBCreate()
{
Reset ();
return true;
}
void ORFilter_Template::FBDestroy()
{
}
bool ORFilter_Template::Apply( FBAnimationNode* pNode, bool pRecursive )
{
return FBFilter::Apply( pNode, pRecursive );
}
bool ORFilter_Template::Apply( FBFCurve* pCurve )
{
for( i=0; i<pCurve->Keys.GetCount(); i++ )
{
pCurve->Keys[
i].Value = pCurve->Keys[
i].Value * mTestDouble;
}
return FBFilter::Apply( pCurve );
}
void ORFilter_Template::Reset()
{
mTestDouble = 1.0;
mTestTime = FBTime(0);
mTestBoolean = false;
}