Filtering by Layers
Inside an IlvGrapher, nodes and links can be managed by layers. (See the IlvManagerLayer class). Views allows you to specify that only nodes and links belonging to certain layers have to be taken into account when performing the layout. Use the following methods of the IlvGrapherAdapter class:
void addLayer(IlvManagerLayer* layer)
IlBoolean removeLayer(IlvManagerLayer* layer)
IlBoolean removeAllLayers()
To get an enumeration of the manager layers to be taken into account during the layout, use the method:
const IlArray& getLayers()
If no layers have been specified or all the specified layers have been removed, all layers in the IlvGrapher are used. In this case, the IlvGrapherAdapter::getLayers method returns an empty array.
When at least one layer is specified, an IlvLayoutGraphicFilter is created internally if it has not already been specified using the setFilter method. The default implementation of its accept method will automatically check whether a node or a link received as an argument belongs to one of the specified layers.
Published date: 05/24/2022
Last modified date: 02/24/2022