LibreOffice Module drawinglayer (master) 1
|
FillGraphicPrimitive2D class. More...
#include <fillgraphicprimitive2d.hxx>
Public Member Functions | |
FillGraphicPrimitive2D (basegfx::B2DHomMatrix aTransformation, const attribute::FillGraphicAttribute &rFillGraphic) | |
constructor More... | |
const basegfx::B2DHomMatrix & | getTransformation () const |
data read access More... | |
const attribute::FillGraphicAttribute & | getFillGraphic () const |
const BitmapEx & | getOffsetXYCreatedBitmap () const |
virtual bool | operator== (const BasePrimitive2D &rPrimitive) const override |
compare operator More... | |
virtual basegfx::B2DRange | getB2DRange (const geometry::ViewInformation2D &rViewInformation) const override |
get range More... | |
virtual sal_uInt32 | getPrimitive2DID () const override |
provide unique ID More... | |
Public Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D | |
BufferedDecompositionPrimitive2D () | |
virtual void | get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override |
The getDecomposition default implementation will on demand use create2DDecomposition() if maBuffered2DDecomposition is empty. More... | |
void | setTransparenceForShadow (sal_uInt16 nTransparenceForShadow) |
sal_uInt16 | getTransparenceForShadow () const |
Public Member Functions inherited from drawinglayer::primitive2d::BasePrimitive2D | |
BasePrimitive2D () | |
virtual | ~BasePrimitive2D () override |
virtual bool | operator== (const BasePrimitive2D &rPrimitive) const |
the ==operator is mainly needed to allow testing newly-created primitives against their last incarnation which buffers/holds the made decompositions. More... | |
bool | operator!= (const BasePrimitive2D &rPrimitive) const |
virtual basegfx::B2DRange | getB2DRange (const geometry::ViewInformation2D &rViewInformation) const |
The default implementation will use getDecomposition results to create the range. More... | |
virtual sal_uInt32 | getPrimitive2DID () const =0 |
provide unique ID for fast identifying of known primitive implementations in renderers. More... | |
virtual void | get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const |
The default implementation will return an empty sequence. More... | |
Primitive2DContainer | getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) |
The getDecomposition implementation for UNO API will use getDecomposition from this implementation. More... | |
css::geometry::RealRectangle2D | getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) |
The getRange implementation for UNO API will use getRange from this implementation. More... | |
virtual sal_Int64 | estimateUsage () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Member Functions | |
virtual void | create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override |
local decomposition. More... | |
void | impSetOffsetXYCreatedBitmap (const BitmapEx &rBitmap) |
Private Attributes | |
basegfx::B2DHomMatrix | maTransformation |
the geometric definition More... | |
attribute::FillGraphicAttribute | maFillGraphic |
the fill attributes More... | |
BitmapEx | maOffsetXYCreatedBitmap |
the evtl. buffered OffsetXYCreatedBitmap More... | |
Friends | |
void | drawinglayer::processor2d::setOffsetXYCreatedBitmap (drawinglayer::primitive2d::FillGraphicPrimitive2D &, const BitmapEx &) |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D | |
const Primitive2DContainer & | getBuffered2DDecomposition () const |
access methods to maBuffered2DDecomposition. More... | |
void | setBuffered2DDecomposition (Primitive2DContainer &&rNew) |
virtual void | create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const =0 |
method which is to be used to implement the local decomposition of a 2D primitive. More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
FillGraphicPrimitive2D class.
This class defines a bitmap filling for a rectangular area. The Range is defined by the Transformation, the fill by the FillGraphicAttribute. There, the fill consists of a Bitmap (not transparent) defining the fill data and a Point/Vector pair defining the relative position/size [0.0 .. 1.0] inside the area where the bitmap is positioned. A flag defines then if this is tiled or not.
Renderers should handle this primitive; it has a geometrically correct decomposition, but on pixel outputs the areas where the tiled pieces are aligned tend to show up (one overlapping or empty pixel)
Definition at line 60 of file fillgraphicprimitive2d.hxx.
drawinglayer::primitive2d::FillGraphicPrimitive2D::FillGraphicPrimitive2D | ( | basegfx::B2DHomMatrix | aTransformation, |
const attribute::FillGraphicAttribute & | rFillGraphic | ||
) |
|
overrideprivatevirtual |
local decomposition.
Implements drawinglayer::primitive2d::BufferedDecompositionPrimitive2D.
Definition at line 37 of file fillgraphicprimitive2d.cxx.
References a, drawinglayer::texture::GeoTexSvxTiled::appendTransformations(), drawinglayer::primitive2d::create2DDecompositionOfGraphic(), basegfx::utils::createScaleTranslateB2DHomMatrix(), getFillGraphic(), drawinglayer::attribute::FillGraphicAttribute::getGraphic(), drawinglayer::attribute::FillGraphicAttribute::getGraphicRange(), basegfx::B2DRange::getMinimum(), drawinglayer::attribute::FillGraphicAttribute::getOffsetX(), drawinglayer::attribute::FillGraphicAttribute::getOffsetY(), Graphic::GetPrefSize(), basegfx::B2DRange::getRange(), drawinglayer::attribute::FillGraphicAttribute::getTiling(), getTransformation(), Graphic::GetType(), Size::Height(), drawinglayer::attribute::FillGraphicAttribute::isDefault(), and Size::Width().
|
overridevirtual |
get range
Reimplemented from drawinglayer::primitive2d::BasePrimitive2D.
Definition at line 116 of file fillgraphicprimitive2d.cxx.
References basegfx::utils::createUnitPolygon(), basegfx::utils::getRange(), getTransformation(), and basegfx::B2DPolygon::transform().
|
inline |
Definition at line 94 of file fillgraphicprimitive2d.hxx.
Referenced by create2DDecomposition(), operator==(), drawinglayer::processor2d::prepareBitmapForDirectRender(), drawinglayer::processor2d::D2DPixelProcessor2D::processFillGraphicPrimitive2D(), drawinglayer::processor2d::VclProcessor2D::RenderFillGraphicPrimitive2DImpl(), and drawinglayer::processor2d::takeCareOfOffsetXY().
|
inline |
Definition at line 95 of file fillgraphicprimitive2d.hxx.
Referenced by drawinglayer::processor2d::takeCareOfOffsetXY().
|
overridevirtual |
provide unique ID
Implements drawinglayer::primitive2d::BasePrimitive2D.
Definition at line 126 of file fillgraphicprimitive2d.cxx.
References PRIMITIVE2D_ID_FILLGRAPHICPRIMITIVE2D.
|
inline |
data read access
Definition at line 93 of file fillgraphicprimitive2d.hxx.
References maTransformation.
Referenced by create2DDecomposition(), getB2DRange(), operator==(), drawinglayer::processor2d::prepareBitmapForDirectRender(), drawinglayer::processor2d::D2DPixelProcessor2D::processFillGraphicPrimitive2D(), and drawinglayer::processor2d::VclProcessor2D::RenderFillGraphicPrimitive2DImpl().
|
inlineprivate |
Definition at line 81 of file fillgraphicprimitive2d.hxx.
Referenced by drawinglayer::processor2d::setOffsetXYCreatedBitmap().
|
overridevirtual |
compare operator
Reimplemented from drawinglayer::primitive2d::BasePrimitive2D.
Definition at line 103 of file fillgraphicprimitive2d.cxx.
References getFillGraphic(), and getTransformation().
|
friend |
|
private |
the fill attributes
Definition at line 67 of file fillgraphicprimitive2d.hxx.
|
private |
the evtl. buffered OffsetXYCreatedBitmap
Definition at line 70 of file fillgraphicprimitive2d.hxx.
|
private |
the geometric definition
Definition at line 64 of file fillgraphicprimitive2d.hxx.