#include "VISU_MeshAct.h"
#include "VISU_MeshPL.hxx"
+#include "VISU_PipeLineUtils.hxx"
#include "VISU_Convertor.hxx"
#include "SALOME_Event.hxx"
static int INCMEMORY = 4;
+//----------------------------------------------------------------------------
+namespace
+{
+ bool
+ IsSameColor(const SALOMEDS::Color& theLeft,
+ const SALOMEDS::Color& theRight)
+ {
+ return
+ VISU::CheckIsSameValue(theLeft.R, theRight.R) &&
+ VISU::CheckIsSameValue(theLeft.G, theRight.G) &&
+ VISU::CheckIsSameValue(theLeft.B, theRight.B);
+ }
+}
+
//----------------------------------------------------------------------------
int VISU::Mesh_i::myNbPresent = 0;
VISU::Mesh_i
::SetCellColor(const SALOMEDS::Color& theColor)
{
+ if(IsSameColor(myCellColor, theColor))
+ return;
+
myCellColor = theColor;
+ myParamsTime.Modified();
}
VISU::Mesh_i
::SetNodeColor(const SALOMEDS::Color& theColor)
{
+ if(IsSameColor(myNodeColor, theColor))
+ return;
+
myNodeColor = theColor;
+ myParamsTime.Modified();
}
VISU::Mesh_i
::SetLinkColor(const SALOMEDS::Color& theColor)
{
+ if(IsSameColor(myLinkColor, theColor))
+ return;
+
myLinkColor = theColor;
+ myParamsTime.Modified();
}
VISU::Mesh_i
::SetPresentationType(VISU::PresentationType theType)
{
+ if(myPresentType == theType)
+ return;
+
myPresentType = theType;
+ myParamsTime.Modified();
}