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

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

#include <mitkNodePredicateSource.h>

Inheritance diagram for mitk::NodePredicateSource:
Collaboration diagram for mitk::NodePredicateSource:

Public Types

typedef NodePredicateSource 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
 
 ~NodePredicateSource () override
 Standard Destructor. More...
 
bool CheckNode (const mitk::DataNode *childNode) const override
 Checks, if m_BaseNode is a source node of childNode (e.g. if childNode "was created from" m_BaseNode) 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::DataNode *_arga, bool _argb, mitk::DataStorage *_argc)
 
- Static Public Member Functions inherited from mitk::NodePredicateBase
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 NodePredicateSource (mitk::DataNode *n, bool allsources, 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::DataNodem_BaseNode
 
bool m_SearchAllSources
 
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
Calling CheckNode() can be computationally quite expensive for a large DataStorage. Alternatively mitk::StandaloneDataStorage::GetSources() can be used

Definition at line 30 of file mitkNodePredicateSource.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~NodePredicateSource()

mitk::NodePredicateSource::~NodePredicateSource ( )
override

Standard Destructor.

Definition at line 20 of file mitkNodePredicateSource.cpp.

◆ NodePredicateSource()

mitk::NodePredicateSource::NodePredicateSource ( mitk::DataNode n,
bool  allsources,
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 mitkNodePredicateSource.cpp.

Member Function Documentation

◆ CheckNode()

bool mitk::NodePredicateSource::CheckNode ( const mitk::DataNode childNode) const
overridevirtual

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

Implements mitk::NodePredicateBase.

Definition at line 24 of file mitkNodePredicateSource.cpp.

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

◆ GetClassHierarchy()

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 33 of file mitkNodePredicateSource.h.

◆ GetClassName()

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

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

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

Definition at line 33 of file mitkNodePredicateSource.h.

◆ New()

static Pointer mitk::NodePredicateSource::New ( mitk::DataNode _arga,
bool  _argb,
mitk::DataStorage _argc 
)
inlinestatic

Definition at line 34 of file mitkNodePredicateSource.h.

Referenced by mitkNodePredicateSourceTest().

Member Data Documentation

◆ m_BaseNode

mitk::WeakPointer<mitk::DataNode> mitk::NodePredicateSource::m_BaseNode
protected

Definition at line 49 of file mitkNodePredicateSource.h.

Referenced by CheckNode().

◆ m_DataStorage

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

Definition at line 51 of file mitkNodePredicateSource.h.

Referenced by CheckNode().

◆ m_SearchAllSources

bool mitk::NodePredicateSource::m_SearchAllSources
protected

Definition at line 50 of file mitkNodePredicateSource.h.

Referenced by CheckNode().


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