Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "ext/DraggerStatus.h"
Toshihiro Shimizu 890ddd
#include "ext/StrokeParametricDeformer.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::DraggerStatus::DraggerStatus()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	init();
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
ToonzExt::DraggerStatus::~DraggerStatus()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	delete deformer_;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void ToonzExt::DraggerStatus::init()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	key_event_ = NONE;
Toshihiro Shimizu 890ddd
	dist2_ = -1.0;
Toshihiro Shimizu 890ddd
	n_ = -1;
Toshihiro Shimizu 890ddd
	w_ = -1;
Toshihiro Shimizu 890ddd
	strokeLenght_ = -1;
Toshihiro Shimizu 890ddd
	deformerSensibility_ = -1;
Toshihiro Shimizu 890ddd
	stroke2change_ = 0;
Toshihiro Shimizu 890ddd
	lengthOfAction_ = 50;
Toshihiro Shimizu 890ddd
	deformer_ = 0;
Toshihiro Shimizu 890ddd
	leftActionLenght_ = -1;
Toshihiro Shimizu 890ddd
	rightActionLenght_ = -1;
Toshihiro Shimizu 890ddd
	pixelSize_ = 1.0;
Toshihiro Shimizu 890ddd
	cornerSize_ = 90;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////