/********************************************************************/
/* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno          */
/* All rights reserved.                                             */
/********************************************************************/
// MGPickObject.cpp : Implements MGPickObject
//
/////////////////////////////////////////////////////////////////////////////

#include "MGCLStdAfx.h"
#include "mg/PickObject.h"
#include "mg/Group.h"

#if defined(_DEBUG)
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


//Generate a newed clone object.
MGPickObject* MGPickObject::clone()const{
	return new MGPickObject(*this);
}

//Assignment operator.
MGPickObject& MGPickObject::operator=(const MGPickObject& pobj){
	MGGelPosition::operator =(pobj);
	m_parameter=pobj.m_parameter;
	return *this;
}

bool MGPickObject::operator<(const MGPickObject& pobj) const{
	if(static_cast<MGGelPosition>(*this)!=static_cast<MGGelPosition>(pobj))
		return static_cast<MGGelPosition>(*this)<static_cast<MGGelPosition>(pobj);
	return m_parameter<pobj.m_parameter;
}