summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-05-09 12:25:57 +0000
committerKurt Zenker <kz@openoffice.org>2007-05-09 12:25:57 +0000
commit3849e44d92bba1e22af51af4c18bd937246afe8d (patch)
tree5841b9e89e4608d97563165631edada7f3f6ecc8 /goodies
parent0e79cdb21296f8ce920a86658fa0fab6cfc95258 (diff)
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
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/base3d/base3d.cxx19
1 files changed, 17 insertions, 2 deletions
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