Ignore:
Timestamp:
2009-06-17T09:46:26+02:00 (17 years ago)
Author:
stoecker
Message:

fix build issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java

    r13784 r15961  
    2828
    2929    public BufferedImage image;
    30    
     30
    3131    private double angle = 0; // in radian
    32    
     32
    3333    private BufferedImage rotated_image; // only if angle <> 0
    3434
     
    4747        max = new EastNorth(max.east() + dx, max.north() + dy);
    4848    }
    49    
     49
    5050    public void resize(EastNorth rasterCenter, double proportion) {
    5151        min = min.interpolate(rasterCenter, proportion);
     
    5353        updatePixelPer();
    5454    }
    55    
     55
    5656    public void rotate(EastNorth pivot, double delta) {
    5757        if (angle == 0) {
    58             org_min = min; 
     58            org_min = min;
    5959            org_max = max;
    6060        }
    6161        this.angle += delta;
    62        
     62
    6363        EastNorth imageCenter = org_min.interpolate(org_max, 0.5);
    6464        EastNorth newimageCenter = imageCenter.rotate(pivot, angle);
     
    7474        max2 = max2.rotate(newimageCenter, angle);
    7575        getNewBounding(min, max, min2, max2);
    76        
     76
    7777        rotated_image = tilt(image, angle);
    7878    }
    79    
     79
    8080    public static BufferedImage tilt(BufferedImage image, double angle) {
    8181        double sin = Math.abs(Math.sin(angle)), cos = Math.abs(Math.cos(angle));
     
    9696        return gd.getDefaultConfiguration();
    9797    }
    98    
     98
    9999    private void getNewBounding(EastNorth min, EastNorth max, EastNorth c, EastNorth d) {
    100100        EastNorth pt[] = new EastNorth[4];
     
    116116        max.setLocation(highestEast, highestNorth);
    117117    }
    118    
     118
    119119    public boolean contains(EastNorth en) {
    120120        return min.east() <= en.east() && en.east() <= max.east() && min.north() <= en.north()
     
    165165    /**
    166166     * Make all pixels masked by the given georefImage transparent in this image
    167      * 
     167     *
    168168     * @param georefImage
    169169     */
Note: See TracChangeset for help on using the changeset viewer.