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

📄 selection.h

📁 图像处理的压缩算法
💻 H
字号:
/*------------------------------------------------------------------------------*
 * File Name: Selection.h														*
 * Creation: YuI 12/18/2002													    *
 * Purpose: Selection class														*
 * Copyright (c) OriginLab Corp.2001, 2002										*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 *------------------------------------------------------------------------------*/
#ifndef	_SELECTION_H
#define _SELECTION_H

/** >Internal Origin Objects 
		The Selection class provides methods and properties to access objects in selection

	Example:
		foreach(OriginObject obj in Selection.Objects)
		{
			// .. do something ..
		}
*/
class Selection
{
public:	
	Selection();
	~Selection();
public:
	/**
		Deselect all objects
	Example:
	void ResetSelection()
	{
		Selection.Reset();
	}
	*/
	void	Reset();
	/** 
		Selects object
	Return:
		FALSE if OriginObject passed to the function is invalid or can not be selected
	Example:
	void AddObjectToSelection(GraphObject& gr)
	{
		if( gr )
			Selection.Add(gr);
	}
	*/
	BOOL	Add(OriginObject& obj);
	
	/**
		Unselects object
	Return:
		FALSE if OriginObject passed to the function is invalid or not selected
	Example:
	void RemoveObjectFromSelection(GraphObject& gr)
	{
		if( gr )
			Selection.Remove(gr);
	}
	*/
	BOOL	Remove(OriginObject& obj);
	
	/**
		Example:
			void run_Objects()
			{
				OriginObject OrgObj;
				OrgObj = Selection.Objects(0);
				
				GraphObject go;
				go = (GraphObject)OrgObj;
				out_str(go.GetName());
			}
	*/
	OriginObject	Objects(int nIndex = 0);
	
	/**
		Collection of all objects in the selection
		Example:
		foreach(OriginObject obj in Selection.Objects)
		{
			// .. do something ..
		}
	*/
	Collection<OriginObject>	Objects;
};

#endif// _SELECTION_H

⌨️ 快捷键说明

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