mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028876: Tests, Image_Diff - the image difference is unavailable for test case bugs vis bug28205_1
Quantity_ColorRGBA - added method SetValues(). Image_PixMap::PixelColor() now returns Quantity_ColorRGBA instead of Quantity_Color. Image_PixMap::SetPixelColor() now takes Quantity_ColorRGBA instead of NCollection_Vec4<float>. Image_Diff has been improved to support Image_Format_Gray. Image_Diff::SaveDiffImage() now saves image difference in Image_Format_Gray format to reduce size of image file. Image_Diff now uses TColStd_HPackedMapOfInteger instead of TColStd_MapOfInteger with manual memory allocation.
This commit is contained in:
@@ -840,7 +840,7 @@ namespace
|
||||
|| aDepth >= ShortRealLast())
|
||||
{
|
||||
myImage->SetPixelColor (Standard_Integer(aColIter), Standard_Integer(aRowIter),
|
||||
NCollection_Vec4<float> (0.0f, 0.0f, 0.0f, 1.0f));
|
||||
Quantity_ColorRGBA (0.0f, 0.0f, 0.0f, 1.0f));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -850,7 +850,7 @@ namespace
|
||||
aNormDepth = 1.0f - aNormDepth;
|
||||
}
|
||||
myImage->SetPixelColor (Standard_Integer(aColIter), Standard_Integer(aRowIter),
|
||||
NCollection_Vec4<float> (aNormDepth, aNormDepth, aNormDepth, 1.0f));
|
||||
Quantity_ColorRGBA (aNormDepth, aNormDepth, aNormDepth, 1.0f));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -878,13 +878,13 @@ namespace
|
||||
if (thePicked < 1
|
||||
|| thePicked > myMainSel->NbPicked())
|
||||
{
|
||||
myImage->SetPixelColor (theCol, theRow, NCollection_Vec4<float> (0.0f, 0.0f, 0.0f, 1.0f));
|
||||
myImage->SetPixelColor (theCol, theRow, Quantity_ColorRGBA (0.0f, 0.0f, 0.0f, 1.0f));
|
||||
return;
|
||||
}
|
||||
|
||||
const SelectMgr_SortCriterion& aSortCriterion = myMainSel->PickedData (thePicked);
|
||||
const float aDepth = float(aSortCriterion.Depth);
|
||||
myImage->SetPixelColor (theCol, theRow, NCollection_Vec4<float> (aDepth, aDepth, aDepth, 1.0f));
|
||||
myImage->SetPixelColor (theCol, theRow, Quantity_ColorRGBA (aDepth, aDepth, aDepth, 1.0f));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user