Browse Subversion Repository
Contents of /trunk/echoes/SecondOrderStyleGenerator.h
Parent Directory
| Revision Log
Revision 101 -
( show annotations)
( download)
( as text)
Fri Feb 1 01:09:56 2013 UTC
(11 years, 1 month ago)
by haruneko24
File MIME type: text/x-chdr
File size: 900 byte(s)
| 1 |
#ifndef SECONDORDERSTYLEGENERATOR_H |
| 2 |
#define SECONDORDERSTYLEGENERATOR_H |
| 3 |
|
| 4 |
#include "AbstractStyleGenerator.h" |
| 5 |
|
| 6 |
namespace stand |
| 7 |
{ |
| 8 |
namespace echoes |
| 9 |
{ |
| 10 |
|
| 11 |
class SecondOrderStyleGenerator : public AbstractStyleGenerator |
| 12 |
{ |
| 13 |
public: |
| 14 |
SecondOrderStyleGenerator(); |
| 15 |
virtual stand::view::helper::ControlCommand *styleCommand(stand::model::SequenceModel *sequence, int trackId, int tickBegin, int tickEnd, int tickResolution, double msFramePeriod); |
| 16 |
|
| 17 |
double h(double sec) const; |
| 18 |
|
| 19 |
private: |
| 20 |
void _applyH(double *dst, double *src, int size, double msFramePeriod); |
| 21 |
void _applyC(stand::view::helper::ControlCommand *c, double *contour, int size, stand::model::SequenceModel *sequence, int trackId, int tickBegin, int tickEnd, int tickResolution, double msFramePeriod); |
| 22 |
private: |
| 23 |
double k; |
| 24 |
double xi; |
| 25 |
double omega; |
| 26 |
}; |
| 27 |
|
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
#endif // SECONDORDERSTYLEGENERATOR_H |
| |