⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sourcemapinfo.h

📁 手机s60第三版动画编程相关
💻 H
字号:
/*
 ============================================================================
 Name		: SourceMapInfo.h
 Author	  : 
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CSourceMapInfo declaration
 ============================================================================
 */

#ifndef SOURCEMAPINFO_H
#define SOURCEMAPINFO_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <fbs.h>
#include "map/SourceMapItemInfo.h"
#include "helper/ImageHelper.h"

// CLASS DECLARATION

/**
 *  CSourceMapInfo
 * 源图信息
 * 包含源图、掩膜图和项信息集合
 */
class CSourceMapInfo : public CBase
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CSourceMapInfo();

	/**
	 * Two-phased constructor.
	 */
	static CSourceMapInfo* NewL(RFs& aFs, CImageHelper& aImgHelper);

	/**
	 * Two-phased constructor.
	 */
	static CSourceMapInfo* NewLC(RFs& aFs, CImageHelper& aImgHelper);

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CSourceMapInfo(RFs& aFs, CImageHelper& aImgHelper);

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

public:
	void LoadSourceMapL(const TInt aIndex);

	const CFbsBitmap& GetMapImage() const;
	const CFbsBitmap& GetMaskMapImage() const;
	const RArray<TSourceMapItemInfo>& GetMapItems() const;
	inline const TInt& GetIndex() const
		{
		return iIndex;
		}

private:
	void ReadInfosFromFileL(TInt aIndex);

private:
	RFs& iFs;

	/**
	 * 源图 
	 */
	CFbsBitmap* iMapImage;
	/**
	 * 掩膜图
	 */
	CFbsBitmap* iMaskMapImage;
	/**
	 * 地图信息项集合
	 */
	RArray<TSourceMapItemInfo> iMapItems;

	CImageHelper& iImgHelper;

	TInt iIndex;
	};

#endif // SOURCEMAPINFO_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -