| |
| |
| #include "ext/SelfLoopDeformation.h" |
| #include "DeformationSelector.h" |
| #include <tstroke.h> |
| |
| using namespace ToonzExt; |
| |
| |
| |
| SelfLoopDeformation::SelfLoopDeformation() |
| { |
| } |
| |
| |
| |
| SelfLoopDeformation::~SelfLoopDeformation() |
| { |
| } |
| |
| |
| |
| void SelfLoopDeformation::activate_impl(Context *, |
| DraggerStatus *) |
| { |
| assert(!"SelfLoopDeformation::activate not yet implemented!"); |
| } |
| |
| |
| |
| bool SelfLoopDeformation::check(Context *dragger, |
| DraggerStatus *status) |
| { |
| assert(status && dragger && "Not dragger or status available"); |
| assert(!"SelfLoopDeformation::check not yet implemented!"); |
| |
| |
| |
| TStroke *s = stroke2move_; |
| |
| |
| if (s->isSelfLoop()) { |
| |
| |
| |
| return true; |
| } |
| return false; |
| } |
| |
| |
| |
| void SelfLoopDeformation::update_impl(Context *, |
| const TPointD &delta) |
| { |
| } |
| |
| |
| |
| void SelfLoopDeformation::deactivate_impl(Context *) |
| { |
| } |
| |
| |
| |
| void SelfLoopDeformation::draw(Designer *dr) |
| { |
| } |
| |
| |
| |
| SelfLoopDeformation * |
| SelfLoopDeformation::instance() |
| { |
| static SelfLoopDeformation singleton; |
| return &singleton; |
| } |
| |