From 3849e44d92bba1e22af51af4c18bd937246afe8d Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 9 May 2007 12:25:57 +0000 Subject: INTEGRATION: CWS aw048 (1.13.48); FILE MERGED 2007/04/18 11:56:38 aw 1.13.48.3: #i76339# 2007/03/27 10:37:07 aw 1.13.48.2: #i71618# enchanced PolygonOffset support: New default value and set/getPolygonOffset() methods for 3d 2007/03/27 09:34:52 aw 1.13.48.1: #i71618# enchanced PolygonOffset support: New default value and set/getPolygonOffset() methods for 3d --- goodies/source/base3d/base3d.cxx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'goodies') diff --git a/goodies/source/base3d/base3d.cxx b/goodies/source/base3d/base3d.cxx index dbfea5db2ba8..2bedbdba0f0b 100644 --- a/goodies/source/base3d/base3d.cxx +++ b/goodies/source/base3d/base3d.cxx @@ -4,9 +4,9 @@ * * $RCSfile: base3d.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: kz $ $Date: 2006-12-12 16:22:48 $ + * last change: $Author: kz $ $Date: 2007-05-09 13:25:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -237,6 +237,7 @@ Base3D::Base3D(OutputDevice* pOutDev) aMaterialFront(), aMaterialBack(), nDisplayQuality(127), + mfPolygonOffset(0.005), // #i71618# bEdgeFlag(TRUE), bContextIsValid(TRUE), bPolyOffsetFill(FALSE), @@ -1196,6 +1197,20 @@ void Base3D::SetLineWidth(double fNew) fLineWidth = fNew; } +// #i71618# +void Base3D::setPolygonOffset(double fNew) +{ + if(fNew != mfPolygonOffset) + { + mfPolygonOffset = fNew; + } +} + +double Base3D::getPolygonOffset() const +{ + return mfPolygonOffset; +} + /************************************************************************* |* |* RenderMode setzen -- cgit