Searched defs:weight (Results 1 - 20 of 20) sorted by relevance

/inkscape/src/live_effects/
H A Dlpe-bspline.h44 ScalarParam weight; member in class:Inkscape::LivePathEffect::LPEBSpline
/inkscape/src/libvpsc/
H A Dblock.h35 double weight; member in class:vpsc::Block
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)
/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...]
H A Dnode.cpp897 double weight = NO_POWER; local
899 weight = DEFAULT_START_POWER;
901 _front.setPosition(_pm()._bsplineHandleReposition(this->front(), weight));
902 _back.setPosition(_pm()._bsplineHandleReposition(this->back(), weight));
/inkscape/src/trace/
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;
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...]
/inkscape/src/
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/libcola/
H A Dcola.cpp263 double weight=-0.01; local
266 linearConstraints.push_back(new cola::LinearConstraint(u,v,b,weight,wub,wbv,X,Y));
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 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);
/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
H A Dorthogonal.cpp2199 double weight = freeWeight; local
2213 weight = fixedWeight;
2218 // Set a higher weight for c-bends to stop them sometimes
2221 weight = strongWeight;
2223 currSegment->variable = new Variable(varID, idealPos, weight);
/inkscape/src/libnrtype/
H A DFontFactory.cpp349 // Note: The ultimate solution to handling various weight in the same
357 // Use Fontforge: Element->Font Info...->OS/2->Misc->Weight Class to check font weight
760 font_instance *font_factory::Face(char const *family, int variant, int style, int weight, int stretch, int /*size*/, int /*spacing*/) argument
764 pango_font_description_set_weight(temp_descr,(PangoWeight)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...]
/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...]
/inkscape/src/livarot/
H A DShape.h391 int weight; // weight of the edge (to handle multiple edges) member in struct:Shape::edge_data
395 edge_data() : weight(0), length(0.0), sqlength(0.0), ilength(0.0), isqlength(0.0), siEd(0.0), coEd(0.0) {}
/inkscape/src/libuemf/
H A Duemf.c304 \brief Make up an approximate dx array to pass to emrtext_set(), based on character height and weight.
306 Take abs. value of character height, get width by multiplying by 0.6, and correct weight
312 \param weight LF_Weight Enumeration (character weight)
318 uint32_t weight,
324 if(U_FW_DONTCARE == weight)weight=U_FW_NORMAL;
325 width = (uint32_t) U_ROUND(((float) (height > 0 ? height : -height)) * 0.6 * (0.00024*(float) weight + 0.904));
316 dx_set( int32_t height, uint32_t weight, uint32_t members ) argument
H A Duwmf.c1131 \brief Make up an approximate dx array to pass to U_WMREXTTEXTOUT_set(), based on character height and weight.
1133 Take abs. value of character height, get width by multiplying by 0.6, and correct weight
1139 \param weight LF_Weight Enumeration (character weight)
1145 uint32_t weight,
1152 if(U_FW_DONTCARE == weight)weight=U_FW_NORMAL;
1153 width = (uint32_t) U_ROUND(((float) (height > 0 ? height : -height)) * 0.6 * (0.00024*(float) weight + 0.904));
4443 \brief Make up an approximate dx array to pass to U_WMREXTTEXTOUT_get(), based on character height and weight.
4445 Take abs. value of character height, get width by multiplying by 0.6, and correct weight
1143 dx16_set( int32_t height, uint32_t weight, uint32_t members ) argument
4455 dx16_get( int32_t height, uint32_t weight, uint32_t members ) argument
[all...]

Completed in 607 milliseconds