LibreOffice Module canvas (master)
1
|
Definition of the surface proxy class. More...
#include <surfaceproxy.hxx>
Public Member Functions | |
SurfaceProxy (const std::shared_ptr< canvas::IColorBuffer > &pBuffer, const PageManagerSharedPtr &pPageManager) | |
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... | |
![]() | |
virtual | ~ISurfaceProxy () |
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 | ( | const std::shared_ptr< canvas::IColorBuffer > & | pBuffer, |
const PageManagerSharedPtr & | pPageManager | ||
) |
Definition at line 31 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 87 of file surfaceproxy.cxx.
References maSurfaceList.
|
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 97 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 108 of file surfaceproxy.cxx.
References basegfx::B2DPolygon::append(), basegfx::utils::exportToSvgD(), maSurfaceList, basegfx::B2DPolygon::reserve(), SAL_INFO, and basegfx::triangulator::triangulate().
|
overridevirtual |
Notify the proxy that the color buffer has changed.
Implements canvas::ISurfaceProxy.
Definition at line 81 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().