| 948 | } |
| 949 | |
| 950 | void Doc_plugin_interface::addSplinePoints(std::vector<QPointF> const& points, bool closed) |
| 951 | { |
| 952 | if (doc) { |
| 953 | LC_SplinePointsData data(closed, false); //cut = false |
| 954 | for(auto const& pt: points){ |
| 955 | data.splinePoints.emplace_back(RS_Vector(pt.x(), pt.y())); |
| 956 | } |
| 957 | |
| 958 | LC_SplinePoints* entity = new LC_SplinePoints(doc, data); |
| 959 | |
| 960 | doc->addEntity(entity); |
| 961 | LC_UndoSection undo(doc); |
| 962 | undo.addUndoable(entity); |
| 963 | } else |
| 964 | RS_DEBUG->print("%s: currentContainer is nullptr", __func__); |
| 965 | } |
| 966 | |
| 967 | void Doc_plugin_interface::addImage(int handle, QPointF *start, QPointF *uvr, QPointF *vvr, |
| 968 | int w, int h, QString name, int br, int con, int fade){ |
no test coverage detected