LibreOffice Module canvas (master)  1
Classes | Typedefs | Functions | Variables
oglcanvas Namespace Reference

Classes

class  BitmapCanvasHelper
 Helper class for basic canvas functionality. More...
 
class  CanvasBitmap
 
class  CanvasCustomSprite
 
class  CanvasFont
 
class  CanvasHelper
 Helper class for basic canvas functionality. More...
 
struct  IBufferContext
 
class  SpriteCanvas
 Product of this component's factory. More...
 
class  SpriteDeviceHelper
 
class  TextLayout
 
class  TextureCache
 
struct  TransformationPreserver
 

Typedefs

typedef std::shared_ptr< IBufferContextIBufferContextSharedPtr
 
typedef ::cppu::WeakComponentImplHelper< css::rendering::XBitmapCanvas, css::rendering::XIntegerBitmap > CanvasBitmapBase_Base
 
typedef ::canvas::IntegerBitmapBase< canvas::BitmapCanvasBase2< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >, BitmapCanvasHelper,::osl::MutexGuard,::cppu::OWeakObject > > CanvasBitmapBaseT
 
typedef ::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite, css::rendering::XCanvas > CanvasCustomSpriteBase_Base
 
typedef ::canvas::CanvasBase< ::canvas::BaseMutexHelper< CanvasCustomSpriteBase_Base >, CanvasHelper,::osl::MutexGuard,::cppu::OWeakObjectCanvasCustomSpriteBaseT
 
typedef ::cppu::WeakComponentImplHelper< css::rendering::XCanvasFont > CanvasFontBaseT
 
typedef ::cppu::WeakComponentImplHelper< css::rendering::XSpriteCanvas, css::rendering::XGraphicDevice, css::lang::XMultiServiceFactory, css::rendering::XBufferController, css::awt::XWindowListener, css::util::XUpdatable, css::beans::XPropertySet, css::lang::XServiceName > WindowGraphicDeviceBase_Base
 
typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::DisambiguationHelper< WindowGraphicDeviceBase_Base >, SpriteDeviceHelper,::osl::MutexGuard,::cppu::OWeakObjectSpriteCanvasDeviceBaseT
 
typedef ::canvas::CanvasBase< SpriteCanvasDeviceBaseT, CanvasHelper,::osl::MutexGuard,::cppu::OWeakObjectSpriteCanvasBaseT
 
typedef ::rtl::Reference< SpriteCanvasSpriteCanvasRef
 
typedef ::cppu::WeakComponentImplHelper< css::rendering::XTextLayout > TextLayoutBaseT
 

Functions

void renderComplexPolyPolygon (const ::basegfx::B2DPolyPolygon &rPolyPoly)
 triangulates polygon before More...
 
void renderPolyPolygon (const ::basegfx::B2DPolyPolygon &rPolyPoly)
 only use this for line polygons. More...
 
void setupState (const ::basegfx::B2DHomMatrix &rTransform, GLenum eSrcBlend, GLenum eDstBlend, const rendering::ARGBColor &rColor)
 
void renderOSD (const std::vector< double > &rNumbers, double scale)
 
void setupState (const ::basegfx::B2DHomMatrix &rTransform, GLenum eSrcBlend, GLenum eDstBlend, const com::sun::star::rendering::ARGBColor &rColor)
 
static uno::Reference< uno::XInterface > initCanvas (SpriteCanvas *pCanvas)
 
static void setupUniforms (unsigned int nProgramId, const ::basegfx::B2DHomMatrix &rTexTransform)
 
static void setupUniforms (unsigned int nProgramId, const rendering::ARGBColor *pColors, const uno::Sequence< double > &rStops, const ::basegfx::B2DHomMatrix &rTexTransform)
 
static void setupUniforms (unsigned int nProgramId, const rendering::ARGBColor &rStartColor, const rendering::ARGBColor &rEndColor, const ::basegfx::B2DHomMatrix &rTexTransform)
 

Variables

sdecl::class_< SpriteCanvas, sdecl::with_args< true > > const serviceImplinitCanvas
 
const sdecl::ServiceDecl oglSpriteCanvasDecl (serviceImpl, SPRITECANVAS_IMPLEMENTATION_NAME, SPRITECANVAS_SERVICE_NAME)
 

Typedef Documentation

typedef ::cppu::WeakComponentImplHelper< css::rendering::XBitmapCanvas, css::rendering::XIntegerBitmap > oglcanvas::CanvasBitmapBase_Base

Definition at line 31 of file ogl_canvasbitmap.hxx.

Definition at line 37 of file ogl_canvasbitmap.hxx.

typedef ::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite, css::rendering::XCanvas > oglcanvas::CanvasCustomSpriteBase_Base

Definition at line 32 of file ogl_canvascustomsprite.hxx.

Definition at line 37 of file ogl_canvascustomsprite.hxx.

typedef ::cppu::WeakComponentImplHelper< css::rendering::XCanvasFont > oglcanvas::CanvasFontBaseT

Definition at line 26 of file ogl_canvasfont.hxx.

Definition at line 33 of file ogl_buffercontext.hxx.

Definition at line 56 of file ogl_spritecanvas.hxx.

Definition at line 51 of file ogl_spritecanvas.hxx.

Definition at line 112 of file ogl_spritecanvas.hxx.

typedef ::cppu::WeakComponentImplHelper< css::rendering::XTextLayout > oglcanvas::TextLayoutBaseT

Definition at line 27 of file ogl_textlayout.hxx.

typedef ::cppu::WeakComponentImplHelper< css::rendering::XSpriteCanvas, css::rendering::XGraphicDevice, css::lang::XMultiServiceFactory, css::rendering::XBufferController, css::awt::XWindowListener, css::util::XUpdatable, css::beans::XPropertySet, css::lang::XServiceName > oglcanvas::WindowGraphicDeviceBase_Base

Definition at line 37 of file ogl_spritecanvas.hxx.

Function Documentation

static uno::Reference<uno::XInterface> oglcanvas::initCanvas ( SpriteCanvas pCanvas)
static

Definition at line 163 of file ogl_spritecanvas.cxx.

References oglcanvas::SpriteCanvas::initialize().

void oglcanvas::renderComplexPolyPolygon ( const ::basegfx::B2DPolyPolygon rPolyPoly)
void oglcanvas::renderOSD ( const std::vector< double > &  rNumbers,
double  scale 
)
void oglcanvas::renderPolyPolygon ( const ::basegfx::B2DPolyPolygon rPolyPoly)

only use this for line polygons.

better not leave triangulation to OpenGL. also, ignores texturing

Definition at line 71 of file ogl_canvastools.cxx.

References basegfx::B2DPolyPolygon::areControlPointsUsed(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), basegfx::B2DPolyPolygon::getDefaultAdaptiveSubdivision(), and i.

Referenced by renderOSD().

void oglcanvas::setupState ( const ::basegfx::B2DHomMatrix rTransform,
GLenum  eSrcBlend,
GLenum  eDstBlend,
const com::sun::star::rendering::ARGBColor &  rColor 
)
void oglcanvas::setupState ( const ::basegfx::B2DHomMatrix rTransform,
GLenum  eSrcBlend,
GLenum  eDstBlend,
const rendering::ARGBColor &  rColor 
)

Definition at line 95 of file ogl_canvastools.cxx.

static void oglcanvas::setupUniforms ( unsigned int  nProgramId,
const ::basegfx::B2DHomMatrix rTexTransform 
)
static
static void oglcanvas::setupUniforms ( unsigned int  nProgramId,
const rendering::ARGBColor *  pColors,
const uno::Sequence< double > &  rStops,
const ::basegfx::B2DHomMatrix rTexTransform 
)
static

Definition at line 407 of file ogl_spritedevicehelper.cxx.

References setupUniforms().

static void oglcanvas::setupUniforms ( unsigned int  nProgramId,
const rendering::ARGBColor &  rStartColor,
const rendering::ARGBColor &  rEndColor,
const ::basegfx::B2DHomMatrix rTexTransform 
)
static

Definition at line 448 of file ogl_spritedevicehelper.cxx.

References setupUniforms().

Variable Documentation

sdecl::class_<SpriteCanvas, sdecl::with_args<true> > const serviceImpl& oglcanvas::initCanvas

Definition at line 170 of file ogl_spritecanvas.cxx.