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
Shinya Kitaoka 120a6e
ToonzExt::ContextStatus::ContextStatus() { init(); }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
ToonzExt::ContextStatus::~ContextStatus() {}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void ToonzExt::ContextStatus::init() {
Shinya Kitaoka 120a6e
  key_event_           = NONE;
Shinya Kitaoka 120a6e
  w_                   = -1;
Campbell Barton f49389
  deformerSensitivity_ = -1;
Shinya Kitaoka 120a6e
  stroke2change_       = 0;
Shinya Kitaoka 120a6e
  lengthOfAction_      = 50;
Shinya Kitaoka 120a6e
  deformer_            = 0;
Shinya Kitaoka 120a6e
  pixelSize_           = 1.0;
Shinya Kitaoka 120a6e
  cornerSize_          = 90;
Shinya Kitaoka 120a6e
  isManual_            = false;  // default is automatic
Shinya Kitaoka 120a6e
                                 //  spireCorners_ = 0;
Shinya Kitaoka 120a6e
                                 //  straightCorners_ =0;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
ToonzExt::ContextStatus::ContextStatus(const ContextStatus &ob) { *this = ob; }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
ToonzExt::ContextStatus &ToonzExt::ContextStatus::operator=(
Shinya Kitaoka 120a6e
    const ContextStatus &ob) {
Shinya Kitaoka 120a6e
  w_                   = ob.w_;
Shinya Kitaoka 120a6e
  isManual_            = ob.isManual_;
Shinya Kitaoka 120a6e
  deformer_            = ob.deformer_;
Shinya Kitaoka 120a6e
  key_event_           = ob.key_event_;
Shinya Kitaoka 120a6e
  pixelSize_           = ob.pixelSize_;
Shinya Kitaoka 120a6e
  cornerSize_          = ob.cornerSize_;
Shinya Kitaoka 120a6e
  stroke2change_       = ob.stroke2change_;
Shinya Kitaoka 120a6e
  lengthOfAction_      = ob.lengthOfAction_;
Campbell Barton f49389
  deformerSensitivity_ = ob.deformerSensitivity_;
Shinya Kitaoka 120a6e
  // spireCorners_ = ob.spireCorners_;
Shinya Kitaoka 120a6e
  // straightCorners_ =ob.straightCorners_;
Shinya Kitaoka 120a6e
  return *this;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
//  End Of File
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------