CNvgFitToViewBoxImpl Class Reference

class CNvgFitToViewBoxImpl : public CBase

Inherits from

Constructor & Destructor Documentation

CNvgFitToViewBoxImpl()

CNvgFitToViewBoxImpl ( ) [private]

~CNvgFitToViewBoxImpl()

~CNvgFitToViewBoxImpl ( ) [virtual]

: Constructor : None

Member Functions Documentation

Concatenate(TReal)

void Concatenate ( TReal aMatrix )

Parameters

TReal aMatrix

Concatenate(TReal, TReal, TReal, TReal, TReal, TReal)

void Concatenate ( TReal aM00,
TReal aM01,
TReal aM02,
TReal aM10,
TReal aM11,
TReal aM12
)

Parameters

TReal aM00
TReal aM01
TReal aM02
TReal aM10
TReal aM11
TReal aM12

ConstructL()

void ConstructL ( ) [private]

: 2 Phase Constructor : None

NewL()

CNvgFitToViewBoxImpl * NewL ( ) [static]

: Destructor : None

NewLC()

CNvgFitToViewBoxImpl * NewLC ( ) [static]

: 2 Phase Constructor : None

Scale(TReal, TReal)

void Scale ( TReal aX,
TReal aY
) [inline]

: Update the transformation matrix for Scaling the Contnet : Scaling factors Sx, Sy

Parameters

TReal aX
TReal aY

SetAlign(TNvgAlignStatusType)

void SetAlign ( TNvgAlignStatusType aAlignStatus ) [inline]

: Setter function for Aligning : Indicates to fit the viewport in the viewbox

Parameters

TNvgAlignStatusType aAlignStatus

SetScaling(TNvgMeetOrSliceType)

void SetScaling ( TNvgMeetOrSliceType aMeetSlice ) [inline]

: Setter function for MeetorSlice : Indicates whether to streach or slice the content

Parameters

TNvgMeetOrSliceType aMeetSlice

SetTransform(TReal, TReal, TReal, TReal, TReal, TReal)

void SetTransform ( TReal aM00,
TReal aM01,
TReal aM02,
TReal aM10,
TReal aM11,
TReal aM12
) [inline]

: Setter function for Transformation matrix : The first two rows of the transformation matrix

Parameters

TReal aM00
TReal aM01
TReal aM02
TReal aM10
TReal aM11
TReal aM12

SetViewBox(TReal, TReal, TReal, TReal)

void SetViewBox ( TReal avbX,
TReal avbY,
TReal avbW,
TReal avbH
) [inline]

: Setter function for viewbox : : TRect which will be the viewbox for the content

Parameters

TReal avbX
TReal avbY
TReal avbW
TReal avbH

SetWindowViewportTrans(TRect, TSize)

void SetWindowViewportTrans ( TRect aViewPort,
TSize aSize
)

: Calculating the transfomation matrix to carry out the viewport to viewbox transformation : The viewport which is to be transformed If viewbox is not defined, set the size of the viewbox

Parameters

TRect aViewPort
TSize aSize

Translate(TReal, TReal)

void Translate ( TReal aX,
TReal aY
) [inline]

: Update the transformation matrix for Translating the Contnet : Translation components by aX, aY coordinates

Parameters

TReal aX
TReal aY

Member Data Documentation

TNvgAlignStatusType iAlign

TNvgAlignStatusType iAlign

TReal iM00

TReal iM00

TReal iM01

TReal iM01

TReal iM02

TReal iM02

TReal iM10

TReal iM10

TReal iM11

TReal iM11

TReal iM12

TReal iM12

TNvgMeetOrSliceType iMeetSlice

TNvgMeetOrSliceType iMeetSlice

TBool iViewBoxDefined

TBool iViewBoxDefined

TReal ivbH

TReal ivbH

TReal ivbW

TReal ivbW

TReal ivbX

TReal ivbX

TReal ivbY

TReal ivbY