mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -48,7 +48,6 @@
|
||||
#include <Quantity_Coefficient.hxx>
|
||||
#include <Quantity_Factor.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <Quantity_NameOfColor.hxx>
|
||||
#include <Quantity_Parameter.hxx>
|
||||
#include <Quantity_PlaneAngle.hxx>
|
||||
#include <Quantity_Ratio.hxx>
|
||||
@@ -214,9 +213,6 @@ public:
|
||||
//! Defines the background color of the view.
|
||||
Standard_EXPORT void SetBackgroundColor (const Quantity_Color& theColor);
|
||||
|
||||
//! Defines the background color of the view by supplying the color name in the form Quantity_NOC_xxxx.
|
||||
Standard_EXPORT void SetBackgroundColor (const Quantity_NameOfColor theName);
|
||||
|
||||
//! Defines the gradient background colors of the view by supplying the colors
|
||||
//! and the fill method (horizontal by default).
|
||||
Standard_EXPORT void SetBgGradientColors (const Quantity_Color& theColor1,
|
||||
@@ -224,13 +220,6 @@ public:
|
||||
const Aspect_GradientFillMethod theFillStyle = Aspect_GFM_HOR,
|
||||
const Standard_Boolean theToUpdate = Standard_False);
|
||||
|
||||
//! Defines the gradient background colors of the view by supplying the color names
|
||||
//! and the fill method (horizontal by default).
|
||||
Standard_EXPORT void SetBgGradientColors (const Quantity_NameOfColor theColor1,
|
||||
const Quantity_NameOfColor theColor2,
|
||||
const Aspect_GradientFillMethod theFillStyle = Aspect_GFM_HOR,
|
||||
const Standard_Boolean theToUpdate = Standard_False);
|
||||
|
||||
//! Defines the gradient background fill method of the view.
|
||||
Standard_EXPORT void SetBgGradientStyle (const Aspect_GradientFillMethod theMethod = Aspect_GFM_HOR,
|
||||
const Standard_Boolean theToUpdate = Standard_False);
|
||||
@@ -284,9 +273,9 @@ public:
|
||||
//! position comes out of the view
|
||||
//! AxisDiametr - diameter relatively to axis length
|
||||
//! NbFacettes - number of facets of cylinders and cones
|
||||
Standard_EXPORT void ZBufferTriedronSetup (const Quantity_NameOfColor theXColor = Quantity_NOC_RED,
|
||||
const Quantity_NameOfColor theYColor = Quantity_NOC_GREEN,
|
||||
const Quantity_NameOfColor theZColor = Quantity_NOC_BLUE1,
|
||||
Standard_EXPORT void ZBufferTriedronSetup (const Quantity_Color& theXColor = Quantity_NOC_RED,
|
||||
const Quantity_Color& theYColor = Quantity_NOC_GREEN,
|
||||
const Quantity_Color& theZColor = Quantity_NOC_BLUE1,
|
||||
const Standard_Real theSizeRatio = 0.8,
|
||||
const Standard_Real theAxisDiametr = 0.05,
|
||||
const Standard_Integer theNbFacettes = 12);
|
||||
@@ -295,7 +284,7 @@ public:
|
||||
//! Initialize position, color and length of Triedron axes.
|
||||
//! The scale is a percent of the window width.
|
||||
Standard_EXPORT void TriedronDisplay (const Aspect_TypeOfTriedronPosition thePosition = Aspect_TOTP_CENTER,
|
||||
const Quantity_NameOfColor theColor = Quantity_NOC_WHITE,
|
||||
const Quantity_Color& theColor = Quantity_NOC_WHITE,
|
||||
const Standard_Real theScale = 0.02,
|
||||
const V3d_TypeOfVisualization theMode = V3d_WIREFRAME);
|
||||
|
||||
|
Reference in New Issue
Block a user