Revision 162 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.io/org.gvsig.raster.io.base/src/main/java/org/gvsig/fmap/dal/coverage/dataset/io/MrSidDriver.java
MrSidDriver.java | ||
---|---|---|
52 | 52 |
import org.gvsig.raster.impl.provider.DefaultRasterProvider; |
53 | 53 |
import org.gvsig.raster.impl.provider.RasterProvider; |
54 | 54 |
import org.gvsig.raster.impl.store.AbstractRasterStoreParameters; |
55 |
import org.gvsig.raster.impl.store.properties.DatasetColorInterpretation;
|
|
56 |
import org.gvsig.raster.impl.store.properties.DatasetTransparency;
|
|
55 |
import org.gvsig.raster.impl.store.properties.DataStoreColorInterpretation;
|
|
56 |
import org.gvsig.raster.impl.store.properties.DataStoreTransparency;
|
|
57 | 57 |
import org.gvsig.tools.ToolsLocator; |
58 | 58 |
import org.gvsig.tools.extensionpoint.ExtensionPoint; |
59 | 59 |
import org.gvsig.tools.extensionpoint.ExtensionPointManager; |
... | ... | |
72 | 72 |
public static final String METADATA_DEFINITION_NAME = "LizardTechStore"; |
73 | 73 |
protected MrSidNative file = null; |
74 | 74 |
private Extent viewRequest = null; |
75 |
private DatasetColorInterpretation colorInterpr = null;
|
|
76 |
protected DatasetTransparency fileTransparency = null;
|
|
75 |
private DataStoreColorInterpretation colorInterpr = null;
|
|
76 |
protected DataStoreTransparency fileTransparency = null;
|
|
77 | 77 |
private boolean open = false; |
78 | 78 |
|
79 | 79 |
public static void register() { |
... | ... | |
516 | 516 |
/** |
517 | 517 |
* Obtiene el objeto que contiene el estado de la transparencia |
518 | 518 |
*/ |
519 |
public DatasetTransparency getTransparency() {
|
|
519 |
public DataStoreTransparency getTransparency() {
|
|
520 | 520 |
if (fileTransparency == null) |
521 |
fileTransparency = new DatasetTransparency();
|
|
521 |
fileTransparency = new DataStoreTransparency();
|
|
522 | 522 |
return fileTransparency; |
523 | 523 |
} |
524 | 524 |
|
... | ... | |
526 | 526 |
* Obtiene el objeto que contiene que contiene la interpretaci?n de color por banda |
527 | 527 |
* @return |
528 | 528 |
*/ |
529 |
public DatasetColorInterpretation getColorInterpretation() {
|
|
529 |
public DataStoreColorInterpretation getColorInterpretation() {
|
|
530 | 530 |
if (colorInterpr == null) { |
531 |
colorInterpr = new DatasetColorInterpretation();
|
|
531 |
colorInterpr = new DataStoreColorInterpretation();
|
|
532 | 532 |
colorInterpr.initColorInterpretation(getBandCount()); |
533 | 533 |
if (getBandCount() == 1) |
534 |
colorInterpr.setColorInterpValue(0, DatasetColorInterpretation.GRAY_BAND);
|
|
534 |
colorInterpr.setColorInterpValue(0, DataStoreColorInterpretation.GRAY_BAND);
|
|
535 | 535 |
if (getBandCount() >= 3) { |
536 |
colorInterpr.setColorInterpValue(0, DatasetColorInterpretation.RED_BAND);
|
|
537 |
colorInterpr.setColorInterpValue(1, DatasetColorInterpretation.GREEN_BAND);
|
|
538 |
colorInterpr.setColorInterpValue(2, DatasetColorInterpretation.BLUE_BAND);
|
|
536 |
colorInterpr.setColorInterpValue(0, DataStoreColorInterpretation.RED_BAND);
|
|
537 |
colorInterpr.setColorInterpValue(1, DataStoreColorInterpretation.GREEN_BAND);
|
|
538 |
colorInterpr.setColorInterpValue(2, DataStoreColorInterpretation.BLUE_BAND);
|
|
539 | 539 |
} |
540 | 540 |
} |
541 | 541 |
return colorInterpr; |
... | ... | |
543 | 543 |
|
544 | 544 |
/** |
545 | 545 |
* Asigna el objeto que contiene que contiene la interpretaci?n de color por banda |
546 |
* @param DatasetColorInterpretation
|
|
546 |
* @param DataStoreColorInterpretation
|
|
547 | 547 |
*/ |
548 |
public void setColorInterpretation(DatasetColorInterpretation colorInterpretation) {
|
|
548 |
public void setColorInterpretation(DataStoreColorInterpretation colorInterpretation) {
|
|
549 | 549 |
this.colorInterpretation = colorInterpretation; |
550 | 550 |
} |
551 | 551 |
|
Also available in: Unified diff