#include "stdafx.h"
#include "3UtilMath.h"	// For mmroundoff.
#include "3ObjRect.h"	// This header.

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif

#define SUPER_CLASS MC3ObjFigure

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ObjRect::MC3ObjRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CMC3FoundDoc_xZkqqHx_iCmM_xHqqkZx_Stream_xZkqqHx_jDmHiCnNiNjOiCnNiOjOiCmJiBeB_xHqqkZx_MC3ObjRect_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiCmJiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.16 Fukushiro M. _xZkqqHx_jFmPjAjEiCmMiPiJiKpKiJlLiCpAjCmHiJmB_xHqqkZx_.Tool_xZkqqHx_iCmFjAlGjAkMiClDiCoKiClNiOjOiCmMiInH_xHqqkZx_.
 *************************************************************************/
MC3ObjRect::MC3ObjRect ()
{
	// m_mmrtResize_xZkqqHx_iCmN_xHqqkZx_double_xZkqqHx_iMfOiCpAiOgHiCkEiCmMiCmFiBeB_xHqqkZx_8_xZkqqHx_iCmMjEhLjAjEiCmFiDeBiDiJiDeDiDjDiDiBiDjDiDgHiCkKjDpMiCoJiBeC_xHqqkZx_
	// sizeof(SUPER_CLASS)_xZkqqHx_iCmNiBeB_xHqqkZx_44_xZkqqHx_iClOiCmBiClNiCmMiCmFiBeBjFoCjAlDiCmJ_xHqqkZx_4_xZkqqHx_iCpAjBkLiClHiBeC_xHqqkZx_
	ASSERT(ALIGNMENT8(sizeof(SUPER_CLASS)) == offsetof(MC3ObjRect, m_mmrtResize));
	// memcmp_xZkqqHx_iCmFiDeJiDhFiDfHiDeGiDeOiDgHjEoEiKhCiCpAiClHiCoJiClNiCnPiBeBiNfMjBkCjBmMiDeNiDiDiDgCiDhGiCoAjBfDiCmEiCePiCmFjGiEiCnPiCoJiBeC_xHqqkZx_
	memset(&m_mmrtResize, 0, sizeof(MC3ObjRect) - offsetof(MC3ObjRect, m_mmrtResize));

	m_mmrtResize.SetRect(0.0, 0.0, 60.0, 60.0);
	m_mmHAxisX	= mmroundoff(30.0);				// _xZkqqHx_jAhNiMgAiCmMjAiFjFlNiOlCiCmMjBoFiCkLiClDiBeC_xHqqkZx_
	m_mmVAxisX	= mmroundoff(0.0);				// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_X_xZkqqHx_jAkMjFkKiBeC_xHqqkZx_
	m_mmVAxisY	= mmroundoff(30.0);				// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_Y_xZkqqHx_jAkMjFkKiBeC_xHqqkZx_
	m_mmptCenter= mmroundoff(DBLPoint(30,30));	// _xZkqqHx_jAhNiMgAiCmMjCiGjAfDjDfPiCmMiNmAjFfHiBeC_xHqqkZx_
	m_dAngle	= mmroundoff(0.0);				// _xZkqqHx_jAhNiMgAiCmMiJpBjDfNiKhAjDhIiBeC_xHqqkZx_
} // MC3ObjRect::MC3ObjRect.

//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ObjRect::IsKindOf
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCkKiClBiCmMiMfOiBeBiIlNiCkCiCmNiClBiCmMiMfOiCmMiDfEiDhFiDeOiDiJiDfIiCmMiMfOiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nType	: _xZkqqHx_jClCiCnHiCoJiMfOiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	: nType_xZkqqHx_iMfOiBeBiIlNiCkCiCmNiClLiCmMiDfEiDhFiDeOiDiJiDfIiCmMiPoKiNiH_xHqqkZx_
// *			FALSE	: _xZkqqHx_iClLiCkEiCmFiCmIiCkCiPoKiNiH_xHqqkZx_
// *************************************************************************/
//BOOL MC3ObjRect::IsKindOf (FTObjectType nType) const
//{
//	if (nType == FDOJ_RECT) return TRUE;
//	return SUPER_CLASS::IsKindOf(nType);
//} // MC3ObjRect::IsKindOf.
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ObjRect::Type
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiMfOiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiMfO_xHqqkZx_
 *************************************************************************/
FTObjectType MC3ObjRect::Type () const
{
	return FDOJ_RECT;
} // MC3ObjRect::Type.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ObjRect::OutStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPjBiCkLiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_iPjBiCkLiPgPiClFjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.03 Fukushiro M. CArchive_xZkqqHx_iCpA_xHqqkZx_MCARCHIVE_xZkqqHx_iCmJiPeDjAlDiBeC_xHqqkZx_
 *************************************************************************/
void MC3ObjRect::OutStream (MCARCHIVE& ar)
{
	SUPER_CLASS::OutStream(ar);
	ar << m_mmrtResize;		// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiA_xHqqkZx_.
	ar << m_mmHAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiFjFlNiOlCiCmMjBoFiCkLiClD_xHqqkZx_.
	ar << m_mmVAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_X_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar << m_mmVAxisY;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_Y_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar << m_mmptCenter;		// _xZkqqHx_jAhNiMgAiCmMjCiGjAfDjDfPiCmMiNmAjFfH_xHqqkZx_.
	ar << m_dAngle;			/* _xZkqqHx_jAhNiMgAiCmMiJpBjDfNiKhAjDhI_xHqqkZx_ */
} // MC3ObjRect::OutStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ObjRect::InStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_jDmHiCnNiNjOiCnNjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.03 Fukushiro M. CArchive_xZkqqHx_iCpA_xHqqkZx_MCARCHIVE_xZkqqHx_iCmJiPeDjAlDiBeC_xHqqkZx_
 *************************************************************************/
void MC3ObjRect::InStream (MCARCHIVE& ar)
{
	SUPER_CLASS::InStream(ar);
	ar >> m_mmrtResize;		// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiA_xHqqkZx_.
	ar >> m_mmHAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiFjFlNiOlCiCmMjBoFiCkLiClD_xHqqkZx_.
	ar >> m_mmVAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_X_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar >> m_mmVAxisY;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_Y_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar >> m_mmptCenter;		// _xZkqqHx_jAhNiMgAiCmMjCiGjAfDjDfPiCmMiNmAjFfH_xHqqkZx_.
	ar >> m_dAngle;			/* _xZkqqHx_jAhNiMgAiCmMiJpBjDfNiKhAjDhI_xHqqkZx_ */
} // MC3ObjRect::InStream.

