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
Shinya Kitaoka 120a6e
ToonzExt::DraggerStatus::DraggerStatus() { init(); }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
ToonzExt::DraggerStatus::~DraggerStatus() { delete deformer_; }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void ToonzExt::DraggerStatus::init() {
Shinya Kitaoka 120a6e
  key_event_           = NONE;
Shinya Kitaoka 120a6e
  dist2_               = -1.0;
Shinya Kitaoka 120a6e
  n_                   = -1;
Shinya Kitaoka 120a6e
  w_                   = -1;
MCCCS a0ce32
  strokeLength_        = -1;
Shinya Kitaoka 120a6e
  deformerSensibility_ = -1;
Shinya Kitaoka 120a6e
  stroke2change_       = 0;
Shinya Kitaoka 120a6e
  lengthOfAction_      = 50;
Shinya Kitaoka 120a6e
  deformer_            = 0;
MCCCS a0ce32
  leftActionLength_    = -1;
MCCCS a0ce32
  rightActionLength_   = -1;
Shinya Kitaoka 120a6e
  pixelSize_           = 1.0;
Shinya Kitaoka 120a6e
  cornerSize_          = 90;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
///////////////////////////////////////////////////////////////////////////////