]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To compile under GCC 3.4
authorapo <apo@opencascade.com>
Fri, 29 Dec 2006 13:45:59 +0000 (13:45 +0000)
committerapo <apo@opencascade.com>
Fri, 29 Dec 2006 13:45:59 +0000 (13:45 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index 45e325f36f2dadee743b9f8cf94eba1f19107c36..730d4d63c06cb5ecf757dbfb6e7111c37c4b4c5e 100644 (file)
@@ -79,6 +79,18 @@ static int MYDEBUGWITHFILES = 0;
 
 namespace VISU
 {
+  //---------------------------------------------------------------
+  std::string
+  GenerateFieldName(const PFieldImpl& theField,
+                   const PValForTimeImpl& theValForTime)
+  {
+    const VISU::TTime& aTime = theValForTime->myTime;
+    string aFieldName = theField->myMeshName + ", " + theField->myName + ": " + 
+      VISU_Convertor::GenerateName(aTime);
+    return aFieldName;
+  }
+
+
   //---------------------------------------------------------------
   /*! Computes number of points by the given number of cells
    *  in assumption of regular hexahedral mesh structure
@@ -1473,8 +1485,8 @@ namespace VISU
     SetTuple(vtkIdType theTupleId, 
             TVTKBasicType* thePointer)
     {
-      this->WritePointer(myDataArray, theTupleId, thePointer);
-      this->WritePointer(myDataArray2, theTupleId, thePointer);
+      this->WritePointer(this->myDataArray, theTupleId, thePointer);
+      this->WritePointer(this->myDataArray2, theTupleId, thePointer);
     }
   };
 
@@ -1545,7 +1557,7 @@ namespace VISU
                         const VISU::TEntity& theEntity)
   {
     vtkIdType aNbTuples = theField->myDataSize / theField->myNbComp;
-    std::string aFieldName = GenerateFieldName(theField, theValForTime);
+    std::string aFieldName = VISU::GenerateFieldName(theField, theValForTime);
     
     vtkDataSetAttributes* aDataSetAttributes;
     switch(theEntity){
@@ -1745,7 +1757,7 @@ namespace VISU
                           const PValForTimeImpl& theValForTime)
   {
     vtkIdType aNbTuples = theSource->GetNumberOfPoints();
-    std::string aFieldName = GenerateFieldName(theField, theValForTime);
+    std::string aFieldName = VISU::GenerateFieldName(theField, theValForTime);
 
     vtkDataSetAttributes* aDataSetAttributes;
     switch(theField->myEntity){
@@ -2166,18 +2178,6 @@ namespace
   }
   
   
-  //---------------------------------------------------------------
-  std::string
-  GenerateFieldName(const PFieldImpl& theField,
-                   const PValForTimeImpl& theValForTime)
-  {
-    const VISU::TTime& aTime = theValForTime->myTime;
-    string aFieldName = theField->myMeshName + ", " + theField->myName + ": " + 
-      VISU_Convertor::GenerateName(aTime);
-    return aFieldName;
-  }
-
-
   //---------------------------------------------------------------
   void
   GetCells(const TVTKSource& theSource,