Medical Imaging Interaction Toolkit  2016.11.0
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
 
virtual ~NodePredicateSource ()
 Standard Destructor. More...
 
virtual 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
virtual ~NodePredicateBase ()
 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 34 of file mitkNodePredicateSource.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::NodePredicateSource::~NodePredicateSource ( )
virtual

Standard Destructor.

Definition at line 24 of file mitkNodePredicateSource.cpp.

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 19 of file mitkNodePredicateSource.cpp.

Member Function Documentation

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 28 of file mitkNodePredicateSource.cpp.

References m_DataStorage.

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 37 of file mitkNodePredicateSource.h.

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

Reimplemented from mitk::NodePredicateBase.

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

Definition at line 37 of file mitkNodePredicateSource.h.

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

Definition at line 38 of file mitkNodePredicateSource.h.

Referenced by mitkNodePredicateSourceTest().

Member Data Documentation

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

Definition at line 53 of file mitkNodePredicateSource.h.

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

Definition at line 55 of file mitkNodePredicateSource.h.

bool mitk::NodePredicateSource::m_SearchAllSources
protected

Definition at line 54 of file mitkNodePredicateSource.h.


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