CVtImageRotator Class Reference

class CVtImageRotator : public CActive

Image rotator.

videosource.lib

Inherits from

Public Member Functions
~CVtImageRotator ()
IMPORT_C CVtImageRotator * NewL ( MVtImageRotatorObserver &, TPriority )
IMPORT_C void Rotate (const CVtImage &, CVtImage &, const TRotationAngle &)
IMPORT_C void RotateL (const CVtImage &, CVtImage &, const TRotationAngle &)
Private Member Functions
CVtImageRotator ()
CVtImageRotator ( MVtImageRotatorObserver &, TPriority )
void Activate ()
void ConstructL ()
void CreateRotatorL (const TRotationAngle &)
void DoCancel ()
void DoRotate ()
void RunL ()
void Signal ( TInt )
TInt StaticRotate ( TAny *)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TPanics { EBusy  = 1 }
enum TRotationAngle {
ERotationNone  = -1, E90DegreesClockwise , E180DegreesClockwise , E270DegreesClockwise , EMirrorHorizontalAxis , EFlipVerticalAxis
}
Inherited Enumerations
CActive:TPriority
Private Attributes
CAsyncCallBack * iAsyncCallBack
TBool iCancelled
CFbsBitmap * iHeapLock
MVtImageRotatorObserver & iObserver
CVtImageRotatorImpl * iRotatorImpl
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CVtImageRotator()

CVtImageRotator ( ) [private]

C++ default constructor.

CVtImageRotator(MVtImageRotatorObserver &, TPriority)

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

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

Parameters

MVtImageRotatorObserver & aObserver Reference to observer.
TPriority aPriority Active object priority.

~CVtImageRotator()

IMPORT_C ~CVtImageRotator ( )

C++ destructor.

Member Functions Documentation

Activate()

void Activate ( ) [private]

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

ConstructL()

void ConstructL ( ) [private]
Second phase constructor.
Exceptions
In

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

CreateRotatorL(const TRotationAngle &)

void CreateRotatorL ( 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 & aAngle Used rotation angle.

DoCancel()

void DoCancel ( ) [private, virtual]

This is defined in CActive . Check CActive for description.

DoRotate()

void DoRotate ( ) [private]

Rotate method called by the StaticScale.

NewL(MVtImageRotatorObserver &, TPriority)

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

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

Parameters

MVtImageRotatorObserver & aObserver Reference to instance observer.
TPriority aPriority = EPriorityLow Active object priority.

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

IMPORT_C void Rotate ( const CVtImage & aSource,
CVtImage & aTarget,
const TRotationAngle & aAngle
)

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

Parameters

const CVtImage & aSource Source image that will be rotated.
CVtImage & aTarget Target image that will hold the rotated image.
const TRotationAngle & aAngle Rotation angle.

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

IMPORT_C void RotateL ( 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 & aSource Source image that will be rotated.
CVtImage & aTarget Target image that will hold the rotated image.
const TRotationAngle & aAngle Rotation angle.

RunL()

void RunL ( ) [private, virtual]

This is defined in CActive . Check CActive for description.

Signal(TInt)

void Signal ( TInt aError ) [private]

Signals this instance AO with given error code.

Parameters

TInt aError Signalling 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]