21 #include <odinseq/seqgradwave.h>
42 enum rampType {linear, sinusoidal, half_sinusoidal};
69 float initgradstrength,
float finalgradstrength,
double timestep,
rampType type = linear,
70 float steepnessfactor=1.0,
bool reverse =
false);
83 float initgradstrength,
float finalgradstrength,
double timestep,
84 rampType type = linear,
bool reverse =
false);
95 SeqGradRamp(
const STD_string& object_label =
"unnamedSeqGradRamp");
109 double timestep,
rampType type = linear,
float steepnessfactor=1.0,
bool reverse =
false);
122 float finalgradstrength,
double timestep,
rampType type = linear,
bool reverse =
false);
137 static fvector makeGradRamp(
rampType type,
float beginVal,
float endVal,
unsigned int n_vals,
bool reverseramp);
138 static unsigned int npts4ramp(
rampType type,
float beginVal,
float endVal,
float maxIncrement);
139 static unsigned int npts4ramp(
double totaldur,
double timestep);
146 void generate_ramp();
SeqGradRamp(const STD_string &object_label, direction gradchannel, double gradduration, float initgradstrength, float finalgradstrength, double timestep, rampType type=linear, bool reverse=false)
SeqGradRamp & set_ramp(double gradduration, float initgradstrength, float finalgradstrength, double timestep, rampType type=linear, bool reverse=false)
SeqGradRamp & set_ramp(float initgradstrength, float finalgradstrength, double timestep, rampType type=linear, float steepnessfactor=1.0, bool reverse=false)
SeqGradRamp(const SeqGradRamp &sgr)
SeqGradInterface & set_strength(float gradstrength)
SeqGradRamp(const STD_string &object_label="unnamedSeqGradRamp")
SeqGradRamp(const STD_string &object_label, direction gradchannel, float initgradstrength, float finalgradstrength, double timestep, rampType type=linear, float steepnessfactor=1.0, bool reverse=false)
SeqGradRamp & operator=(const SeqGradRamp &sgr)
rampType get_ramptype() const