X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSVTK%2FSVTK_Recorder.cxx;h=e7ee680d7066d8f6f6779bad38bbb76f6e6c0951;hb=61d4feb0cfcab63522bd3ab3a6f9d1925dbdc39c;hp=a3cc821dabe08844b1499635d276ffc0397a3271;hpb=3dd98795d73c131b23fdb06ced462ccee8222b5f;p=modules%2Fgui.git diff --git a/src/SVTK/SVTK_Recorder.cxx b/src/SVTK/SVTK_Recorder.cxx index a3cc821da..e7ee680d7 100644 --- a/src/SVTK/SVTK_Recorder.cxx +++ b/src/SVTK/SVTK_Recorder.cxx @@ -58,7 +58,7 @@ namespace //---------------------------------------------------------------------------- inline void - GetNameJPEG(const std::string& thePreffix, + GetNameJPEG(const std::string& thePreffix, const int theIndex, std::string& theName) { @@ -92,7 +92,7 @@ SVTK_Recorder myFilter(vtkWindowToImageFilter::New()), myWriterMgr(new SVTK_ImageWriterMgr) { - myCommand->SetClientData(this); + myCommand->SetClientData(this); myCommand->SetCallback(SVTK_Recorder::ProcessEvents); } @@ -134,7 +134,7 @@ SVTK_Recorder myName = theName; } -const char* +const char* SVTK_Recorder::Name() const { return myName.c_str(); @@ -174,14 +174,14 @@ SVTK_Recorder //---------------------------------------------------------------------------- -void +void SVTK_Recorder ::SetRenderWindow(vtkRenderWindow* theRenderWindow) { myRenderWindow = theRenderWindow; } -vtkRenderWindow* +vtkRenderWindow* SVTK_Recorder ::RenderWindow() { @@ -240,12 +240,12 @@ SVTK_Recorder //---------------------------------------------------------------------------- void SVTK_Recorder -::ProcessEvents(vtkObject* vtkNotUsed(theObject), +::ProcessEvents(vtkObject* vtkNotUsed(theObject), unsigned long theEvent, - void* theClientData, + void* theClientData, void* vtkNotUsed(theCallData)) { - if(vtkObject* anObj = reinterpret_cast(theClientData)){ + if(vtkObject* anObj = reinterpret_cast(theClientData)){ if(SVTK_Recorder* aSelf = dynamic_cast(anObj)){ if(theEvent==vtkCommand::EndEvent){ if(aSelf->State() == SVTK_Recorder::SVTK_Recorder_Record){ @@ -285,7 +285,7 @@ SVTK_Recorder { QApplication::setOverrideCursor( Qt::WaitCursor ); - if(myState == SVTK_Recorder_Record){ + if(myState == SVTK_Recorder_Record){ if(!myPaused) DoRecord(); @@ -319,7 +319,7 @@ SVTK_Recorder //---------------------------------------------------------------------------- -inline +inline int GetFrameIndex(double theStartTime, double theFPS) @@ -349,7 +349,7 @@ SVTK_Recorder if(aLastFrameIndex < 0){ myFrameIndexes.back() = abs(myFrameIndexes.back()); double aPauseTime = fabs((double)(aFrameIndex - myFrameIndex - 1)) / myNbFPS; - if(MYDEBUG) + if(MYDEBUG) cout<<"SVTK_Recorder::DoRecord - aFrameIndex = "< " + tmpFile + + aCommand = diskName + " && (cd " + aDirPath.replace("/","\\\\") + + " && ((dir /b | findstr " + aBaseName + "_[0-9]*.jpeg > " + tmpFile + ") & (for /f %i in (" + tmpFile + ") do (del \"%i\")) & (del " + tmpFile + "))) > NUL"; #endif