diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:21:42 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:21:42 +0000 |
commit | f42adf82b6ad00708545aa4eee0e2ad6063d719e (patch) | |
tree | 434f55fc7fc8ba8cfe6b34304517b4348a7db376 /svx/source/engine3d | |
parent | 433594532d2deb4fb8597a399d21093a192796c1 (diff) |
INTEGRATION: CWS aw024 (1.8.138); FILE MERGED
2006/11/10 03:27:12 aw 1.8.138.8: RESYNC: (1.12-1.13); FILE MERGED
2006/10/27 12:13:59 aw 1.8.138.7: #i39528# ::basegfx -> basegfx adaption
2006/09/21 18:49:41 aw 1.8.138.6: RESYNC: (1.11-1.12); FILE MERGED
2006/07/04 12:39:33 aw 1.8.138.5: RESYNC: (1.9-1.10); FILE MERGED
2005/09/18 03:43:42 aw 1.8.138.4: RESYNC: (1.8-1.9); FILE MERGED
2005/05/19 12:31:14 aw 1.8.138.3: #i39529#
2005/04/26 15:04:14 aw 1.8.138.2: #i39528#
2004/12/23 16:52:34 aw 1.8.138.1: #i39525
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/polysc3d.cxx | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/svx/source/engine3d/polysc3d.cxx b/svx/source/engine3d/polysc3d.cxx index 796004e47840..7e28b43d82dd 100644 --- a/svx/source/engine3d/polysc3d.cxx +++ b/svx/source/engine3d/polysc3d.cxx @@ -4,9 +4,9 @@ * * $RCSfile: polysc3d.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: obo $ $Date: 2006-10-12 12:41:58 $ + * last change: $Author: ihi $ $Date: 2006-11-14 13:21:42 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -149,9 +149,9 @@ UINT16 E3dPolyScene::GetObjIdentifier() const |* \************************************************************************/ -void E3dPolyScene::TakeContour(XPolyPolygon& rPoly) const +basegfx::B2DPolyPolygon E3dPolyScene::TakeContour() const { - ((E3dPolyScene*)this)->TakeContour3D(rPoly); + return ImpTakeContour3D(); } /************************************************************************* @@ -160,13 +160,13 @@ void E3dPolyScene::TakeContour(XPolyPolygon& rPoly) const |* \************************************************************************/ -void E3dPolyScene::TakeContour3D(XPolyPolygon& rPoly) +basegfx::B2DPolyPolygon E3dPolyScene::ImpTakeContour3D() const { // TransformationSet vorbereiten - InitTransformationSet(); + ((E3dPolyScene*)this)->InitTransformationSet(); // Holen - E3dScene::TakeContour3D(rPoly); + return E3dScene::ImpTakeContour3D(); } /************************************************************************* @@ -182,23 +182,6 @@ sal_Bool E3dPolyScene::DoPaintObject(XOutputDevice& rOut, const SdrPaintInfoRe { bOk = ((E3dPolyScene*)this)->LocalPaint3D(rOut, rInfoRec); } - // #110094# - // moved to DrawContact objects - //else - //{ - // // Leere Szene, zeichne genau wie leere Gruppe - // if (!rInfoRec.bPrinter && rInfoRec.aPaintLayer.IsSet(nLayerId)) { - // OutputDevice* pOutDev=rOut.GetOutDev(); - // pOutDev->SetLineColor(Color(COL_LIGHTGRAY)); - // pOutDev->SetFillColor(); - // pOutDev->DrawRect(aOutRect); - // } - //} - - // #110094#-13 - //if (bOk && (rInfoRec.nPaintMode & SDRPAINTMODE_GLUEPOINTS) !=0) { - // bOk=PaintGluePoints(rOut,rInfoRec); - //} return bOk; } @@ -301,8 +284,7 @@ BOOL E3dPolyScene::LocalPaint3D(XOutputDevice& rOut, // Schatten zeichnen if(pBase3D->GetDisplayQuality() > 128) { - B3dVolume aVol = rSet.GetDeviceVolume(); - Volume3D aVolume(aVol.MinVec(), aVol.MaxVec()); + Volume3D aVolume(rSet.GetDeviceVolume()); DrawAllShadows(pBase3D, rOut, aBound, aVolume, rInfoRec); } @@ -328,8 +310,8 @@ BOOL E3dPolyScene::LocalPaint3D(XOutputDevice& rOut, { E3dLabelObj* pLabelObject = (E3dLabelObj*)pObj; SdrObject* pLabel = (SdrObject*)pLabelObject->Get2DLabelObj(); - const Vector3D aPos = rSet.WorldToViewCoor(pLabelObject->GetTransPosition()); - Point a2DPos((long)(aPos.X() + 0.5), (long)(aPos.Y() + 0.5)); + const basegfx::B3DPoint aPos(rSet.WorldToViewCoor(pLabelObject->GetTransPosition())); + Point a2DPos((long)(aPos.getX() + 0.5), (long)(aPos.getY() + 0.5)); pLabel->NbcSetAnchorPos(a2DPos); pLabel->SingleObjectPainter(rOut, rInfoRec); // #110094#-17 } @@ -542,7 +524,7 @@ void E3dPolyScene::DrawWireframe(Base3D* pBase3D, XOutputDevice& rXOut) E3dCompoundObject* pCompObj = (E3dCompoundObject*)pObj; // ObjectTrans setzen - Matrix4D mTransform = pCompObj->GetFullTransform(); + basegfx::B3DHomMatrix mTransform = pCompObj->GetFullTransform(); GetCameraSet().SetObjectTrans(mTransform); pBase3D->SetTransformationSet(&(GetScene()->GetCameraSet())); |