Page MenuHomePhabricator

NodePredicateSource is not implemented. My implementation is included in attachment.
Closed, ResolvedPublic

Description

Header file remained the same.

Event Timeline

cc Daniel. he wrote some comment about this class being obsolete.

This predicate can be used to check, if a node is a parent to a given node. It can be computationally quite expensive for a large DataStorage.

The same set of nodes can be retrieved by calling the GetSources() method. This will use an optimized method that is less computationally expensive.

Still, having a predicate allows for more complex composite predicates that can not all be emulated with GetSources(). I suggest to add it to MITK, but to add a warning to the documentation, that it might affect performance.

[SVN revision 29010]
FIX (#5505): implemented mitkNodePredicateSource::CheckNode() and added unit test mitk::NodePredicateSourceTest