1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0022982: Generic color is overriden in STEPCAFControl_Writer::WriteColors

This commit is contained in:
GKA
2012-02-17 12:20:39 +00:00
committed by bugmaster
parent 974c25edb4
commit ec99ba3232
4 changed files with 20 additions and 7 deletions

View File

@@ -38,7 +38,13 @@ is
enumeration ColorType is
---Purpose: Defines types of color assignments
ColorGen, -- simple color
-- Color of shape is defined following way
-- in dependance with type of color.
-- If type of color is XCAFDoc_ColorGen - then this color
-- defines default color for surfaces and curves.
-- If for shape color with types XCAFDoc_ColorSurf or XCAFDoc_ColorCurv is specified
-- then such color overrides generic color.
ColorGen, -- simple color
ColorSurf, -- color of surfaces
ColorCurv -- color of curves
end ColorType;

View File

@@ -84,7 +84,12 @@ is
type : ColorType from XCAFDoc);
---Purpose: Sets a link with GUID defined by <type> (see
-- XCAFDoc::ColorRefGUID()) from label <L> to color
-- defined by <colorL>
-- defined by <colorL>. Color of shape is defined following way
-- in dependance with type of color.
-- If type of color is XCAFDoc_ColorGen - then this color
-- defines default color for surfaces and curves.
-- If for shape color with types XCAFDoc_ColorSurf or XCAFDoc_ColorCurv is specified
-- then such color overrides generic color.
SetColor (me; L: Label from TDF;
Color: Color from Quantity;