Composite predicate that negates its child predicate Changed: NodePredicateNot now derives from NodePredicateCompositeBase though it really holds only one subpredicate at any time. But logically any Predicate that has one or more subpredicate is a CompositePredicate. More...
#include <mitkNodePredicateNot.h>
Public Types | |
typedef NodePredicateNot | Self |
typedef NodePredicateCompositeBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual | ~NodePredicateNot () |
Standard Destructor. | |
virtual void | AddPredicate (const mitk::NodePredicateBase *p) |
Reimplemented, only one child predicate is allowed for the NOT predicate. | |
virtual bool | CheckNode (const mitk::DataNode *node) const |
Checks, if the node does not fulfill the child predicate condition. | |
Static Public Member Functions | |
static Pointer | New (const mitk::NodePredicateBase *_arg) |
Protected Member Functions | |
NodePredicateNot (const mitk::NodePredicateBase *p) | |
Constructor. |
Composite predicate that negates its child predicate Changed: NodePredicateNot now derives from NodePredicateCompositeBase though it really holds only one subpredicate at any time. But logically any Predicate that has one or more subpredicate is a CompositePredicate.
Definition at line 33 of file mitkNodePredicateNot.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateNot::ConstPointer |
Reimplemented from mitk::NodePredicateCompositeBase.
Definition at line 36 of file mitkNodePredicateNot.h.
typedef itk::SmartPointer<Self> mitk::NodePredicateNot::Pointer |
Reimplemented from mitk::NodePredicateCompositeBase.
Definition at line 36 of file mitkNodePredicateNot.h.
Reimplemented from mitk::NodePredicateCompositeBase.
Definition at line 36 of file mitkNodePredicateNot.h.
Reimplemented from mitk::NodePredicateCompositeBase.
Definition at line 36 of file mitkNodePredicateNot.h.
mitk::NodePredicateNot::~NodePredicateNot | ( | ) | [virtual] |
mitk::NodePredicateNot::NodePredicateNot | ( | const mitk::NodePredicateBase * | p ) | [protected] |
Constructor.
Definition at line 21 of file mitkNodePredicateNot.cpp.
References mitk::NodePredicateCompositeBase::m_ChildPredicates.
{ m_ChildPredicates.push_back(p); }
void mitk::NodePredicateNot::AddPredicate | ( | const mitk::NodePredicateBase * | p ) | [virtual] |
Reimplemented, only one child predicate is allowed for the NOT predicate.
Reimplemented from mitk::NodePredicateCompositeBase.
Definition at line 40 of file mitkNodePredicateNot.cpp.
References mitk::NodePredicateCompositeBase::AddPredicate().
{ if(!m_ChildPredicates.empty()) m_ChildPredicates.clear(); NodePredicateCompositeBase::AddPredicate(p); }
bool mitk::NodePredicateNot::CheckNode | ( | const mitk::DataNode * | node ) | const [virtual] |
Checks, if the node does not fulfill the child predicate condition.
Implements mitk::NodePredicateBase.
Definition at line 30 of file mitkNodePredicateNot.cpp.
{ if (node == NULL) throw std::invalid_argument("NodePredicateNot: invalid node"); // return the negation of the child predicate return !m_ChildPredicates.front()->CheckNode(node); }
virtual const char* mitk::NodePredicateNot::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::NodePredicateCompositeBase.
static Pointer mitk::NodePredicateNot::New | ( | const mitk::NodePredicateBase * | _arg ) | [inline, static] |
Definition at line 37 of file mitkNodePredicateNot.h.
Referenced by QmitkIGTRecorderView::CreateQtPartControl(), SelListenerPointBasedRegistration::DoSelectionChanged(), QmitkDataManagerView::GlobalReinit(), QmitkNodeDescriptorManager::Initialize(), QmitkSimpleExampleView::initNavigators(), QmitkSegmentationView::OnSelectionChanged(), QmitkDataStorageTreeModel::QmitkDataStorageTreeModel(), QmitkFileOpenAction::Run(), QmitkExtFileSaveProjectAction::Run(), QmitkExtFileOpenAction::Run(), QmitkCloseProjectAction::Run(), TestDataStorage(), and QmitkToolRoiDataSelectionBox::UpdateComboBoxData().