Searched defs:trans (Results 1 - 23 of 23) sorted by relevance

/inkscape/src/display/
H A Dnr-3dutils.cpp21 void convert_coord(gdouble &x, gdouble &y, gdouble &z, Geom::Affine const &trans) { argument
23 p *= trans;
26 z *= trans[0];
H A Dnr-filter-offset.cpp56 Geom::Affine trans = slot.get_units().get_matrix_user2pb(); local
59 offset *= trans;
60 offset[X] -= trans[4];
61 offset[Y] -= trans[5];
84 void FilterOffset::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) argument
87 offset *= trans;
88 offset[X] -= trans[4];
89 offset[Y] -= trans[5];
H A Dnr-filter-tile.cpp63 Geom::Affine trans = slot.get_units().get_matrix_user2pb(); local
68 Geom::Rect tt = tile_area * trans;
97 offset *= trans;
98 offset[Geom::X] -= trans[4];
99 offset[Geom::Y] -= trans[5];
115 void FilterTile::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) argument
H A Dnr-light.cpp44 PointLight::PointLight(SPFePointLight *light, guint32 lighting_color, const Geom::Affine &trans) { argument
49 NR::convert_coord(l_x, l_y, l_z, trans);
67 SpotLight::SpotLight(SPFeSpotLight *light, guint32 lighting_color, const Geom::Affine &trans) { argument
78 NR::convert_coord(l_x, l_y, l_z, trans);
79 NR::convert_coord(p_x, p_y, p_z, trans);
H A Ddrawing-context.cpp113 void DrawingContext::transform(Geom::Affine const &trans) { argument
114 ink_cairo_transform(_ct, trans);
H A Ddrawing-surface.cpp203 DrawingCache::scheduleTransform(Geom::IntRect const &new_area, Geom::Affine const &trans) argument
206 _pending_transform *= trans;
H A Dnr-filter-diffuselighting.cpp86 Geom::Affine const &trans, double scale, double diffuse_constant, double x0, double y0)
88 , _light(light, color, trans)
108 Geom::Affine const &trans, double scale, double diffuse_constant, double x0, double y0)
110 , _light(light, color, trans)
165 Geom::Affine trans = slot.get_units().get_matrix_primitiveunits2pb(); local
167 double scale = surfaceScale * trans.descrim();
176 DiffusePointLight(input, light.point, color, trans, scale, diffuseConstant, x0, y0));
180 DiffuseSpotLight(input, light.spot, color, trans, scale, diffuseConstant, x0, y0));
199 void FilterDiffuseLighting::area_enlarge(Geom::IntRect &area, Geom::Affine const & /*trans*/)
85 DiffusePointLight(cairo_surface_t *bumpmap, SPFePointLight *light, guint32 color, Geom::Affine const &trans, double scale, double diffuse_constant, double x0, double y0) argument
107 DiffuseSpotLight(cairo_surface_t *bumpmap, SPFeSpotLight *light, guint32 color, Geom::Affine const &trans, double scale, double diffuse_constant, double x0, double y0) argument
H A Dnr-filter-displacement-map.cpp89 Geom::Affine trans = slot.get_units().get_matrix_primitiveunits2pb(); local
90 double scalex = scale * trans.expansionX();
91 double scaley = scale * trans.expansionY();
140 void FilterDisplacementMap::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) argument
143 //FIXME: trans should be multiplied by some primitiveunits2user, shouldn't it?
145 double scalex = scale/2.*(std::fabs(trans[0])+std::fabs(trans[1]));
146 double scaley = scale/2.*(std::fabs(trans[2])+std::fabs(trans[3]));
H A Dnr-filter-morphology.cpp220 void FilterMorphology::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) argument
222 int enlarge_x = ceil(xradius * trans.expansionX());
223 int enlarge_y = ceil(yradius * trans.expansionY());
228 double FilterMorphology::complexity(Geom::Affine const &trans) argument
230 int enlarge_x = ceil(xradius * trans.expansionX());
231 int enlarge_y = ceil(yradius * trans.expansionY());
H A Dnr-filter-slot.cpp44 Geom::Affine trans = _units.get_matrix_display2pb();
45 Geom::Rect bbox_trans = graphic.targetLogicalBounds() * trans;
50 if (trans.isTranslation()) {
132 Geom::Affine trans = _units.get_matrix_display2pb(); local
134 if (trans.isTranslation()) {
145 ink_cairo_transform(tsg_ct, trans);
157 Geom::Affine trans = _units.get_matrix_display2pb(); local
169 ink_cairo_transform(tbg_ct, trans);
186 Geom::Affine trans = _units.get_matrix_pb2display(); local
187 if (trans
[all...]
H A Dnr-filter-specularlighting.cpp95 Geom::Affine const &trans, double scale, double specular_constant,
98 , _light(light, color, trans)
119 Geom::Affine const &trans, double scale, double specular_constant,
122 , _light(light, color, trans)
176 Geom::Affine trans = slot.get_units().get_matrix_primitiveunits2pb(); local
180 double scale = surfaceScale * trans.descrim();
191 SpecularPointLight(input, light.point, color, trans, scale, ks, se, x0, y0));
195 SpecularSpotLight(input, light.spot, color, trans, scale, ks, se, x0, y0));
214 void FilterSpecularLighting::area_enlarge(Geom::IntRect &area, Geom::Affine const & /*trans*/)
94 SpecularPointLight(cairo_surface_t *bumpmap, SPFePointLight *light, guint32 color, Geom::Affine const &trans, double scale, double specular_constant, double specular_exponent, double x0, double y0) argument
118 SpecularSpotLight(cairo_surface_t *bumpmap, SPFeSpotLight *light, guint32 color, Geom::Affine const &trans, double scale, double specular_constant, double specular_exponent, double x0, double y0) argument
H A Dnr-filter.cpp115 Geom::Affine trans = item->ctm(); local
121 units.set_ctm(trans);
126 = _filter_resolution(*filter_area, trans, filterquality);
441 Geom::Rect const &area, Geom::Affine const &trans,
457 origo *= trans;
459 max_i *= trans;
461 max_j *= trans;
440 _filter_resolution( Geom::Rect const &area, Geom::Affine const &trans, FilterQuality const filterquality) const argument
H A Dnr-filter-turbulence.cpp372 Turbulence(TurbulenceGenerator const &gen, Geom::Affine const &trans, int x0, int y0) argument
374 , _trans(trans)
H A Ddrawing-text.cpp44 DrawingGlyphs::setGlyph(font_instance *font, int glyph, Geom::Affine const &trans) argument
48 setTransform(trans);
219 DrawingText::addComponent(font_instance *font, int glyph, Geom::Affine const &trans, argument
231 ng->setGlyph(font, glyph, trans);
H A Dnr-filter-gaussian.cpp582 Geom::Affine trans = slot.get_units().get_matrix_user2pb(); local
584 double deviation_x_orig = dx * trans.expansionX();
585 double deviation_y_orig = dy * trans.expansionY();
694 void FilterGaussian::area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) argument
696 int area_x = _effect_area_scr(_deviation_x * trans.expansionX());
697 int area_y = _effect_area_scr(_deviation_y * trans.expansionY());
713 double FilterGaussian::complexity(Geom::Affine const &trans) argument
715 int area_x = _effect_area_scr(_deviation_x * trans.expansionX());
716 int area_y = _effect_area_scr(_deviation_y * trans.expansionY());
H A Dcairo-utils.cpp502 feed_curve_to_cairo(cairo_t *cr, Geom::Curve const &c, Geom::Affine const & trans, Geom::Rect view, bool optimize_stroke) argument
516 Geom::Point end_tr = c.finalPoint() * trans;
520 Geom::Rect swept(c.initialPoint()*trans, end_tr);
533 points[0] *= trans;
534 points[1] *= trans;
535 points[2] *= trans;
556 //points[0] *= trans; // don't do this one here for fun: it is only needed for optimized strokes
557 points[1] *= trans;
558 points[2] *= trans;
559 points[3] *= trans;
642 feed_path_to_cairo(cairo_t *ct, Geom::Path const &path, Geom::Affine trans, Geom::OptRect area, bool optimize_stroke, double stroke_width) argument
690 feed_pathvector_to_cairo(cairo_t *ct, Geom::PathVector const &pathv, Geom::Affine trans, Geom::OptRect area, bool optimize_stroke, double stroke_width) argument
[all...]
/inkscape/src/live_effects/
H A Dlpe-transform_2pts.cpp403 Geom::Point trans = (Geom::Point)start - helper.initialPoint(); local
405 trans = (Geom::Point)end - helper.initialPoint();
408 trans = Geom::Point::polar(transformed.angle() + Geom::rad_from_deg(-90),offset) + trans;
410 m *= Geom::Translate(trans);
H A Dlpe-mirror_symmetry.cpp117 Geom::Point trans = center_point - previous_center; local
118 start_point.param_setValue(start_point * trans);
119 end_point.param_setValue(end_point * trans);
/inkscape/src/livarot/
H A DPath.cpp702 void Path::Transform(const Geom::Affine &trans) argument
705 (*i)->transform(trans);
/inkscape/src/extension/internal/filter/
H A Dpaint.h239 "<param name=\"trans\" gui-text=\"" N_("Transparent") "\" type=\"boolean\" >false</param>\n"
263 std::ostringstream trans; local
270 if (ext->get_param_bool("trans"))
271 trans << "composite3";
273 trans << "blend";
288 "</filter>\n", clean.str().c_str(), dilat.str().c_str(), erosion.str().c_str(), strength.str().c_str(), length.str().c_str(), length.str().c_str(), trans.str().c_str());
/inkscape/src/ui/tool/
H A Dcontrol-point-selection.cpp367 Geom::Affine trans; local
368 trans.setIdentity();
400 trans *= Geom::Translate(-cur->position());
401 trans *= _last_trans[cur].inverse();
402 trans *= itrans;
403 trans *= Geom::Translate(_original_positions[cur] + abs_delta * deltafrac);
406 trans *= Geom::Translate(-cur->position() + _original_positions[cur] + abs_delta * deltafrac);
408 cur->transform(trans);
/inkscape/src/ui/widget/
H A Dcolor-icc-selector.cpp595 cmsHTRANSFORM trans = newProf->getTransfFromSRGB8(); local
596 if (trans) {
607 cmsDoTransform(trans, pre, post, 1);
765 cmsHTRANSFORM trans = _impl->_prof->getTransfToSRGB8(); local
766 if (trans) {
767 cmsDoTransform(trans, tmp, post, 1);
917 cmsHTRANSFORM trans = _prof->getTransfToSRGB8(); local
918 if (trans) {
919 cmsDoTransform(trans, scratch, _compUI[i]._map, 1024);
991 cmsHTRANSFORM trans local
[all...]
/inkscape/src/extension/dbus/
H A Ddocument-interface.cpp768 gchar trans[] = "transform"; local
769 document_interface_set_attribute (doc_interface, shape, trans, transformstr, error);

Completed in 46 milliseconds