Searched refs:weight (Results 1 - 25 of 36) sorted by relevance

12

/inkscape/src/libvpsc/
H A Dvariable.h26 const double weight; member in class:vpsc::Variable
33 inline Variable(const int id, const double desiredPos, const double weight) argument
36 , weight(weight)
H A Dblock.cpp26 weight+=v->weight;
27 wposn += v->weight * (v->desiredPosition - v->offset);
28 posn=wposn/weight;
32 posn=weight=wposn=0;
46 wp += ((*v)->desiredPosition - (*v)->offset) * (*v)->weight;
101 wposn+=b->wposn-dist*b->weight;
102 weight+=b->weight;
103 posn=wposn/weight;
[all...]
H A Dblock.h35 double weight; member in class:vpsc::Block
H A Dblocks.cpp159 r->wposn = r->posn * r->weight;
164 r->posn = r->wposn / r->weight;
H A Dsolve_VPSC.cpp203 b->posn = b->wposn / b->weight;
230 l->wposn = l->posn * l->weight;
231 r->wposn = r->posn * r->weight;
/inkscape/share/extensions/Barcode/
H A DCode93.py83 weight = len(text) % mod
86 check = check + (MAP[char] * weight)
87 # Reset the weight is required
88 weight = weight - 1
89 if weight == 0:
90 weight = mod
H A DBaseEan.py136 weight = [3, 1] * len(number)
142 result += int(number[i]) * weight[i]
/inkscape/src/
H A Dcolor-rgba.h128 * value are multiplied by 1.0 - weight and the second object by weight.
132 * @param weight How much of each should be used. Zero is all
136 ColorRGBA average (const ColorRGBA &second, const float weight = 0.5) const {
140 returnval[i] = _c[i] * (1.0 - weight) + second[i] * weight;
H A Dsp-font-face.cpp271 std::vector<FontFaceWeightType> weight; local
272 weight.push_back(SP_FONTFACE_WEIGHT_ALL);
273 this->font_weight = weight;
323 this->readAttr( "font-weight" );
381 std::vector<FontFaceWeightType> weight; local
426 weight = sp_read_fontFaceWeightType(value);
428 if (this->font_weight.size() != weight.size()){
429 this->font_weight = weight;
432 for (unsigned int i=0;i<weight.size();i++){
433 if (weight[
[all...]
/inkscape/src/ui/tool/
H A Dcurve-drag-point.cpp93 // "weight" describes how the influence of the drag should be distributed
95 double weight, t = _t; local
96 if (t <= 1.0 / 6.0) weight = 0;
97 else if (t <= 0.5) weight = (pow((6 * t - 1) / 2.0, 3)) / 2;
98 else if (t <= 5.0 / 6.0) weight = (1 - pow((6 * (1-t) - 1) / 2.0, 3)) / 2 + 0.5;
99 else weight = 1;
102 Geom::Point offset0 = ((1-weight)/(3*t*(1-t)*(1-t))) * delta;
103 Geom::Point offset1 = (weight/(3*t*t*(1-t))) * delta;
109 }else if(weight>=0.8){
115 }else if(weight<
[all...]
/inkscape/src/trace/
H A Dquantize.cpp34 unsigned long weight; // number of pixels this node accounts for member in struct:Ocnode_def
50 colors_sum(stored in rs,gs,bs)/weight
86 leaves with minimal impact i.e. [ weight * 2^(2*parentwidth) ] value :
115 averages, computed from weight and color components sums.
199 printf("width:%d weight:%lu rgb:%6x nleaf:%d mi:%lu\n",
201 node->weight,
203 ((node->rs / node->weight) << 16) +
204 ((node->gs / node->weight) << 8) +
205 (node->bs / node->weight)),
234 node->weight
[all...]
H A Dfilterset.cpp71 int weight = gaussMatrix[gaussIndex++]; local
72 sum += me->getPixel(me, j, i) * weight;
123 int weight = gaussMatrix[gaussIndex++]; local
125 sumR += weight * (int)rgb.r;
126 sumG += weight * (int)rgb.g;
127 sumB += weight * (int)rgb.b;
/inkscape/src/live_effects/
H A Dlpe-bspline.h44 ScalarParam weight; member in class:Inkscape::LivePathEffect::LPEBSpline
H A Dlpe-bspline.cpp32 apply_no_weight(_("Apply changes if weight = 0%"), _("Apply changes if weight = 0%"), "apply_no_weight", &wr, this, true),
33 apply_with_weight(_("Apply changes if weight > 0%"), _("Apply changes if weight > 0%"), "apply_with_weight", &wr, this, true),
35 weight(_("Change weight %:"), _("Change weight percent of the effect"), "weight", &wr, this, DEFAULT_START_POWER * 100)
37 registerParameter(&weight);
44 weight
[all...]
/inkscape/src/libcola/
H A Dgradient_projection.h48 : leftMargin(lm), rightMargin(rm), weight(w) { }
52 vs.push_back(vl=new vpsc::Variable(vs.size(), leftMargin, weight));
53 vs.push_back(vr=new vpsc::Variable(vs.size(), rightMargin, weight));
66 double weight; member in class:PageBoundaryConstraints
118 double weight=1; local
119 left = new vpsc::Variable(vars.size(),place_l,weight);
121 right = new vpsc::Variable(vars.size(),place_r,weight);
H A Dstraightener.h98 double weight; member in class:straightener::Node
104 edge(NULL),dummy(false),weight(-0.1),open(false) { }
113 edge(e),dummy(true),weight(-0.1) {
H A Dcola.cpp263 double weight=-0.01; local
266 linearConstraints.push_back(new cola::LinearConstraint(u,v,b,weight,wub,wbv,X,Y));
/inkscape/src/libavoid/
H A Dvpsc.h77 //double weight;
136 double weight; // how much the variable wants to member in class:Avoid::Variable
147 const double weight=1.0, const double scale=1.0)
150 , weight(weight)
159 return 2. * weight * ( position() - desiredPosition );
146 Variable(const int id, const double desiredPos=-1.0, const double weight=1.0, const double scale=1.0) argument
/inkscape/doc/
H A Dkeys.css41 font-weight: bold;
62 font-weight: bold;
68 font-weight: bold;
156 font-weight: bold;
/inkscape/src/livarot/
H A DShapeSweep.cpp115 eData[i].weight = 1;
135 eData[i].weight = 1;
140 eData[i].weight = 1;
144 eData[i].weight = 0;
681 eData[i].weight = 1;
686 eData[i].weight = 1;
690 eData[i].weight = 0;
702 eData[i].weight = 1;
707 eData[i].weight = 1;
711 eData[i].weight
[all...]
/inkscape/src/extension/internal/
H A Dtext_reassemble.h135 uint32_t weight; /**< integer weight for alt fonts, kept sorted into descending order */ member in struct:__anon66
189 int weight; /**< weight, as in FontConfig */ member in struct:__anon70
325 int TR_weight_FC_to_SVG(int weight);
H A Dtext_reassemble.c226 sprintf(newfs,"%s:slant=%d:weight=%d:size=%f:width=%d",fontname,tsp->italics,tsp->weight,tsp->fs,(tsp->co ? 75 : tsp->condensed));
524 This lets the value of "src - lines" determine the weight to give to each new vadvance value
537 double weight; local
558 weight = (1.0 / (double) (src - lines));
559 tpi->chunks[trec].vadvance = tpi->chunks[trec].vadvance*(1.0-weight) + newV*weight;
838 printf(" alts: %6d fi_idx: %6d wgt: %6d\n",j,fsp->alts[j].fi_idx,fsp->alts[j].weight);
879 alt.weight = 1; /* new ones start with this weight, i
1880 TR_weight_FC_to_SVG(int weight) argument
[all...]
H A Dwmf-inout.cpp1558 tsp.weight = 80;
2585 case SP_CSS_FONT_WEIGHT_100: tsp.weight = FC_WEIGHT_THIN ; break;
2586 case SP_CSS_FONT_WEIGHT_200: tsp.weight = FC_WEIGHT_EXTRALIGHT ; break;
2587 case SP_CSS_FONT_WEIGHT_300: tsp.weight = FC_WEIGHT_LIGHT ; break;
2588 case SP_CSS_FONT_WEIGHT_400: tsp.weight = FC_WEIGHT_NORMAL ; break;
2589 case SP_CSS_FONT_WEIGHT_500: tsp.weight = FC_WEIGHT_MEDIUM ; break;
2590 case SP_CSS_FONT_WEIGHT_600: tsp.weight = FC_WEIGHT_SEMIBOLD ; break;
2591 case SP_CSS_FONT_WEIGHT_700: tsp.weight = FC_WEIGHT_BOLD ; break;
2592 case SP_CSS_FONT_WEIGHT_800: tsp.weight = FC_WEIGHT_EXTRABOLD ; break;
2593 case SP_CSS_FONT_WEIGHT_900: tsp.weight
[all...]
/inkscape/src/libnrtype/
H A DFontFactory.h131 int weight=PANGO_WEIGHT_NORMAL, int stretch=PANGO_STRETCH_NORMAL,
147 // between faces anymore than raw CSS values (with the exception of two additional weight
H A Dfont-lister.cpp357 // 'Delicious, 500' with a style of 'Medium Italic'. We chop of any weight numbers
359 Glib::RefPtr<Glib::Regex> weight = Glib::Regex::create(",[1-9]00$"); local
360 Family = weight->replace(Family, 0, "", Glib::REGEX_MATCH_PARTIAL);
638 PangoWeight weight = pango_font_description_get_weight(desc); local
639 switch (weight) {
641 sp_repr_css_set_property(css, "font-weight", "100");
644 sp_repr_css_set_property(css, "font-weight", "200");
647 sp_repr_css_set_property(css, "font-weight", "300");
651 sp_repr_css_set_property(css, "font-weight", "350");
655 sp_repr_css_set_property(css, "font-weight", "38
[all...]

Completed in 435 milliseconds

12