Searched defs:cp (Results 1 - 22 of 22) sorted by relevance

/inkscape/src/2geom/
H A Dbezier-utils.h71 int cp = 0; local
80 pc[3 - j] += c[cp]*(*b);
81 cp++;
H A Dline.cpp258 Coord cp = cross(v1, v2); local
259 if (cp == 0) return result;
262 Coord t1 = cross(odiff, v2) / cp;
263 Coord t2 = cross(odiff, v1) / cp;
319 Coord cp = cross(v1, v2); local
320 if (cp == 0) return OptCrossing();
325 c.ta = cross(odiff, v2) / cp;
326 c.tb = cross(odiff, v1) / cp;
H A Dbezier-clipping.cpp67 void print(std::vector<Point> const& cp, const char* msg = "") argument
70 for (size_t i = 0; i < cp.size(); ++i)
71 std::cerr << i << " : " << cp[i] << std::endl;
/inkscape/src/
H A Dsp-linear-gradient.cpp93 cairo_pattern_t *cp = cairo_pattern_create_linear( local
97 sp_gradient_pattern_common_setup(cp, this, bbox, opacity);
99 return cp;
H A Dsp-solid-color.cpp71 cairo_pattern_t *cp = cairo_pattern_create_rgba ( c->value.color.v.c[0], c->value.color.v.c[1], c->value.color.v.c[2], SP_SCALE24_TO_FLOAT(this->style->solid_opacity.value) * opacity ); local
73 return cp;
H A Dsp-radial-gradient.cpp199 cairo_pattern_t *cp = cairo_pattern_create_radial( local
203 sp_gradient_pattern_common_setup(cp, this, bbox, opacity);
205 return cp;
H A Dsp-mesh.cpp141 cairo_pattern_t *cp = NULL; local
158 cp = cairo_pattern_create_mesh();
165 cairo_mesh_pattern_begin_patch( cp );
166 cairo_mesh_pattern_move_to( cp, patch.getPoint( 0, 0 )[X], patch.getPoint( 0, 0 )[Y] );
184 cairo_mesh_pattern_line_to( cp,
192 cairo_mesh_pattern_curve_to( cp,
206 cairo_mesh_pattern_set_control_point( cp, k, t[X], t[Y] );
216 cp, k,
223 cairo_mesh_pattern_end_patch( cp );
233 ink_cairo_pattern_set_matrix(cp, gs2use
[all...]
H A Dsp-gradient.cpp1098 sp_gradient_pattern_common_setup(cairo_pattern_t *cp, argument
1106 cairo_pattern_set_extend(cp, CAIRO_EXTEND_REFLECT);
1109 cairo_pattern_set_extend(cp, CAIRO_EXTEND_REPEAT);
1113 cairo_pattern_set_extend(cp, CAIRO_EXTEND_PAD);
1122 cairo_pattern_add_color_stop_rgba(cp, i->offset,
1132 ink_cairo_pattern_set_matrix(cp, gs2user.inverse());
H A Dsp-pattern.cpp677 cairo_pattern_t *cp = cairo_pattern_create_for_surface(pattern_surface.raw()); local
679 ink_cairo_pattern_set_matrix(cp, ps2user.inverse() * pattern_surface.drawingTransform());
681 cairo_pattern_set_extend(cp, CAIRO_EXTEND_REPEAT);
683 return cp;
H A Dsp-item.cpp1108 SPClipPath *cp = clip_ref->getObject(); local
1116 Inkscape::DrawingItem *ac = cp->show(drawing, clip_key);
1120 cp->setBBox(clip_key, item_bbox);
1121 cp->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
/inkscape/src/display/
H A Ddrawing-pattern.cpp135 cairo_pattern_t *cp = cairo_pattern_create_for_surface(pattern_surface.raw()); local
138 ink_cairo_pattern_set_matrix(cp, _pattern_to_user->inverse() * pattern_surface.drawingTransform());
140 ink_cairo_pattern_set_matrix(cp, pattern_surface.drawingTransform());
144 cairo_pattern_set_extend(cp, CAIRO_EXTEND_NONE);
146 cairo_pattern_set_extend(cp, CAIRO_EXTEND_REPEAT);
149 return cp;
H A Dnr-filter-gaussian.cpp565 cairo_surface_t *cp = ink_cairo_surface_copy(in); local
566 slot.set(_output, cp);
567 cairo_surface_destroy(cp);
H A Dcairo-utils.cpp793 ink_cairo_pattern_set_matrix(cairo_pattern_t *cp, Geom::Affine const &m) argument
797 cairo_pattern_set_matrix(cp, &cm);
/inkscape/src/livarot/
H A DPath.cpp624 int cp = piece - 1; local
625 while ( cp >= 0 && (descr_cmd[cp]->getType()) != descr_moveto ) {
626 cp--;
628 if ( cp >= 0 ) {
629 PathDescrMoveTo *nData = dynamic_cast<PathDescrMoveTo *>(descr_cmd[cp]);
H A DPathCutting.cpp1134 int cp=poss[curP].piece; local
1135 if ( cp < 0 || cp >= int(descr_cmd.size()) ) break;
1140 int const typ = descr_cmd[cp]->getType();
1148 startP=PrevPoint(cp-1);
1153 PathDescrCubicTo *oData = dynamic_cast<PathDescrCubicTo *>(descr_cmd[cp]);
1162 InsertCubicTo(endP,(1-ct)*theT,(1-ct)*enD,cp+1);
1163 InsertForcePoint(cp+1);
1165 PathDescrCubicTo *nData = dynamic_cast<PathDescrCubicTo *>(descr_cmd[cp]);
1172 if ( poss[j].piece == cp ) {
[all...]
H A DShapeSweep.cpp1477 int cp = swsData[i].firstLinkedPoint; local
1478 while (cp >= 0) {
1479 pData[cp].askForWindingB = nEd;
1480 cp = pData[cp].nextLinkedPoint;
1579 int cp = swsData[numberOfEdges()-1].firstLinkedPoint; local
1580 while (cp >= 0) {
1581 pData[cp].askForWindingB = i;
1582 cp = pData[cp]
2220 int cp = swsData[cc].firstLinkedPoint; local
2239 int cp = swsData[numberOfEdges() - 1].firstLinkedPoint; local
2290 int cp = swsData[cc].firstLinkedPoint; local
2309 int cp = swsData[numberOfEdges() - 1].firstLinkedPoint; local
3306 int cp = iS->swsData[iB].firstLinkedPoint; local
[all...]
/inkscape/src/extension/internal/
H A Dcairo-renderer.cpp719 CairoRenderer::applyClipPath(CairoRenderContext *ctx, SPClipPath const *cp) argument
723 if (cp == NULL)
731 if (cp->clipPathUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && cp->display->bbox) {
732 //SP_PRINT_DRECT("clipd", cp->display->bbox);
733 Geom::Rect clip_bbox = *cp->display->bbox;
743 SPObject const *co = cp;
767 if (cp->clipPathUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX)
/inkscape/src/live_effects/
H A Dlpe-knot.cpp196 CrossingPoint cp; local
197 cp.pt = paths[i][ii].pointAt(times[k].first);
198 cp.sign = 1;
199 cp.i = i;
200 cp.j = j;
201 cp.ni = 0; cp.nj=0;//not set yet
202 cp.ti = times[k].first + ii;
203 cp.tj = times[k].second + jj;
204 push_back(cp);
217 CrossingPoint cp = (*this)[k]; local
238 CrossingPoint cp; local
259 CrossingPoint cp = (*this)[n]; local
[all...]
/inkscape/src/live_effects/parameter/
H A Dfilletchamferpointarray.cpp430 Point cp =p0(cs[0].ta); local
431 double p0pt = nearest_time(cp, B);
/inkscape/src/widgets/
H A Dgradient-vector.cpp1377 Inkscape::UI::Widget::ColorPreview *cp = Gtk::manage(new Inkscape::UI::Widget::ColorPreview(stop->get_rgba32())); local
1378 GdkPixbuf *pb = cp->toPixbuf(64, 16);
/inkscape/src/libavoid/
H A Dorthogonal.cpp1243 Point& cp = centreVert->point; local
1253 line1 = segments.insert(LineSegment(minLimit, cp.x, e->pos,
1258 line2 = segments.insert(LineSegment(cp.x, maxLimit, e->pos,
1264 segments.insert(LineSegment(cp.x, e->pos, centreVert));
1274 VertInf *cent = new VertInf(router, dummyOrthogID, cp);
1394 Point& cp = centreVert->point; local
1403 segments.insert(LineSegment(minLimit, cp.y, e->pos));
1407 segments.insert(LineSegment(cp.y, maxLimit, e->pos));
/inkscape/src/ui/tools/
H A Dflood-tool.cpp915 Geom::Point cp = fill_queue.front(); local
934 unsigned int sort_y = (unsigned int)cp[Geom::Y];
953 cp = fill_queue.front();
962 int x = (int)cp[Geom::X];
963 int y = (int)cp[Geom::Y];

Completed in 2642 milliseconds