API / geotoolkit / scene / filters / InArray / InArray
Define a simple filter based on array
Constructors
Methods
▸ begin(): InArray
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(): InArray
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): 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 |
boolean
flag filter flag ("true" to render node; "false" otherwise)
▸ getArray(): Node[]
Get array to be used
Node[]
array
▸ getClassName(): string
string
▸ setArray(array): InArray
Set array to be used
| Name | Type | Description |
|---|---|---|
array | Node[] | array |
▸ Static getClassName(): string
string