mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -489,7 +489,7 @@ public:
|
||||
Quantity_Color aCol = Quantity_Color(theR/255.,theG/255.,theB/255.,Quantity_TOC_RGB);
|
||||
for (; myAISContext()->MoreSelected(); myAISContext()->NextSelected())
|
||||
{
|
||||
myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol.Name(), Standard_False);
|
||||
myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol, Standard_False);
|
||||
}
|
||||
myAISContext()->UpdateCurrentViewer();
|
||||
}
|
||||
@@ -527,7 +527,6 @@ public:
|
||||
theGreen=255;
|
||||
theBlue=255;
|
||||
Handle(AIS_InteractiveObject) aCurrent ;
|
||||
Quantity_Color anObjCol;
|
||||
myAISContext()->InitSelected();
|
||||
if (!myAISContext()->MoreSelected())
|
||||
{
|
||||
@@ -536,7 +535,8 @@ public:
|
||||
aCurrent = myAISContext()->SelectedInteractive();
|
||||
if ( aCurrent->HasColor () )
|
||||
{
|
||||
anObjCol = myAISContext()->Color(aCurrent);
|
||||
Quantity_Color anObjCol;
|
||||
myAISContext()->Color (aCurrent, anObjCol);
|
||||
Quantity_Parameter r1, r2, r3;
|
||||
anObjCol.Values(r1, r2, r3, Quantity_TOC_RGB);
|
||||
theRed=(int)r1*255;
|
||||
|
Reference in New Issue
Block a user