Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
Medical Imaging Interaction Toolkit
mitk::NodePredicateFirstLevel Class Reference

Predicate that evaluates if the given node is a direct or indirect source node of a specific node. More...

#include <mitkNodePredicateFirstLevel.h>

Inheritance diagram for mitk::NodePredicateFirstLevel:
Collaboration diagram for mitk::NodePredicateFirstLevel:

Public Types

typedef NodePredicateFirstLevel Self
 
typedef NodePredicateBase Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::NodePredicateBase
typedef NodePredicateBase Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
 ~NodePredicateFirstLevel () override
 Standard Destructor. More...
 
bool CheckNode (const mitk::DataNode *node) const override
 Checks, if the node is a source node of m_BaseNode (e.g. if m_BaseNode "was created from" node) More...
 
- Public Member Functions inherited from mitk::NodePredicateBase
 ~NodePredicateBase () override
 Standard Destructor. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New (mitk::DataStorage *_arg)
 
- Static Public Member Functions inherited from mitk::NodePredicateBase
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 NodePredicateFirstLevel (mitk::DataStorage *ds)
 Constructor - This class can either search only for direct source objects or for all source objects. More...
 

Protected Attributes

mitk::WeakPointer< mitk::DataStoragem_DataStorage
 

Detailed Description

Predicate that evaluates if the given node is a direct or indirect source node of a specific node.

Warning
This class seems to be obsolete since mitk::DataStorage::GetDerivations(). Since there is no real use case up until now, NodePredicateSource is NOT WORKING YET. If you need it working, inform us.

Definition at line 31 of file mitkNodePredicateFirstLevel.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~NodePredicateFirstLevel()

mitk::NodePredicateFirstLevel::~NodePredicateFirstLevel ( )
override

Standard Destructor.

Definition at line 19 of file mitkNodePredicateFirstLevel.cpp.

◆ NodePredicateFirstLevel()

mitk::NodePredicateFirstLevel::NodePredicateFirstLevel ( mitk::DataStorage ds)
protected

Constructor - This class can either search only for direct source objects or for all source objects.

Definition at line 15 of file mitkNodePredicateFirstLevel.cpp.

Member Function Documentation

◆ CheckNode()

bool mitk::NodePredicateFirstLevel::CheckNode ( const mitk::DataNode node) const
overridevirtual

Checks, if the node is a source node of m_BaseNode (e.g. if m_BaseNode "was created from" node)

Implements mitk::NodePredicateBase.

Definition at line 23 of file mitkNodePredicateFirstLevel.cpp.

References mitk::WeakPointer< T >::IsExpired(), mitk::WeakPointer< T >::Lock(), and m_DataStorage.

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::NodePredicateFirstLevel::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::NodePredicateBase.

Definition at line 34 of file mitkNodePredicateFirstLevel.h.

◆ GetClassName()

virtual const char* mitk::NodePredicateFirstLevel::GetClassName ( ) const
virtual

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

static const char* mitk::NodePredicateFirstLevel::GetStaticNameOfClass ( )
inlinestatic

Definition at line 34 of file mitkNodePredicateFirstLevel.h.

◆ New()

static Pointer mitk::NodePredicateFirstLevel::New ( mitk::DataStorage _arg)
inlinestatic

Definition at line 35 of file mitkNodePredicateFirstLevel.h.

Member Data Documentation

◆ m_DataStorage

mitk::WeakPointer<mitk::DataStorage> mitk::NodePredicateFirstLevel::m_DataStorage
protected

Definition at line 50 of file mitkNodePredicateFirstLevel.h.

Referenced by CheckNode().


The documentation for this class was generated from the following files: