CNvgFitToViewBoxImpl Class Reference

class CNvgFitToViewBoxImpl : public CBase

Inherits from

  • CNvgFitToViewBoxImpl

Constructor & Destructor Documentation

CNvgFitToViewBoxImpl()

CNvgFitToViewBoxImpl()[private]

~CNvgFitToViewBoxImpl()

~CNvgFitToViewBoxImpl()[virtual]

: Constructor : None

Member Functions Documentation

Concatenate(TReal)

voidConcatenate(TRealaMatrix)

Parameters

TReal aMatrix

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

voidConcatenate(TRealaM00,
TRealaM01,
TRealaM02,
TRealaM10,
TRealaM11,
TRealaM12
)

Parameters

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

ConstructL()

voidConstructL()[private]

: 2 Phase Constructor : None

NewL()

CNvgFitToViewBoxImpl *NewL()[static]

: Destructor : None

NewLC()

CNvgFitToViewBoxImpl *NewLC()[static]

: 2 Phase Constructor : None

Scale(TReal, TReal)

voidScale(TRealaX,
TRealaY
)[inline]

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

Parameters

TReal aX
TReal aY

SetAlign(TNvgAlignStatusType)

voidSetAlign(TNvgAlignStatusTypeaAlignStatus)[inline]

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

Parameters

TNvgAlignStatusType aAlignStatus

SetScaling(TNvgMeetOrSliceType)

voidSetScaling(TNvgMeetOrSliceTypeaMeetSlice)[inline]

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

Parameters

TNvgMeetOrSliceType aMeetSlice

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

voidSetTransform(TRealaM00,
TRealaM01,
TRealaM02,
TRealaM10,
TRealaM11,
TRealaM12
)[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)

voidSetViewBox(TRealavbX,
TRealavbY,
TRealavbW,
TRealavbH
)[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)

voidSetWindowViewportTrans(TRectaViewPort,
TSizeaSize
)

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

voidTranslate(TRealaX,
TRealaY
)[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