本文整理汇总了C++中BalanceFactor::hasNext方法的典型用法代码示例。如果您正苦于以下问题:C++ BalanceFactor::hasNext方法的具体用法?C++ BalanceFactor::hasNext怎么用?C++ BalanceFactor::hasNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BalanceFactor
的用法示例。
在下文中一共展示了BalanceFactor::hasNext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: advanceTrial
void advanceTrial()
{
beepOk(0);
double timeElapsed = timer.getElapsedTimeInMilliSec();
responseFile.precision(3); // max three decimal positions
responseFile << fixed <<
parameters.find("SubjectName") << "\t" <<
interoculardistance << "\t" <<
trialNumber << "\t" <<
trial.getCurrent()["AbsDepth"] << "\t" <<
objwidth << "\t" <<
adjDz << "\t" <<
timeElapsed
<< endl;
trialNumber++;
if(trial.hasNext())
{
trial.next();
initTrial();
} else
{
isStimulusDrawn=false;
drawGLScene();
responseFile.close();
expFinished = true;
}
}
示例2: advanceTrial
void advanceTrial()
{
double timeElapsed = globalTimer.getElapsedTimeInMilliSec();
responseFile.precision(3); // max three decimal positions
responseFile << fixed <<
parameters.find("SubjectName") << "\t" <<
trialNumber << "\t" <<
repetitions << "\t" <<
starting_theta << "\t" <<
final_theta << "\t" <<
trial.getCurrent()["Tilt_sign"] << "\t" <<
timeElapsed << "\t" <<
endl;
trialNumber++;
if(trial.hasNext())
{
trial.next();
initTrial();
} else if (repetitions < max_repetitions)
{
repetitions++;
initVariables();
trial.next();
initTrial();
} else
{
responseFile.close();
expFinished = true;
beepOk(4);
}
}