CVtImageRotator Class Reference

class CVtImageRotator : public CActive

Image rotator.

videosource.lib

Inherits from

Constructor & Destructor Documentation

CVtImageRotator()

CVtImageRotator()[private]

C++ default constructor.

CVtImageRotator(MVtImageRotatorObserver &, TPriority)

CVtImageRotator(MVtImageRotatorObserver &aObserver,
TPriorityaPriority
)[private]
C++ constructor.
Exceptions
In

error situation leaves with one of the system wide error codes.

Parameters

MVtImageRotatorObserver & aObserverReference to observer.
TPriority aPriorityActive object priority.

~CVtImageRotator()

IMPORT_C~CVtImageRotator()

C++ destructor.

Member Functions Documentation

Activate()

voidActivate()[private]

Sets iStatus to KRequestPending and calls CActive::SetActive().

ConstructL()

voidConstructL()[private]
Second phase constructor.
Exceptions
In

error situation leaves with one of the system wide error codes.

CreateRotatorL(const TRotationAngle &)

voidCreateRotatorL(const TRotationAngle &aAngle)[private]
Creates new instance of rotator implementation if needed.
Exceptions
In

error situation leaves with one of the system wide error codes.

Parameters

const TRotationAngle & aAngleUsed rotation angle.

DoCancel()

voidDoCancel()[private, virtual]

This is defined in CActive. Check CActive for description.

DoRotate()

voidDoRotate()[private]

Rotate method called by the StaticScale.

NewL(MVtImageRotatorObserver &, TPriority)

IMPORT_C CVtImageRotator *NewL(MVtImageRotatorObserver &aObserver,
TPriorityaPriority = EPriorityLow
)[static]
Creates new instance of CVtImageRotator.
Exceptions
In

error situation leaves with one of the system wide error codes.

Parameters

MVtImageRotatorObserver & aObserverReference to instance observer.
TPriority aPriority = EPriorityLowActive object priority.

Rotate(const CVtImage &, CVtImage &, const TRotationAngle &)

IMPORT_C voidRotate(const CVtImage &aSource,
CVtImage &aTarget,
const TRotationAngle &aAngle
)

Rotates image to given angle. Possible error during initialization is returned via MVtImageRotatorObserver.

Parameters

const CVtImage & aSourceSource image that will be rotated.
CVtImage & aTargetTarget image that will hold the rotated image.
const TRotationAngle & aAngleRotation angle.

RotateL(const CVtImage &, CVtImage &, const TRotationAngle &)

IMPORT_C voidRotateL(const CVtImage &aSource,
CVtImage &aTarget,
const TRotationAngle &aAngle
)
Rotates image to given angle.
Exceptions
In

error situation leaves with one of the system wide error codes.

Parameters

const CVtImage & aSourceSource image that will be rotated.
CVtImage & aTargetTarget image that will hold the rotated image.
const TRotationAngle & aAngleRotation angle.

RunL()

voidRunL()[private, virtual]

This is defined in CActive. Check CActive for description.

Signal(TInt)

voidSignal(TIntaError)[private]

Signals this instance AO with given error code.

Parameters

TInt aErrorSignalling error code.

StaticRotate(TAny *)

TInt StaticRotate(TAny *aPtr)[private, static]

Rotate method called by the CAsyncCallBack.

Parameters

TAny * aPtr

Member Enumerations Documentation

Enum TPanics

An enumeration within the CVtImageRotator namespace. It provides a set of panic codes that may happen during rotation process.

Enumerators

EBusy = 1

RotateL() is called while previous rotation process has not yet been finished.

Enum TRotationAngle

An enumeration within the CVtImageRotator namespace. It provides a set of supported rotation and mirror angles.

Enumerators

ERotationNone = -1

Uninitialized place holder. Giving this rotation angle to RotateL() will make RotateL() leave with error code KErrNotSupported.

E90DegreesClockwise

Rotates image 90 degrees in a clockwise direction.

E180DegreesClockwise

Rotates image 180 degrees in a clockwise direction. (flip & mirror)

E270DegreesClockwise

Rotates image 270 degrees in a clockwise direction.

EMirrorHorizontalAxis

Mirrors the bitmap around the horizontal axis.

EFlipVerticalAxis

Flips the image around the vertical axis.

Member Data Documentation

CAsyncCallBack * iAsyncCallBack

CAsyncCallBack *iAsyncCallBack[private]

TBool iCancelled

TBool iCancelled[private]

CFbsBitmap * iHeapLock

CFbsBitmap *iHeapLock[private]

MVtImageRotatorObserver & iObserver

MVtImageRotatorObserver &iObserver[private]

CVtImageRotatorImpl * iRotatorImpl

CVtImageRotatorImpl *iRotatorImpl[private]