Salome HOME
Remove trailing white spaces.
authorPascal Obry <pascal.obry@edf.fr>
Mon, 27 Jun 2022 07:21:42 +0000 (09:21 +0200)
committerPascal Obry <pascal.obry@edf.fr>
Mon, 27 Jun 2022 07:24:24 +0000 (09:24 +0200)
src/SVTK/SVTK_Recorder.cxx
src/VTKViewer/VTKViewer_Transform.cxx

index a3cc821dabe08844b1499635d276ffc0397a3271..e7ee680d7066d8f6f6779bad38bbb76f6e6c0951 100644 (file)
@@ -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<vtkObject*>(theClientData)){ 
+  if(vtkObject* anObj = reinterpret_cast<vtkObject*>(theClientData)){
     if(SVTK_Recorder* aSelf = dynamic_cast<SVTK_Recorder*>(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 = "<<aFrameIndex<<
           "; aPauseTime = "<<aPauseTime<<endl;
       myTimeStart += aPauseTime;
@@ -373,7 +373,7 @@ SVTK_Recorder
 
   PreWrite();
 
-  vtkImageData *anImageData = vtkImageData::New(); 
+  vtkImageData *anImageData = vtkImageData::New();
   anImageData->DeepCopy(myFilter->GetOutput());
 
   myWriterMgr->StartImageWriter(myFilter,anImageData,aName,myProgressiveMode,myQuality);
@@ -466,7 +466,7 @@ SVTK_Recorder
     " -j \""<<myName<<"_%06d.jpeg\" "<<
     "| yuv2lav"<<" -o \""<<myName<<"\"";
 #ifdef WIN32
-  aStream<<" -f aA";   
+  aStream<<" -f aA";
 #endif
   std::string aString(aStream.str());
   myErrorStatus = system(aString.c_str());
@@ -478,7 +478,7 @@ SVTK_Recorder
   QString aBaseName = aFileInfo.fileName();
   QString aCommand;
 #ifndef WIN32
-  aCommand = QString("(cd ") + aDirPath + 
+  aCommand = QString("(cd ") + aDirPath +
     "; ls " +
     " | egrep '" + aBaseName + "_[0-9]*.jpeg'" +
     " | xargs rm " +
@@ -486,8 +486,8 @@ SVTK_Recorder
 #else
   QString tmpFile = QString("_") + aBaseName + "_tempfile";
   QString diskName = aDirPath.split("/")[0];
-  aCommand = diskName + " && (cd " + aDirPath.replace("/","\\\\") + 
-       " && ((dir /b | findstr " + aBaseName + "_[0-9]*.jpeg > " + 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
 
index 5a91d4dc8841cbc6eaeedfe401d21f8ee42391b5..f839bf651f475fa0cd1ecb1cb05d95ef12829cbe 100644 (file)
@@ -25,6 +25,7 @@
 //  Author : Laurent CORNABE with help of Nicolas REJNERI
 //  Module : SALOME
 //
+
 #include "VTKViewer_Transform.h"
 
 #include <vtkObjectFactory.h>
@@ -38,10 +39,10 @@ static double EPS = 10e-4;
 vtkStandardNewMacro(VTKViewer_Transform)
 
 /*!Sets matrix scale.*/
-void VTKViewer_Transform::SetMatrixScale(double theScaleX, double theScaleY, double theScaleZ){ 
-  double aMatrix[16] = {theScaleX,0,0,0, 
-                        0,theScaleY,0,0, 
-                        0,0,theScaleZ,0, 
+void VTKViewer_Transform::SetMatrixScale(double theScaleX, double theScaleY, double theScaleZ){
+  double aMatrix[16] = {theScaleX,0,0,0,
+                        0,theScaleY,0,0,
+                        0,0,theScaleZ,0,
                         0,0,0,1.0000000};
   this->SetMatrix(aMatrix);
 }
@@ -60,10 +61,10 @@ void VTKViewer_Transform::GetMatrixScale(double theScale[3]){
 /*!Checks: Is matrix identity, where used EPS value.
  *If |aScaleX-1|<EPS && |aScaleY-1|<EPS && |aScaleY-1|<EPS return 1, esle 0.
  */
-int VTKViewer_Transform::IsIdentity(){ 
+int VTKViewer_Transform::IsIdentity(){
   double aScale[3];
   this->GetMatrixScale(aScale);
-  return (fabs(aScale[0] - 1.0) < EPS && 
-          fabs(aScale[1] - 1.0) < EPS && 
+  return (fabs(aScale[0] - 1.0) < EPS &&
+          fabs(aScale[1] - 1.0) < EPS &&
           fabs(aScale[2] - 1.0) < EPS);
 }