if ( myFieldsLst.isEmpty() )
myFieldsAbsFrames.push_back(aNewData.myNbTimes);
}
- else { // succcessive animation mode
+ else { // successive animation mode
if ( aNewData.myNbTimes < 1 )
return false;
double getMinFieldsValue( QValueList<FieldData>& theFieldsLst )
{
- // for succcessive animation mode only
+ // for successive animation mode only
double aRes;
for (int i = 0; i < theFieldsLst.count(); i++) {
if ( theFieldsLst[i].myPrs[0] ) {
double getMaxFieldsValue( QValueList<FieldData>& theFieldsLst )
{
- // for succcessive animation mode only
+ // for successive animation mode only
double aRes;
for (int i = 0; i < theFieldsLst.count(); i++) {
if ( theFieldsLst[i].myPrs[0] ) {
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
ProcessVoidEvent(new TVoidMemFun2ArgEvent<VISU_TimeAnimation,long,double>(this, &VISU_TimeAnimation::_emitFrameChanged,
myFrame, myFieldsLst[0].myTiming[myFrame]));
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
ProcessVoidEvent(new TVoidMemFun2ArgEvent<VISU_TimeAnimation,long,double>(this, &VISU_TimeAnimation::_emitFrameChanged,
myFrame, myFieldsLst[0].myTiming[myFrame]));
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //succcessive animation mode
+ else { //successive animation mode
std::pair<int,long> aPair = getRelativeFrameNumber(myFrame);
int aFieldId = aPair.first;
long aFrameId = aPair.second;
int imax;
if ( myAnimationMode == VISU::Animation::PARALLEL ) // parallel animation mode
imax = getNbFields();
- else //succcessive animation mode
+ else //successive animation mode
imax = 1;
for (i = 0; i < imax; i++)
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
ProcessVoidEvent(new TVoidMemFun2ArgEvent<VISU_TimeAnimation,long,double>(this, &VISU_TimeAnimation::_emitFrameChanged,
myFrame, myFieldsLst[0].myTiming[myFrame]));
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
ProcessVoidEvent(new TVoidMemFun2ArgEvent<VISU_TimeAnimation,long,double>(this, &VISU_TimeAnimation::_emitFrameChanged,
myFrame, myFieldsLst[0].myTiming[myFrame]));
}
- else { //succcessive animation mode
+ else { //successive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
CORBA::Long VISU_TimeAnimation::getNbFrames() {
if ( myAnimationMode == VISU::Animation::PARALLEL ) // parallel animation mode
return (getNbFields() > 0)? myFieldsLst[0].myNbFrames : 0;
- else //succcessive animation mode
+ else //successive animation mode
return (getNbFields() > 0 && !myFieldsAbsFrames.empty()) ? myFieldsAbsFrames[myFieldsAbsFrames.size()-1] : 0;
}
if ( aFrameNum <= myFieldsAbsFrames[0] )
aRes = aFrameNum;
}
- else { //succcessive animation mode
+ else { //successive animation mode
if ( aFieldId == 0 && aFrameNum <= myFieldsAbsFrames[aFieldId] )
aRes = aFrameNum;
else if ( aFieldId && aFrameNum <= myFieldsAbsFrames[aFieldId] - myFieldsAbsFrames[aFieldId-1] )
aRes.first = 0;
aRes.second = theFrame - 1;
}
- else { //succcessive animation mode
+ else { //successive animation mode
for (int i = 0, iEnd = myFieldsAbsFrames.size(); i < iEnd; i++)
if ( myFieldsAbsFrames[i] >= theFrame ) {
aRes.first = i;
}
//------------------------------------------------------------------------
-void VISU_TimeAnimation::succcessiveAnimation( bool& theIsDumping, QValueList<int>& theIndexList )
+void VISU_TimeAnimation::successiveAnimation( bool& theIsDumping, QValueList<int>& theIndexList )
{
if (myFrame >= getNbFrames() - 1)
{
if ( myAnimationMode == VISU::Animation::PARALLEL ) // parallel animation mode
parallelAnimation( isDumping, anIndexList );
- else //succcessive animation mode
- succcessiveAnimation( isDumping, anIndexList );
+ else //successive animation mode
+ successiveAnimation( isDumping, anIndexList );
// make AVI file if need
if (isDumping && myDumpFormat.compare("AVI") == 0 && myExecutionState->IsActive()) {