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

/inkscape/src/libvpsc/
H A Dremove_rectangle_overlap.cpp33 void removeRectangleOverlap(unsigned n, Rectangle *rs[], double xBorder, double yBorder) { argument
44 unsigned m=generateXConstraints(n,rs,vs,cs,true);
56 rs[i]->moveCentreX(vs[i]->position());
65 m=generateYConstraints(n,rs,vs,cs);
74 rs[i]->moveCentreY(vs[i]->position());
75 rs[i]->moveCentreX(oldX[i]);
83 m=generateXConstraints(n,rs,vs,cs,false);
96 rs[i]->moveCentreX(vs[i]->position());
103 std::cerr << *rs[i]<<std::endl;
H A Dgenerate-constraints.cpp173 int generateXConstraints(const int n, Rectangle** rs, Variable** vars, Constraint** &cs, const bool useNeighbourLists) { argument
177 vars[i]->desiredPosition=rs[i]->getCentreX();
178 Node *v = new Node(vars[i],rs[i],rs[i]->getCentreX());
179 events[ctr++]=new Event(Open,v,rs[i]->getMinY());
180 events[ctr++]=new Event(Close,v,rs[i]->getMaxY());
257 int generateYConstraints(const int n, Rectangle** rs, Variable** vars, Constraint** &cs) { argument
261 vars[i]->desiredPosition=rs[i]->getCentreY();
262 Node *v = new Node(vars[i],rs[i],rs[
[all...]
/inkscape/src/
H A Dremoveoverlap.cpp43 std::vector<Rectangle *> rs; local
69 rs.push_back(vspc_rect);
72 if (!rs.empty()) {
73 removeRectangleOverlap(rs.size(), &rs[0], 0.0, 0.0);
H A Dprint.cpp65 guchar *px, unsigned int w, unsigned int h, unsigned int rs,
68 return ctx->module->image(px, w, h, rs, transform, style);
64 sp_print_image_R8G8B8A8_N(SPPrintContext *ctx, guchar *px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &transform, SPStyle const *style) argument
H A Dgraphlayout.cpp58 selected,vector<Rectangle*>& rs,map<string,unsigned>& nodelookup) :
59 TestConvergence(d,i), selected(selected), rs(rs), nodelookup(nodelookup) {}
64 cout << "x[0]="<<rs[0]->getMinX()<<endl;
71 Rectangle* r=rs[nodelookup[u->id]];
82 vector<Rectangle*>& rs; member in struct:CheckProgress
123 vector<Rectangle*> rs; local
134 nodelookup[u->getId()]=rs.size();
135 rs.push_back(new Rectangle(ll[0]-spacing,ur[0]+spacing,
210 connectedComponents(rs,e
57 CheckProgress(double d,unsigned i,list<SPItem *>& selected,vector<Rectangle*>& rs,map<string,unsigned>& nodelookup) argument
[all...]
H A Dsp-image.cpp494 int rs = pb->rowstride(); local
503 sp_print_image_R8G8B8A8_N(ctx, px, w, h, rs, t, this->style);
/inkscape/src/2geom/
H A Dcrossing.cpp118 std::vector<Rect> rs; local
122 rs.push_back(*bb);
125 return rs;
H A Dsweep-bounds.cpp28 * \param rs: vector of Rect.
31 * [(A = rs[i], B = rs[j]) for i,J in enumerate(pairs) for j in J]
35 std::vector<std::vector<unsigned> > sweep_bounds(std::vector<Rect> rs, Dim2 d) { argument
36 std::vector<Event> events; events.reserve(rs.size()*2);
37 std::vector<std::vector<unsigned> > pairs(rs.size());
39 for(unsigned i = 0; i < rs.size(); i++) {
40 events.push_back(Event(rs[i][d].min(), i, false));
41 events.push_back(Event(rs[i][d].max(), i, true));
55 if(rs[j
[all...]
H A Dcrossing.h132 std::vector<Rect> rs; local
136 rs.push_back(*bb);
139 return rs;
H A Dtoposweep.h158 SectionSorter(const PathVector &rs, Dim2 d, double t = 0.00001) : ps(rs), dim(d), tol(t) {} argument
H A Dpath-intersection.cpp39 std::vector<double> rs = p[i].roots(y, Y);
40 for(unsigned j = 0; j < rs.size(); j++) {
41 double nx = p[i].valueAt(rs[j], X);
390 std::vector<double> rs = deriv->roots(0, X); local
391 append(rs, deriv->roots(0, Y));
393 std::sort(rs.begin(), rs.end());
394 return rs;
516 std::vector<Rect> rs;
517 for(unsigned i = 0; i < prs.size(); i++) rs
[all...]
H A Dtoposweep.cpp270 EdgeSorter(const PathVector &rs, Dim2 d, double t) : s(rs, d, t) {} argument
/inkscape/src/extension/
H A Dprint.cpp93 Print::image (unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, argument
96 return imp->image (this, px, w, h, rs, transform, style);
/inkscape/src/libcola/
H A Dconnected_components.cpp64 const vector<Rectangle*> &rs,
69 unsigned n=rs.size();
75 vs[i].r=rs[i];
63 connectedComponents( const vector<Rectangle*> &rs, const vector<Edge> &es, const SimpleConstraints &scx, const SimpleConstraints &scy, vector<Component*> &components) argument
H A Dcola.cpp21 std::vector<Rectangle*>& rs,
28 n(rs.size()),
41 assert(rs.size()==n);
42 boundingBoxes = new Rectangle*[rs.size()];
43 copy(rs.begin(),rs.end(),boundingBoxes);
56 X[i]=rs[i]->getCentreX();
57 Y[i]=rs[i]->getCentreY();
172 X[i]=rs[i]->getCentreX();
173 Y[i]=rs[
20 ConstrainedMajorizationLayout( std::vector<Rectangle*>& rs, std::vector<Edge>& es, double* eweights, double idealLength, TestConvergence& done) argument
[all...]
H A Dgradient_projection.h205 vpsc::Rectangle** rs=NULL,
208 : k(k), n(n), A(A), place(x), rs(rs),
270 vpsc::Rectangle** rs; member in class:GradientProjection
196 GradientProjection( const Dim k, unsigned n, double** A, double* x, double tol, unsigned max_iterations, AlignmentConstraints* acs=NULL, bool nonOverlapConstraints=false, vpsc::Rectangle** rs=NULL, PageBoundaryConstraints *pbc = NULL, SimpleConstraints *sc = NULL) argument
/inkscape/src/display/
H A Dsodipodi-ctrl.cpp434 unsigned int rs; local
436 rs = gdk_pixbuf_get_rowstride (ctrl->pixbuf);
440 s = px + y * rs;
H A Dcairo-utils.cpp1154 int rs = cairo_image_surface_get_stride(s); local
1156 convert_pixels_argb32_to_pixbuf(pixels, w, h, rs);
1160 w, h, rs, ink_cairo_pixbuf_cleanup, s);
/inkscape/src/trace/
H A Dquantize.cpp35 unsigned long rs, gs, bs; // sum of pixels colors this node accounts for member in struct:Ocnode_def
50 colors_sum(stored in rs,gs,bs)/weight
203 ((node->rs / node->weight) << 16) +
233 node->rs = rgb.r; node->gs = rgb.g; node->bs = rgb.b;
266 node1->rs += node2->rs; node1->gs += node2->gs; node1->bs += node2->bs;
279 node2->rs += node1->rs; node2->gs += node1->gs; node2->bs += node1->bs;
292 newnode->rs = node1->rs
[all...]
/inkscape/src/extension/internal/
H A Dwmf-print.cpp1104 unsigned int rs, /** row stride (normally w*4) */
1155 h * rs, //! size in bytes of px
1099 image( Inkscape::Extension::Print * , unsigned char *rgba_px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &tf_rect, SPStyle const * ) argument
H A Demf-print.cpp1711 unsigned int rs, /** row stride (normally w*4) */
1783 h * rs, //! size in bytes of px
1706 image( Inkscape::Extension::Print * , unsigned char *rgba_px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &tf_rect, SPStyle const *style) argument
/inkscape/src/ui/tool/
H A Dpath-manipulator.cpp341 std::vector<double> rs = deriv1d.roots(); local
342 for (std::vector<double>::iterator it = rs.begin(); it != rs.end(); ++it) {

Completed in 69 milliseconds