Rogue Wave Views |
Rogue Wave Views Documentation Home |
This class allows you to perform the layout on a subgraph that is, on a subset of the nodes and links of the original grapher (IlvGrapher
).
More...
#include <ilviews/layout/filter.h>
Inherits IlvLayoutValueInterface.
Inherited by IlvGraphFilterForLayersOnly, and IlvNullLayoutGraphicFilter.
Public Member Functions | |
IlvLayoutGraphicFilter () | |
Creates a new IlvLayoutGraphicFilter . More... | |
virtual IlBoolean | accept (IlvGraphic *obj) |
Returns IlTrue if the graphic object obj is a node or a link that must be taken into account during the layout. More... | |
IlvGrapherAdapter * | getGrapherAdapter () const |
Returns the IlvGrapherAdapter with which the filter is associated. | |
void | setGrapherAdapter (IlvGrapherAdapter *) |
Allows the class IlvGrapherAdapter to register itself. | |
This class allows you to perform the layout on a subgraph that is, on a subset of the nodes and links of the original grapher (IlvGrapher
).
Library: ilvlayout
The accept
method of the filter is called by the IlvGrapherAdapter
to know, for any node and link, if the node or link must be taken into account or if it is completely ignored.
To install a filter on an IlvGrapherAdapter
instance, use the method IlvGrapherAdapter.setFilter
.
Note that all overridden implementations of the method accept
must respect the following rules:
IlvGrapherAdapter
that its structure has been changed, using the method structureChanged
.IlvLayoutGraphicFilter::IlvLayoutGraphicFilter | ( | ) |
Creates a new IlvLayoutGraphicFilter
.
To install a filter on an IlvGrapherAdapter
instance, use the method IlvGrapherAdapter::setFilter
.
|
virtual |
Returns IlTrue
if the graphic object obj
is a node or a link that must be taken into account during the layout.
If no layers are specified using the method addLayer
on the adapter
instance on which the filter is installed, or if all the layers are specified, the method returns IlTrue
for any argument. Otherwise, it returns IlTrue
only for objects on the specified layers.
This method can be overridden in order to specify other conditions for filtering the nodes and the links.
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.