API / geotoolkit / scene / Cache / Cache
Abstract parent class of caches
Cache
Constructors
Methods
Methods
▸ clone(): Cache
Returns a cloned cache object. All inheritors should implement copy constructor or provide custom implementation for this method.
▸ getClassName(): string
string
▸ getOwner(): Node
Returns cache owner.
owner
▸ Abstract getResourceManager(): TileResourceManager
Returns resource manager.
▸ invalidate(bounds?): Cache
Invalidates cache. Marks cache to be rendered.
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | rectangular area to be invalidated |
this
▸ rebuild(force?): Cache
Rebuilds cache.
| Name | Type |
|---|---|
Optional force | boolean |
this
▸ Abstract render(context): void
Render cache.
| Name | Type | Description |
|---|---|---|
context | RenderingContext | rendering context |
void
▸ setOwner(owner): Cache
Sets cache owner.
| Name | Type | Description |
|---|---|---|
owner | Node | node which should be cached |
this
▸ setRenderContent(renderContentDelegate): void
Sets render content delegate.
| Name | Type | Description |
|---|---|---|
renderContentDelegate | (context: RenderingContext) => void | parameter which can render content for this node |
void
▸ Static getClassName(): string
string