imageeditorengine/filters/FilterFrame/Inc/CFilterFrame.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CFilterFrame_H__
       
    21 #define __CFilterFrame_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "MImageFilter.h"
       
    25 
       
    26 class CFbsBitmap;
       
    27 
       
    28 class CFilterFrame
       
    29 	: public CBase
       
    30 	, public MImageFilter
       
    31 	{
       
    32 	public:
       
    33 		IMPORT_C static TInt Create();
       
    34 		virtual ~CFilterFrame();
       
    35 	
       
    36 	private:
       
    37 		static CFilterFrame* NewL();
       
    38 		CFilterFrame();
       
    39 		void ConstructL();
       
    40 	
       
    41 	public: // MImageFilter
       
    42 		virtual TRect Rect();
       
    43         virtual TReal Scale();
       
    44         virtual TSize ViewPortSize();
       
    45 		virtual TBlock * GetBlockL ( const TRect & aRect );
       
    46 		virtual void SetParent( MImageFilter* aParent );
       
    47 		virtual void SetChild( MImageFilter* aChild );
       
    48 		virtual TInt CmdL( const TDesC16& aCmd );
       
    49 		virtual const char* Type();
       
    50 		virtual void LoadFrameL();
       
    51 
       
    52 	private: // Data
       
    53 
       
    54 		/// Frame buffer
       
    55 		TUint32 *		iData;
       
    56 		/// File name
       
    57 		TFileName		iFile;
       
    58 		/// Frame index
       
    59 		TInt			iFrameInd;
       
    60 		/// Mask index
       
    61 		TInt			iMaskInd;
       
    62 		///	Frame size
       
    63 		TSize			iSize;
       
    64 		///	Frame scale
       
    65 		TPoint			iScale;
       
    66 		/// Frame row offset
       
    67 		TInt			iWsFrame;
       
    68 		/// Mask row offset
       
    69 		TInt			iWsMask;
       
    70     
       
    71         TRect           iOrigRect;
       
    72         TPoint          iOffset;
       
    73     };
       
    74 
       
    75 #endif