mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -29,7 +29,6 @@
|
||||
#include <AIS_StatusOfPick.hxx>
|
||||
#include <AIS_TypeOfIso.hxx>
|
||||
#include <Aspect_TypeOfFacingModel.hxx>
|
||||
#include <Graphic3d_NameOfMaterial.hxx>
|
||||
#include <Prs3d_Drawer.hxx>
|
||||
#include <Prs3d_TypeOfHighlight.hxx>
|
||||
#include <PrsMgr_PresentationManager3d.hxx>
|
||||
@@ -439,11 +438,6 @@ public:
|
||||
//! default facing model is Aspect_TOFM_TWO_SIDE. This mean that attributes is
|
||||
//! applying both on the front and back face.
|
||||
Standard_EXPORT void SetCurrentFacingModel (const Handle(AIS_InteractiveObject)& aniobj, const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_BOTH_SIDE);
|
||||
|
||||
Standard_EXPORT void SetColor (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Quantity_NameOfColor theColor,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
|
||||
//! Sets the color of the selected entity.
|
||||
//! If a local context is open and if updateviewer equals
|
||||
@@ -484,14 +478,12 @@ public:
|
||||
|
||||
//! Provides the type of material setting for the view of
|
||||
//! the entity aniobj.
|
||||
//! The range of settings includes: BRASS, BRONZE,
|
||||
//! GOLD, PEWTER, SILVER, STONE.
|
||||
//! If a local context is open and if updateviewer equals
|
||||
//! Standard_False, the presentation of the Interactive
|
||||
//! Object activates the selection mode; the object is
|
||||
//! displayed but no viewer will be updated.
|
||||
Standard_EXPORT void SetMaterial (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Graphic3d_NameOfMaterial theName,
|
||||
const Graphic3d_MaterialAspect& theMaterial,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
|
||||
@@ -648,9 +640,6 @@ public:
|
||||
|
||||
//! Returns true if a view of the Interactive Object aniobj has color.
|
||||
Standard_EXPORT Standard_Boolean HasColor (const Handle(AIS_InteractiveObject)& aniobj) const;
|
||||
|
||||
Standard_EXPORT Quantity_NameOfColor Color (const Handle(AIS_InteractiveObject)& aniobj) const;
|
||||
|
||||
|
||||
//! Returns the color Color of the entity aniobj in the interactive context.
|
||||
Standard_EXPORT void Color (const Handle(AIS_InteractiveObject)& aniobj, Quantity_Color& acolor) const;
|
||||
|
Reference in New Issue
Block a user