/********************************************************************/
/* Copyright (c) 2019 System fugen G.K. and Yuzi Mizuno          */
/* All rights reserved.                                             */
/********************************************************************/

/**
 * @file CPlaneVertical.h
 * @brief クラス MGCPlaneVerticalTool の宣言
 */
#if !defined(AFX_CPLANEVERTICAL_H__D782F20B_2616_4A37_B177_B83BE8CFB4CD__INCLUDED_)
#define AFX_CPLANEVERTICAL_H__D782F20B_2616_4A37_B177_B83BE8CFB4CD__INCLUDED_

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

#include "Common/LocateState.h"

/// @class MGCPlaneVerticalTool CPlaneVertical.h "ViewCmd/CPlaneVertical.h"
///
/// CPlane を現在の CPlane に対して垂直に立てるコマンド
class MGCPlaneVerticalTool : public MGLocateState{

public:
	explicit MGCPlaneVerticalTool(fugenDoc* pDoc);
	explicit MGCPlaneVerticalTool(fugenView* pView);
	virtual bool can_break_into() const{ return true;}
	virtual MGCommandBase* initial_clone(fugenDoc* pDoc)const;
	virtual void do_make_temporary_display(mgSysGL& sgl,fugenView* pView);
	virtual bool OnLocated(const MGLocateInfo& info);

private:
	void prompt_message() const;

	fugenView* m_pView;

	MGPosition m_org;    // 移動後の CPlane の原点
	MGVector   m_u; // CPlane の U 方向
	const MGVector& m_v; // CPlane の V 方向
	const MGColor* m_zColor;//Color of CPlane's normal.
};

#endif // !defined(AFX_CPLANEVERTICAL_H__D782F20B_2616_4A37_B177_B83BE8CFB4CD__INCLUDED_)
