Lines Matching refs:basegfx
79 struct StaticUnitRectPoly : public rtl::StaticWithInit<basegfx::B2DPolygon, StaticUnitRectPoly>
81 basegfx::B2DPolygon operator()() in operator ()()
83 return basegfx::tools::createUnitPolygon(); in operator ()()
128 basegfx::B2DPolyPolygon createClipPolygon( const basegfx::B2DPolyPolygon& rClip, in createClipPolygon()
130 const basegfx::B2DSize& rUserSize ) in createClipPolygon()
136 const basegfx::B2DRange aClipRange(0, 0, rUserSize.getX(), rUserSize.getY()); in createClipPolygon()
140 return basegfx::tools::clipPolyPolygonOnRange(rClip, aClipRange, true, false); in createClipPolygon()
144 return basegfx::B2DPolyPolygon(basegfx::tools::createPolygonFromRect(aClipRange)); in createClipPolygon()
155 basegfx::B2DPolyPolygon prepareClip( const basegfx::B2DPolyPolygon& rClip ) in prepareClip()
157 basegfx::B2DPolyPolygon aClip( rClip ); in prepareClip()
162 aClip = basegfx::tools::adaptiveSubdivideByAngle( aClip ); in prepareClip()
166 aClip = basegfx::tools::correctOrientations(aClip); in prepareClip()
167 aClip = basegfx::tools::solveCrossovers(aClip); in prepareClip()
168 aClip = basegfx::tools::stripNeutralPolygons(aClip); in prepareClip()
169 aClip = basegfx::tools::stripDispensablePolygons(aClip, false); in prepareClip()
176 basegfx::B2IRange const& rArea ) in clearRect()
179 ::basegfx::B2DPolyPolygon const* pClipPoly( pCanvas->getClip() ); in clearRect()
182 ::basegfx::B2DPolyPolygon aClipPoly( *pClipPoly ); in clearRect()
188 pCanvas->setTransformation( ::basegfx::B2DHomMatrix() ); in clearRect()
195 const ::basegfx::B2DPolygon aPoly( in clearRect()
196 ::basegfx::tools::createPolygonFromRect( in clearRect()
197 basegfx::B2DRange(rArea))); in clearRect()
239 basegfx::B2IRange getLayerBoundsPixel( basegfx::B2DRange const& rLayerBounds, in getLayerBoundsPixel()
240 basegfx::B2DHomMatrix const& rTransformation ) in getLayerBoundsPixel()
242 ::basegfx::B2DRange aTmpRect; in getLayerBoundsPixel()
248 return ::basegfx::B2IRange(); in getLayerBoundsPixel()
253 return ::basegfx::B2IRange( ::basegfx::fround(aTmpRect.getMinX()), in getLayerBoundsPixel()
254 ::basegfx::fround(aTmpRect.getMinY()), in getLayerBoundsPixel()
255 ::basegfx::fround(aTmpRect.getMaxX()) + 1, in getLayerBoundsPixel()
256 ::basegfx::fround(aTmpRect.getMaxY()) + 1 ); in getLayerBoundsPixel()
282 basegfx::B1DRange maLayerPrioRange;
337 basegfx::B1DRange getLayerPriority() const in getLayerPriority()
342 void setLayerPriority( const basegfx::B1DRange& rRange ) in setLayerPriority()
417 basegfx::B2DRange maLayerBounds;
420 mutable basegfx::B2IRange maLayerBoundsPixel;
423 basegfx::B2DPolyPolygon maClip;
426 basegfx::B2DSize maUserSize;
429 basegfx::B2DHomMatrix maTransformation;
458 const basegfx::B2DHomMatrix& rTransform, in SlideViewLayer()
459 const basegfx::B2DRange& rLayerBounds, in SlideViewLayer()
460 const basegfx::B2DSize& rUserSize, in SlideViewLayer()
475 void updateView( const basegfx::B2DHomMatrix& rMatrix, in updateView()
476 const basegfx::B2DSize& rUserSize ) in updateView()
482 maLayerBounds.intersect( basegfx::B2DRange(0.0, in updateView()
487 basegfx::B2IRange const& rNewLayerPixel( in updateView()
503 const ::basegfx::B2DSize& rSpriteSizePixel, in createSprite()
515 virtual void setPriority( const basegfx::B1DRange& rRange ) in setPriority()
528 virtual basegfx::B2DHomMatrix getTransformation() const in getTransformation()
532 basegfx::B2DRectangle aTmpRect; in getTransformation()
537 basegfx::B2DHomMatrix aMatrix( maTransformation ); in getTransformation()
543 aMatrix.translate( -basegfx::fround(aTmpRect.getMinX()), in getTransformation()
544 -basegfx::fround(aTmpRect.getMinY()) ); in getTransformation()
550 virtual basegfx::B2DHomMatrix getSpriteTransformation() const in getSpriteTransformation()
593 maLayerBoundsPixel = basegfx::B2IRange(0,0,1,1); in getCanvas()
595 const basegfx::B2I64Tuple& rSpriteSize(maLayerBoundsPixel.getRange()); in getCanvas()
597 basegfx::B2DVector(sal::static_int_cast<sal_Int32>(rSpriteSize.getX()), in getCanvas()
605 basegfx::B2DPoint(maLayerBoundsPixel.getMinimum()) + in getCanvas()
606 basegfx::B2DPoint(10,10) ); in getCanvas()
611 basegfx::B2DPoint(maLayerBoundsPixel.getMinimum()) ); in getCanvas()
637 virtual void setClip( const basegfx::B2DPolyPolygon& rClip ) in setClip()
639 basegfx::B2DPolyPolygon aNewClip = prepareClip( rClip ); in setClip()
653 virtual bool resize( const ::basegfx::B2DRange& rArea ) in resize()
688 virtual ViewLayerSharedPtr createViewLayer( const basegfx::B2DRange& rLayerBounds ) const;
691 virtual void setViewSize( const ::basegfx::B2DSize& );
699 … virtual cppcanvas::CustomSpriteSharedPtr createSprite( const ::basegfx::B2DSize& rSpriteSizePixel,
701 virtual void setPriority( const basegfx::B1DRange& rRange );
702 virtual ::basegfx::B2DHomMatrix getTransformation() const;
703 virtual basegfx::B2DHomMatrix getSpriteTransformation() const;
704 virtual void setClip( const ::basegfx::B2DPolyPolygon& rClip );
705 virtual bool resize( const ::basegfx::B2DRange& rArea );
748 basegfx::B2DPolyPolygon maClip;
750 basegfx::B2DHomMatrix maViewTransform;
751 basegfx::B2DSize maUserSize;
784 if( basegfx::fTools::equalZero( in SlideView()
785 basegfx::B2DVector(aViewTransform.m00, in SlideView()
787 basegfx::fTools::equalZero( in SlideView()
788 basegfx::B2DVector(aViewTransform.m01, in SlideView()
797 basegfx::unotools::homMatrixFromAffineMatrix( in SlideView()
802 maSprites.setLayerPriority( basegfx::B1DRange(0.0,1.0) ); in SlideView()
822 ViewLayerSharedPtr SlideView::createViewLayer( const basegfx::B2DRange& rLayerBounds ) const in createViewLayer()
878 basegfx::B2DRange(0,0, in clear()
897 void SlideView::setViewSize( const basegfx::B2DSize& rSize ) in setViewSize()
929 const basegfx::B2DSize& rSpriteSizePixel, in createSprite()
945 void SlideView::setPriority( const basegfx::B1DRange& /*rRange*/ ) in setPriority()
954 basegfx::B2DHomMatrix SlideView::getTransformation() const in getTransformation()
958 basegfx::B2DHomMatrix aMatrix; in getTransformation()
964 basegfx::B2DHomMatrix SlideView::getSpriteTransformation() const in getSpriteTransformation()
969 void SlideView::setClip( const basegfx::B2DPolyPolygon& rClip ) in setClip()
973 basegfx::B2DPolyPolygon aNewClip = prepareClip( rClip ); in setClip()
983 bool SlideView::resize( const ::basegfx::B2DRange& /*rArea*/ ) in resize()
1048 if( basegfx::fTools::equalZero( in modified()
1049 basegfx::B2DVector(aViewTransform.m00, in modified()
1051 basegfx::fTools::equalZero( in modified()
1052 basegfx::B2DVector(aViewTransform.m01, in modified()
1062 basegfx::B2DHomMatrix aNewTransform; in modified()
1063 basegfx::unotools::homMatrixFromAffineMatrix( in modified()
1143 const basegfx::B2DHomMatrix& rCurrTransform( in pruneLayers()