mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031175: Visualization - support dumping RED channel as grayscale image
Graphic3d_BufferType has been extended by Graphic3d_BT_Red.
This commit is contained in:
@@ -1157,6 +1157,10 @@ static Standard_Integer VDump (Draw_Interpretor& theDI,
|
||||
{
|
||||
aParams.BufferType = Graphic3d_BT_RGB;
|
||||
}
|
||||
else if (aBufArg == "red")
|
||||
{
|
||||
aParams.BufferType = Graphic3d_BT_Red;
|
||||
}
|
||||
else if (aBufArg == "depth")
|
||||
{
|
||||
aParams.BufferType = Graphic3d_BT_Depth;
|
||||
@@ -1223,6 +1227,11 @@ static Standard_Integer VDump (Draw_Interpretor& theDI,
|
||||
{
|
||||
aParams.BufferType = Graphic3d_BT_RGB;
|
||||
}
|
||||
else if (anArg == "-red"
|
||||
|| anArg == "red")
|
||||
{
|
||||
aParams.BufferType = Graphic3d_BT_Red;
|
||||
}
|
||||
else if (anArg == "-depth"
|
||||
|| anArg == "depth")
|
||||
{
|
||||
@@ -1303,6 +1312,7 @@ static Standard_Integer VDump (Draw_Interpretor& theDI,
|
||||
case Graphic3d_BT_RGBA: aFormat = Image_Format_RGBA; break;
|
||||
case Graphic3d_BT_Depth: aFormat = Image_Format_GrayF; break;
|
||||
case Graphic3d_BT_RGB_RayTraceHdrLeft: aFormat = Image_Format_RGBF; break;
|
||||
case Graphic3d_BT_Red: aFormat = Image_Format_Gray; break;
|
||||
}
|
||||
|
||||
switch (aStereoPair)
|
||||
|
Reference in New Issue
Block a user