Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tstepparam.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//
Toshihiro Shimizu 890ddd
// OBSOLETO??
Toshihiro Shimizu 890ddd
//
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
PERSIST_IDENTIFIER(TDoubleStepParam, "doubleStepParam")
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TDoubleStepParam::TDoubleStepParam(double v)
Toshihiro Shimizu 890ddd
                : TDoubleParam(v)
Toshihiro Shimizu 890ddd
{}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TDoubleStepParam::TDoubleStepParam(const TDoubleParam &src)
Toshihiro Shimizu 890ddd
                : TDoubleParam(src)
Toshihiro Shimizu 890ddd
{}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TDoubleStepParam::~TDoubleStepParam()
Toshihiro Shimizu 890ddd
{}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
double TDoubleStepParam::getValue(double frame, bool cropped) const
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
  if (getKeyframeCount() == 0)
Toshihiro Shimizu 890ddd
    return getDefaultValue();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
  if(isKeyframe(frame))
Toshihiro Shimizu 890ddd
    return TDoubleParam::getValue(frame);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
  int index = getPrevKeyframe(frame);
Toshihiro Shimizu 890ddd
  if (index != -1)
Toshihiro Shimizu 890ddd
    return getKeyframe(index).m_value;
Toshihiro Shimizu 890ddd
  else
Toshihiro Shimizu 890ddd
   return getKeyframe(0).m_value;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
*/