Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "ext/ContextStatus.h"
Toshihiro Shimizu 890ddd
//#include "ext/StrokeParametricDeformer.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::ContextStatus::ContextStatus()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	init();
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::ContextStatus::~ContextStatus()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void ToonzExt::ContextStatus::init()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	key_event_ = NONE;
Toshihiro Shimizu 890ddd
	w_ = -1;
Toshihiro Shimizu 890ddd
	deformerSensibility_ = -1;
Toshihiro Shimizu 890ddd
	stroke2change_ = 0;
Toshihiro Shimizu 890ddd
	lengthOfAction_ = 50;
Toshihiro Shimizu 890ddd
	deformer_ = 0;
Toshihiro Shimizu 890ddd
	pixelSize_ = 1.0;
Toshihiro Shimizu 890ddd
	cornerSize_ = 90;
Toshihiro Shimizu 890ddd
	isManual_ = false; // default is automatic
Toshihiro Shimizu 890ddd
					   //  spireCorners_ = 0;
Toshihiro Shimizu 890ddd
					   //  straightCorners_ =0;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::ContextStatus::ContextStatus(const ContextStatus &ob)
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	*this = ob;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::ContextStatus &
Toshihiro Shimizu 890ddd
	ToonzExt::ContextStatus::
Toshihiro Shimizu 890ddd
	operator=(const ContextStatus &ob)
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	w_ = ob.w_;
Toshihiro Shimizu 890ddd
	isManual_ = ob.isManual_;
Toshihiro Shimizu 890ddd
	deformer_ = ob.deformer_;
Toshihiro Shimizu 890ddd
	key_event_ = ob.key_event_;
Toshihiro Shimizu 890ddd
	pixelSize_ = ob.pixelSize_;
Toshihiro Shimizu 890ddd
	cornerSize_ = ob.cornerSize_;
Toshihiro Shimizu 890ddd
	stroke2change_ = ob.stroke2change_;
Toshihiro Shimizu 890ddd
	lengthOfAction_ = ob.lengthOfAction_;
Toshihiro Shimizu 890ddd
	deformerSensibility_ = ob.deformerSensibility_;
Toshihiro Shimizu 890ddd
	// spireCorners_ = ob.spireCorners_;
Toshihiro Shimizu 890ddd
	// straightCorners_ =ob.straightCorners_;
Toshihiro Shimizu 890ddd
	return *this;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
//  End Of File
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------