![]() |
Verovio
Source code documentation
|
Simple class for representing bezier cCurve. More...
#include <devicecontextbase.h>
Public Member Functions | |
| BezierCurve (const Point &p1, const Point &c1, const Point &c2, const Point &p2) | |
| void | Rotate (float angle, const Point &rotationPoint) |
| std::pair< double, double > | EstimateCurveParamForControlPoints () const |
| Estimate the curve parameter corresponding to the control points Based on the polyline P1-C1-C2-P2. | |
Getter/setter for control point offset (as well as method to calculate it from options) | |
| void | SetControlOffset (int offset) |
| void | SetLeftControlOffset (int offset) |
| void | SetRightControlOffset (int offset) |
| int | GetLeftControlOffset () const |
| int | GetRightControlOffset () const |
Getter/setter for the height of control points (left and right) | |
| void | SetControlHeight (int height) |
| void | SetLeftControlHeight (int height) |
| void | SetRightControlHeight (int height) |
| int | GetLeftControlHeight () const |
| int | GetRightControlHeight () const |
Getter/setter for the side of the control points (left and right) | |
| void | SetControlSides (bool leftAbove, bool rightAbove) |
| bool | IsLeftControlAbove () const |
| bool | IsRightControlAbove () const |
Initialize control point height and offset from end point positions | |
| void | CalcInitialControlPointParams () |
| void | CalcInitialControlPointParams (const Doc *doc, float angle, int staffSize) |
| void | UpdateControlPointParams () |
| Calculate control point offset and height from points or vice versa. | |
| void | UpdateControlPoints () |
Public Attributes | |
| Point | p1 |
| Point | c1 |
| Point | c2 |
| Point | p2 |
Simple class for representing bezier cCurve.