polypolygonprimitive2d.cxx (64b14621) polypolygonprimitive2d.cxx (97073f94)
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

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

577 basegfx::tools::createScaleTranslateB2DHomMatrix(
578 aOutRange.getRange(),
579 aOutRange.getMinimum()));
580 Primitive2DReference xSubRef;
581
582 if(aOutRange != getDefinitionRange())
583 {
584 // we want to paint (tiled) content which is defined relative to DefinitionRange
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

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

577 basegfx::tools::createScaleTranslateB2DHomMatrix(
578 aOutRange.getRange(),
579 aOutRange.getMinimum()));
580 Primitive2DReference xSubRef;
581
582 if(aOutRange != getDefinitionRange())
583 {
584 // we want to paint (tiled) content which is defined relative to DefinitionRange
585 // with the same tiling and offset(s) in the traget range of the geometry (the
585 // with the same tiling and offset(s) in the target range of the geometry (the
586 // polygon). The range given in the local FillGraphicAttribute defines the position
587 // of the graphic in unit coordinates relative to the DefinitionRange. Transform
588 // this using DefinitionRange to get to the global definition and then with the
589 // inverse transformation from the target range to go to unit coordinates relative
586 // polygon). The range given in the local FillGraphicAttribute defines the position
587 // of the graphic in unit coordinates relative to the DefinitionRange. Transform
588 // this using DefinitionRange to get to the global definition and then with the
589 // inverse transformation from the target range to go to unit coordinates relative
590 // to that traget coordinate system.
590 // to that target coordinate system.
591 basegfx::B2DRange aAdaptedRange(getFillGraphic().getGraphicRange());
592
593 const basegfx::B2DHomMatrix aFromDefinitionRangeToGlobal(
594 basegfx::tools::createScaleTranslateB2DHomMatrix(
595 getDefinitionRange().getRange(),
596 getDefinitionRange().getMinimum()));
597
598 aAdaptedRange.transform(aFromDefinitionRangeToGlobal);

--- 187 unchanged lines hidden ---
591 basegfx::B2DRange aAdaptedRange(getFillGraphic().getGraphicRange());
592
593 const basegfx::B2DHomMatrix aFromDefinitionRangeToGlobal(
594 basegfx::tools::createScaleTranslateB2DHomMatrix(
595 getDefinitionRange().getRange(),
596 getDefinitionRange().getMinimum()));
597
598 aAdaptedRange.transform(aFromDefinitionRangeToGlobal);

--- 187 unchanged lines hidden ---