mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input argument
AIS_InteractiveObject, virtual methods ::SetColor(), ::Color() returning/accepting Quantity_NameOfColor have been removed. Virtual method ::SetMaterial() accepting Graphic3d_NameOfMaterial has been also removed. V3d_View, V3d_Viewer, V3d_AmbientLight, V3d_DirectionalLight, V3d_Light, V3d_PositionalLight, V3d_SpotLight, Aspect_Window, methods accepting Quantity_NameOfColor have been removed (duplicates) or color argument(s) replaced with Quantity_Color.
This commit is contained in:
@@ -169,7 +169,6 @@ void V3d_PositionLight::Display (const Handle(V3d_View)& theView, const V3d_Type
|
||||
Standard_Real X0,Y0,Z0,VX,VY,VZ;
|
||||
Standard_Real X1,Y1,Z1;
|
||||
Standard_Real DXRef,DYRef,DZRef,DXini,DYini,DZini;
|
||||
Standard_Real R1,G1,B1;
|
||||
V3d_TypeOfRepresentation Pres;
|
||||
|
||||
// Creation of a structure of markable elements (position of the
|
||||
@@ -217,8 +216,7 @@ void V3d_PositionLight::Display (const Handle(V3d_View)& theView, const V3d_Type
|
||||
|
||||
// Display of the light position.
|
||||
|
||||
this->Color(Quantity_TOC_RGB,R1,G1,B1);
|
||||
Quantity_Color Col1(R1,G1,B1,Quantity_TOC_RGB);
|
||||
const Quantity_Color Col1 = this->Color();
|
||||
Handle(Graphic3d_AspectLine3d) Asp1 = new Graphic3d_AspectLine3d();
|
||||
Asp1->SetColor(Col1);
|
||||
glight->SetPrimitivesAspect(Asp1);
|
||||
|
Reference in New Issue
Block a user