Lines Matching defs:intersections
530 static void calculate_intersections(SPDesktop * /*desktop*/, SPItem* item, Geom::PathVector const &lineseg, SPCurve *curve, std::vector<double> &intersections)
533 // Find all intersections of the control-line with this shape
548 intersections.push_back((*m).ta);
551 intersections.push_back((*m).ta);
1222 std::vector<Geom::Point> intersections;
1225 intersections.push_back(lineseg[0].pointAt(*iter_t));
1231 intersections.clear();
1232 intersections.push_back(start);
1233 intersections.push_back(end);
1236 intersections.insert(intersections.begin(),lineseg[0].pointAt(0));
1237 intersections.push_back(lineseg[0].pointAt(1));
1240 for (size_t idx = 1; idx < intersections.size(); ++idx) {
1242 placement.lengthVal = (intersections[idx] - intersections[idx - 1]).length();
1245 placement.start = desktop->doc2dt( (intersections[idx - 1] + intersections[idx]) / 2 );
1272 if (intersections.size() > 2) {
1273 double totallengthval = (intersections[intersections.size()-1] - intersections[0]).length();
1275 Geom::Point origin = desktop->doc2dt((intersections[0] + intersections[intersections.size()-1])/2) + normal * dimension_offset;
1285 for (size_t idx = 0; idx < intersections.size(); ++idx) {
1286 setMeasureCanvasItem(desktop->doc2dt(intersections[idx]), to_item, to_phantom, measure_repr);
1295 setGuide(desktop->doc2dt(intersections[idx]), angle + Geom::rad_from_deg(90), "");
1297 setGuide(desktop->doc2dt(intersections[idx]), angle + Geom::rad_from_deg(90), cross_number);
1319 if (intersections.size() > 2) {
1320 setMeasureCanvasControlLine(desktop->doc2dt(intersections[0]) + normal * dimension_offset, desktop->doc2dt(intersections[intersections.size() - 1]) + normal * dimension_offset, to_item, to_phantom, CTLINE_PRIMARY , measure_repr);
1322 setMeasureCanvasControlLine(desktop->doc2dt(intersections[0]), desktop->doc2dt(intersections[0]) + normal * dimension_offset, to_item, to_phantom, CTLINE_PRIMARY , measure_repr);
1324 setMeasureCanvasControlLine(desktop->doc2dt(intersections[intersections.size() - 1]), desktop->doc2dt(intersections[intersections.size() - 1]) + normal * dimension_offset, to_item, to_phantom, CTLINE_PRIMARY , measure_repr);
1334 for (size_t idx = 1; idx < intersections.size(); ++idx) {
1335 Geom::Point measure_text_pos = (intersections[idx - 1] + intersections[idx]) / 2;