LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Static Private Member Functions | List of all members
vcl::test::OutputDeviceTestCommon Class Reference

Common subclass for output device rendering tests. More...

#include <outputdevice.hxx>

Inheritance diagram for vcl::test::OutputDeviceTestCommon:
[legend]
Collaboration diagram for vcl::test::OutputDeviceTestCommon:
[legend]

Public Member Functions

 OutputDeviceTestCommon ()
 
OUString getRenderBackendName () const
 
void initialSetup (tools::Long nWidth, tools::Long nHeight, Color aColor, bool bEnableAA=false, bool bAlphaVirtualDevice=false)
 

Static Public Member Functions

static TestResult checkRectangle (Bitmap &rBitmap)
 
static TestResult checkRectangleAA (Bitmap &rBitmap)
 
static TestResult checkFilledRectangle (Bitmap &rBitmap, bool useLineColor)
 
static TestResult checkLines (Bitmap &rBitmap)
 
static TestResult checkAALines (Bitmap &rBitmap)
 
static TestResult checkDiamond (Bitmap &rBitmap)
 
static TestResult checkInvertRectangle (Bitmap &rBitmap)
 
static TestResult checkInvertN50Rectangle (Bitmap &aBitmap)
 
static TestResult checkInvertTrackFrameRectangle (Bitmap &aBitmap)
 
static TestResult checkRectangles (Bitmap &rBitmap, std::vector< Color > &aExpectedColors)
 
static TestResult checkRectangle (Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
 
static TestResult checkRectangles (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkFilled (Bitmap &rBitmap, tools::Rectangle aRectangle, Color aExpectedColor)
 
static TestResult checkChecker (Bitmap &rBitmap, sal_Int32 nStartX, sal_Int32 nEndX, sal_Int32 nStartY, sal_Int32 nEndY, std::vector< Color > const &rExpected)
 
static TestResult checkLinearGradient (Bitmap &bitmap)
 
static TestResult checkLinearGradientAngled (Bitmap &bitmap)
 
static TestResult checkLinearGradientBorder (Bitmap &bitmap)
 
static TestResult checkLinearGradientIntensity (Bitmap &bitmap)
 
static TestResult checkLinearGradientSteps (Bitmap &bitmap)
 
static TestResult checkAxialGradient (Bitmap &bitmap)
 
static TestResult checkRadialGradient (Bitmap &bitmap)
 
static TestResult checkRadialGradientOfs (Bitmap &bitmap)
 
static void createDiamondPoints (tools::Rectangle rRect, int nOffset, Point &rPoint1, Point &rPoint2, Point &rPoint3, Point &rPoint4)
 
static tools::Polygon createDropShapePolygon ()
 
static basegfx::B2DPolygon createHalfEllipsePolygon ()
 
static tools::Polygon createClosedBezierLoop (const tools::Rectangle &rRect)
 
static basegfx::B2DPolygon createOpenPolygon (const tools::Rectangle &rRect, int nOffset=4)
 
static basegfx::B2DPolygon createOpenBezier ()
 
static void createHorizontalVerticalDiagonalLinePoints (tools::Rectangle rRect, Point &rHorizontalLinePoint1, Point &rHorizontalLinePoint2, Point &rVerticalLinePoint1, Point &rVerticalLinePoint2, Point &rDiagonalLinePoint1, Point &rDiagonalLinePoint2)
 
static tools::Rectangle alignToCenter (tools::Rectangle aRect1, tools::Rectangle aRect2)
 
static TestResult checkBezier (Bitmap &rBitmap)
 
static TestResult checkLineCapRound (Bitmap &rBitmap)
 
static TestResult checkLineCapSquare (Bitmap &rBitmap)
 
static TestResult checkLineCapButt (Bitmap &rBitmap)
 
static TestResult checkLineJoinBevel (Bitmap &rBitmap)
 
static TestResult checkLineJoinRound (Bitmap &rBitmap)
 
static TestResult checkLineJoinMiter (Bitmap &rBitmap)
 
static TestResult checkLineJoinNone (Bitmap &rBitmap)
 
static TestResult checkDropShape (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkHalfEllipse (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkClosedBezier (Bitmap &rBitmap)
 
static TestResult checkFilledAsymmetricalDropShape (Bitmap &rBitmap)
 
static TestResult checkTextLocation (Bitmap &rBitmap)
 
static TestResult checkEvenOddRuleInIntersectingRecs (Bitmap &rBitmap)
 
static TestResult checkIntersectingRecs (Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
 
static TestResult checkOpenPolygon (Bitmap &rBitmap, bool aEnableAA=false)
 
static TestResult checkOpenBezier (Bitmap &rBitmap)
 

Protected Attributes

ScopedVclPtr< VirtualDevicempVirtualDevice
 
tools::Rectangle maVDRectangle
 

Static Protected Attributes

static const Color constBackgroundColor
 
static const Color constLineColor
 
static const Color constFillColor
 

Static Private Member Functions

static TestResult checkLineCap (Bitmap &rBitmap, css::drawing::LineCap lineCap)
 
static TestResult checkLineJoin (Bitmap &rBitmap, basegfx::B2DLineJoin lineJoin)
 

Detailed Description

Common subclass for output device rendering tests.

Definition at line 21 of file outputdevice.hxx.

Constructor & Destructor Documentation

◆ OutputDeviceTestCommon()

vcl::test::OutputDeviceTestCommon::OutputDeviceTestCommon ( )

Member Function Documentation

◆ alignToCenter()

static tools::Rectangle vcl::test::OutputDeviceTestCommon::alignToCenter ( tools::Rectangle  aRect1,
tools::Rectangle  aRect2 
)
static

◆ checkAALines()

static TestResult vcl::test::OutputDeviceTestCommon::checkAALines ( Bitmap rBitmap)
static

◆ checkAxialGradient()

static TestResult vcl::test::OutputDeviceTestCommon::checkAxialGradient ( Bitmap bitmap)
static

◆ checkBezier()

static TestResult vcl::test::OutputDeviceTestCommon::checkBezier ( Bitmap rBitmap)
static

◆ checkChecker()

static TestResult vcl::test::OutputDeviceTestCommon::checkChecker ( Bitmap rBitmap,
sal_Int32  nStartX,
sal_Int32  nEndX,
sal_Int32  nStartY,
sal_Int32  nEndY,
std::vector< Color > const &  rExpected 
)
static

◆ checkClosedBezier()

static TestResult vcl::test::OutputDeviceTestCommon::checkClosedBezier ( Bitmap rBitmap)
static

◆ checkDiamond()

static TestResult vcl::test::OutputDeviceTestCommon::checkDiamond ( Bitmap rBitmap)
static

◆ checkDropShape()

static TestResult vcl::test::OutputDeviceTestCommon::checkDropShape ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static

◆ checkEvenOddRuleInIntersectingRecs()

static TestResult vcl::test::OutputDeviceTestCommon::checkEvenOddRuleInIntersectingRecs ( Bitmap rBitmap)
static

◆ checkFilled()

static TestResult vcl::test::OutputDeviceTestCommon::checkFilled ( Bitmap rBitmap,
tools::Rectangle  aRectangle,
Color  aExpectedColor 
)
static

◆ checkFilledAsymmetricalDropShape()

static TestResult vcl::test::OutputDeviceTestCommon::checkFilledAsymmetricalDropShape ( Bitmap rBitmap)
static

◆ checkFilledRectangle()

static TestResult vcl::test::OutputDeviceTestCommon::checkFilledRectangle ( Bitmap rBitmap,
bool  useLineColor 
)
static

◆ checkHalfEllipse()

static TestResult vcl::test::OutputDeviceTestCommon::checkHalfEllipse ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static

◆ checkIntersectingRecs()

static TestResult vcl::test::OutputDeviceTestCommon::checkIntersectingRecs ( Bitmap rBitmap,
int  aLayerNumber,
Color  aExpectedColor 
)
static

◆ checkInvertN50Rectangle()

static TestResult vcl::test::OutputDeviceTestCommon::checkInvertN50Rectangle ( Bitmap aBitmap)
static

◆ checkInvertRectangle()

static TestResult vcl::test::OutputDeviceTestCommon::checkInvertRectangle ( Bitmap rBitmap)
static

◆ checkInvertTrackFrameRectangle()

static TestResult vcl::test::OutputDeviceTestCommon::checkInvertTrackFrameRectangle ( Bitmap aBitmap)
static

◆ checkLinearGradient()

static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradient ( Bitmap bitmap)
static

◆ checkLinearGradientAngled()

static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientAngled ( Bitmap bitmap)
static

◆ checkLinearGradientBorder()

static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientBorder ( Bitmap bitmap)
static

◆ checkLinearGradientIntensity()

static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientIntensity ( Bitmap bitmap)
static

◆ checkLinearGradientSteps()

static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientSteps ( Bitmap bitmap)
static

◆ checkLineCap()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineCap ( Bitmap rBitmap,
css::drawing::LineCap  lineCap 
)
staticprivate

◆ checkLineCapButt()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineCapButt ( Bitmap rBitmap)
inlinestatic

Definition at line 88 of file outputdevice.hxx.

◆ checkLineCapRound()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineCapRound ( Bitmap rBitmap)
inlinestatic

Definition at line 86 of file outputdevice.hxx.

◆ checkLineCapSquare()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineCapSquare ( Bitmap rBitmap)
inlinestatic

Definition at line 87 of file outputdevice.hxx.

◆ checkLineJoin()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineJoin ( Bitmap rBitmap,
basegfx::B2DLineJoin  lineJoin 
)
staticprivate

◆ checkLineJoinBevel()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineJoinBevel ( Bitmap rBitmap)
inlinestatic

Definition at line 90 of file outputdevice.hxx.

References basegfx::Bevel.

◆ checkLineJoinMiter()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineJoinMiter ( Bitmap rBitmap)
inlinestatic

Definition at line 92 of file outputdevice.hxx.

References basegfx::Miter.

◆ checkLineJoinNone()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineJoinNone ( Bitmap rBitmap)
inlinestatic

Definition at line 93 of file outputdevice.hxx.

References basegfx::NONE.

◆ checkLineJoinRound()

static TestResult vcl::test::OutputDeviceTestCommon::checkLineJoinRound ( Bitmap rBitmap)
inlinestatic

Definition at line 91 of file outputdevice.hxx.

References basegfx::Round.

◆ checkLines()

static TestResult vcl::test::OutputDeviceTestCommon::checkLines ( Bitmap rBitmap)
static

◆ checkOpenBezier()

static TestResult vcl::test::OutputDeviceTestCommon::checkOpenBezier ( Bitmap rBitmap)
static

◆ checkOpenPolygon()

static TestResult vcl::test::OutputDeviceTestCommon::checkOpenPolygon ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static

◆ checkRadialGradient()

static TestResult vcl::test::OutputDeviceTestCommon::checkRadialGradient ( Bitmap bitmap)
static

◆ checkRadialGradientOfs()

static TestResult vcl::test::OutputDeviceTestCommon::checkRadialGradientOfs ( Bitmap bitmap)
static

◆ checkRectangle() [1/2]

static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap)
static

◆ checkRectangle() [2/2]

static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap,
int  aLayerNumber,
Color  aExpectedColor 
)
static

◆ checkRectangleAA()

static TestResult vcl::test::OutputDeviceTestCommon::checkRectangleAA ( Bitmap rBitmap)
static

◆ checkRectangles() [1/2]

static TestResult vcl::test::OutputDeviceTestCommon::checkRectangles ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static

◆ checkRectangles() [2/2]

static TestResult vcl::test::OutputDeviceTestCommon::checkRectangles ( Bitmap rBitmap,
std::vector< Color > &  aExpectedColors 
)
static

◆ checkTextLocation()

static TestResult vcl::test::OutputDeviceTestCommon::checkTextLocation ( Bitmap rBitmap)
static

◆ createClosedBezierLoop()

static tools::Polygon vcl::test::OutputDeviceTestCommon::createClosedBezierLoop ( const tools::Rectangle rRect)
static

◆ createDiamondPoints()

static void vcl::test::OutputDeviceTestCommon::createDiamondPoints ( tools::Rectangle  rRect,
int  nOffset,
Point rPoint1,
Point rPoint2,
Point rPoint3,
Point rPoint4 
)
static

◆ createDropShapePolygon()

static tools::Polygon vcl::test::OutputDeviceTestCommon::createDropShapePolygon ( )
static

◆ createHalfEllipsePolygon()

static basegfx::B2DPolygon vcl::test::OutputDeviceTestCommon::createHalfEllipsePolygon ( )
static

◆ createHorizontalVerticalDiagonalLinePoints()

static void vcl::test::OutputDeviceTestCommon::createHorizontalVerticalDiagonalLinePoints ( tools::Rectangle  rRect,
Point rHorizontalLinePoint1,
Point rHorizontalLinePoint2,
Point rVerticalLinePoint1,
Point rVerticalLinePoint2,
Point rDiagonalLinePoint1,
Point rDiagonalLinePoint2 
)
static

◆ createOpenBezier()

static basegfx::B2DPolygon vcl::test::OutputDeviceTestCommon::createOpenBezier ( )
static

◆ createOpenPolygon()

static basegfx::B2DPolygon vcl::test::OutputDeviceTestCommon::createOpenPolygon ( const tools::Rectangle rRect,
int  nOffset = 4 
)
static

◆ getRenderBackendName()

OUString vcl::test::OutputDeviceTestCommon::getRenderBackendName ( ) const

◆ initialSetup()

void vcl::test::OutputDeviceTestCommon::initialSetup ( tools::Long  nWidth,
tools::Long  nHeight,
Color  aColor,
bool  bEnableAA = false,
bool  bAlphaVirtualDevice = false 
)

Member Data Documentation

◆ constBackgroundColor

const Color vcl::test::OutputDeviceTestCommon::constBackgroundColor
staticprotected

Definition at line 28 of file outputdevice.hxx.

◆ constFillColor

const Color vcl::test::OutputDeviceTestCommon::constFillColor
staticprotected

Definition at line 30 of file outputdevice.hxx.

◆ constLineColor

const Color vcl::test::OutputDeviceTestCommon::constLineColor
staticprotected

Definition at line 29 of file outputdevice.hxx.

◆ maVDRectangle

tools::Rectangle vcl::test::OutputDeviceTestCommon::maVDRectangle
protected

Definition at line 26 of file outputdevice.hxx.

◆ mpVirtualDevice

ScopedVclPtr<VirtualDevice> vcl::test::OutputDeviceTestCommon::mpVirtualDevice
protected

Definition at line 25 of file outputdevice.hxx.


The documentation for this class was generated from the following file: