/inkscape/src/display/ |
H A D | drawing-context.cpp | 61 DrawingContext::DrawingContext(cairo_t *ct, Geom::Point const &origin) argument 63 , _surface(new DrawingSurface(cairo_get_group_target(ct), origin)) 70 cairo_translate(_ct, -origin[Geom::X], -origin[Geom::Y]); 73 DrawingContext::DrawingContext(cairo_surface_t *surface, Geom::Point const &origin) argument 75 , _surface(new DrawingSurface(surface, origin)) 129 Geom::Point origin = s->origin(); local 130 cairo_set_source_surface(_ct, s->raw(), origin[X], origin[ [all...] |
H A D | drawing-surface.h | 3 * Cairo surface that remembers its origin. 35 DrawingSurface(cairo_surface_t *surface, Geom::Point const &origin); 41 Geom::Point origin() const;
|
H A D | guideline.cpp | 55 gl->origin = NULL; 66 if (gl->origin) { 67 sp_canvas_item_destroy(SP_CANVAS_ITEM(gl->origin)); 169 g_object_set(G_OBJECT(gl->origin), "stroke_color", 0x0000ff88, 173 g_object_set(G_OBJECT(gl->origin), "stroke_color", 0xff000088, 177 gl->origin->moveto(gl->point_on_line); 178 sp_canvas_item_request_update(SP_CANVAS_ITEM(gl->origin)); 221 gl->origin = (SPCtrl *) sp_canvas_item_new(parent, SP_TYPE_CTRL, 227 gl->origin->pickable = false; 265 g_object_set(G_OBJECT(gl->origin), "stroke_colo [all...] |
H A D | canvas-axonomgrid.cpp | 165 origin[Geom::X] = Inkscape::Util::Quantity::convert(prefs->getDouble("/options/grids/axonom/origin_x", 0.0), gridunit, "px"); 166 origin[Geom::Y] = Inkscape::Util::Quantity::convert(prefs->getDouble("/options/grids/axonom/origin_y", 0.0), gridunit, "px"); 237 origin[Geom::X] = q.value("px"); 240 origin[Geom::X] = q.quantity * scale_x; 250 origin[Geom::Y] = q.value("px"); 253 origin[Geom::Y] = q.quantity * scale_y; 359 _("_Origin X:"), _("X coordinate of grid origin"), "originx", 362 _("O_rigin Y:"), _("Y coordinate of grid origin"), "originy", 416 val = origin[Geom::X]; 419 val = origin[Geo [all...] |
H A D | guideline.h | 30 SPCtrl *origin; // unlike 'item', this is only held locally member in struct:SPGuideLine
|
/inkscape/src/live_effects/ |
H A D | lpe-constructgrid.cpp | 52 Geom::Point origin = (*it++).initialPoint(); local 55 first_p -= origin; 56 second_p -= origin; 61 Geom::Path first_path( origin ); 62 first_path.appendNew<LineSegment>( origin + first_p*nr_y ); 63 Geom::Path second_path( origin ); 64 second_path.appendNew<LineSegment>( origin + second_p*nr_x );
|
H A D | lpe-copy_rotate.cpp | 34 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state); 41 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state); 64 origin(_("Origin"), _("Origin of the rotation"), "origin", &wr, this, "Adjust the origin of the rotation"), 82 registerParameter(&origin); 101 origin.param_setValue(A); 102 origin.param_update_default(A); 152 start_pos = origin + dir * Rotate(-rad_from_deg(starting_angle)) * dist_angle_handle; 153 rot_pos = origin [all...] |
/inkscape/src/2geom/ |
H A D | ray.h | 60 Ray(Point const& origin, Coord angle) argument 61 : _origin(origin) 68 Point origin() const { return _origin; } function in class:Geom::Ray 139 && are_near(r1.origin(), r2.origin(), eps); 157 * @pre Both passed rays must have the same origin. 169 if ( !are_near(r1.origin(), r2.origin()) ) 171 THROW_RANGEERROR("passed rays do not have the same origin"); 174 Ray bisector(r1.origin(), r [all...] |
H A D | line.cpp | 43 * \f$ f: (-\infty, \infty) \to \mathbb{R}^2\f$. Zero corresponds to the first (origin) point, 51 * evaluate to (0,0) at time 1 if it was stored as origin and normalized versor, 52 * or origin and angle. 114 * precision when dealing with lines that start far from the origin 336 intersection_impl(r1.vector(), r1.origin(), 337 l2.vector(), l2.origin() ); 349 if (are_near(r1.origin(), l2)) { 367 l2.origin() ); 400 r2.origin() ); 416 if ( are_near(r2.origin(), ls [all...] |
/inkscape/src/ |
H A D | knot-holder-entity.h | 34 typedef void (* SPKnotHolderSetFunc) (SPItem *item, Geom::Point const &p, Geom::Point const &origin, unsigned int state); 63 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) = 0; 109 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 119 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 128 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state);
|
H A D | pure-transform.h | 100 PureScale(Geom::Scale scale, Geom::Point origin, bool uniform) : argument 103 _origin (origin), 118 PureScaleConstrained(Geom::Scale scale, Geom::Point origin): argument 119 PureScale(scale, origin, true) {}; // Non-uniform constrained scaling is not supported 142 PureStretchConstrained(Geom::Coord magnitude, Geom::Point origin, Geom::Dim2 direction, bool uniform) : argument 145 _origin (origin), 179 PureSkewConstrained(Geom::Coord skew, Geom::Coord scale, Geom::Point origin, Geom::Dim2 direction) : argument 183 _origin (origin), 213 PureRotateConstrained(double angle, Geom::Point origin) : argument 216 _origin (origin), [all...] |
H A D | transf_mat_3x4.cpp | 32 TransfMat3x4::TransfMat3x4 (Proj::Pt2 vp_x, Proj::Pt2 vp_y, Proj::Pt2 vp_z, Proj::Pt2 origin) { argument 37 tmat[i][3] = origin[i]; 95 Geom::Point origin (column(Proj::W).affine()); 96 dir -= origin; 100 Proj::Pt2 origin (column(Proj::W).affine()); 101 dir = dir + origin;
|
H A D | line-snapper.cpp | 49 // this point coincides with its origin; for grids this is of no use, but we cannot 54 // Only relevant for guides; grids don't have an origin per line 59 // For this we need to know where the origin is located of the line that is currently being rotated, 70 Geom::Point origin = (*it_origin_or_vector).first; // "first" contains a Geom::Point, denoting either a point local 76 Geom::Point const origin_proj = Geom::projection(origin, Geom::Line(p1, p2)); 114 // First, project the origin of the circle onto the line 115 Geom::Point const origin = c.getPoint(); member in class:Geom 116 Geom::Point const p_proj = Geom::projection(origin, gridguide_line); 117 Geom::Coord dist = Geom::L2(p_proj - origin); // distance from circle origin t [all...] |
H A D | guide-snapper.h | 36 void _addSnappedLinesOrigin(IntermSnapResults &isr, Geom::Point const &origin, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, bool constrained_snap) const;
|
H A D | knot-holder-entity.cpp | 159 PatternKnotHolderEntityXY::knot_set(Geom::Point const &p, Geom::Point const &origin, guint state) argument 167 if (fabs((p - origin)[Geom::X]) > fabs((p - origin)[Geom::Y])) { 168 p_snapped[Geom::Y] = origin[Geom::Y]; 170 p_snapped[Geom::X] = origin[Geom::X]; 205 PatternKnotHolderEntityAngle::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state) 231 PatternKnotHolderEntityScale::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state)
|
/inkscape/src/live_effects/parameter/ |
H A D | transformedpoint.cpp | 30 origin(0.,0.), 80 os << origin << " , " << vector; 96 pointwdg->setValue( vector, origin ); 120 set_and_write_new_values( origin * postmul, vector * postmul.withoutTranslation() ); 144 virtual void knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint /*state*/) { 145 Geom::Point const s = p - param->origin; 151 return param->origin + param->vector;
|
H A D | transformedpoint.h | 42 Geom::Point getOrigin() const { return origin; }; 45 void setOrigin(Geom::Point const &new_origin) { origin = new_origin; }; 64 Geom::Point origin; member in class:Inkscape::LivePathEffect::TransformedPointParam 69 /// The looks of the vector and origin knots oncanvas
|
H A D | vector.h | 41 Geom::Point getOrigin() const { return origin; }; 44 void setOrigin(Geom::Point const &new_origin) { origin = new_origin; }; 64 Geom::Point origin; member in class:Inkscape::LivePathEffect::VectorParam 67 /// The looks of the vector and origin knots oncanvas
|
H A D | vector.cpp | 29 origin(0.,0.), 81 os << origin << " , " << vector; 97 pointwdg->setValue( vector, origin ); 120 set_and_write_new_values( origin * postmul, vector * postmul.withoutTranslation() ); 152 virtual void knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state) { 158 return param->origin; 161 g_print ("This is the origin handle associated to parameter '%s'\n", param->param_key.c_str()); 173 virtual void knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint /*state*/) { 174 Geom::Point const s = p - param->origin; 180 return param->origin [all...] |
H A D | point.cpp | 154 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state); 163 PointParamKnotHolderEntity::knot_set(Geom::Point const &p, Geom::Point const &origin, guint state) argument 167 Geom::Point A(origin[Geom::X],p[Geom::Y]); 168 Geom::Point B(p[Geom::X],origin[Geom::Y]);
|
/inkscape/src/helper/ |
H A D | pixbuf-ops.cpp | 117 Geom::Point origin(screen.min()[Geom::X], 120 origin[Geom::X] = origin[Geom::X] + (screen[Geom::X].extent() * ((1 - padding) / 2)); 121 origin[Geom::Y] = origin[Geom::Y] + (screen[Geom::Y].extent() * ((1 - padding) / 2)); 124 Geom::Affine affine = scale * Geom::Translate(-origin * scale);
|
/inkscape/src/libcroco/ |
H A D | cr-stylesheet.h | 62 enum CRStyleOrigin origin ; member in struct:_CRStyleSheet
|
/inkscape/src/ui/ |
H A D | object-edit.cpp | 106 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 114 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 122 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 125 void set_internal(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 132 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state); 145 RectKnotHolderEntityRX::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, unsigned int state) 194 RectKnotHolderEntityRY::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, unsigned int state) 264 RectKnotHolderEntityWH::set_internal(Geom::Point const &p, Geom::Point const &origin, unsigned int state) argument 273 gdouble const w_orig = (origin[Geom::X] - rect->x.computed); 274 gdouble const h_orig = (origin[Geo 338 knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) argument 354 knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) argument 683 knot_set(Geom::Point const &new_pos, Geom::Point const &origin, unsigned int state) argument 1181 knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) argument 1423 knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) argument [all...] |
/inkscape/src/ui/tools/ |
H A D | gradient-tool.h | 34 Geom::Point origin; member in class:Inkscape::UI::Tools::GradientTool
|
H A D | mesh-tool.h | 37 Geom::Point origin; member in class:Inkscape::UI::Tools::MeshTool
|