Searched refs:ratio (Results 1 - 23 of 23) sorted by relevance

/inkscape/share/extensions/
H A Dspirograph.py67 ratio = a / self.options.secondaryr
68 if ratio == 0:
70 scale = 2 * math.pi / (ratio * self.options.quality)
87 self.options.penr * math.cos(ratio * theta + rotation) * flip + \
90 self.options.penr * math.sin(ratio * theta + rotation) + \
94 ratio * self.options.penr * math.sin(ratio * theta + rotation) * flip) * scale / 3
96 ratio * self.options.penr * math.cos(ratio * theta + rotation)) * scale / 3
103 if math.fmod(i / ratio, sel
[all...]
H A Dffgeom.py100 ratio = len / self.length()
101 x = self[0]['x'] + (ratio * self.delta_x())
102 y = self[0]['y'] + (ratio * self.delta_y())
104 def pointAtRatio(self, ratio):
106 x = self[0]['x'] + (ratio * self.delta_x())
107 y = self[0]['y'] + (ratio * self.delta_y())
H A Drubberstretch.py28 self.OptionParser.add_option("-r", "--ratio",
30 dest="ratio", default=0.5)
41 a=self.options.ratio/100
H A Drender_barcode_qrcode.py635 ratio = abs(100 * darkCount / moduleCount / moduleCount - 50) / 5
636 lostPoint += ratio * 10
702 ratio = QRMath.glog(self.get(0) ) - QRMath.glog(e.get(0) )
710 num[i] ^= QRMath.gexp(QRMath.glog(e.get(i) ) + ratio)
/inkscape/src/ui/
H A Dpreviewable.h44 virtual Gtk::Widget* getPreview( PreviewStyle style, ViewType view, ::PreviewSize size, guint ratio, guint border) = 0;
H A Dpreviewfillable.h31 virtual void setStyle( ::PreviewSize size, ViewType type, guint ratio, ::BorderStyle border ) = 0;
H A Dpreviewholder.h48 virtual void setStyle( ::PreviewSize size, ViewType view, guint ratio, ::BorderStyle border );
H A Dobject-edit.cpp276 //original ratio
277 gdouble ratio = (w_orig / h_orig); local
287 if (minx != 0 && fabs(miny/minx) > 0.5 * 1/ratio && (SGN(minx) == SGN(miny))) {
288 // closer to the diagonal and in same-sign quarters, change both using ratio
289 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
293 rect->height = MAX(h_orig + minx / ratio, 0);
306 if (miny != 0 && fabs(minx/miny) > 0.5 * ratio && (SGN(minx) == SGN(miny))) {
307 // closer to the diagonal and in same-sign quarters, change both using ratio
308 s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(p_handle, Geom::Point(-ratio, -1)), state);
312 rect->width = MAX(w_orig + miny * ratio,
376 gdouble ratio = (w_orig / h_orig); local
[all...]
H A Dpreviewholder.cpp224 void PreviewHolder::setStyle( ::PreviewSize size, ViewType view, guint ratio, ::BorderStyle border ) argument
226 if ( size != _baseSize || view != _view || ratio != _ratio || border != _border ) {
229 _ratio = ratio;
/inkscape/src/
H A Dcontext-fns.cpp90 /* Control is down: we are constrained to producing integer-ratio rectangles */
95 /* Round it so that we have an integer-ratio (or golden ratio) box */
97 double ratio = delta[Geom::X] / delta[Geom::Y]; local
98 double ratioabs = fabs (ratio);
99 double sign = (ratio < 0 ? -1 : 1);
103 delta[Geom::X] = floor(ratio + 0.5) * delta[Geom::Y];
106 double ratio = delta[Geom::Y] / delta[Geom::X]; local
107 double ratioabs = fabs (ratio);
108 double sign = (ratio <
[all...]
/inkscape/src/live_effects/
H A Dlpe-perspective-envelope.h41 virtual Geom::Point pointAtRatio(Geom::Coord ratio,Geom::Point A, Geom::Point B);
H A Dlpe-perspective-envelope.cpp233 LPEPerspectiveEnvelope::pointAtRatio(Geom::Coord ratio,Geom::Point A, Geom::Point B) argument
235 Geom::Coord x = A[X] + (ratio * (B[X]-A[X]));
236 Geom::Coord y = A[Y]+ (ratio * (B[Y]-A[Y]));
/inkscape/src/widgets/
H A Deek-preview.h119 guint ratio,
H A Deek-preview.cpp74 guint ratio; member in struct:__anon156
186 if ( priv->ratio != 100 ) {
187 width = (width * priv->ratio) / 100;
801 guint ratio,
817 if ( ratio > PREVIEW_MAX_RATIO )
819 ratio = PREVIEW_MAX_RATIO;
822 priv->ratio = ratio;
859 priv->ratio = 100;
798 eek_preview_set_details(EekPreview *preview, ViewType view, PreviewSize size, guint ratio, guint border) argument
/inkscape/src/ui/tools/
H A Dspray-tool.h74 double ratio; member in class:Inkscape::UI::Tools::SprayTool
H A Dspray-tool.cpp162 , ratio(0)
266 sp_event_context_read(this, "ratio");
332 } else if (path == "ratio") {
333 this->ratio = CLAMP(val.getDouble(), 0.0, 0.9);
877 double ratio,
937 Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio), -sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint());
1039 Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)
864 sp_spray_recursive(SPDesktop *desktop, Inkscape::Selection *selection, SPItem *item, Geom::Point p, Geom::Point , gint mode, double radius, double population, double &scale, double scale_variation, bool , double mean, double standard_deviation, double ratio, double tilt, double rotation_variation, gint _distrib, bool no_overlap, bool picker, bool pick_center, bool pick_inverse_value, bool pick_fill, bool pick_stroke, bool pick_no_overlap, bool over_no_transparent, bool over_transparent, double offset, bool usepressurescale, double pressure, int pick, bool do_trace, bool pick_to_size, bool pick_to_presence, bool pick_to_color, bool pick_to_opacity, bool invert_picked, double gamma_picked , double rand_picked) argument
[all...]
/inkscape/src/display/
H A Dnr-filter-image.cpp196 // Check aspect ratio of image vs. viewport
199 bool ratio = (feAspect < aspect); local
248 if( ratio ) {
261 if( ratio ) {
H A Dnr-filter-turbulence.cpp128 double ratio = 1.0;
182 pixel[k] += result[k] / ratio;
185 pixel[k] += fabs(result[k]) / ratio;
190 ratio *= 2;
/inkscape/src/ui/dialog/
H A Dcolor-item.h56 guint ratio,
H A Dcolor-item.cpp565 Gtk::Widget* ColorItem::getPreview(PreviewStyle style, ViewType view, ::PreviewSize size, guint ratio, guint border) argument
581 ratio,
/inkscape/src/libuemf/
H A Duemf.c512 U_PAIRF ratio; // intermediate value local
548 ratio.x = vec_estart.x/radii.x;
549 ratio.y = vec_estart.y/radii.y;
550 ratio.x *= ratio.x; // we only use the square
551 ratio.y *= ratio.y;
552 scale = 1.0/sqrt(ratio.x + ratio.y);
556 ratio
1799 xform_alt_set( U_FLOAT scale, U_FLOAT ratio, U_FLOAT rot, U_FLOAT axisrot, U_FLOAT eDx, U_FLOAT eDy ) argument
[all...]
H A Duemf.h3403 U_XFORM xform_alt_set(U_FLOAT scale, U_FLOAT ratio, U_FLOAT rot, U_FLOAT axisrot, U_FLOAT eDx, U_FLOAT eDy);
/inkscape/src/extension/internal/
H A Dtext_reassemble.c2278 double ratio; local
2327 ratio = (double)(tspj->fs)/(double)(tspi->fs);
2328 if(ratio >2.0 || ratio <0.5)break;

Completed in 71 milliseconds