| #pragma once |
| |
| #ifndef STROKE_DEFORMATION_H |
| #define STROKE_DEFORMATION_H |
| |
| |
| |
| |
| |
| #include "tcommon.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TNZEXT_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| #include "tgeometry.h" |
| |
| #include "ext/Types.h" |
| #include "ext/ContextStatus.h" |
| |
| #include <vector> |
| |
| |
| |
| class TStroke; |
| |
| #if defined(_WIN32) && (_MSC_VER <= 1200) |
| |
| #pragma warning(push) |
| #pragma warning(disable : 4251) |
| #endif |
| |
| namespace ToonzExt { |
| class Designer; |
| class Potential; |
| class StrokeParametricDeformer; |
| class StrokeDeformationImpl; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| class DVAPI StrokeDeformation { |
| private: |
| StrokeDeformationImpl *deformationImpl_; |
| |
| |
| |
| |
| enum StrokeDeformationState { CREATED, ACTIVE, UPDATING, DEACTIVE, RESETTED }; |
| |
| StrokeDeformationState state_; |
| |
| |
| |
| |
| void recover(); |
| |
| |
| |
| |
| StrokeDeformationImpl *retrieveDeformator(const ContextStatus *status); |
| |
| public: |
| StrokeDeformation(); |
| |
| ~StrokeDeformation(); |
| |
| |
| |
| |
| void activate(const ContextStatus *); |
| |
| |
| |
| |
| void update(const TPointD &delta); |
| |
| |
| |
| |
| |
| TStroke *deactivate(); |
| |
| |
| |
| |
| void reset(); |
| |
| |
| |
| |
| void check(const ContextStatus *); |
| |
| |
| |
| |
| void draw(Designer *); |
| |
| |
| |
| |
| ToonzExt::Interval getExtremes() const; |
| |
| |
| |
| |
| const TStroke *getStroke() const; |
| |
| |
| |
| |
| const TStroke *getCopiedStroke() const; |
| |
| |
| |
| |
| |
| |
| const TStroke *getTransformedStroke() const; |
| |
| |
| |
| |
| |
| const ContextStatus *getStatus() const; |
| |
| |
| |
| |
| int getCursorId() const; |
| |
| #ifdef _DEBUG |
| |
| |
| |
| |
| |
| const Potential *getPotential() const; |
| |
| |
| |
| |
| |
| |
| const StrokeDeformationImpl *getDeformationImpl() const; |
| #endif |
| }; |
| } |
| |
| #if defined(_WIN32) && (_MSC_VER <= 1200) |
| #pragma warning(pop) |
| #endif |
| |
| #endif |
| |
| |
| |