From: Kirill Gavrilov Date: Fri, 25 Apr 2025 05:49:11 +0000 (+0300) Subject: Coding, AIS_InteractiveContext - mark as deprecated methods related to Immediate... X-Git-Tag: V8_0_0_rc2~20 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=0322620c8599e2fbc0fdb3eb646914e0eee20f64;p=occt.git Coding, AIS_InteractiveContext - mark as deprecated methods related to Immediate Mode rendering (#521) --- diff --git a/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.hxx b/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.hxx index ee4e231af5..5581ef45b6 100644 --- a/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.hxx +++ b/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.hxx @@ -735,21 +735,25 @@ public: //! @name Selection management Handle(Standard_Transient) Applicative() const { return SelectedInteractive()->GetOwner(); } public: //! @name immediate mode rendering - //! initializes the list of presentations to be displayed - //! returns False if no local context is opened. + Standard_DEPRECATED( + "Deprecated method - Graphic3d_ZLayerId with IsImmediate flag should be used instead") Standard_EXPORT Standard_Boolean BeginImmediateDraw(); - //! returns True if has been stored in the list. + Standard_DEPRECATED( + "Deprecated method - Graphic3d_ZLayerId with IsImmediate flag should be used instead") Standard_EXPORT Standard_Boolean ImmediateAdd(const Handle(AIS_InteractiveObject)& theObj, const Standard_Integer theMode = 0); - //! returns True if the immediate display has been done. + Standard_DEPRECATED( + "Deprecated method - Graphic3d_ZLayerId with IsImmediate flag should be used instead") Standard_EXPORT Standard_Boolean EndImmediateDraw(const Handle(V3d_View)& theView); - //! Uses the First Active View of Main Viewer! - //! returns True if the immediate display has been done. + Standard_DEPRECATED( + "Deprecated method - Graphic3d_ZLayerId with IsImmediate flag should be used instead") Standard_EXPORT Standard_Boolean EndImmediateDraw(); + Standard_DEPRECATED( + "Deprecated method - Graphic3d_ZLayerId with IsImmediate flag should be used instead") Standard_EXPORT Standard_Boolean IsImmediateModeOn() const; //! Redraws immediate structures in all views of the viewer given taking into account its