}
}
if ( CTool->GetColor ( lab, XCAFDoc_ColorGen, C ) ) {
- style.SetColorCurv ( C );
- style.SetColorSurf ( C );
+ style.SetColorCurv ( C );
+ style.SetColorSurf ( C );
}
if ( CTool->GetColor ( lab, XCAFDoc_ColorSurf, C ) )
- style.SetColorSurf ( C );
+ style.SetColorSurf ( C );
if ( CTool->GetColor ( lab, XCAFDoc_ColorCurv, C ) )
- style.SetColorCurv ( C );
+ style.SetColorCurv ( C );
+
// commented, cause we are need to take reference from
// if ( isComponent && lab == L && !isVisible)
// if ( !style.IsSetColorSurf() && !style.IsSetColorCurv() ) {
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;
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;
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);
di.Add ("XGetColor","Doc label \t: Return color defined on label in colortable",