Lines 55-61
Link Here
|
55 |
#include "SUIT_Session.h" |
55 |
#include "SUIT_Session.h" |
56 |
#include "SUIT_Study.h" |
56 |
#include "SUIT_Study.h" |
57 |
|
57 |
|
58 |
#include "SALOMEDSClient_AttributeComment.hxx" |
58 |
#include "SALOMEDSClient_AttributeString.hxx" |
59 |
#include "SALOMEDSClient_AttributeName.hxx" |
59 |
#include "SALOMEDSClient_AttributeName.hxx" |
60 |
|
60 |
|
61 |
#include <qpixmap.h> |
61 |
#include <qpixmap.h> |
Lines 102-107
Link Here
|
102 |
myTimeMax = 0; |
102 |
myTimeMax = 0; |
103 |
myLastError = ""; |
103 |
myLastError = ""; |
104 |
myCycling = false; |
104 |
myCycling = false; |
|
|
105 |
myCleaningMemoryAtEachFrame = false; |
105 |
|
106 |
|
106 |
myAnimEntry = ""; |
107 |
myAnimEntry = ""; |
107 |
|
108 |
|
Lines 202-208
Link Here
|
202 |
myView->update(); |
203 |
myView->update(); |
203 |
} |
204 |
} |
204 |
|
205 |
|
205 |
|
|
|
206 |
namespace |
206 |
namespace |
207 |
{ |
207 |
{ |
208 |
//------------------------------------------------------------------------ |
208 |
//------------------------------------------------------------------------ |
Lines 406-412
Link Here
|
406 |
|
406 |
|
407 |
|
407 |
|
408 |
//------------------------------------------------------------------------ |
408 |
//------------------------------------------------------------------------ |
409 |
CORBA::Boolean VISU_TimeAnimation::generateFrames() { |
409 |
CORBA::Boolean VISU_TimeAnimation::_generateFrames() { |
410 |
if (!myView) { |
410 |
if (!myView) { |
411 |
MESSAGE("Viewer is not defined for animation"); |
411 |
MESSAGE("Viewer is not defined for animation"); |
412 |
return false; |
412 |
return false; |
Lines 445-451
Link Here
|
445 |
} |
445 |
} |
446 |
|
446 |
|
447 |
//------------------------------------------------------------------------ |
447 |
//------------------------------------------------------------------------ |
448 |
void VISU_TimeAnimation::clearView() { |
448 |
CORBA::Boolean VISU_TimeAnimation::generateFrames() |
|
|
449 |
{ |
450 |
return ProcessEvent(new TMemFunEvent<VISU_TimeAnimation,bool> |
451 |
(this,&VISU_TimeAnimation::_generateFrames)); |
452 |
} |
453 |
|
454 |
//------------------------------------------------------------------------ |
455 |
void VISU_TimeAnimation::_clearView() { |
449 |
if (!myView) { |
456 |
if (!myView) { |
450 |
MESSAGE("Viewer is not defined for animation"); |
457 |
MESSAGE("Viewer is not defined for animation"); |
451 |
return; |
458 |
return; |
Lines 466-477
Link Here
|
466 |
} |
473 |
} |
467 |
|
474 |
|
468 |
//------------------------------------------------------------------------ |
475 |
//------------------------------------------------------------------------ |
469 |
void VISU_TimeAnimation::stopAnimation() { |
476 |
void VISU_TimeAnimation::clearView() |
|
|
477 |
{ |
478 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
479 |
(this,&VISU_TimeAnimation::_clearView)); |
480 |
} |
481 |
|
482 |
//------------------------------------------------------------------------ |
483 |
void VISU_TimeAnimation::visibilityOff(int num_field, int num_frame) { |
484 |
FieldData& aData = myFieldsLst[num_field]; |
485 |
VISU_Actor* aActor = aData.myActors[num_frame]; |
486 |
if (! myCleaningMemoryAtEachFrame) { |
487 |
// |
488 |
// Usual behaviour : VisibilityOff() |
489 |
// Problem : It don't clean the memory so if there is |
490 |
// a lot of frames, the memory grows dramatically |
491 |
// |
492 |
aActor->VisibilityOff(); |
493 |
} else { |
494 |
// |
495 |
// myCleaningMemoryAtEachFrame behaviour: |
496 |
// Delete the actor and re-creation it with VisibilityOff() |
497 |
// since it takes memory only at VisibilityOn() |
498 |
// |
499 |
// Delete the actor |
500 |
aActor->RemoveFromRender(myView->getRenderer()); |
501 |
//aActor->Delete(); |
502 |
// Re-create the actor |
503 |
aActor = aData.myPrs[num_frame]->CreateActor(); |
504 |
myView->AddActor(aActor); |
505 |
aActor->VisibilityOff(); |
506 |
aData.myActors[num_frame] = aActor; |
507 |
} |
508 |
} |
509 |
|
510 |
//------------------------------------------------------------------------ |
511 |
void VISU_TimeAnimation::_stopAnimation() { |
470 |
myIsActive = false; |
512 |
myIsActive = false; |
471 |
} |
513 |
} |
472 |
|
514 |
|
473 |
//------------------------------------------------------------------------ |
515 |
//------------------------------------------------------------------------ |
474 |
void VISU_TimeAnimation::startAnimation() { |
516 |
void VISU_TimeAnimation::stopAnimation() |
|
|
517 |
{ |
518 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
519 |
(this,&VISU_TimeAnimation::_stopAnimation)); |
520 |
} |
521 |
|
522 |
//------------------------------------------------------------------------ |
523 |
void VISU_TimeAnimation::_startAnimation() { |
475 |
if (!myIsActive) { |
524 |
if (!myIsActive) { |
476 |
myIsActive = true; |
525 |
myIsActive = true; |
477 |
QThread::start(); |
526 |
QThread::start(); |
Lines 479-485
Link Here
|
479 |
} |
528 |
} |
480 |
|
529 |
|
481 |
//------------------------------------------------------------------------ |
530 |
//------------------------------------------------------------------------ |
482 |
void VISU_TimeAnimation::nextFrame() { |
531 |
void VISU_TimeAnimation::startAnimation() |
|
|
532 |
{ |
533 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
534 |
(this,&VISU_TimeAnimation::_startAnimation)); |
535 |
} |
536 |
|
537 |
|
538 |
//------------------------------------------------------------------------ |
539 |
void VISU_TimeAnimation::_nextFrame() { |
483 |
if (!myView) { |
540 |
if (!myView) { |
484 |
MESSAGE("Viewer is not defined for animation"); |
541 |
MESSAGE("Viewer is not defined for animation"); |
485 |
return; |
542 |
return; |
Lines 489-495
Link Here
|
489 |
int i; |
546 |
int i; |
490 |
for (i = 0; i < getNbFields(); i++) |
547 |
for (i = 0; i < getNbFields(); i++) |
491 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
548 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
492 |
myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
549 |
//myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
|
|
550 |
visibilityOff(i, myFrame); |
493 |
|
551 |
|
494 |
myFrame++; |
552 |
myFrame++; |
495 |
for (i = 0; i < getNbFields(); i++) |
553 |
for (i = 0; i < getNbFields(); i++) |
Lines 502-508
Link Here
|
502 |
} |
560 |
} |
503 |
|
561 |
|
504 |
//------------------------------------------------------------------------ |
562 |
//------------------------------------------------------------------------ |
505 |
void VISU_TimeAnimation::prevFrame() { |
563 |
void VISU_TimeAnimation::nextFrame() |
|
|
564 |
{ |
565 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
566 |
(this,&VISU_TimeAnimation::_nextFrame)); |
567 |
} |
568 |
|
569 |
//------------------------------------------------------------------------ |
570 |
void VISU_TimeAnimation::_prevFrame() { |
506 |
if (!myView) { |
571 |
if (!myView) { |
507 |
MESSAGE("Viewer is not defined for animation"); |
572 |
MESSAGE("Viewer is not defined for animation"); |
508 |
return; |
573 |
return; |
Lines 512-518
Link Here
|
512 |
int i; |
577 |
int i; |
513 |
for (i = 0; i < getNbFields(); i++) |
578 |
for (i = 0; i < getNbFields(); i++) |
514 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
579 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
515 |
myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
580 |
//myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
|
|
581 |
visibilityOff(i, myFrame); |
516 |
|
582 |
|
517 |
myFrame--; |
583 |
myFrame--; |
518 |
for (i = 0; i < getNbFields(); i++) |
584 |
for (i = 0; i < getNbFields(); i++) |
Lines 525-531
Link Here
|
525 |
} |
591 |
} |
526 |
|
592 |
|
527 |
//------------------------------------------------------------------------ |
593 |
//------------------------------------------------------------------------ |
528 |
void VISU_TimeAnimation::firstFrame() { |
594 |
void VISU_TimeAnimation::prevFrame() |
|
|
595 |
{ |
596 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
597 |
(this,&VISU_TimeAnimation::_prevFrame)); |
598 |
} |
599 |
|
600 |
//------------------------------------------------------------------------ |
601 |
void VISU_TimeAnimation::_firstFrame() { |
529 |
if (!myView) { |
602 |
if (!myView) { |
530 |
MESSAGE("Viewer is not defined for animation"); |
603 |
MESSAGE("Viewer is not defined for animation"); |
531 |
return; |
604 |
return; |
Lines 535-541
Link Here
|
535 |
for (i = 0; i < getNbFields(); i++) |
608 |
for (i = 0; i < getNbFields(); i++) |
536 |
if(!myFieldsLst[i].myActors.empty()) |
609 |
if(!myFieldsLst[i].myActors.empty()) |
537 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
610 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
538 |
myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
611 |
//myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
|
|
612 |
visibilityOff(i, myFrame); |
539 |
myFrame = 0; |
613 |
myFrame = 0; |
540 |
for (i = 0; i < getNbFields(); i++) |
614 |
for (i = 0; i < getNbFields(); i++) |
541 |
if(!myFieldsLst[i].myActors.empty()) |
615 |
if(!myFieldsLst[i].myActors.empty()) |
Lines 548-554
Link Here
|
548 |
} |
622 |
} |
549 |
|
623 |
|
550 |
//------------------------------------------------------------------------ |
624 |
//------------------------------------------------------------------------ |
551 |
void VISU_TimeAnimation::lastFrame() { |
625 |
void VISU_TimeAnimation::firstFrame() |
|
|
626 |
{ |
627 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
628 |
(this,&VISU_TimeAnimation::_firstFrame)); |
629 |
} |
630 |
|
631 |
//------------------------------------------------------------------------ |
632 |
void VISU_TimeAnimation::_lastFrame() { |
552 |
if (!myView) { |
633 |
if (!myView) { |
553 |
MESSAGE("Viewer is not defined for animation"); |
634 |
MESSAGE("Viewer is not defined for animation"); |
554 |
return; |
635 |
return; |
Lines 557-563
Link Here
|
557 |
int i; |
638 |
int i; |
558 |
for (i = 0; i < getNbFields(); i++) |
639 |
for (i = 0; i < getNbFields(); i++) |
559 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
640 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
560 |
myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
641 |
//myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
|
|
642 |
visibilityOff(i, myFrame); |
561 |
|
643 |
|
562 |
myFrame = myFieldsLst[0].myNbFrames-1; |
644 |
myFrame = myFieldsLst[0].myNbFrames-1; |
563 |
for (i = 0; i < getNbFields(); i++) |
645 |
for (i = 0; i < getNbFields(); i++) |
Lines 568-577
Link Here
|
568 |
myView->Repaint(); |
650 |
myView->Repaint(); |
569 |
} |
651 |
} |
570 |
|
652 |
|
|
|
653 |
//------------------------------------------------------------------------ |
654 |
void VISU_TimeAnimation::lastFrame() |
655 |
{ |
656 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
657 |
(this,&VISU_TimeAnimation::_lastFrame)); |
658 |
} |
659 |
|
571 |
|
660 |
|
572 |
//------------------------------------------------------------------------ |
661 |
//------------------------------------------------------------------------ |
573 |
// For Batchmode using |
662 |
// For Batchmode using |
574 |
void VISU_TimeAnimation::gotoFrame(CORBA::Long theFrame) { |
663 |
void VISU_TimeAnimation::_gotoFrame(CORBA::Long theFrame) { |
575 |
if (!myView) { |
664 |
if (!myView) { |
576 |
MESSAGE("Viewer is not defined for animation"); |
665 |
MESSAGE("Viewer is not defined for animation"); |
577 |
return; |
666 |
return; |
Lines 579-590
Link Here
|
579 |
if ((theFrame < 0) || (theFrame > (getNbFrames()-1))) |
668 |
if ((theFrame < 0) || (theFrame > (getNbFrames()-1))) |
580 |
return; |
669 |
return; |
581 |
stopAnimation(); |
670 |
stopAnimation(); |
582 |
qApp->lock(); |
671 |
//qApp->lock(); |
583 |
qApp->syncX(); |
672 |
//qApp->syncX(); |
584 |
int i; |
673 |
int i; |
585 |
for (i = 0; i < getNbFields(); i++) |
674 |
for (i = 0; i < getNbFields(); i++) |
586 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
675 |
if (myFieldsLst[i].myActors[myFrame] != 0) |
587 |
myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
676 |
//myFieldsLst[i].myActors[myFrame]->VisibilityOff(); |
|
|
677 |
visibilityOff(i, myFrame); |
588 |
|
678 |
|
589 |
myFrame = theFrame; |
679 |
myFrame = theFrame; |
590 |
for (i = 0; i < getNbFields(); i++) |
680 |
for (i = 0; i < getNbFields(); i++) |
Lines 593-601
Link Here
|
593 |
|
683 |
|
594 |
emit frameChanged(myFrame, myFieldsLst[0].myTiming[myFrame]); |
684 |
emit frameChanged(myFrame, myFieldsLst[0].myTiming[myFrame]); |
595 |
myView->Repaint(); |
685 |
myView->Repaint(); |
596 |
qApp->flushX(); |
686 |
//qApp->flushX(); |
597 |
qApp->processEvents(3); |
687 |
//qApp->processEvents(3); |
598 |
qApp->unlock(); |
688 |
//qApp->unlock(); |
|
|
689 |
} |
690 |
|
691 |
//------------------------------------------------------------------------ |
692 |
void VISU_TimeAnimation::gotoFrame(CORBA::Long theFrame) |
693 |
{ |
694 |
ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_TimeAnimation,CORBA::Long> |
695 |
(this,&VISU_TimeAnimation::_gotoFrame,theFrame)); |
599 |
} |
696 |
} |
600 |
|
697 |
|
601 |
|
698 |
|
Lines 640-649
Link Here
|
640 |
FieldData& aData = myFieldsLst[i]; |
737 |
FieldData& aData = myFieldsLst[i]; |
641 |
if (myFrame > 0) { |
738 |
if (myFrame > 0) { |
642 |
if (aData.myActors[myFrame-1] != 0) |
739 |
if (aData.myActors[myFrame-1] != 0) |
643 |
aData.myActors[myFrame-1]->VisibilityOff(); |
740 |
//aData.myActors[myFrame-1]->VisibilityOff(); |
|
|
741 |
visibilityOff(i, myFrame-1); |
644 |
} else { |
742 |
} else { |
645 |
if (aData.myActors[aData.myNbFrames-1] != 0) |
743 |
if (aData.myActors[aData.myNbFrames-1] != 0) |
646 |
aData.myActors[aData.myNbFrames-1]->VisibilityOff(); |
744 |
//aData.myActors[aData.myNbFrames-1]->VisibilityOff(); |
|
|
745 |
visibilityOff(i, aData.myNbFrames-1); |
647 |
} |
746 |
} |
648 |
if (aData.myActors[myFrame] != 0) { |
747 |
if (aData.myActors[myFrame] != 0) { |
649 |
aData.myActors[myFrame]->VisibilityOn(); |
748 |
aData.myActors[myFrame]->VisibilityOn(); |
Lines 675-686
Link Here
|
675 |
} |
774 |
} |
676 |
qApp->unlock(); |
775 |
qApp->unlock(); |
677 |
msleep(delay); |
776 |
msleep(delay); |
|
|
777 |
if (!myIsActive) { |
778 |
emit stopped(); |
779 |
return; |
780 |
} |
678 |
qApp->lock(); |
781 |
qApp->lock(); |
679 |
|
782 |
|
680 |
if (isDumping) { |
783 |
if (isDumping) { |
681 |
// We must unlock mutex for some time before grabbing to allow view updating |
784 |
// We must unlock mutex for some time before grabbing to allow view updating |
682 |
qApp->unlock(); |
785 |
qApp->unlock(); |
683 |
msleep(delay); |
786 |
msleep(delay); |
|
|
787 |
if (!myIsActive) { // this check was taken from WP_DEB branch |
788 |
emit stopped(); |
789 |
return; |
790 |
} |
684 |
qApp->lock(); |
791 |
qApp->lock(); |
685 |
if(!(myFieldsLst[0].myField)) // break, if field was deleted. |
792 |
if(!(myFieldsLst[0].myField)) // break, if field was deleted. |
686 |
break; |
793 |
break; |
Lines 823-830
Link Here
|
823 |
VISU::Storable::TRestoringMap aMap; |
930 |
VISU::Storable::TRestoringMap aMap; |
824 |
if (theSObject) { |
931 |
if (theSObject) { |
825 |
_PTR(GenericAttribute) anAttr; |
932 |
_PTR(GenericAttribute) anAttr; |
826 |
if (theSObject->FindAttribute(anAttr, "AttributeComment")) { |
933 |
if (theSObject->FindAttribute(anAttr, "AttributeString")) { |
827 |
_PTR(AttributeComment) aComment (anAttr); |
934 |
_PTR(AttributeString) aComment (anAttr); |
828 |
std::string aString = aComment->Value(); |
935 |
std::string aString = aComment->Value(); |
829 |
QString strIn (aString.c_str()); |
936 |
QString strIn (aString.c_str()); |
830 |
VISU::Storable::StrToMap(strIn, aMap); |
937 |
VISU::Storable::StrToMap(strIn, aMap); |
Lines 990-997
Link Here
|
990 |
VISU::TANIMATION,myTimeMinVal,myTimeMaxVal); |
1097 |
VISU::TANIMATION,myTimeMinVal,myTimeMaxVal); |
991 |
|
1098 |
|
992 |
_PTR(GenericAttribute) anAttr; |
1099 |
_PTR(GenericAttribute) anAttr; |
993 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeComment"); |
1100 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeString"); |
994 |
_PTR(AttributeComment) aCmnt (anAttr); |
1101 |
_PTR(AttributeString) aCmnt (anAttr); |
995 |
aCmnt->SetValue(aComment.latin1()); |
1102 |
aCmnt->SetValue(aComment.latin1()); |
996 |
|
1103 |
|
997 |
_PTR(ChildIterator) anIter = myStudy->NewChildIterator(aAnimSObject); |
1104 |
_PTR(ChildIterator) anIter = myStudy->NewChildIterator(aAnimSObject); |
Lines 1016-1023
Link Here
|
1016 |
|
1123 |
|
1017 |
if (anPrsIter->More()) { |
1124 |
if (anPrsIter->More()) { |
1018 |
_PTR(SObject) aPrsObj = anPrsIter->Value(); |
1125 |
_PTR(SObject) aPrsObj = anPrsIter->Value(); |
1019 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeComment"); |
1126 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeString"); |
1020 |
aCmnt = _PTR(AttributeComment)(anAttr); |
1127 |
aCmnt = _PTR(AttributeString)(anAttr); |
1021 |
aCmnt->SetValue(aPrsComment.c_str()); |
1128 |
aCmnt->SetValue(aPrsComment.c_str()); |
1022 |
|
1129 |
|
1023 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeName"); |
1130 |
anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeName"); |
Lines 1045-1053
Link Here
|
1045 |
|
1152 |
|
1046 |
VISU::Storable::TRestoringMap aMap; |
1153 |
VISU::Storable::TRestoringMap aMap; |
1047 |
_PTR(GenericAttribute) anAttr; |
1154 |
_PTR(GenericAttribute) anAttr; |
1048 |
if (!aAnimSObject->FindAttribute(anAttr, "AttributeComment")) return; |
1155 |
if (!aAnimSObject->FindAttribute(anAttr, "AttributeString")) return; |
1049 |
|
1156 |
|
1050 |
_PTR(AttributeComment) aComment (anAttr); |
1157 |
_PTR(AttributeString) aComment (anAttr); |
1051 |
string aComm = aComment->Value(); |
1158 |
string aComm = aComment->Value(); |
1052 |
QString strIn (aComm.c_str()); |
1159 |
QString strIn (aComm.c_str()); |
1053 |
VISU::Storable::StrToMap(strIn,aMap); |
1160 |
VISU::Storable::StrToMap(strIn,aMap); |
Lines 1098-1105
Link Here
|
1098 |
continue; |
1205 |
continue; |
1099 |
generatePresentations(getNbFields()-1); |
1206 |
generatePresentations(getNbFields()-1); |
1100 |
|
1207 |
|
1101 |
if (!aPrsObj->FindAttribute(anAttr, "AttributeComment")) continue; |
1208 |
if (!aPrsObj->FindAttribute(anAttr, "AttributeString")) continue; |
1102 |
_PTR(AttributeComment) aPrsComment (anAttr); |
1209 |
_PTR(AttributeString) aPrsComment (anAttr); |
1103 |
string aPrsComm = aPrsComment->Value(); |
1210 |
string aPrsComm = aPrsComment->Value(); |
1104 |
if (aPrsComm.length() > 0) { |
1211 |
if (aPrsComm.length() > 0) { |
1105 |
QString strPrsIn (aPrsComm.c_str()); |
1212 |
QString strPrsIn (aPrsComm.c_str()); |
Lines 1183-1190
Link Here
|
1183 |
|
1290 |
|
1184 |
CORBA::Boolean VISU_TimeAnimation_i::generateFrames() |
1291 |
CORBA::Boolean VISU_TimeAnimation_i::generateFrames() |
1185 |
{ |
1292 |
{ |
1186 |
return ProcessEvent(new TMemFunEvent<VISU_TimeAnimation,bool> |
1293 |
//return ProcessEvent(new TMemFunEvent<VISU_TimeAnimation,bool> |
1187 |
(myAnim,&VISU_TimeAnimation::generateFrames)); |
1294 |
// (myAnim,&VISU_TimeAnimation::generateFrames)); |
|
|
1295 |
return myAnim->generateFrames(); |
1188 |
} |
1296 |
} |
1189 |
|
1297 |
|
1190 |
void VISU_TimeAnimation_i::generatePresentations (CORBA::Long theFieldNum) |
1298 |
void VISU_TimeAnimation_i::generatePresentations (CORBA::Long theFieldNum) |
Lines 1194-1243
Link Here
|
1194 |
|
1302 |
|
1195 |
void VISU_TimeAnimation_i::clearView() |
1303 |
void VISU_TimeAnimation_i::clearView() |
1196 |
{ |
1304 |
{ |
1197 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1305 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1198 |
(myAnim,&VISU_TimeAnimation::clearView)); |
1306 |
// (myAnim,&VISU_TimeAnimation::clearView)); |
|
|
1307 |
myAnim->clearView(); |
1199 |
} |
1308 |
} |
1200 |
|
1309 |
|
1201 |
void VISU_TimeAnimation_i::stopAnimation() |
1310 |
void VISU_TimeAnimation_i::stopAnimation() |
1202 |
{ |
1311 |
{ |
1203 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1312 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1204 |
(myAnim,&VISU_TimeAnimation::stopAnimation)); |
1313 |
// (myAnim,&VISU_TimeAnimation::stopAnimation)); |
|
|
1314 |
myAnim->stopAnimation(); |
1205 |
} |
1315 |
} |
1206 |
|
1316 |
|
1207 |
void VISU_TimeAnimation_i::startAnimation() |
1317 |
void VISU_TimeAnimation_i::startAnimation() |
1208 |
{ |
1318 |
{ |
1209 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1319 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1210 |
(myAnim,&VISU_TimeAnimation::startAnimation)); |
1320 |
// (myAnim,&VISU_TimeAnimation::startAnimation)); |
|
|
1321 |
myAnim->startAnimation(); |
1211 |
} |
1322 |
} |
1212 |
|
1323 |
|
1213 |
void VISU_TimeAnimation_i::nextFrame() |
1324 |
void VISU_TimeAnimation_i::nextFrame() |
1214 |
{ |
1325 |
{ |
1215 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1326 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1216 |
(myAnim,&VISU_TimeAnimation::nextFrame)); |
1327 |
// (myAnim,&VISU_TimeAnimation::nextFrame)); |
|
|
1328 |
myAnim->nextFrame(); |
1217 |
} |
1329 |
} |
1218 |
|
1330 |
|
1219 |
void VISU_TimeAnimation_i::prevFrame() |
1331 |
void VISU_TimeAnimation_i::prevFrame() |
1220 |
{ |
1332 |
{ |
1221 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1333 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1222 |
(myAnim,&VISU_TimeAnimation::prevFrame)); |
1334 |
// (myAnim,&VISU_TimeAnimation::prevFrame)); |
|
|
1335 |
myAnim->prevFrame(); |
1223 |
} |
1336 |
} |
1224 |
|
1337 |
|
1225 |
void VISU_TimeAnimation_i::firstFrame() |
1338 |
void VISU_TimeAnimation_i::firstFrame() |
1226 |
{ |
1339 |
{ |
1227 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1340 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1228 |
(myAnim,&VISU_TimeAnimation::firstFrame)); |
1341 |
// (myAnim,&VISU_TimeAnimation::firstFrame)); |
|
|
1342 |
myAnim->firstFrame(); |
1229 |
} |
1343 |
} |
1230 |
|
1344 |
|
1231 |
void VISU_TimeAnimation_i::lastFrame() |
1345 |
void VISU_TimeAnimation_i::lastFrame() |
1232 |
{ |
1346 |
{ |
1233 |
ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1347 |
//ProcessVoidEvent(new TVoidMemFunEvent<VISU_TimeAnimation> |
1234 |
(myAnim,&VISU_TimeAnimation::lastFrame)); |
1348 |
// (myAnim,&VISU_TimeAnimation::lastFrame)); |
|
|
1349 |
myAnim->lastFrame(); |
1235 |
} |
1350 |
} |
1236 |
|
1351 |
|
1237 |
void VISU_TimeAnimation_i::gotoFrame(CORBA::Long theFrame) |
1352 |
void VISU_TimeAnimation_i::gotoFrame(CORBA::Long theFrame) |
1238 |
{ |
1353 |
{ |
1239 |
ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_TimeAnimation,CORBA::Long> |
1354 |
//ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_TimeAnimation,CORBA::Long> |
1240 |
(myAnim,&VISU_TimeAnimation::gotoFrame,theFrame)); |
1355 |
// (myAnim,&VISU_TimeAnimation::gotoFrame,theFrame)); |
|
|
1356 |
myAnim->gotoFrame(theFrame); |
1241 |
} |
1357 |
} |
1242 |
|
1358 |
|
1243 |
CORBA::Long VISU_TimeAnimation_i::getNbFields() |
1359 |
CORBA::Long VISU_TimeAnimation_i::getNbFields() |
Lines 1329-1334
Link Here
|
1329 |
return myAnim->isCycling(); |
1445 |
return myAnim->isCycling(); |
1330 |
} |
1446 |
} |
1331 |
|
1447 |
|
|
|
1448 |
CORBA::Boolean VISU_TimeAnimation_i::isCleaningMemoryAtEachFrame(){ |
1449 |
return myAnim->isCleaningMemoryAtEachFrame(); |
1450 |
} |
1451 |
|
1332 |
CORBA::Double VISU_TimeAnimation_i::getMinTime() |
1452 |
CORBA::Double VISU_TimeAnimation_i::getMinTime() |
1333 |
{ |
1453 |
{ |
1334 |
return myAnim->getMinTime(); |
1454 |
return myAnim->getMinTime(); |
Lines 1349-1354
Link Here
|
1349 |
myAnim->setCycling(theCycle); |
1469 |
myAnim->setCycling(theCycle); |
1350 |
} |
1470 |
} |
1351 |
|
1471 |
|
|
|
1472 |
void VISU_TimeAnimation_i::setCleaningMemoryAtEachFrame(CORBA::Boolean theCycle){ |
1473 |
myAnim->setCleaningMemoryAtEachFrame(theCycle); |
1474 |
} |
1475 |
|
1352 |
SALOMEDS::SObject_ptr VISU_TimeAnimation_i::publishInStudy() |
1476 |
SALOMEDS::SObject_ptr VISU_TimeAnimation_i::publishInStudy() |
1353 |
{ |
1477 |
{ |
1354 |
return myAnim->publishInStudy(); |
1478 |
return myAnim->publishInStudy(); |