Revision 5043 branches/v061/libraries/libCq CMS for java.old/src/org/cresques/io/GeoRasterFile.java

View differences:

GeoRasterFile.java
60 60
	/**
61 61
	 * Flag que representa a la banda del Rojo
62 62
	 */
63
	public static final int RED_BAND	= 0x01;
63
	public static final int 	RED_BAND	= 0x01;
64 64
	
65 65
	/**
66 66
	 * Flag que representa a la banda del Verde
67 67
	 */
68
	public static final int GREEN_BAND	= 0x02;
68
	public static final int 	GREEN_BAND	= 0x02;
69 69
	
70 70
	/**
71 71
	 * Flag que representa a la banda del Azul
72 72
	 */
73
	public static final int BLUE_BAND	= 0x04;
74
	private static TreeMap supportedExtensions = null;
75
	protected Component updatable = null;
76
	protected boolean doTransparency = false;
73
	public static final int 	BLUE_BAND	= 0x04;
74
	private static TreeMap 		supportedExtensions = null;
75
	protected Component 		updatable = null;
76
	protected boolean 			doTransparency = false;
77
	private boolean				verifySize = false;
77 78
	
78 79
	/**
79 80
	 * Filtro para raster.
......
88 89
	 * Oleicola. Para ese caso los par?metros del constructo son:
89 90
	 * PixelFilter(0x10ffff00, 0xff000000, 0xf0f0f0);
90 91
	 */
91
	protected PixelFilter tFilter = null;
92
	protected PixelFilter 		tFilter = null;
92 93
	
93 94
	/**
94 95
	 * Asignaci?n de banda del Rojo a una banda de la imagen
95 96
	 */
96
	protected int rBandNr = 1;
97
	protected int 				rBandNr = 1;
97 98
	
98 99
	/**
99 100
	 * Asignaci?n de banda del Verde a una banda de la imagen
100 101
	 */
101
	protected int gBandNr = 1;
102
	protected int 				gBandNr = 1;
102 103
	
103 104
	/**
104 105
	 * Asignaci?n de banda del Azul a una banda de la imagen
105 106
	 */
106
	protected int bBandNr = 1;
107
	protected int 				bBandNr = 1;
107 108
	
108 109
	/**
109 110
	 * N?mero de bandas de la imagen
110 111
	 */
111
	protected int bandCount = 1;
112
	private int dataType = DataBuffer.TYPE_BYTE;
112
	protected int 				bandCount = 1;
113
	private int 				dataType = DataBuffer.TYPE_BYTE;
113 114

  
114 115
	static {
115 116
		supportedExtensions = new TreeMap();
......
308 309
	 * @param img		imagen
309 310
	 * @param flags		que bandas [ RED_BAND | GREEN_BAND | BLUE_BAND ]
310 311
	 * @return		img
312
	 * @throws SupersamplingNotSupportedException
311 313
	 */
312
	abstract public Image updateImage(int width, int height, ICoordTrans rp, Image img, int origBand, int destBand);
314
	abstract public Image updateImage(int width, int height, ICoordTrans rp, Image img, int origBand, int destBand)throws SupersamplingNotSupportedException;
313 315

  
314 316
	public int getBandCount() { return bandCount; }
315 317
	
......
428 430
    	fw.flush();
429 431
    	fw.close();
430 432
    }
431
    
433

  
434
	/**
435
	 * Cosulta si hay que verificar la relaci?n de aspecto de la imagen, es decir comprueba que el ancho/alto
436
	 * pasados a updateImage coinciden con el ancho/alto solicitado en setView a la imagen
437
	 * @return true si est? verificando la relaci?n de aspecto. 
438
	 */
439
	public boolean mustVerifySize() {
440
		return verifySize;
441
	}
442

  
443
	/**
444
	 * Asigna el flag que dice si hay que verificar la relaci?n de aspecto de la imagen, es decir 
445
	 * comprueba que el ancho/alto pasados a updateImage coinciden con el ancho/alto solicitado 
446
	 * en setView a la imagen.
447
	 * @return true si est? verificando la relaci?n de aspecto. 
448
	 */
449
	public void setMustVerifySize(boolean verifySize) {
450
		this.verifySize = verifySize;
451
	}
452

  
432 453
	abstract public byte[] getWindow(int ulX, int ulY, int sizeX, int sizeY, int band);
433 454
	abstract public int getBlockSize();
434 455
	

Also available in: Unified diff