/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/include/toonz/ |
H A D | tdistort.h | 36 virtual TPointD map(const TPointD &p) const = 0; 67 TQuadDistorter(const TPointD &p00s, const TPointD &p10s, const TPointD &p01s, in TQuadDistorter() 68 const TPointD &p11s, const TPointD &p00d, const TPointD &p10d, in TQuadDistorter() 80 void getSourceQuad(TPointD &p00, TPointD &p10, TPointD &p01, in getSourceQuad() 87 void getDestinationQuad(TPointD &p00, TPointD &p10, TPointD &p01, in getDestinationQuad() 124 TPointD map(const TPointD &p) const override; 143 TPointD map(const TPointD &p) const; 157 TPointD map(const TPointD &p) const override; 199 TPointD operator*(const TPointD &p) const; 217 TPointD map(const TPointD &p) const override; [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/tnztools/ |
H A D | selectiontool.h | 37 TPointD m_originalP00; 38 TPointD m_originalP11; 49 virtual void setPoints(const TPointD &p0, const TPointD &p1, 50 const TPointD &p2, const TPointD &p3) = 0; 68 FourPoints(TPointD p00, TPointD p01, TPointD p10, TPointD p11) in FourPoints() 124 TPointD scaleValue = TPointD(1, 1), 157 virtual TPointD transform(int index, TPointD newPos) { return TPointD(); } in transform() 172 TPointD m_curPos; 175 TPointD m_startPos; 280 TPointD getIntersectionPoint(const TPointD &point0, const TPointD &point1, [all …]
|
H A D | fingertool.cpp | 100 void drawLine(const TPointD &point, const TPointD ¢re, bool horizontal, in drawLine() 104 tglDrawSegment(TPointD(point.x - 1.5, point.y + 0.5) + centre, in drawLine() 113 tglDrawSegment(TPointD(point.y - 0.5, point.x + 0.5) + centre, in drawLine() 216 TPointD pos = mousePos; in drawEmptyCircle() 225 drawLine(TPointD(x, y), pos, horizontal, isDecimal); in drawEmptyCircle() 236 drawLine(TPointD(x, y), pos, horizontal, isDecimal); in drawEmptyCircle() 257 TPointD m_mousePos; 269 void pick(const TPointD &pos); 459 TPointD pp(tround(pos.x), tround(pos.y)); in mouseMove() 549 void FingerTool::pick(const TPointD &pos) { in pick() [all …]
|
H A D | paintbrushtool.cpp | 99 void drawLine(const TPointD &point, const TPointD ¢re, bool horizontal, in drawLine() 215 TPointD pos = mousePos; in drawEmptyCircle() 224 drawLine(TPointD(x, y), pos, horizontal, isDecimal); in drawEmptyCircle() 235 drawLine(TPointD(x, y), pos, horizontal, isDecimal); in drawEmptyCircle() 256 TPointD m_mousePos; 292 TPointD getCenteredCursorPos(const TPointD &originalCursorPos); 293 void fixMousePos(TPointD pos, bool precise = false); 359 TPointD PaintBrushTool::getCenteredCursorPos(const TPointD &originalCursorPos) { in getCenteredCursorPos() 368 TPointD centeredCursorPos = originalCursorPos; in getCenteredCursorPos() 378 void PaintBrushTool::fixMousePos(TPointD pos, bool precise) { in fixMousePos() [all …]
|
H A D | skeletonsubtools.h | 42 TPointD m_firstPos; 43 TPointD m_oldCenter; 44 TPointD m_center; 69 TPointD getCenter(); 88 TPointD m_firstPos; 101 TPointD m_lastPos; 102 TPointD m_center; 116 TPointD m_firstWinPos; 118 TPointD m_center; 128 TPointD m_pos; [all …]
|
H A D | selectiontool.cpp | 70 int tminPoint(TPointD p0, TPointD p1, bool isX) { in tminPoint() 135 return TPointD(); in getPoint() 181 m_p00 = TPointD(); in empty() 182 m_p01 = TPointD(); in empty() 183 m_p10 = TPointD(); in empty() 192 TPointD outP = p + maxDistance * TPointD(1, 1); in contains() 209 return TRectD(TPointD(x0, y0), TPointD(x1, y1)); in getBox() 637 TPointD nearP = in computeScaleValue() 689 TPointD nearS = in getScaledPoint() 1099 TPointD delta; in keyDown() [all …]
|
H A D | rgbpickertool.h | 31 TPointD m_firstDrawingPos, m_firstWorkingPos; 32 TPointD m_mousePosition; 36 std::vector<TPointD> m_drawingPolyline; 37 std::vector<TPointD> m_workingPolyline; 40 TPointD m_mousePixelPosition; 67 void leftButtonUp(const TPointD &pos, const TMouseEvent &) override; 71 void mouseMove(const TPointD &pos, const TMouseEvent &e) override; 93 void startFreehand(const TPointD &drawingPos, const TPointD &workingPos); 97 void freehandDrag(const TPointD &drawingPos, const TPointD &workingPos); 104 void addPointPolyline(const TPointD &drawingPos, const TPointD &workingPos); [all …]
|
H A D | edittoolgadgets.cpp | 34 TPointD hadamard(const TPointD &v1, const TPointD &v2) { in hadamard() 113 TPointD m_firstPos; 252 TPointD m_pos; 289 TPointD pos(getPoint()); in draw() 442 TPointD b, c; in draw() 485 TPointD m_pos; 954 TPointD m_pos; 1007 TPointD toolTipPos = m_pos + r * TPointD(cos(phiRad), sin(phiRad)); in draw() 1097 TPointD m_pivot; 1219 auto scaleShape = [&](const TPointD &start, const TPointD &pivot) { in leftButtonDrag() [all …]
|
H A D | viewtools.cpp | 19 TPointD m_center; 39 m_center = TPointD(e.m_pos.x, e.m_pos.y); in leftButtonDown() 63 TPointD center = m_viewer->winToWorld(m_center); in draw() 92 TPointD m_oldPos; 112 TPointD delta = e.m_pos - m_oldPos; in leftButtonDrag() 163 TPointD p = pos; in leftButtonDrag() 165 TPointD d = e.m_pos - m_oldMousePos; in leftButtonDrag() 170 TPointD a = p - m_center; in leftButtonDrag() 171 TPointD b = m_oldPos - m_center; in leftButtonDrag() 191 m_center = TPointD(0, 0); in draw() [all …]
|
H A D | skeletontool.h | 23 TPointD m_pos; 45 TPointD m_lastPos; 46 TPointD m_curPos; 47 TPointD m_firstPos; 48 TPointD m_curCenter; 49 TPointD m_parentProbe; 75 TPointD m_labelPos; 107 void drawJoint(const TPointD &p, bool current); 108 void drawBone(const TPointD &a, const TPointD &b, bool selected); 109 void drawIKBone(const TPointD &a, const TPointD &b); [all …]
|
H A D | plastictool.h | 138 TPointD m_pos; //!< Last known mouse position 139 TPointD m_pressedPos; //!< Last mouse press position 142 std::vector<TPointD> 231 const TPointD &posShift); 272 void moveVertex_mesh(const std::vector<TPointD> &originalVxsPos, 273 const TPointD &posShift); 310 void mouseMove_mesh(const TPointD &pos, const TMouseEvent &me); 316 void mouseMove_build(const TPointD &pos, const TMouseEvent &me); 448 TPointD projection( 487 void drawSquare(const TPointD &pos, [all …]
|
H A D | geometrictool.cpp | 80 static TPointD rectify(const TPointD &oldPos, const TPointD &pos) { in rectify() 82 const TPointD directions[] = {TPointD(1, 0), TPointD(h, h), TPointD(0, 1), in rectify() 83 TPointD(-h, h), TPointD(-1, 0), TPointD(-h, -h), in rectify() 100 static TPointD computeSpeed(TPointD p0, TPointD p1, double factor) { in computeSpeed() 102 return (d == TPointD()) ? TPointD() : d * (factor / norm(d)); in computeSpeed() 556 TPointD calculateSnap(TPointD pos); 558 TPointD getSnap(TPointD pos); 560 TPointD checkGuideSnapping(TPointD pos); 577 TPointD Primitive::calculateSnap(TPointD pos) { in calculateSnap() 615 TPointD Primitive::getSnap(TPointD pos) { in getSnap() [all …]
|
H A D | rasterselectiontool.h | 28 void setPoint(int index, const TPointD &p) override; 30 void setPoints(const TPointD &p0, const TPointD &p1, const TPointD &p2, 31 const TPointD &p3) override; 55 TPointD m_oldCenter, m_newCenter; 81 TPointD m_oldCenter, m_newCenter; 132 void leftButtonDrag(const TPointD &pos, const TMouseEvent &e) override; 172 TPointD transform(int index, TPointD newPos) override; 198 void modifySelectionOnClick(TImageP image, const TPointD &pos, 214 void leftButtonDown(const TPointD &pos, const TMouseEvent &) override; 215 void mouseMove(const TPointD &pos, const TMouseEvent &e) override; [all …]
|
H A D | vectorselectiontool.h | 84 TPointD getPoint(int index) const { return m_newPoints[index]; } in getPoint() 86 void setPoint(int index, const TPointD &p) override; 88 void setPoints(const TPointD &p0, const TPointD &p1, const TPointD &p2, 89 const TPointD &p3) override; 119 TPointD center, DeformValues deformValue) const; 137 TPointD m_oldCenter, m_newCenter; 166 void leftButtonUp(const TPointD &pos, const TMouseEvent &e) override; 228 TPointD transform(int index, 240 TPointD m_curPos, m_firstPos; 329 void updateAction(TPointD pos, const TMouseEvent &e) override; [all …]
|
H A D | hooktool.cpp | 56 TPointD m_hookPos; 74 TPointD m_firstPos, m_lastPos; 83 TPointD m_snappedPos; 89 TPointD m_pivotOffset; 348 TPointD pos = m_snappedPos; in draw() 481 TPointD ppos(pos); in leftButtonDown() 495 m_pivotOffset = TPointD(); in leftButtonDown() 511 TPointD hookPos; in leftButtonDrag() 534 TPointD pos(pp); in leftButtonDrag() 737 m_snappedPos = TPointD(); in mouseMove() [all …]
|
H A D | rastererasertool.cpp | 301 void drawLine(const TPointD &point, const TPointD ¢re, bool horizontal, in drawLine() 417 TPointD pos = mousePos; in drawEmptyCircle() 500 TPointD getCenteredCursorPos(const TPointD &originalCursorPos); 501 TPointD fixMousePos(TPointD pos, bool precise = false); 543 std::vector<TPointD> m_polyline; 653 TPointD EraserTool::getCenteredCursorPos(const TPointD &originalCursorPos) { in getCenteredCursorPos() 672 TPointD EraserTool::fixMousePos(TPointD pos, bool precise) { in fixMousePos() 843 TRectD(TPointD((double)rect.x1, -100000.), TPointD(100000., 100000.)); in multiUpdate() 1034 TPointD fixedPos = fixMousePos(pos); in leftButtonDrag() 1038 TPointD pp(fixedPos.x, fixedPos.y); in leftButtonDrag() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/common/tparam/ |
H A D | tcubicbezier.cpp | 7 DVAPI double invCubicBezierX(double x, const TPointD &a, const TPointD &aSpeed, in invCubicBezierX() 8 const TPointD &bSpeed, const TPointD &b) { in invCubicBezierX() 30 DVAPI double getCubicBezierY(double x, const TPointD &a, const TPointD &aSpeed, in getCubicBezierY() 31 const TPointD &bSpeed, const TPointD &b) { in getCubicBezierY() 49 DVAPI std::pair<TPointD, TPointD> getMinMaxCubicBezierY(const TPointD &a, in getMinMaxCubicBezierY() 79 return std::pair<TPointD, TPointD>(TPointD(a.x, a.y), TPointD(b.x, b.y)); in getMinMaxCubicBezierY() 81 return std::pair<TPointD, TPointD>(TPointD(b.x, b.y), TPointD(a.x, a.y)); in getMinMaxCubicBezierY() 86 return std::pair<TPointD, TPointD>(TPointD(a.x, a.y), in getMinMaxCubicBezierY() 89 return std::pair<TPointD, TPointD>(TPointD(b.x, b.y), in getMinMaxCubicBezierY() 105 return std::pair<TPointD, TPointD>(TPointD(x_0, y_0), in getMinMaxCubicBezierY() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/stdfx/ |
H A D | pins.h | 31 TPointD m_p00; 32 TPointD m_p01; 33 TPointD m_p10; 34 TPointD m_p11; 38 FourPoints(const TPointD &p00, const TPointD &p01, const TPointD &p10, in FourPoints() 39 const TPointD &p11) in FourPoints() 58 void subdivision(const TPointD &p00, const TPointD &p10, const TPointD &p11, 59 const TPointD &p01, const TPointD &tex00, const TPointD &tex10, 60 const TPointD &tex11, const TPointD &tex01, 64 const TRenderSettings &ri, TPointD p00, TPointD p01, [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/include/ |
H A D | tcubicbezier.h | 40 DVAPI double invCubicBezierX(double x, const TPointD &a, const TPointD &aSpeed, 41 const TPointD &bSpeed, const TPointD &b); 56 DVAPI double getCubicBezierY(double x, const TPointD &a, const TPointD &aSpeed, 57 const TPointD &bSpeed, const TPointD &b); 71 DVAPI std::pair<TPointD, TPointD> getMinMaxCubicBezierY(const TPointD &a, 72 const TPointD &aSpeed, 73 const TPointD &bSpeed, 74 const TPointD &b);
|
H A D | tcurves.h | 24 TPointD m_c0, m_c1; 30 TSegment(const TPointD &p0, const TPointD &p1) : m_c0(p0), m_c1(p1 - p0) {} in TSegment() 49 void setP0(const TPointD &p) { in setP0() 91 TPointD m_p0, m_p1, m_p2; 97 TQuadratic(const TPointD &p0, const TPointD &p1, const TPointD &p2) in TQuadratic() 185 TPointD app; in reverse() 226 TCubic(const TPointD &p0, const TPointD &p1, const TPointD &p2, in TCubic() 227 const TPointD &p3) in TCubic() 346 TThickSegment(const TPointD &p0, double thickP0, const TPointD &p1, in TThickSegment() 426 TThickQuadratic(const TPointD &p0, double thickP0, const TPointD &p1, [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/tnzext/ |
H A D | Selector.cpp | 21 void drawArrow(const TPointD &from, const TPointD &direction, double length, in drawArrow() 22 const TPointD &arrowDirection = TPointD(0.0, -1.0), in drawArrow() 82 TPointD Selector::getUp() const { in getUp() 83 if (!strokeRef_) return TPointD(); in getUp() 87 TPointD p = convert(pnt), p1; in getUp() 150 TPointD in draw() 190 TPointD in draw() 198 TPointD in draw() 210 TPointD in draw() 266 TPointD v = curr_ - prev_; in mouseDrag() [all …]
|
H A D | OverallDesigner.cpp | 46 void drawSign(const TPointD &p, const TPointD &v, double size) { in drawSign() 50 TPointD v90 = rotate90(v); in drawSign() 51 TPointD v270 = rotate270(v); in drawSign() 72 TPointD v1 = TPointD(1, 1); in drawCross() 73 TPointD v2 = TPointD(1, -1); in drawCross() 147 const TPointD offset(20, 20); in showCorners() 212 c.setP0(TPointD(0.0, 0.0)); in draw() 231 c.setP0(TPointD(0.0, 0.0)); in draw() 238 c.setP1(TPointD(6.0, 8.0)); in draw() 295 TPointD offset = normalize(TPointD(1.0, 1.0)) * 20.0; in draw() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/toonzlib/ |
H A D | tdistort.cpp | 30 TPointD distance = TPointD( in filterPixel() 372 TPointD shift(convert(p) + TPointD(0.5, 0.5)); in resample() 467 const TPointD &p00s, const TPointD &p10s, const TPointD &p01s, in BilinearDistorterBase() 468 const TPointD &p11s, const TPointD &p00d, const TPointD &p10d, in BilinearDistorterBase() 469 const TPointD &p01d, const TPointD &p11d) in BilinearDistorterBase() 583 TPointD BilinearDistorter::map(const TPointD &p) const { in map() 834 const TPointD &p00s, const TPointD &p10s, const TPointD &p01s, in PerspectiveDistorter() 835 const TPointD &p11s, const TPointD &p00d, const TPointD &p10d, in PerspectiveDistorter() 836 const TPointD &p01d, const TPointD &p11d) in PerspectiveDistorter() 896 const TPointD &p00, const TPointD &p10, const TPointD &p01, in computeSquareToMatrix() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/common/tvrender/ |
H A D | tellipticbrush.cpp | 51 double tellipticbrush::dist(const TPointD &P1, const TPointD &P2) { in dist() 65 double tellipticbrush::angle(const TPointD &v1, const TPointD &v2) { in angle() 80 TPointD tellipticbrush::intersectionCoords(const TPointD &P0, const TPointD &d0, in intersectionCoords() 107 TPointD n(left ? TPointD(-d.y, d.x) : TPointD(d.y, -d.x)); in buildEnvelopeDirection() 115 TPointD &resL, TPointD &resR) { in buildEnvelopeDirections() 121 TPointD n(-d.y, d.x); in buildEnvelopeDirections() 697 TPointD rightD; in addRoundBeginCap() 817 TPointD cornerL(dirP + cornerLCoords.x * TPointD(dir.y, -dir.x)); in addProjectingBeginCap() 818 TPointD cornerR(dirP + cornerRCoords.x * TPointD(-dir.y, dir.x)); in addProjectingBeginCap() 863 TPointD cornerL(dirP + cornerLCoords.x * TPointD(-dir.y, dir.x)); in addProjectingEndCap() [all …]
|
H A D | tellipticbrushP.h | 20 double dist(const TPointD &P1, const TPointD &P2); 22 double angle(const TPointD &v1, const TPointD &v2); 24 TPointD intersectionCoords(const TPointD &P0, const TPointD &d0, 25 const TPointD &P1, const TPointD &d1, 29 bool left, TPointD &res); 31 TPointD &resL, TPointD &resR); 33 TPointD &res); 35 TPointD &resL, TPointD &resR); 202 const TPointD ¢er, const TPointD &ray, 259 const TPointD &oPoint, in addEnvelopePoint() [all …]
|