Hi team,
How can I set a more complete predicate to QmitkDataStorageBox?
The method "SetPredicate" accepts a mitk::NodePredicateBase* and works
fine with e.g.
SetPredicate( new mitk::NodePredicateDataType("Image") );
But the point comes when trying build a more complete predicate, such as:
mitk::BoolProperty::Pointer myProp = mitk::BoolProperty::New(true);
mitk::NodePredicateProperty isBinary("binary", myProp);
mitk::NodePredicateNOT notBinary(isBinary);
mitk::NodePredicateDataType isImage("Image");
mitk::NodePredicateAND completePredicate( notBinary, isImage );
how can I input "completePredicate" into QmitkDataStorageBox?
If I set it as:
m_TreeNodeSelector->SetPredicate( (mitk::NodePredicateBase*) new
mitk::NodePredicateAND( notBinary, isImage ) );
the program crushes when it is loaded an image that is not binary
any clue?
thanks
sebastian
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users