API / geotoolkit / scene / RegularCache / RegularCache
scene.RegularCache.RegularCache
Defines a cache strategy to prerender composite node's children into a single shared image and cut it into a set of tiles.
↳
RegularCache
Constructors
Methods
Constructors
• new RegularCache(options?)
Creates cache
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
Cache.constructor
Methods
▸ clone(): Cache
Returns a cloned cache object. All inheritors should implement copy constructor or provide custom implementation for this method.
▸ getClassName(): string
string
▸ getLimits(): Rect | LimitsCallback
Returns total cache limits (if used)
▸ getOwner(): Node
Returns cache owner.
owner
▸ getResourceManager(): TileResourceManager
Returns resource manager.
▸ getTileHeight(): number
Returns tile height.
number
height
▸ getTileWidth(): number
Returns tile width.
number
width
▸ invalidate(bounds?): RegularCache
Invalidates cache. Marks cache to be rendered.
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | rectangular area to be invalidated |
this
▸ rebuild(force?): RegularCache
Flags the RegularCache as needing a clear / rebuild. Called after zooming or when we've hit the cap for number of images
| Name | Type | Description |
|---|---|---|
Optional force | boolean | force flag |
this
▸ render(context): void
Render cache.
| Name | Type | Description |
|---|---|---|
context | RenderingContext | rendering context |
void
▸ setLimits(limits): RegularCache
Sets total cache limits
| Name | Type | Description |
|---|---|---|
limits | Rect | LimitsCallback | total cache limits to use instead of the owner model limits (if needed) |
this
▸ setOwner(owner): RegularCache
Sets cache owner.
| Name | Type | Description |
|---|---|---|
owner | CompositeNode<Node> | node which should be cached |
this
▸ setRenderContent(renderContentDelegate): RegularCache
Sets render content delegate.
| Name | Type | Description |
|---|---|---|
renderContentDelegate | (context: RenderingContext) => void | parameter which can render content for this node |
▸ Static getClassName(): string
string