Salome HOME
Merge from PortingMED3 07Apr11
[modules/visu.git] / src / VISU_I / VISU_ColoredPrs3d_i.cc
index dcf280865181f765135c6447cc63c5452ff0eb29..f0cf7047f9e2ab6ce5fefbbe11d8a0c14088ad38 100644 (file)
@@ -1,4 +1,4 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -19,6 +19,7 @@
 //
 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  VISU OBJECT : interactive object for VISU entities implementation
 //  File   : VISU_PrsObject_i.cxx
 //  Author : Alexey PETROV
@@ -35,7 +36,7 @@
 #include "SUIT_ResourceMgr.h"
 #include "SALOME_Event.h"
 
-#include <strstream>
+#include <sstream>
 #include <vtkMapper.h>
 #include <vtkDataSet.h>
 
@@ -88,9 +89,9 @@ namespace VISU
     if(!theResult->IsMinMaxDone())
       theResult->GetInput()->BuildMinMax();
     if(theField->myIsELNO)
-      return theField->GetMinMax(theCompID);
+      return theField->GetMinMax(theCompID, VISU::TNames());
     else
-      return theField->GetAverageMinMax(theCompID);
+      return theField->GetAverageMinMax(theCompID, VISU::TNames());
   }
 
   //---------------------------------------------------------------
@@ -207,9 +208,9 @@ VISU::ColoredPrs3d_i
 //---------------------------------------------------------------
 void
 VISU::ColoredPrs3d_i
-::Destroy()
+::UnRegister()
 {
-  TSuperClass::Destroy();
+  TSuperClass::UnRegister();
 }
 
 //---------------------------------------------------------------
@@ -1143,7 +1144,7 @@ VISU::ColoredPrs3d_i
     aValForTime = anIter->second;
 
   if (aValForTime) {
-    std::strstream aStream;
+    std::stringstream aStream;
     const VISU::TTime& aTime = aValForTime->myTime;
     aStream<<theTitle<<" ";
     if(IsUnitsVisible()) {
@@ -2157,3 +2158,12 @@ VISU::ColoredPrs3d_i
 
 //----------------------------------------------------------------------------
 
+void
+VISU::ColoredPrs3d_i
+::UpdateMapperLookupTable()
+{
+  ProcessVoidEvent(new TVoidMemFunEvent<VISU_ColoredPL>
+    (GetSpecificPL(), &VISU_ColoredPL::UpdateMapperLookupTable));
+}
+
+//----------------------------------------------------------------------------^