LibreOffice Module canvas (master) 1
|
Definition of the surface proxy class. More...
#include <surfaceproxy.hxx>
Public Member Functions | |
SurfaceProxy (std::shared_ptr< canvas::IColorBuffer > xBuffer, PageManagerSharedPtr xPageManager) | |
virtual void | setColorBufferDirty () override |
Notify the proxy that the color buffer has changed. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DHomMatrix &rTransform) override |
Render the surface content to screen. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DRange &rArea, const ::basegfx::B2DHomMatrix &rTransform) override |
Render the surface content to screen. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DPolyPolygon &rClipPoly, const ::basegfx::B2DHomMatrix &rTransform) override |
Render the surface content to screen. More... | |
Public Member Functions inherited from canvas::ISurfaceProxy | |
virtual | ~ISurfaceProxy () |
virtual void | setColorBufferDirty ()=0 |
Notify the proxy that the color buffer has changed. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DHomMatrix &rTransform)=0 |
Render the surface content to screen. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DRange &rArea, const ::basegfx::B2DHomMatrix &rTransform)=0 |
Render the surface content to screen. More... | |
virtual bool | draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DPolyPolygon &rClipPoly, const ::basegfx::B2DHomMatrix &rTransform)=0 |
Render the surface content to screen. More... | |
Private Attributes | |
PageManagerSharedPtr | mpPageManager |
std::vector< SurfaceSharedPtr > | maSurfaceList |
std::shared_ptr< canvas::IColorBuffer > | mpBuffer |
Definition of the surface proxy class.
Surface proxies are the connection between one source image and one or more hardware surfaces (or textures). in a logical structure surface proxies represent solely this dependency plus some simple cache management.
Definition at line 37 of file surfaceproxy.hxx.
canvas::SurfaceProxy::SurfaceProxy | ( | std::shared_ptr< canvas::IColorBuffer > | xBuffer, |
PageManagerSharedPtr | xPageManager | ||
) |
Definition at line 32 of file surfaceproxy.cxx.
References maSurfaceList, mpBuffer, mpPageManager, x, and y.
|
overridevirtual |
Render the surface content to screen.
fAlpha | Overall alpha for content |
rPos | Output position |
rTransform | Output transformation (does not affect output position) |
Implements canvas::ISurfaceProxy.
Definition at line 88 of file surfaceproxy.cxx.
References maSurfaceList.
|
overridevirtual |
Render the surface content to screen.
fAlpha | Overall alpha for content |
rPos | Output position |
rClipPoly | Clip polygon for the surface. The clip polygon is also subject to the output transformation. |
rTransform | Output transformation (does not affect output position) |
Implements canvas::ISurfaceProxy.
Definition at line 109 of file surfaceproxy.cxx.
References basegfx::B2DPolygon::append(), basegfx::utils::exportToSvgD(), maSurfaceList, basegfx::B2DPolygon::reserve(), and SAL_INFO.
|
overridevirtual |
Render the surface content to screen.
fAlpha | Overall alpha for content |
rPos | Output position |
rArea | Subset of the surface to render. Coordinate system are surface area pixel, given area will be clipped to the surface bounds. |
rTransform | Output transformation (does not affect output position) |
Implements canvas::ISurfaceProxy.
Definition at line 98 of file surfaceproxy.cxx.
References maSurfaceList.
|
overridevirtual |
Notify the proxy that the color buffer has changed.
Implements canvas::ISurfaceProxy.
Definition at line 82 of file surfaceproxy.cxx.
References maSurfaceList.
|
private |
Definition at line 109 of file surfaceproxy.hxx.
Referenced by draw(), setColorBufferDirty(), and SurfaceProxy().
|
private |
Definition at line 114 of file surfaceproxy.hxx.
Referenced by SurfaceProxy().
|
private |
Definition at line 104 of file surfaceproxy.hxx.
Referenced by SurfaceProxy().