~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/seltrans.cpp

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
 
526
526
            SPItem *copy_item = (SPItem *) sp_desktop_document(_desktop)->getObjectByRepr(copy_repr);
527
527
 
528
 
            NR::Matrix const *new_affine;
 
528
            Geom::Matrix const *new_affine;
529
529
            if (_show == SHOW_OUTLINE) {
530
530
                NR::Matrix const i2d(sp_item_i2d_affine(original_item));
531
531
                NR::Matrix const i2dnew( i2d * _current_relative_affine );
902
902
    NR::Point pt_geom = _getGeomHandlePos(pt);
903
903
    NR::scale geom_scale = calcScaleFactors(_point_geom, pt_geom, _origin_for_specpoints);
904
904
 
905
 
    _absolute_affine = NR::identity(); //Initialize the scaler
 
905
    _absolute_affine = Geom::identity(); //Initialize the scaler
906
906
 
907
907
    if (state & GDK_MOD1_MASK) { // scale by an integer multiplier/divider
908
908
        // We're scaling either the visual or the geometric bbox here (see the comment above)
1017
1017
    NR::scale geom_scale = calcScaleFactors(_point_geom, pt_geom, _origin_for_specpoints);
1018
1018
    geom_scale[perp] = 1;
1019
1019
 
1020
 
    _absolute_affine = NR::identity(); //Initialize the scaler
 
1020
    _absolute_affine = Geom::identity(); //Initialize the scaler
1021
1021
 
1022
1022
    if (state & GDK_MOD1_MASK) { // stretch by an integer multiplier/divider
1023
1023
        if (fabs(default_scale[axis]) > 1) {
1184
1184
    pt[dim_a] = initial_delta[dim_a] * scale[dim_a] + _origin[dim_a];
1185
1185
 
1186
1186
    // Calculate the relative affine
1187
 
    _relative_affine = NR::identity();
 
1187
    _relative_affine = Geom::identity();
1188
1188
    _relative_affine[2*dim_a + dim_a] = (pt[dim_a] - _origin[dim_a]) / initial_delta[dim_a];
1189
1189
    _relative_affine[2*dim_a + (dim_b)] = (pt[dim_b] - _point[dim_b]) / initial_delta[dim_a];
1190
1190
    _relative_affine[2*(dim_b) + (dim_a)] = 0;