Graph Layout > Using Advanced Features > Using the Filtering Features to Lay Out a Part of an IlvGrapher > Filtering by Layers
 
Filtering by Layers
Inside an IlvGrapher, nodes and links can be managed by layers. (See the IlvManagerLayer class). Rogue Wave 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.

Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.