LibreOffice Module canvas (master)  1
Classes | Typedefs | Functions
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 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)
 

Typedef Documentation

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

Definition at line 30 of file ogl_canvasbitmap.hxx.

Definition at line 36 of file ogl_canvasbitmap.hxx.

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

Definition at line 28 of file ogl_canvascustomsprite.hxx.

Definition at line 33 of file ogl_canvascustomsprite.hxx.

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

Definition at line 25 of file ogl_canvasfont.hxx.

Definition at line 32 of file ogl_buffercontext.hxx.

Definition at line 55 of file ogl_spritecanvas.hxx.

Definition at line 50 of file ogl_spritecanvas.hxx.

Definition at line 111 of file ogl_spritecanvas.hxx.

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

Definition at line 24 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 36 of file ogl_spritecanvas.hxx.

Function Documentation

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 68 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 92 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 400 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 441 of file ogl_spritedevicehelper.cxx.

References setupUniforms().