MeVisLab Toolbox Reference
|
Class implementing some search functionality on MultiFileVolumeLists. More...
#include <mlMultiFileVolumeListFind.h>
Public Types | |
enum | BooleanOperation { BOOLEAN_OP_AND = 0 , BOOLEAN_OP_OR , NUM_BOOLEAN_OPS } |
An enumeration to define the boolean op to be performed on the results of all search items. More... | |
Public Member Functions | |
MultiFileVolumeListFind () | |
MultiFileVolume * | findVolumeByInstanceUID (const MultiFileVolumeList &mfvList, std::string sopClassUID, std::string sopInstanceUID) const |
Find a volume in mfvList using given SOPClassUID and SOPInstanceUID. | |
bool | findVolumesByCriteria (const MultiFileVolumeList &mfvList, TSearchTerm searchTerm, std::vector< MLuint32 > &outVolumeIds, BooleanOperation booleanOperation, bool searchAnyValue) const |
Find volumes in mfvList using given searchTerm (containing e.g. | |
Class implementing some search functionality on MultiFileVolumeLists.
Definition at line 40 of file mlMultiFileVolumeListFind.h.
An enumeration to define the boolean op to be performed on the results of all search items.
Enumerator | |
---|---|
BOOLEAN_OP_AND | |
BOOLEAN_OP_OR | |
NUM_BOOLEAN_OPS |
Definition at line 45 of file mlMultiFileVolumeListFind.h.
|
inline |
Definition at line 52 of file mlMultiFileVolumeListFind.h.
MultiFileVolume * ml::MultiFileVolumeListFind::findVolumeByInstanceUID | ( | const MultiFileVolumeList & | mfvList, |
std::string | sopClassUID, | ||
std::string | sopInstanceUID ) const |
Find a volume in mfvList using given SOPClassUID and SOPInstanceUID.
bool ml::MultiFileVolumeListFind::findVolumesByCriteria | ( | const MultiFileVolumeList & | mfvList, |
TSearchTerm | searchTerm, | ||
std::vector< MLuint32 > & | outVolumeIds, | ||
BooleanOperation | booleanOperation, | ||
bool | searchAnyValue ) const |
Find volumes in mfvList using given searchTerm (containing e.g.
DICOM tag ids of uint32 type); all criteria are composed with booleanOperation.
mfvList | The MultiFileVolumeList in which the tag+value combination is searched. |
searchTerm | The multimap of pairs of raw-tag-id and value to be searched. |
outVolumeIds | The vector with index ids of all matching volumes in mfvList. |
booleanOperation | The boolean operation deciding whether all searchTerm must be fulfilled (And) or only at least one (Or). |
searchAnyValue | If true then it is looked only existing tags and not for the value, otherwise the value must match. |