/********************************************************************/
/* Copyright (c) 2019 System fugen G.K. and Yuzi Mizuno          */
/* All rights reserved.                                             */
/********************************************************************/
/********************************************************************/
// EvalDistanceTool.h: MGEvalDistanceTool クラスのインターフェイス

#if !defined(AFX_EVALDISTANCE2PTOOL_H__8845CFC4_3F5D_4EA0_88F4_2EF5B296CD5C__INCLUDED_)
#define AFX_EVALDISTANCE2PTOOL_H__8845CFC4_3F5D_4EA0_88F4_2EF5B296CD5C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Common/CommandStateOwner.h"
#include "Common/LocateState.h"

// class MGEvalDistance2PTool
//
// Displays the distance between two points.
class MGEvalDistance2PTool : public MGLocateState{
public:
	explicit MGEvalDistance2PTool(fugenDoc* pDoc);
	virtual MGCommandBase* initial_clone(fugenDoc* pDoc)const;
	virtual bool OnLocated(const MGLocateInfo& linfo);

	// Compiles OpenGL's display list of temporary objects for each
	//standard views.
	virtual void do_make_temporary_display(mgSysGL& sgl,fugenView* pView);

private:
	void prompt_message() const;

	MGPosition m_pos1, m_pos2;//positions to evaluate.
};

#endif // !defined(AFX_EVALDISTANCE2PTOOL_H__8845CFC4_3F5D_4EA0_88F4_2EF5B296CD5C__INCLUDED_)
