All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmCommonMain.earth.worldwind.render.image.ImageTile.kt Maven / Gradle / Ivy

Go to download

The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.

There is a newer version: 1.5.23
Show newest version
package earth.worldwind.render.image

import earth.worldwind.geom.Sector
import earth.worldwind.util.Level
import earth.worldwind.util.ResourcePostprocessor
import earth.worldwind.util.Tile

actual open class ImageTile actual constructor(
    sector: Sector, level: Level, row: Int, column: Int
): Tile(sector, level, row, column), ResourcePostprocessor {
    actual var imageSource: ImageSource? = null
    actual var cacheSource: ImageSource? = null

    override suspend fun  process(resource: Resource): Resource {
        val source = cacheSource?.asUnrecognized()
        return if (source is ResourcePostprocessor) source.process(resource) else resource
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy