/******************************************************************************
 * ImageMarkData.cs 
 * 
 * <Copyright and License> 
 * 
 * This file is part of GODS, a package for annotating medical images. 
 * 
 * Copyright (C) 2004 
 * Xuedong Chen 
 * Heri Mariwa 
 * Kimmy (Hsiang-ling) Lin 
 * Rui Yu 
 * 
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 
 * of the License, or (at your option) any later version. 
 * 
 * This program is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
 * GNU General Public License for more details. 
 * 
 * You should have received a copy of the GNU General Public License 
 * along with this program; if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
 *  
 * For further questions about this file, please send email to 
 * gods@cs.umb.edu or visit us at http://gods.sourceforge.net.  
 ******************************************************************************/

using System;

namespace GODS.DBHandler
{
	/// <summary>
	/// Summary description for ImageMarkData.
	/// </summary>
	public class ImageMarkData
	{
		public int ImageId, MarkId, Position_X, Position_Y, ValueIndex;
		public string Comment;
		public double EstimateWidth, EstimateHeight, Ratio;

		public ImageMarkData(int imageId,int markId, int position_X,
			int position_Y, double estWidth, double estHeight, string comment, int valIndex, double ratio)
		{	
			this.ImageId=imageId;
			this.MarkId =markId;
			this.Position_X=position_X;
			this.Position_Y=position_Y;
			this.EstimateWidth = estWidth;
			this.EstimateHeight = estHeight;
			this.Comment = comment;
			this.ValueIndex = valIndex;
			this.Ratio = ratio;
		}


		public bool Equals(ImageMarkData imgData)
		{
			return (this.ImageId==imgData.ImageId &&
				this.MarkId ==imgData.MarkId &&
				this.Position_X == imgData.Position_X && 
				this.Position_Y == imgData.Position_Y &&
				this.EstimateWidth == imgData.EstimateWidth &&
				this.EstimateHeight == imgData.EstimateHeight &&
				this.Comment == imgData.Comment &&
				this.Ratio == imgData.Ratio &&
				this.ValueIndex == imgData.ValueIndex);
		}
	}
}
