NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
A filter that takes a named property, for example "name", and a list of strings to check against, and compares the node to see if its property (eg "name") matches any of the supplied strings, and if it does match, will return Pass=false, otherwise Pass=true. More...
Public Member Functions | |
mitkClassMacro (DataNodeStringPropertyFilter, DataNodeFilter) static Pointer New() | |
virtual void | SetPropertyName (std::string _arg) |
Sets the property name used for filtering. More... | |
virtual std::string | GetPropertyName () |
Gets the property name used for filtering. More... | |
virtual bool | Pass (const mitk::DataNode *node) override |
Method to decide if the node should be passed. More... | |
virtual void | ClearList () |
Clears the list of strings to match against. More... | |
virtual void | AddToList (const std::string &propertyValue) |
Add the supplied string to the list of strings to check against. More... | |
virtual void | AddToList (const std::vector< std::string > &listOfStrings) |
Adds a list of strings to the list of strings to check againts. More... | |
Protected Member Functions | |
DataNodeStringPropertyFilter () | |
virtual | ~DataNodeStringPropertyFilter () |
DataNodeStringPropertyFilter (const DataNodeStringPropertyFilter &) | |
DataNodeStringPropertyFilter & | operator= (const DataNodeStringPropertyFilter &) |
Protected Member Functions inherited from niftk::DataNodeFilter | |
DataNodeFilter () | |
Method to decide if the node should be passed. More... | |
virtual | ~DataNodeFilter () |
DataNodeFilter (const DataNodeFilter &) | |
DataNodeFilter & | operator= (const DataNodeFilter &) |
A filter that takes a named property, for example "name", and a list of strings to check against, and compares the node to see if its property (eg "name") matches any of the supplied strings, and if it does match, will return Pass=false, otherwise Pass=true.
|
protected |
|
protectedvirtual |
|
protected |
|
virtual |
Add the supplied string to the list of strings to check against.
proprtyValue | a string |
|
virtual |
Adds a list of strings to the list of strings to check againts.
listOfStrings | a list of strings |
|
virtual |
Clears the list of strings to match against.
|
virtual |
Gets the property name used for filtering.
niftk::DataNodeStringPropertyFilter::mitkClassMacro | ( | DataNodeStringPropertyFilter | , |
DataNodeFilter | |||
) |
|
protected |
|
overridevirtual |
Method to decide if the node should be passed.
node | a candidate node |
|
virtual |
Sets the property name used for filtering.