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:
@@ -80,6 +80,18 @@ public:
|
||||
v[3] = theAlpha;
|
||||
}
|
||||
|
||||
//! Assign new values to the vector.
|
||||
void SetValues (const Element_t theX,
|
||||
const Element_t theY,
|
||||
const Element_t theZ,
|
||||
const Element_t theW)
|
||||
{
|
||||
v[0] = theX;
|
||||
v[1] = theY;
|
||||
v[2] = theZ;
|
||||
v[3] = theW;
|
||||
}
|
||||
|
||||
//! Alias to 1st component as X coordinate in XYZW.
|
||||
Element_t x() const { return v[0]; }
|
||||
|
||||
|
Reference in New Issue
Block a user