sdrdecompositiontools3d.cxx (464702f4) sdrdecompositiontools3d.cxx (5aaf853b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 136 unchanged lines hidden (view full) ---

145 const basegfx::B3DHomMatrix& rObjectTransform,
146 const attribute::SdrLineAttribute& rLine)
147 {
148 // prepare fully scaled polyPolygon
149 basegfx::B3DPolyPolygon aScaledPolyPolygon(rUnitPolyPolygon);
150 aScaledPolyPolygon.transform(rObjectTransform);
151
152 // create line and stroke attribute
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 136 unchanged lines hidden (view full) ---

145 const basegfx::B3DHomMatrix& rObjectTransform,
146 const attribute::SdrLineAttribute& rLine)
147 {
148 // prepare fully scaled polyPolygon
149 basegfx::B3DPolyPolygon aScaledPolyPolygon(rUnitPolyPolygon);
150 aScaledPolyPolygon.transform(rObjectTransform);
151
152 // create line and stroke attribute
153 const attribute::LineAttribute aLineAttribute(rLine.getColor(), rLine.getWidth(), rLine.getJoin());
153 const attribute::LineAttribute aLineAttribute(rLine.getColor(), rLine.getWidth(), rLine.getJoin(), rLine.getCap());
154 const attribute::StrokeAttribute aStrokeAttribute(rLine.getDotDashArray(), rLine.getFullDotDashLen());
155
156 // create primitives
157 Primitive3DSequence aRetval(aScaledPolyPolygon.count());
158
159 for(sal_uInt32 a(0L); a < aScaledPolyPolygon.count(); a++)
160 {
161 const Primitive3DReference xRef(new PolygonStrokePrimitive3D(aScaledPolyPolygon.getB3DPolygon(a), aLineAttribute, aStrokeAttribute));

--- 174 unchanged lines hidden ---
154 const attribute::StrokeAttribute aStrokeAttribute(rLine.getDotDashArray(), rLine.getFullDotDashLen());
155
156 // create primitives
157 Primitive3DSequence aRetval(aScaledPolyPolygon.count());
158
159 for(sal_uInt32 a(0L); a < aScaledPolyPolygon.count(); a++)
160 {
161 const Primitive3DReference xRef(new PolygonStrokePrimitive3D(aScaledPolyPolygon.getB3DPolygon(a), aLineAttribute, aStrokeAttribute));

--- 174 unchanged lines hidden ---