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

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

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

Member Function Documentation

static tools::Rectangle vcl::test::OutputDeviceTestCommon::alignToCenter ( tools::Rectangle  aRect1,
tools::Rectangle  aRect2 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkAALines ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkAxialGradient ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkBezier ( Bitmap rBitmap)
static
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
static TestResult vcl::test::OutputDeviceTestCommon::checkClosedBezier ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkDiamond ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkDropShape ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkEvenOddRuleInIntersectingRecs ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilled ( Bitmap rBitmap,
tools::Rectangle  aRectangle,
Color  aExpectedColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilledAsymmetricalDropShape ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkFilledRectangle ( Bitmap rBitmap,
bool  useLineColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkHalfEllipse ( Bitmap rBitmap,
bool  aEnableAA = false 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkIntersectingRecs ( Bitmap rBitmap,
int  aLayerNumber,
Color  aExpectedColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertN50Rectangle ( Bitmap aBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertRectangle ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkInvertTrackFrameRectangle ( Bitmap aBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradient ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientAngled ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientBorder ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientIntensity ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLinearGradientSteps ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkLineCap ( Bitmap rBitmap,
css::drawing::LineCap  lineCap 
)
staticprivate
static TestResult vcl::test::OutputDeviceTestCommon::checkLineCapButt ( Bitmap rBitmap)
inlinestatic

Definition at line 85 of file outputdevice.hxx.

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

Definition at line 83 of file outputdevice.hxx.

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

Definition at line 84 of file outputdevice.hxx.

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

Definition at line 87 of file outputdevice.hxx.

References basegfx::Bevel.

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

Definition at line 89 of file outputdevice.hxx.

References basegfx::Miter.

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

Definition at line 90 of file outputdevice.hxx.

References basegfx::NONE.

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

Definition at line 88 of file outputdevice.hxx.

References basegfx::Round.

static TestResult vcl::test::OutputDeviceTestCommon::checkLines ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRadialGradient ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRadialGradientOfs ( Bitmap bitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangle ( Bitmap rBitmap,
int  aLayerNumber,
Color  aExpectedColor 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangleAA ( Bitmap rBitmap)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkRectangles ( Bitmap rBitmap,
std::vector< Color > &  aExpectedColors 
)
static
static TestResult vcl::test::OutputDeviceTestCommon::checkTextLocation ( Bitmap rBitmap)
static
static tools::Polygon vcl::test::OutputDeviceTestCommon::createClosedBezierLoop ( const tools::Rectangle rRect)
static
static void vcl::test::OutputDeviceTestCommon::createDiamondPoints ( tools::Rectangle  rRect,
int  nOffset,
Point &  rPoint1,
Point &  rPoint2,
Point &  rPoint3,
Point &  rPoint4 
)
static
static tools::Polygon vcl::test::OutputDeviceTestCommon::createDropShapePolygon ( )
static
static basegfx::B2DPolygon vcl::test::OutputDeviceTestCommon::createHalfEllipsePolygon ( )
static
static void vcl::test::OutputDeviceTestCommon::createHorizontalVerticalDiagonalLinePoints ( tools::Rectangle  rRect,
Point &  rHorizontalLinePoint1,
Point &  rHorizontalLinePoint2,
Point &  rVerticalLinePoint1,
Point &  rVerticalLinePoint2,
Point &  rDiagonalLinePoint1,
Point &  rDiagonalLinePoint2 
)
static
OUString vcl::test::OutputDeviceTestCommon::getRenderBackendName ( ) const
void vcl::test::OutputDeviceTestCommon::initialSetup ( tools::Long  nWidth,
tools::Long  nHeight,
Color  aColor,
bool  bEnableAA = false,
bool  bAlphaVirtualDevice = false 
)

Member Data Documentation

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

Definition at line 28 of file outputdevice.hxx.

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

Definition at line 30 of file outputdevice.hxx.

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

Definition at line 29 of file outputdevice.hxx.

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

Definition at line 26 of file outputdevice.hxx.

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: