Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "ext/StrokeStatus.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tgeometry.h"
Toshihiro Shimizu 890ddd
#include "tvectorimage.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "ext/Types.h"
Toshihiro Shimizu 890ddd
#include "ext/StrokeParametricDeformer.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <vector></vector>
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace ToonzExt {
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
/**
Toshihiro Shimizu 890ddd
   *@class StrokeStatus
Toshihiro Shimizu 890ddd
   *@brief This class mantains interal data for Dragger manipulator.
Toshihiro Shimizu 890ddd
   */
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
StrokeStatus::StrokeStatus(TStroke *stroke2change, unsigned int n, double w,
Shinya Kitaoka 120a6e
                           double strokeLength)
Shinya Kitaoka 120a6e
    : stroke2change_(stroke2change)
Shinya Kitaoka 120a6e
    , n_(n)
Shinya Kitaoka 120a6e
    , w_(w)
Shinya Kitaoka 120a6e
    , strokeLength_(strokeLength) {}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
StrokeStatus::StrokeStatus() {}
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
StrokeStatus::~StrokeStatus() {}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
TStroke *StrokeStatus::getItself() const { return stroke2change_; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
double StrokeStatus::getW() const { return w_; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
unsigned int StrokeStatus::getId() const { return n_; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
double StrokeStatus::getLength() const { return strokeLength_; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void StrokeStatus::setItself(TStroke *s) { stroke2change_ = s; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void StrokeStatus::setW(double w) { w_ = w; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void StrokeStatus::setId(unsigned int n) { n_ = n; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void StrokeStatus::setLength(double l) { strokeLength_ = l; }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void StrokeStatus::init() {
Shinya Kitaoka 120a6e
  n_             = -1;
Shinya Kitaoka 120a6e
  w_             = -1;
Shinya Kitaoka 120a6e
  stroke2change_ = 0;
Shinya Kitaoka 120a6e
  strokeLength_  = -1;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
}