mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0022982: Generic color is overriden in STEPCAFControl_Writer::WriteColors
This commit is contained in:
parent
974c25edb4
commit
ec99ba3232
@ -1046,6 +1046,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
|
|||||||
style.SetColorSurf ( C );
|
style.SetColorSurf ( C );
|
||||||
if ( CTool->GetColor ( lab, XCAFDoc_ColorCurv, C ) )
|
if ( CTool->GetColor ( lab, XCAFDoc_ColorCurv, C ) )
|
||||||
style.SetColorCurv ( C );
|
style.SetColorCurv ( C );
|
||||||
|
|
||||||
// commented, cause we are need to take reference from
|
// commented, cause we are need to take reference from
|
||||||
// if ( isComponent && lab == L && !isVisible)
|
// if ( isComponent && lab == L && !isVisible)
|
||||||
// if ( !style.IsSetColorSurf() && !style.IsSetColorCurv() ) {
|
// if ( !style.IsSetColorSurf() && !style.IsSetColorCurv() ) {
|
||||||
|
@ -38,6 +38,12 @@ is
|
|||||||
|
|
||||||
enumeration ColorType is
|
enumeration ColorType is
|
||||||
---Purpose: Defines types of color assignments
|
---Purpose: Defines types of color assignments
|
||||||
|
-- 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
|
ColorGen, -- simple color
|
||||||
ColorSurf, -- color of surfaces
|
ColorSurf, -- color of surfaces
|
||||||
ColorCurv -- color of curves
|
ColorCurv -- color of curves
|
||||||
|
@ -84,7 +84,12 @@ is
|
|||||||
type : ColorType from XCAFDoc);
|
type : ColorType from XCAFDoc);
|
||||||
---Purpose: Sets a link with GUID defined by <type> (see
|
---Purpose: Sets a link with GUID defined by <type> (see
|
||||||
-- XCAFDoc::ColorRefGUID()) from label <L> to color
|
-- 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;
|
SetColor (me; L: Label from TDF;
|
||||||
Color: Color from Quantity;
|
Color: Color from Quantity;
|
||||||
|
@ -360,7 +360,8 @@ void XDEDRAW_Colors::InitCommands(Draw_Interpretor& di)
|
|||||||
|
|
||||||
Standard_CString g = "XDE color's commands";
|
Standard_CString g = "XDE color's commands";
|
||||||
|
|
||||||
di.Add ("XSetColor","Doc {Label|Shape} R G B \t: Set color [R G B] to shape given by Label",
|
di.Add ("XSetColor","Doc {Label|Shape} R G B [c|s]\t: Set color [R G B] to shape given by Label, "
|
||||||
|
"type of color 's' - for surface, 'c' - for curve (default generic)",
|
||||||
__FILE__, setColor, g);
|
__FILE__, setColor, g);
|
||||||
|
|
||||||
di.Add ("XGetColor","Doc label \t: Return color defined on label in colortable",
|
di.Add ("XGetColor","Doc label \t: Return color defined on label in colortable",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user