void
VisuGUI::
-OnConsecutiveTimeAnimation()
+OnSucccessiveTimeAnimation()
{
OnTimeAnimation(1);
}
this, SLOT(OnParallelTimeAnimation()));
aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_TIMEANIMATION"));
- createAction( VISU_CONSECUTIVEANIMATION, tr("MEN_CONSECUTIVE_ANIMATION"), QIconSet(aPixmap),
- tr("MEN_CONSECUTIVE_ANIMATION"), "", 0, aParent, false,
- this, SLOT(OnConsecutiveTimeAnimation()));
+ createAction( VISU_SUCCCESSIVEANIMATION, tr("MEN_SUCCCESSIVE_ANIMATION"), QIconSet(aPixmap),
+ tr("MEN_SUCCCESSIVE_ANIMATION"), "", 0, aParent, false,
+ this, SLOT(OnSucccessiveTimeAnimation()));
aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_ERASE_ALL"));
createAction( VISU_ERASE_ALL, tr("MEN_ERASE_ALL"), QIconSet(aPixmap),
mgr->insert( action( VISU_SWEEP ), -1, -1, -1 );
mgr->insert( action( VISU_PARALLELANIMATION ), -1, -1, -1 );
- mgr->insert( action( VISU_CONSECUTIVEANIMATION ), -1, -1, -1 );
+ mgr->insert( action( VISU_SUCCCESSIVEANIMATION ), -1, -1, -1 );
mgr->insert( separator(), -1, -1, -1 );
aRule += " and $type in {'VISU::TFIELD'}";
aRule += " and nbTimeStamps>0";
aRule += " and activeView in {'VTKViewer' 'VVTK'}";
- mgr->setRule( action( VISU_CONSECUTIVEANIMATION ), aRule, true );
+ mgr->setRule( action( VISU_SUCCCESSIVEANIMATION ), aRule, true );
aRule = "client='ObjectBrowser' and $type in {'VISU::TENTITY' 'VISU::TFAMILY' 'VISU::TGROUP'}";
mgr->setRule( action( VISU_CREATE_PRS ), aRule + " and selcount=1", true );
double aStep;
if ( myAnimator->getAnimationMode() == 0 )
aStep = (aMaxTime - aMinTime) / (myAnimator->getFieldData(0).myNbTimes - 1);
- else { // consecutive animation mode
+ else { // succcessive animation mode
std::pair<int,long> aLastFieldFrame(myAnimator->getNbFields() - 1,
myAnimator->getFieldData(myAnimator->getNbFields() - 1).myNbTimes - 1);
aStep = (aMaxTime - aMinTime) / myAnimator->getAbsoluteFrameNumber(aLastFieldFrame);
aPrsType = aData.myPrsType;
}
- else if ( myAnimator->getAnimationMode() == 1 ) { // consecutive animation mode
+ else if ( myAnimator->getAnimationMode() == 1 ) { // succcessive animation mode
for (int i = 0; i < myAnimator->getNbFields(); i++) {
_PTR(SObject) aSO = myAnimator->getFieldData(i).myField;
if ( theMode == 0 )
setCaption("Parallel Animation");
else if ( theMode == 1 )
- setCaption("Consecutive Animation");
+ setCaption("Succcessive Animation");
setSizeGripEnabled( TRUE );
isClosing = false;
myAnimator->restoreFromStudy(theAnimation);
mySaveBtn->setEnabled(myAnimator->isSavedInStudy());
if ( myAnimator->getAnimationMode() == 1 )
- setCaption("Consecutive Animation");
+ setCaption("Succcessive Animation");
}
//------------------------------------------------------------------------
if ( myFieldsLst.isEmpty() )
myFieldsAbsFrames.push_back(aNewData.myNbTimes);
}
- else { // consecutive animation mode
+ else { // succcessive animation mode
if ( aNewData.myNbTimes < 1 )
return false;
double getMinFieldsValue( QValueList<FieldData>& theFieldsLst )
{
- // for consecutive animation mode only
+ // for succcessive animation mode only
double aRes = theFieldsLst[0].myPrs[0]->GetMin();
for (int i = 1; i < theFieldsLst.count(); i++) {
if ( aRes > theFieldsLst[i].myPrs[0]->GetMin() )
double getMaxFieldsValue( QValueList<FieldData>& theFieldsLst )
{
- // for consecutive animation mode only
+ // for succcessive animation mode only
double aRes = theFieldsLst[0].myPrs[0]->GetMax();
for (int i = 1; i < theFieldsLst.count(); i++) {
if ( aRes < theFieldsLst[i].myPrs[0]->GetMax() )
return;
}
- if ( myAnimationMode == 1 ) { // consecutive animation mode
+ if ( myAnimationMode == 1 ) { // succcessive animation mode
if ( isRangeDefined() ) {
if ( myFieldsAbsFrames.size() == getNbFields() )
myFieldsAbsFrames.clear();
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //consecutive animation mode
+ else { //succcessive 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 { //consecutive animation mode
+ else { //succcessive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //consecutive animation mode
+ else { //succcessive 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 { //consecutive animation mode
+ else { //succcessive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //consecutive animation mode
+ else { //succcessive animation mode
std::pair<int,long> aPair = getRelativeFrameNumber(myFrame);
int aFieldId = aPair.first;
long aFrameId = aPair.second;
int imax;
if ( myAnimationMode == 0 ) // parallel animation mode
imax = getNbFields();
- else //consecutive animation mode
+ else //succcessive animation mode
imax = 1;
for (i = 0; i < imax; i++)
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //consecutive animation mode
+ else { //succcessive 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 { //consecutive animation mode
+ else { //succcessive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
if (myFieldsLst[i].myActors[myFrame] != 0)
visibilityOff(i, myFrame);
}
- else { //consecutive animation mode
+ else { //succcessive 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 { //consecutive animation mode
+ else { //succcessive animation mode
aPair = getRelativeFrameNumber(myFrame);
aFieldId = aPair.first;
aFrameId = aPair.second;
CORBA::Long VISU_TimeAnimation::getNbFrames() {
if ( myAnimationMode == 0 ) // parallel animation mode
return (getNbFields() > 0)? myFieldsLst[0].myNbFrames : 0;
- else //consecutive animation mode
+ else //succcessive animation mode
return (getNbFields() > 0) ? myFieldsAbsFrames[myFieldsAbsFrames.size()-1] : 0;
}
if ( aFrameNum <= myFieldsAbsFrames[0] )
aRes = aFrameNum;
}
- else { //consecutive animation mode
+ else { //succcessive 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 { //consecutive animation mode
+ else { //succcessive animation mode
for (int i = 0, iEnd = myFieldsAbsFrames.size(); i < iEnd; i++)
if ( myFieldsAbsFrames[i] >= theFrame ) {
aRes.first = i;
}
//------------------------------------------------------------------------
-void VISU_TimeAnimation::consecutiveAnimation( bool& theIsDumping, QValueList<int>& theIndexList )
+void VISU_TimeAnimation::succcessiveAnimation( bool& theIsDumping, QValueList<int>& theIndexList )
{
if ( myFrame >= getNbFrames() - 1 )
return;
if ( myAnimationMode == 0 ) // parallel animation mode
parallelAnimation( isDumping, anIndexList );
- else //consecutive animation mode
- consecutiveAnimation( isDumping, anIndexList );
+ else //succcessive animation mode
+ succcessiveAnimation( isDumping, anIndexList );
// make AVI file if need
if (isDumping && myDumpFormat.compare("AVI") == 0) {