Predicate that evaluates if the given node is a direct or indirect source node of a specific node. More...
#include <mitkNodePredicateSource.h>
Public Types | |
typedef NodePredicateSource | Self |
typedef NodePredicateBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual | ~NodePredicateSource () |
Standard Destructor. | |
virtual bool | CheckNode (const mitk::DataNode *node) const |
Checks, if the node is a source node of m_BaseNode (e.g. if m_BaseNode "was created from" node) | |
Static Public Member Functions | |
static Pointer | New (mitk::DataNode *_arga, bool _argb, mitk::DataStorage *_argc) |
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. | |
Protected Attributes | |
mitk::WeakPointer< mitk::DataNode > | m_BaseNode |
bool | m_SearchAllSources |
mitk::WeakPointer < mitk::DataStorage > | m_DataStorage |
Predicate that evaluates if the given node is a direct or indirect source node of a specific node.
Definition at line 37 of file mitkNodePredicateSource.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateSource::ConstPointer |
Reimplemented from mitk::NodePredicateBase.
Definition at line 41 of file mitkNodePredicateSource.h.
typedef itk::SmartPointer<Self> mitk::NodePredicateSource::Pointer |
Reimplemented from mitk::NodePredicateBase.
Definition at line 41 of file mitkNodePredicateSource.h.
Reimplemented from mitk::NodePredicateBase.
Definition at line 41 of file mitkNodePredicateSource.h.
Reimplemented from mitk::NodePredicateBase.
Definition at line 41 of file mitkNodePredicateSource.h.
mitk::NodePredicateSource::~NodePredicateSource | ( | ) | [virtual] |
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 20 of file mitkNodePredicateSource.cpp.
: NodePredicateBase(), m_BaseNode(n), m_SearchAllSources(allsources), m_DataStorage(ds) { }
bool mitk::NodePredicateSource::CheckNode | ( | const mitk::DataNode * | node ) | const [virtual] |
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 30 of file mitkNodePredicateSource.cpp.
{ throw std::logic_error("NodePredicateSourceis not implemented"); }
virtual const char* mitk::NodePredicateSource::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::NodePredicateBase.
static Pointer mitk::NodePredicateSource::New | ( | mitk::DataNode * | _arga, |
bool | _argb, | ||
mitk::DataStorage * | _argc | ||
) | [inline, static] |
Definition at line 42 of file mitkNodePredicateSource.h.
Definition at line 57 of file mitkNodePredicateSource.h.
Definition at line 59 of file mitkNodePredicateSource.h.
bool mitk::NodePredicateSource::m_SearchAllSources [protected] |
Definition at line 58 of file mitkNodePredicateSource.h.