From: kgv Date: Thu, 14 Jul 2016 11:55:42 +0000 (+0300) Subject: Remove overloaded method Graphic3d_AspectFillArea3d::SetTextureMap(bool) X-Git-Tag: V7_1_0_beta~249 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=b2fbf11a4f7dfcbce20d8dbf3f101a4efe8628b4;p=occt-copy.git Remove overloaded method Graphic3d_AspectFillArea3d::SetTextureMap(bool) --- diff --git a/src/Graphic3d/Graphic3d_AspectFillArea3d.hxx b/src/Graphic3d/Graphic3d_AspectFillArea3d.hxx index 035b6bd928..6c75858ad2 100644 --- a/src/Graphic3d/Graphic3d_AspectFillArea3d.hxx +++ b/src/Graphic3d/Graphic3d_AspectFillArea3d.hxx @@ -154,9 +154,6 @@ public: //! Return true if texture mapping is enabled (false by default). bool TextureMapState() const { return myToMapTexture; } - //! Set texture mapping flag. - void SetTextureMap (bool theToEnable) { myToMapTexture = theToEnable; } - //! Enable texture mapping (has no effect if texture is not set). void SetTextureMapOn() { myToMapTexture = true; } diff --git a/src/Graphic3d/Graphic3d_ClipPlane.cxx b/src/Graphic3d/Graphic3d_ClipPlane.cxx index 46bff71527..ffd4ed5d14 100755 --- a/src/Graphic3d/Graphic3d_ClipPlane.cxx +++ b/src/Graphic3d/Graphic3d_ClipPlane.cxx @@ -237,6 +237,13 @@ Handle(Graphic3d_AspectFillArea3d) Graphic3d_ClipPlane::CappingAspect() const anAspect->SetInteriorStyle (myHatchOn ? Aspect_IS_HATCH : Aspect_IS_SOLID); anAspect->SetInteriorColor (myMaterial.Color()); anAspect->SetSuppressBackFaces (false); - anAspect->SetTextureMap (!myTexture.IsNull()); + if (!myTexture.IsNull()) + { + anAspect->SetTextureMapOn(); + } + else + { + anAspect->SetTextureMapOff(); + } return anAspect; }