API / geotoolkit / scene / filters / ScaleRange / ScaleRange
filters.ScaleRange.ScaleRange
Filter nodes based on range of scale factor
Constructors
Methods
▸ begin(): ScaleRange
Begin filtering. If a filter should be applied to children nodes it needs to be added to context and removed in the method end
Example
// Implementation of the filter to be applied for children
begin (context?: RenderingContext) {
context.addFilter(this);
}this
▸ end(): ScaleRange
End filtering. If a filter should be applied to children nodes it needs to be added to context and removed in the method end
Example
// Implementation of the filter to be applied for children
end (context?: RenderingContext) {
context.removeFilter(this);
}this
▸ filter(node, context?): boolean
Checks if the node should be drawn.
All children nodes will be given the chance to render or not to render.
| Name | Type | Description |
|---|---|---|
node | Node | node to check |
Optional context | RenderingContext | rendering context |
boolean
flag filter flag ("true" to render node; "false" otherwise)
▸ getClassName(): string
string
▸ getOptions(): Options
Gets options
options options
▸ setOptions(options?): ScaleRange
Sets options
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
this
▸ Static getClassName(): string
string