1464702f4SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3464702f4SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4464702f4SAndrew Rist * or more contributor license agreements. See the NOTICE file 5464702f4SAndrew Rist * distributed with this work for additional information 6464702f4SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7464702f4SAndrew Rist * to you under the Apache License, Version 2.0 (the 8464702f4SAndrew Rist * "License"); you may not use this file except in compliance 9464702f4SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11464702f4SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13464702f4SAndrew Rist * Unless required by applicable law or agreed to in writing, 14464702f4SAndrew Rist * software distributed under the License is distributed on an 15464702f4SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16464702f4SAndrew Rist * KIND, either express or implied. See the License for the 17464702f4SAndrew Rist * specific language governing permissions and limitations 18464702f4SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20464702f4SAndrew Rist *************************************************************/ 21464702f4SAndrew Rist 22464702f4SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_drawinglayer.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <drawinglayer/primitive2d/fillgradientprimitive2d.hxx> 28cdf0e10cSrcweir #include <basegfx/polygon/b2dpolygon.hxx> 29cdf0e10cSrcweir #include <basegfx/polygon/b2dpolygontools.hxx> 30cdf0e10cSrcweir #include <drawinglayer/texture/texture.hxx> 31cdf0e10cSrcweir #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> 32cdf0e10cSrcweir #include <basegfx/tools/canvastools.hxx> 33cdf0e10cSrcweir #include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 36cdf0e10cSrcweir 37cdf0e10cSrcweir using namespace com::sun::star; 38cdf0e10cSrcweir 39cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace drawinglayer 42cdf0e10cSrcweir { 43cdf0e10cSrcweir namespace primitive2d 44cdf0e10cSrcweir { generateMatricesAndColors(std::vector<drawinglayer::texture::B2DHomMatrixAndBColor> & rEntries,basegfx::BColor & rOuterColor) const45cdf0e10cSrcweir void FillGradientPrimitive2D::generateMatricesAndColors( 4696fc4b33SArmin Le Grand std::vector< drawinglayer::texture::B2DHomMatrixAndBColor >& rEntries, 47*64b14621SArmin Le Grand basegfx::BColor& rOuterColor) const 48cdf0e10cSrcweir { 4996fc4b33SArmin Le Grand rEntries.clear(); 50cdf0e10cSrcweir 51cdf0e10cSrcweir // make sure steps is not too high/low 52cdf0e10cSrcweir const basegfx::BColor aStart(getFillGradient().getStartColor()); 53cdf0e10cSrcweir const basegfx::BColor aEnd(getFillGradient().getEndColor()); 54cdf0e10cSrcweir const sal_uInt32 nMaxSteps(sal_uInt32((aStart.getMaximumDistance(aEnd) * 127.5) + 0.5)); 55cdf0e10cSrcweir sal_uInt32 nSteps(getFillGradient().getSteps()); 56cdf0e10cSrcweir 57cdf0e10cSrcweir if(nSteps == 0) 58cdf0e10cSrcweir { 59cdf0e10cSrcweir nSteps = nMaxSteps; 60cdf0e10cSrcweir } 61cdf0e10cSrcweir 62cdf0e10cSrcweir if(nSteps < 2) 63cdf0e10cSrcweir { 64cdf0e10cSrcweir nSteps = 2; 65cdf0e10cSrcweir } 66cdf0e10cSrcweir 67cdf0e10cSrcweir if(nSteps > nMaxSteps) 68cdf0e10cSrcweir { 69cdf0e10cSrcweir nSteps = nMaxSteps; 70cdf0e10cSrcweir } 71cdf0e10cSrcweir 72cdf0e10cSrcweir switch(getFillGradient().getStyle()) 73cdf0e10cSrcweir { 74cdf0e10cSrcweir case attribute::GRADIENTSTYLE_LINEAR: 75cdf0e10cSrcweir { 76*64b14621SArmin Le Grand texture::GeoTexSvxGradientLinear aGradient( 77*64b14621SArmin Le Grand getDefinitionRange(), 78*64b14621SArmin Le Grand getOutputRange(), 79*64b14621SArmin Le Grand aStart, 80*64b14621SArmin Le Grand aEnd, 81*64b14621SArmin Le Grand nSteps, 82*64b14621SArmin Le Grand getFillGradient().getBorder(), 83*64b14621SArmin Le Grand getFillGradient().getAngle()); 84*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 85cdf0e10cSrcweir break; 86cdf0e10cSrcweir } 87cdf0e10cSrcweir case attribute::GRADIENTSTYLE_AXIAL: 88cdf0e10cSrcweir { 89*64b14621SArmin Le Grand texture::GeoTexSvxGradientAxial aGradient( 90*64b14621SArmin Le Grand getDefinitionRange(), 91*64b14621SArmin Le Grand getOutputRange(), 92*64b14621SArmin Le Grand aStart, 93*64b14621SArmin Le Grand aEnd, 94*64b14621SArmin Le Grand nSteps, 95*64b14621SArmin Le Grand getFillGradient().getBorder(), 96*64b14621SArmin Le Grand getFillGradient().getAngle()); 97*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 98cdf0e10cSrcweir break; 99cdf0e10cSrcweir } 100cdf0e10cSrcweir case attribute::GRADIENTSTYLE_RADIAL: 101cdf0e10cSrcweir { 102*64b14621SArmin Le Grand texture::GeoTexSvxGradientRadial aGradient( 103*64b14621SArmin Le Grand getDefinitionRange(), 104*64b14621SArmin Le Grand aStart, 105*64b14621SArmin Le Grand aEnd, 106*64b14621SArmin Le Grand nSteps, 107*64b14621SArmin Le Grand getFillGradient().getBorder(), 108*64b14621SArmin Le Grand getFillGradient().getOffsetX(), 109*64b14621SArmin Le Grand getFillGradient().getOffsetY()); 110*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 111cdf0e10cSrcweir break; 112cdf0e10cSrcweir } 113cdf0e10cSrcweir case attribute::GRADIENTSTYLE_ELLIPTICAL: 114cdf0e10cSrcweir { 115*64b14621SArmin Le Grand texture::GeoTexSvxGradientElliptical aGradient( 116*64b14621SArmin Le Grand getDefinitionRange(), 117*64b14621SArmin Le Grand aStart, 118*64b14621SArmin Le Grand aEnd, 119*64b14621SArmin Le Grand nSteps, 120*64b14621SArmin Le Grand getFillGradient().getBorder(), 121*64b14621SArmin Le Grand getFillGradient().getOffsetX(), 122*64b14621SArmin Le Grand getFillGradient().getOffsetY(), 123*64b14621SArmin Le Grand getFillGradient().getAngle()); 124*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 125cdf0e10cSrcweir break; 126cdf0e10cSrcweir } 127cdf0e10cSrcweir case attribute::GRADIENTSTYLE_SQUARE: 128cdf0e10cSrcweir { 129*64b14621SArmin Le Grand texture::GeoTexSvxGradientSquare aGradient( 130*64b14621SArmin Le Grand getDefinitionRange(), 131*64b14621SArmin Le Grand aStart, 132*64b14621SArmin Le Grand aEnd, 133*64b14621SArmin Le Grand nSteps, 134*64b14621SArmin Le Grand getFillGradient().getBorder(), 135*64b14621SArmin Le Grand getFillGradient().getOffsetX(), 136*64b14621SArmin Le Grand getFillGradient().getOffsetY(), 137*64b14621SArmin Le Grand getFillGradient().getAngle()); 138*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 139cdf0e10cSrcweir break; 140cdf0e10cSrcweir } 141cdf0e10cSrcweir case attribute::GRADIENTSTYLE_RECT: 142cdf0e10cSrcweir { 143*64b14621SArmin Le Grand texture::GeoTexSvxGradientRect aGradient( 144*64b14621SArmin Le Grand getDefinitionRange(), 145*64b14621SArmin Le Grand aStart, 146*64b14621SArmin Le Grand aEnd, 147*64b14621SArmin Le Grand nSteps, 148*64b14621SArmin Le Grand getFillGradient().getBorder(), 149*64b14621SArmin Le Grand getFillGradient().getOffsetX(), 150*64b14621SArmin Le Grand getFillGradient().getOffsetY(), 151*64b14621SArmin Le Grand getFillGradient().getAngle()); 152*64b14621SArmin Le Grand aGradient.appendTransformationsAndColors(rEntries, rOuterColor); 153cdf0e10cSrcweir break; 154cdf0e10cSrcweir } 155cdf0e10cSrcweir } 156cdf0e10cSrcweir } 157cdf0e10cSrcweir createOverlappingFill(const std::vector<drawinglayer::texture::B2DHomMatrixAndBColor> & rEntries,const basegfx::BColor & rOuterColor,const basegfx::B2DPolygon & rUnitPolygon) const158cdf0e10cSrcweir Primitive2DSequence FillGradientPrimitive2D::createOverlappingFill( 15996fc4b33SArmin Le Grand const std::vector< drawinglayer::texture::B2DHomMatrixAndBColor >& rEntries, 160*64b14621SArmin Le Grand const basegfx::BColor& rOuterColor, 161cdf0e10cSrcweir const basegfx::B2DPolygon& rUnitPolygon) const 162cdf0e10cSrcweir { 163cdf0e10cSrcweir // prepare return value 16496fc4b33SArmin Le Grand Primitive2DSequence aRetval(rEntries.size() + 1); 165cdf0e10cSrcweir 16696fc4b33SArmin Le Grand // create solid fill with outmost color 16796fc4b33SArmin Le Grand aRetval[0] = Primitive2DReference( 168cdf0e10cSrcweir new PolyPolygonColorPrimitive2D( 169*64b14621SArmin Le Grand basegfx::B2DPolyPolygon( 170*64b14621SArmin Le Grand basegfx::tools::createPolygonFromRect(getOutputRange())), 171*64b14621SArmin Le Grand rOuterColor)); 172cdf0e10cSrcweir 173cdf0e10cSrcweir // create solid fill steps 17496fc4b33SArmin Le Grand for(sal_uInt32 a(0); a < rEntries.size(); a++) 175cdf0e10cSrcweir { 176cdf0e10cSrcweir // create part polygon 177cdf0e10cSrcweir basegfx::B2DPolygon aNewPoly(rUnitPolygon); 17896fc4b33SArmin Le Grand 17996fc4b33SArmin Le Grand aNewPoly.transform(rEntries[a].maB2DHomMatrix); 180cdf0e10cSrcweir 181cdf0e10cSrcweir // create solid fill 18296fc4b33SArmin Le Grand aRetval[a + 1] = Primitive2DReference( 183cdf0e10cSrcweir new PolyPolygonColorPrimitive2D( 184cdf0e10cSrcweir basegfx::B2DPolyPolygon(aNewPoly), 18596fc4b33SArmin Le Grand rEntries[a].maBColor)); 186cdf0e10cSrcweir } 187cdf0e10cSrcweir 188cdf0e10cSrcweir return aRetval; 189cdf0e10cSrcweir } 190cdf0e10cSrcweir createNonOverlappingFill(const std::vector<drawinglayer::texture::B2DHomMatrixAndBColor> & rEntries,const basegfx::BColor & rOuterColor,const basegfx::B2DPolygon & rUnitPolygon) const191cdf0e10cSrcweir Primitive2DSequence FillGradientPrimitive2D::createNonOverlappingFill( 19296fc4b33SArmin Le Grand const std::vector< drawinglayer::texture::B2DHomMatrixAndBColor >& rEntries, 193*64b14621SArmin Le Grand const basegfx::BColor& rOuterColor, 194cdf0e10cSrcweir const basegfx::B2DPolygon& rUnitPolygon) const 195cdf0e10cSrcweir { 196cdf0e10cSrcweir // prepare return value 19796fc4b33SArmin Le Grand Primitive2DSequence aRetval(rEntries.size() + 1); 198cdf0e10cSrcweir 199*64b14621SArmin Le Grand // get outmost viusible range from object 200*64b14621SArmin Le Grand basegfx::B2DRange aOutmostRange(getOutputRange()); 20196fc4b33SArmin Le Grand basegfx::B2DPolyPolygon aCombinedPolyPoly; 20296fc4b33SArmin Le Grand 20396fc4b33SArmin Le Grand if(rEntries.size()) 204cdf0e10cSrcweir { 20596fc4b33SArmin Le Grand // extend aOutmostRange with first polygon 20696fc4b33SArmin Le Grand basegfx::B2DPolygon aFirstPoly(rUnitPolygon); 207cdf0e10cSrcweir 20896fc4b33SArmin Le Grand aFirstPoly.transform(rEntries[0].maB2DHomMatrix); 20996fc4b33SArmin Le Grand aCombinedPolyPoly.append(aFirstPoly); 21096fc4b33SArmin Le Grand aOutmostRange.expand(aFirstPoly.getB2DRange()); 211cdf0e10cSrcweir } 212cdf0e10cSrcweir 21396fc4b33SArmin Le Grand // add outmost range to combined polypolygon (in 1st place), create first primitive 21496fc4b33SArmin Le Grand aCombinedPolyPoly.insert(0, basegfx::tools::createPolygonFromRect(aOutmostRange)); 21596fc4b33SArmin Le Grand aRetval[0] = Primitive2DReference( 21696fc4b33SArmin Le Grand new PolyPolygonColorPrimitive2D( 21796fc4b33SArmin Le Grand aCombinedPolyPoly, 218*64b14621SArmin Le Grand rOuterColor)); 21996fc4b33SArmin Le Grand 22096fc4b33SArmin Le Grand if(rEntries.size()) 221cdf0e10cSrcweir { 22296fc4b33SArmin Le Grand // reuse first polygon, it's the second one 22396fc4b33SArmin Le Grand aCombinedPolyPoly.remove(0); 22496fc4b33SArmin Le Grand 22596fc4b33SArmin Le Grand for(sal_uInt32 a(0); a < rEntries.size() - 1; a++) 22696fc4b33SArmin Le Grand { 22796fc4b33SArmin Le Grand // create next inner polygon, combinbe with last one 22896fc4b33SArmin Le Grand basegfx::B2DPolygon aNextPoly(rUnitPolygon); 22996fc4b33SArmin Le Grand 23096fc4b33SArmin Le Grand aNextPoly.transform(rEntries[a + 1].maB2DHomMatrix); 23196fc4b33SArmin Le Grand aCombinedPolyPoly.append(aNextPoly); 23296fc4b33SArmin Le Grand 23396fc4b33SArmin Le Grand // create primitive with correct color 23496fc4b33SArmin Le Grand aRetval[a + 1] = Primitive2DReference( 23596fc4b33SArmin Le Grand new PolyPolygonColorPrimitive2D( 23696fc4b33SArmin Le Grand aCombinedPolyPoly, 23796fc4b33SArmin Le Grand rEntries[a].maBColor)); 23896fc4b33SArmin Le Grand 23996fc4b33SArmin Le Grand // reuse inner polygon, it's the 2nd one 24096fc4b33SArmin Le Grand aCombinedPolyPoly.remove(0); 241cdf0e10cSrcweir } 242cdf0e10cSrcweir 24396fc4b33SArmin Le Grand // add last inner polygon with last color 24496fc4b33SArmin Le Grand aRetval[rEntries.size()] = Primitive2DReference( 24596fc4b33SArmin Le Grand new PolyPolygonColorPrimitive2D( 24696fc4b33SArmin Le Grand aCombinedPolyPoly, 24796fc4b33SArmin Le Grand rEntries[rEntries.size() - 1].maBColor)); 248cdf0e10cSrcweir } 249cdf0e10cSrcweir 250cdf0e10cSrcweir return aRetval; 251cdf0e10cSrcweir } 252cdf0e10cSrcweir createFill(bool bOverlapping) const253cdf0e10cSrcweir Primitive2DSequence FillGradientPrimitive2D::createFill(bool bOverlapping) const 254cdf0e10cSrcweir { 255cdf0e10cSrcweir // prepare shape of the Unit Polygon 256cdf0e10cSrcweir basegfx::B2DPolygon aUnitPolygon; 257cdf0e10cSrcweir 25896fc4b33SArmin Le Grand switch(getFillGradient().getStyle()) 259cdf0e10cSrcweir { 26096fc4b33SArmin Le Grand case attribute::GRADIENTSTYLE_RADIAL: 26196fc4b33SArmin Le Grand case attribute::GRADIENTSTYLE_ELLIPTICAL: 26296fc4b33SArmin Le Grand { 26396fc4b33SArmin Le Grand aUnitPolygon = basegfx::tools::createPolygonFromCircle(basegfx::B2DPoint(0.0, 0.0), 1.0); 26496fc4b33SArmin Le Grand break; 265cdf0e10cSrcweir } 26696fc4b33SArmin Le Grand default: // GRADIENTSTYLE_LINEAR, attribute::GRADIENTSTYLE_AXIAL, attribute::GRADIENTSTYLE_SQUARE, attribute::GRADIENTSTYLE_RECT 267cdf0e10cSrcweir { 26896fc4b33SArmin Le Grand aUnitPolygon = basegfx::tools::createPolygonFromRect(basegfx::B2DRange(-1.0, -1.0, 1.0, 1.0)); 26996fc4b33SArmin Le Grand break; 270cdf0e10cSrcweir } 271cdf0e10cSrcweir } 272cdf0e10cSrcweir 273cdf0e10cSrcweir // get the transform matrices and colors (where colors 274cdf0e10cSrcweir // will have one more entry that matrices) 27596fc4b33SArmin Le Grand std::vector< drawinglayer::texture::B2DHomMatrixAndBColor > aEntries; 276*64b14621SArmin Le Grand basegfx::BColor aOuterColor; 27796fc4b33SArmin Le Grand 278*64b14621SArmin Le Grand generateMatricesAndColors(aEntries, aOuterColor); 279cdf0e10cSrcweir 280cdf0e10cSrcweir if(bOverlapping) 281cdf0e10cSrcweir { 282*64b14621SArmin Le Grand return createOverlappingFill(aEntries, aOuterColor, aUnitPolygon); 283cdf0e10cSrcweir } 284cdf0e10cSrcweir else 285cdf0e10cSrcweir { 286*64b14621SArmin Le Grand return createNonOverlappingFill(aEntries, aOuterColor, aUnitPolygon); 287cdf0e10cSrcweir } 288cdf0e10cSrcweir } 289cdf0e10cSrcweir create2DDecomposition(const geometry::ViewInformation2D &) const290cdf0e10cSrcweir Primitive2DSequence FillGradientPrimitive2D::create2DDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const 291cdf0e10cSrcweir { 292cdf0e10cSrcweir // default creates overlapping fill which works with AntiAliasing and without. 293cdf0e10cSrcweir // The non-overlapping version does not create single filled polygons, but 294cdf0e10cSrcweir // PolyPolygons where each one describes a 'ring' for the gradient such 295cdf0e10cSrcweir // that the rings will not overlap. This is useful fir the old XOR-paint 296cdf0e10cSrcweir // 'trick' of VCL which is recorded in Metafiles; so this version may be 297cdf0e10cSrcweir // used from the MetafilePrimitive2D in it's decomposition. 298cdf0e10cSrcweir 299cdf0e10cSrcweir if(!getFillGradient().isDefault()) 300cdf0e10cSrcweir { 30196fc4b33SArmin Le Grand static bool bOverlapping(true); // allow to test non-overlapping in the debugger 30296fc4b33SArmin Le Grand 30396fc4b33SArmin Le Grand return createFill(bOverlapping); 304cdf0e10cSrcweir } 305cdf0e10cSrcweir else 306cdf0e10cSrcweir { 307cdf0e10cSrcweir return Primitive2DSequence(); 308cdf0e10cSrcweir } 309cdf0e10cSrcweir } 310cdf0e10cSrcweir FillGradientPrimitive2D(const basegfx::B2DRange & rOutputRange,const attribute::FillGradientAttribute & rFillGradient)311cdf0e10cSrcweir FillGradientPrimitive2D::FillGradientPrimitive2D( 312*64b14621SArmin Le Grand const basegfx::B2DRange& rOutputRange, 313cdf0e10cSrcweir const attribute::FillGradientAttribute& rFillGradient) 314cdf0e10cSrcweir : BufferedDecompositionPrimitive2D(), 315*64b14621SArmin Le Grand maOutputRange(rOutputRange), 316*64b14621SArmin Le Grand maDefinitionRange(rOutputRange), 317*64b14621SArmin Le Grand maFillGradient(rFillGradient) 318*64b14621SArmin Le Grand { 319*64b14621SArmin Le Grand } 320*64b14621SArmin Le Grand FillGradientPrimitive2D(const basegfx::B2DRange & rOutputRange,const basegfx::B2DRange & rDefinitionRange,const attribute::FillGradientAttribute & rFillGradient)321*64b14621SArmin Le Grand FillGradientPrimitive2D::FillGradientPrimitive2D( 322*64b14621SArmin Le Grand const basegfx::B2DRange& rOutputRange, 323*64b14621SArmin Le Grand const basegfx::B2DRange& rDefinitionRange, 324*64b14621SArmin Le Grand const attribute::FillGradientAttribute& rFillGradient) 325*64b14621SArmin Le Grand : BufferedDecompositionPrimitive2D(), 326*64b14621SArmin Le Grand maOutputRange(rOutputRange), 327*64b14621SArmin Le Grand maDefinitionRange(rDefinitionRange), 328cdf0e10cSrcweir maFillGradient(rFillGradient) 329cdf0e10cSrcweir { 330cdf0e10cSrcweir } 331cdf0e10cSrcweir operator ==(const BasePrimitive2D & rPrimitive) const332cdf0e10cSrcweir bool FillGradientPrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const 333cdf0e10cSrcweir { 334cdf0e10cSrcweir if(BufferedDecompositionPrimitive2D::operator==(rPrimitive)) 335cdf0e10cSrcweir { 336cdf0e10cSrcweir const FillGradientPrimitive2D& rCompare = (FillGradientPrimitive2D&)rPrimitive; 337cdf0e10cSrcweir 338*64b14621SArmin Le Grand return (getOutputRange() == rCompare.getOutputRange() 339*64b14621SArmin Le Grand && getDefinitionRange() == rCompare.getDefinitionRange() 340cdf0e10cSrcweir && getFillGradient() == rCompare.getFillGradient()); 341cdf0e10cSrcweir } 342cdf0e10cSrcweir 343cdf0e10cSrcweir return false; 344cdf0e10cSrcweir } 345cdf0e10cSrcweir getB2DRange(const geometry::ViewInformation2D &) const346cdf0e10cSrcweir basegfx::B2DRange FillGradientPrimitive2D::getB2DRange(const geometry::ViewInformation2D& /*rViewInformation*/) const 347cdf0e10cSrcweir { 348*64b14621SArmin Le Grand // return the geometrically visible area 349*64b14621SArmin Le Grand return getOutputRange(); 350cdf0e10cSrcweir } 351cdf0e10cSrcweir 352cdf0e10cSrcweir // provide unique ID 353cdf0e10cSrcweir ImplPrimitrive2DIDBlock(FillGradientPrimitive2D, PRIMITIVE2D_ID_FILLGRADIENTPRIMITIVE2D) 354cdf0e10cSrcweir 355cdf0e10cSrcweir } // end of namespace primitive2d 356cdf0e10cSrcweir } // end of namespace drawinglayer 357cdf0e10cSrcweir 358cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 359cdf0e10cSrcweir // eof 360