mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028441: Coding Rules - move out nested Image_PixMap::ImgFormat enumeration to dedicated enum Image_Format
Enumeration Image_PixMap::ImgFormat, previously declared as nested enumeration within class *Image_PixMap*, has been moved to global namespace as Image_Format following OCCT coding rules. The enumeration values have suffix Image_Format_ and preserve previous name scheme for easy renaming of old values. E.g. Image_PixMap::ImgGray become Image_Format_Gray. Old definitions are preserved as depreacated aliases to the new ones.
This commit is contained in:
@@ -2828,12 +2828,12 @@ Standard_Boolean V3d_View::ToPixMap (Image_PixMap& theImage,
|
||||
|| theImage.SizeX() != Standard_Size(aTargetSize.x())
|
||||
|| theImage.SizeY() != Standard_Size(aTargetSize.y()))
|
||||
{
|
||||
Image_PixMap::ImgFormat aFormat = Image_PixMap::ImgUNKNOWN;
|
||||
Image_Format aFormat = Image_Format_UNKNOWN;
|
||||
switch (theParams.BufferType)
|
||||
{
|
||||
case Graphic3d_BT_RGB: aFormat = Image_PixMap::ImgRGB; break;
|
||||
case Graphic3d_BT_RGBA: aFormat = Image_PixMap::ImgRGBA; break;
|
||||
case Graphic3d_BT_Depth: aFormat = Image_PixMap::ImgGrayF; break;
|
||||
case Graphic3d_BT_RGB: aFormat = Image_Format_RGB; break;
|
||||
case Graphic3d_BT_RGBA: aFormat = Image_Format_RGBA; break;
|
||||
case Graphic3d_BT_Depth: aFormat = Image_Format_GrayF; break;
|
||||
}
|
||||
|
||||
if (!theImage.InitZero (aFormat, Standard_Size(aTargetSize.x()), Standard_Size(aTargetSize.y())))
|
||||
|
Reference in New Issue
Block a user