From: kgv Date: Tue, 19 Jun 2018 07:48:50 +0000 (+0300) Subject: 0029882: Visualization - AcceptDisplayMode() should be redefined in class AIS_Texture... X-Git-Tag: OCCT_VC2017_73~97 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d9f79dae49e0e0cdf2e5fdb440b030e6362dd7bd;p=occt-copy.git 0029882: Visualization - AcceptDisplayMode() should be redefined in class AIS_TexturedShape --- 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.