Salome HOME
projects
/
modules
/
visu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge from PortingMED3 07Apr11
[modules/visu.git]
/
src
/
VISU_I
/
VISU_ColoredPrs3d_i.cc
diff --git
a/src/VISU_I/VISU_ColoredPrs3d_i.cc
b/src/VISU_I/VISU_ColoredPrs3d_i.cc
index dcf280865181f765135c6447cc63c5452ff0eb29..f0cf7047f9e2ab6ce5fefbbe11d8a0c14088ad38 100644
(file)
--- a/
src/VISU_I/VISU_ColoredPrs3d_i.cc
+++ b/
src/VISU_I/VISU_ColoredPrs3d_i.cc
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
10
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
//
// 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
//
//
// 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
// 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 "SUIT_ResourceMgr.h"
#include "SALOME_Event.h"
-#include <s
tr
stream>
+#include <sstream>
#include <vtkMapper.h>
#include <vtkDataSet.h>
#include <vtkMapper.h>
#include <vtkDataSet.h>
@@
-88,9
+89,9
@@
namespace VISU
if(!theResult->IsMinMaxDone())
theResult->GetInput()->BuildMinMax();
if(theField->myIsELNO)
if(!theResult->IsMinMaxDone())
theResult->GetInput()->BuildMinMax();
if(theField->myIsELNO)
- return theField->GetMinMax(theCompID);
+ return theField->GetMinMax(theCompID
, VISU::TNames()
);
else
else
- return theField->GetAverageMinMax(theCompID);
+ return theField->GetAverageMinMax(theCompID
, VISU::TNames()
);
}
//---------------------------------------------------------------
}
//---------------------------------------------------------------
@@
-207,9
+208,9
@@
VISU::ColoredPrs3d_i
//---------------------------------------------------------------
void
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) {
aValForTime = anIter->second;
if (aValForTime) {
- std::strstream aStream;
+ std::str
ing
stream aStream;
const VISU::TTime& aTime = aValForTime->myTime;
aStream<<theTitle<<" ";
if(IsUnitsVisible()) {
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));
+}
+
+//----------------------------------------------------------------------------^