From d9f79dae49e0e0cdf2e5fdb440b030e6362dd7bd Mon Sep 17 00:00:00 2001 From: kgv Date: Tue, 19 Jun 2018 10:48:50 +0300 Subject: [PATCH] 0029882: Visualization - AcceptDisplayMode() should be redefined in class AIS_TexturedShape --- src/AIS/AIS_TexturedShape.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AIS/AIS_TexturedShape.hxx b/src/AIS/AIS_TexturedShape.hxx index a7fce80e80..f3aebfe197 100644 --- a/src/AIS/AIS_TexturedShape.hxx +++ b/src/AIS/AIS_TexturedShape.hxx @@ -172,6 +172,9 @@ public: //! @name methods to alter texture mapping properties //! @return true if texture color modulation is turned on Standard_Boolean TextureModulate() const { return myModulate; } + //! Return true if specified display mode is supported (extends AIS_Shape with Display Mode 3). + virtual Standard_Boolean AcceptDisplayMode (const Standard_Integer theMode) const Standard_OVERRIDE { return theMode >= 0 && theMode <= 3; } + protected: //! @name overridden methods //! Compute presentation with texture mapping support.