| #pragma once |
| |
| #ifndef TSTROKE_UTIL_H |
| #define TSTROKE_UTIL_H |
| |
| |
| #include "traster.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| |
| #ifdef TVRENDER_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| |
| |
| |
| |
| class TStroke; |
| class TStrokeDeformation; |
| class TVectorRenderData; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI bool increaseControlPoints( |
| TStroke &stroke, |
| const TStrokeDeformation &deformer, |
| double pixelSize = 1.0 |
| ); |
| |
| |
| |
| DVAPI void modifyControlPoints(TStroke &stroke, |
| const TStrokeDeformation &deformer); |
| |
| DVAPI void modifyControlPoints(TStroke &stroke, |
| const TStrokeDeformation &deformer, |
| std::vector<double> &controlPointLen); |
| |
| DVAPI void modifyThickness(TStroke &stroke, const TStrokeDeformation &deformer, |
| std::vector<double> &controlPointLen, |
| bool exponentially = false); |
| |
| |
| |
| |
| |
| |
| DVAPI void transform_thickness( |
| TStroke &stroke, |
| const double poly[], |
| int deg |
| ); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI void polylineToQuadratics( |
| const std::vector<TPointD> |
| &polyline, |
| std::vector<TThickPoint> |
| &cps, |
| double adherenceTol = |
| 1.0, |
| double angleTol = 0.0, |
| double relativeTol = 0.25, |
| double relativeDistTol = 0.25, double mergeTol = 1.0); |
| |
| |
| |
| |
| |
| |
| |
| DVAPI void renderStroke( |
| const TVectorRenderData |
| &rd, |
| const TRaster32P &output, |
| TStroke *stroke |
| ); |
| |
| |
| |
| namespace Toonz { |
| |
| |
| |
| |
| |
| |
| |
| DVAPI TStroke *merge(const std::vector<TStroke *> &strokes); |
| |
| } |
| |
| #endif |