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 ::comphelper::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 ::comphelper::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

◆ CanvasBitmapBase_Base

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

Definition at line 30 of file ogl_canvasbitmap.hxx.

◆ CanvasBitmapBaseT

Definition at line 36 of file ogl_canvasbitmap.hxx.

◆ CanvasCustomSpriteBase_Base

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

Definition at line 28 of file ogl_canvascustomsprite.hxx.

◆ CanvasCustomSpriteBaseT

Definition at line 33 of file ogl_canvascustomsprite.hxx.

◆ CanvasFontBaseT

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

Definition at line 26 of file ogl_canvasfont.hxx.

◆ IBufferContextSharedPtr

Definition at line 32 of file ogl_buffercontext.hxx.

◆ SpriteCanvasBaseT

Definition at line 55 of file ogl_spritecanvas.hxx.

◆ SpriteCanvasDeviceBaseT

Definition at line 50 of file ogl_spritecanvas.hxx.

◆ SpriteCanvasRef

Definition at line 111 of file ogl_spritecanvas.hxx.

◆ TextLayoutBaseT

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

Definition at line 23 of file ogl_textlayout.hxx.

◆ WindowGraphicDeviceBase_Base

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 45 of file ogl_spritecanvas.hxx.

Function Documentation

◆ renderComplexPolyPolygon()

void oglcanvas::renderComplexPolyPolygon ( const ::basegfx::B2DPolyPolygon rPolyPoly)

◆ renderOSD()

void oglcanvas::renderOSD ( const std::vector< double > &  rNumbers,
double  scale 
)

◆ renderPolyPolygon()

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().

◆ setupState() [1/2]

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

◆ setupState() [2/2]

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

Definition at line 92 of file ogl_canvastools.cxx.

◆ setupUniforms() [1/3]

static void oglcanvas::setupUniforms ( unsigned int  nProgramId,
const ::basegfx::B2DHomMatrix rTexTransform 
)
static

◆ setupUniforms() [2/3]

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

Definition at line 439 of file ogl_spritedevicehelper.cxx.

References setupUniforms().

◆ setupUniforms() [3/3]

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

Definition at line 398 of file ogl_spritedevicehelper.cxx.

References setupUniforms().