epoc32/include/icl/orientationtransformextension.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100 (2010-03-31)
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     2
// All rights reserved.
williamr@4
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@4
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     7
//
williamr@4
     8
// Initial Contributors:
williamr@4
     9
// Nokia Corporation - initial contribution.
williamr@4
    10
//
williamr@4
    11
// Contributors:
williamr@4
    12
//
williamr@4
    13
// Description:
williamr@4
    14
// This is Image Transform extension for Rotate/Flip Transformations
williamr@4
    15
// 
williamr@4
    16
//
williamr@4
    17
williamr@4
    18
/**
williamr@4
    19
 @file
williamr@4
    20
 @publishedAll 
williamr@4
    21
 @released
williamr@4
    22
*/
williamr@4
    23
williamr@4
    24
#ifndef __ORIENTATIONTRANFORMEEXTENSION_H__
williamr@4
    25
#define __ORIENTATIONTRANFORMEEXTENSION_H__
williamr@4
    26
williamr@4
    27
#include <e32base.h>
williamr@4
    28
#include <icl/imagetransformpluginext.h>
williamr@4
    29
#include <icl/icl_uids.hrh>
williamr@4
    30
williamr@4
    31
/**
williamr@4
    32
@publishedAll 
williamr@4
    33
@released
williamr@4
    34
williamr@4
    35
The Orientation Extension to the ImageTransform plugin.
williamr@4
    36
 
williamr@4
    37
The class provides the methods to set the image orientation and is intended to be implemented
williamr@4
    38
by the plugins supporting the rotation of the image based on the orientation. The plugin
williamr@4
    39
supporting this extension must use the opaque_data v2 format in RSS file and also the orientation flag
williamr@4
    40
must be set in the opaque_data. The client must retrieve this extension implementation from 
williamr@4
    41
the plugin using its extension UID. 
williamr@4
    42
*/
williamr@4
    43
class COrientationTransformExtension : public CImageTransformPluginExtension
williamr@4
    44
	{
williamr@4
    45
public:
williamr@4
    46
	/** 
williamr@4
    47
	The possible orientations of the image. Similar to the EXIF orientation tag
williamr@4
    48
	*/
williamr@4
    49
	enum TOrientation
williamr@4
    50
		{
williamr@4
    51
		/**
williamr@4
    52
		No rotation done
williamr@4
    53
		*/
williamr@4
    54
		ERotationNone = 1,
williamr@4
    55
		/**
williamr@4
    56
		Rotate the image clockwise through 90 degrees.
williamr@4
    57
		*/
williamr@4
    58
		ERotation90DegreesClockwise = 6,
williamr@4
    59
		/**
williamr@4
    60
		Rotate the image clockwise through 180 degrees.
williamr@4
    61
		*/
williamr@4
    62
		ERotation180DegreesClockwise = 3,
williamr@4
    63
		/**
williamr@4
    64
		Rotate the image clockwise through 270 degrees.
williamr@4
    65
		*/
williamr@4
    66
		ERotation270DegreesClockwise = 8,
williamr@4
    67
		/** 
williamr@4
    68
		Mirror the image over its vertical axis
williamr@4
    69
		*/
williamr@4
    70
		EMirrorVerticalAxis = 2,
williamr@4
    71
		/**
williamr@4
    72
		Mirror the image over its horizontal axis
williamr@4
    73
		*/
williamr@4
    74
		EMirrorHorizontalAxis = 4,
williamr@4
    75
		/**
williamr@4
    76
		Transpose (or mirror) the image across a diagonal running from top-left to lower-right.
williamr@4
    77
		*/
williamr@4
    78
		ETransposeOverMainDiagonal = 5,
williamr@4
    79
		/**
williamr@4
    80
		Transpose (or mirror) the image across a diagonal running from top-right to lower-left.
williamr@4
    81
		*/
williamr@4
    82
		ETransposeOverMinorDiagonal = 7
williamr@4
    83
		};	
williamr@4
    84
williamr@4
    85
	IMPORT_C void SetOrientationL(TOrientation aOrientation ) ;
williamr@4
    86
williamr@4
    87
protected:
williamr@4
    88
	virtual void DoSetOrientationL(TOrientation aOrientation) = 0;
williamr@4
    89
williamr@4
    90
private:
williamr@4
    91
	IMPORT_C virtual void ReservedVirtual5();
williamr@4
    92
williamr@4
    93
private:	
williamr@4
    94
	// Future proofing
williamr@4
    95
	TAny* iPad;
williamr@4
    96
	};
williamr@4
    97
williamr@4
    98
#endif // __ORIENTATIONTRANFORMEEXTENSION_H__