public abstract class RasterStream extends Raster implements IDisposable
UpdateDelta. The class can be
used to stream video and other dynamic raster data to textures and other Raster clients.
Note to Implementers: When implementing a derived class of RasterStream, you must provide an implementation for
the Update method. The Attributes (get)
property of the Raster should be set in the constructor of the derived class.| Modifier | Constructor and Description |
|---|---|
protected |
RasterStream() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose(boolean disposing) |
Duration |
getUpdateDelta()
Gets the update delta of the raster stream in seconds.
|
void |
setUpdateDelta(Duration value)
Sets the update delta of the raster stream in seconds.
|
abstract boolean |
update(JulianDate time,
JulianDate nextTime)
When overridden in a derived class, updates the raster data associated with the raster stream at the specified time.
|
apply, applyInPlace, copyFromBitmap, copyFromMemory, copyFromRaster, dispose, extractBand, extractBand, finalize, flip, getAttributes, getHeight, getWidth, rotate, setAttributes, toBitmapclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, disposepublic Duration getUpdateDelta()
UpdateDelta defines the interval
at which the Update method will be called. The default UpdateDelta is 0, which will
call the Update method every time the SceneManager
time changes. When animating, this means the Update method would be called on every animation step.public void setUpdateDelta(Duration value)
UpdateDelta defines the interval
at which the Update method will be called. The default UpdateDelta is 0, which will
call the Update method every time the SceneManager
time changes. When animating, this means the Update method would be called on every animation step.public abstract boolean update(JulianDate time, JulianDate nextTime)
Update method is called, the raster stream contains a raster data buffer defined by the current
Attributes (get) of the stream for updating the raster data.
The time parameter provides the current and next SceneManager time.
Return true if the raster data was updated, otherwise return false.time - The current SceneManager time.nextTime - The next SceneManager time.