|
MeVisLab Toolbox Reference
|
#include <mlFileListFilterPlugin.h>
Public Member Functions | |
| FileListFilterPlugin (int numIns=0, int numOuts=0) | |
| Constructor. Input and out images are probably not used. | |
| ~FileListFilterPlugin () override | |
| Destructor. | |
| virtual void | filterFile (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList) const override |
| BoolField & | getClearPassFlagBeforeFilteringFld () const |
| Provide programming access to field interface, see corresponding member for documentation. | |
| StringField & | getVolumeLabelFld () const |
| StringField & | getVolumeConfigFld () const |
| StringField & | getProcessingSettingsFld () const |
| EnumField & | getLabelAssignModeFld () const |
| EnumField & | getConfigAssignModeFld () const |
| EnumField & | getProcessingSettingsAssignModeFld () const |
| BoolField & | getAllowRecursiveTagSearchFld () const |
| BoolField & | getApplyFilePathFilterFld () const |
| StringField & | getPathFilterRegExFld () const |
| BoolField & | getInvertPathFilterRegExFld () const |
| BoolField & | getSetPassFlagOnPathMatchesFld () const |
| BoolField & | getClearPassFlagOnPathMismatchesFld () const |
| StringField & | getRegExStatusFld () const |
| BoolField & | getApplyTagStringFilterFld () const |
| StringField & | getTagStringFilterTagIdFld () const |
| IntField & | getTagStringFilterTagValueIndexFld () const |
| StringField & | getTagStringFilterPrivateCreatorFld () const |
| BoolField & | getCheckOnlyFirstRecursiveTagStringFld () const |
| StringField & | getTagStringEvalRegExFld () const |
| BoolField & | getInvertTagStringEvalRegExFld () const |
| BoolField & | getSetTagStrEvalPassFlagOnPathMatchesFld () const |
| BoolField & | getClearTagStrEvalPassFlagOnPathMismatchesFld () const |
| StringField & | getTagFilterRegExStatusFld () const |
| BoolField & | getApplyTagValueFilterFld () const |
| StringField & | getTreeFilterExFld () const |
| StringField & | getTagId0Fld () const |
| StringField & | getTagId1Fld () const |
| StringField & | getTagId2Fld () const |
| StringField & | getTagId3Fld () const |
| IntField & | getTagId0ValueIndexFld () const |
| IntField & | getTagId1ValueIndexFld () const |
| IntField & | getTagId2ValueIndexFld () const |
| IntField & | getTagId3ValueIndexFld () const |
| StringField & | getTagId0PrivateCreatorFld () const |
| StringField & | getTagId1PrivateCreatorFld () const |
| StringField & | getTagId2PrivateCreatorFld () const |
| StringField & | getTagId3PrivateCreatorFld () const |
| DoubleField & | getConst0Fld () const |
| DoubleField & | getConst1Fld () const |
| DoubleField & | getConst2Fld () const |
| DoubleField & | getConst3Fld () const |
| DoubleField & | getRangeMinFld () const |
| DoubleField & | getRangeMaxFld () const |
| BoolField & | getSetPassFlagOnTagValueMatchesFld () const |
| BoolField & | getClearPassFlagOnTagValueMismatchesFld () const |
| StringField & | getTreeFilterStatusFld () const |
| BoolField & | getAlwaysPassEnhancedMultiFrameFilesFld () const |
| BoolField & | getFilterDecomposedEnhancedFramesFld () const |
| Public Member Functions inherited from ml::FileListFilterPluginBase | |
| FileListFilterPluginBase (int numIns=0, int numOuts=0) | |
| Constructor. Input and out images are probably not used. | |
| virtual const FileListFilterPluginBase * | getConnectedInputFilterPlugin () const |
| Returns a connected input plugin if there is one; otherwise nullptr is returned. | |
| virtual void | filterFile (FileListTools::FileAttribute &filterAttributes) const |
| virtual void | postFilterAll (FileAttributeMap &filterAttributeMap) const |
| virtual void | postFilterAll (FileAttributeMap &filterAttributeMap, FilterMessageList *messageList) const |
| BaseField & | getInputFilterPluginFld () const |
| Provide programming access to field interface, see corresponding fields for documentation. | |
| BaseField & | getOutputFilterPluginFld () const |
| Public Member Functions inherited from ml::Module | |
| MLMetaProfilePtr & | getMetaProfile () const |
| Returns the metaprofile for the base operator. | |
| const char * | getTypeNameFast () const |
| Module (int numInputImages, int numOutputImages) | |
| ~Module () override | |
| InputConnectorField * | getInputImageField (MLint i) const |
Returns the field representing input image i. i must be a valid index. | |
| OutputConnectorField * | getOutputImageField (MLint i=0) const |
Returns the field representing output image i. i must be a valid index. | |
| MLint | getNumInputImages () const |
| Returns the number of input images of this module. | |
| MLint | getNumOutputImages () const |
| Returns the number of output images of this module. | |
| PagedImage * | getOutputImage (MLint outputIndex=0) const |
Returns the output image outputIndex. The index needs to be in the range [0, getNumOutputImages()-1]. | |
| InputConnectorField * | addInputImage (const char *name=nullptr) |
| OutputConnectorField * | addOutputImage (const char *name=nullptr) |
| PagedImage * | getInputImage (MLint inputIndex, bool getReal=false) const |
| PagedImage * | getUpdatedInputImage (MLint inputIndex, bool getReal=false) const |
| MLErrorCode | processAllPages (int outputIndex=-1, SubImageBox region=SubImageBox(), MLRequestProgressCB *progressCallback=nullptr, void *progressCallbackUserData=nullptr) |
| MLErrorCode | processAllPages (ProcessAllPagesHandler &handler, SubImageBox region=SubImageBox(), MLRequestProgressCB *progressCallback=nullptr, void *progressCallbackUserData=nullptr) |
| MLErrorCode | processMissingPages (int outputIndex=0, SubImageBox region=SubImageBox(), MLRequestProgressCB *progressCallback=nullptr, void *progressCallbackUserData=nullptr) |
| void | clearOutputImage (MLint i=0) |
Clears cached output image pages of output image i. | |
| MLint | getOutputImageInplace (MLint outputIndex=0) const |
| MLint | getBypass (MLint outputIndex=0) const |
| THREAD_SUPPORT | getThreadSupport () const |
| bool | areRecursiveHandleNotificationsPermitted () const |
| MLint | getHandleNotificationEntryCounter () const |
| PERMITTED_TYPES | getVoxelDataTypeSupport () const |
| bool | isSupportedVoxelDataType (MLDataType dt) const |
| virtual INPUT_HANDLE | handleInput (int, INPUT_STATE) const |
| INPUT_STATE | getInputState (MLint index) |
| INPUT_STATE | getUpdatedInputState (MLint index) |
| bool | isInputImageField (Field *field) const |
| void | touchOutputImageFields () const |
| Touches all output image fields to indicate that the images have changed. | |
| virtual void | beginSaveFields () |
| virtual void | endSaveFields () |
| Public Member Functions inherited from ml::FieldContainer | |
| FieldContainer () | |
| Constructor. | |
| ~FieldContainer () override | |
| Destructor: Deletes all added fields. | |
| std::string | whoAmI (bool withInstanceName=true) const |
| Field * | addField (const char *name, const char *type, const char *value) |
| Field * | addField (Field *field) |
Adds a field, the ownership of the field is passed to the FieldContainer. | |
| BoolField * | addBool (const char *name) |
Creates a BoolField with name and adds it to the container. Default value is false. | |
| BoolField * | addBool (const char *name, bool value) |
Creates a BoolField with name and adds it to the container. | |
| IntField * | addInt (const char *name) |
Creates an IntField with name and adds it to the container. Default value is 0. | |
| IntField * | addInt (const char *name, MLint value) |
Creates an IntField with name and adds it to the container. | |
| EnumField * | addEnum (const char *name, const char *const *enumerationItemNames, MLint numEnumerationItems) |
| EnumField * | addEnum (const char *name, const std::vector< std::string > &enumerationItemNames) |
| template<typename EnumType> | |
| TypedEnumField< EnumType > * | addEnum (const char *name, const EnumValues< EnumType > &values, EnumType initialValue) |
| FloatField * | addFloat (const char *name) |
Creates a FloatField with name and adds it to the container. Default value is 0.f. | |
| FloatField * | addFloat (const char *name, float value) |
Creates a FloatField with name and adds it to the container. | |
| ProgressField * | addProgress (const char *name) |
Creates a float ProgressField with name and adds it to the container. Default value is 0.f. | |
| ProgressField * | addProgress (const char *name, float value) |
Creates a float ProgressField with name and adds it to the container. | |
| DoubleField * | addDouble (const char *name) |
Creates a DoubleField with name and adds it to the container. Default value is 0. | |
| DoubleField * | addDouble (const char *name, double value) |
Creates a DoubleField with name and adds it to the container. | |
| StringField * | addString (const char *name) |
Creates a StringField with name and adds it to the container. Default value is empty string. | |
| StringField * | addString (const char *name, const std::string &value) |
Creates a StringField with name and adds it to the container. | |
| NotifyField * | addNotify (const char *name) |
Creates a NotifyField field with name and adds it to the container. | |
| TriggerField * | addTrigger (const char *name) |
| BaseField * | addBase (const char *name) |
Creates a Base field with name and adds it to the container. Default value is NULL. | |
| BaseField * | addBase (const char *name, Base *value) |
Creates a Base field with name and adds it to the container. | |
| BaseField * | addBase (const char *name, const RefCountedBasePtr &value) |
Creates a Base field with name and adds it to the container. Sets the value from intrusive pointer. | |
| template<typename T> | |
| BaseField * | addBaseWithAllowedType (const char *name, T *value=nullptr) |
| As above, but also sets the allowed type of the field. | |
| template<typename T> | |
| BaseField * | addBaseWithAllowedType (const char *name, const ::boost::intrusive_ptr< T > &value) |
| As above, but also sets the allowed type of the field. | |
| template<typename T> | |
| TypedBaseField< T > * | addTypedBase (const char *name) |
Creates a TypedBaseField with name and adds it to the container. Default value is NULL. | |
| template<typename T> | |
| TypedBaseField< T > * | addTypedBase (const char *name, T *value) |
Creates a TypedBaseField with name and adds it to the container. | |
| template<typename T> | |
| TypedBaseField< T > * | addTypedBase (const char *name, const ::boost::intrusive_ptr< T > &value) |
Creates a TypedBaseField with name and adds it to the container. Sets the value from intrusive pointer. | |
| SoNodeField * | addSoNode (const char *name) |
Creates a SoNodeField with name and adds it to the container. Default value is NULL. | |
| SoNodeField * | addSoNode (const char *name, SoNode *value) |
Creates a SoNodeField with name and adds it to the container. | |
| PointerField * | addPointer (const char *name) |
Creates a PointerField with name and adds it to the container. | |
| Vector2Field * | addVector2 (const char *name) |
Creates a Vector2Field with name and adds it to the container. | |
| Vector2Field * | addVector2 (const char *name, const Vector2 &value) |
Creates a Vector2Field with name and adds it to the container. | |
| Vector2Field * | addVector2 (const char *name, double x, double y) |
Creates a Vector2Field with name and adds it to the container. | |
| Vector3Field * | addVector3 (const char *name) |
Creates a Vector3Field with name and adds it to the container. | |
| Vector3Field * | addVector3 (const char *name, const Vector3 &value) |
Creates a Vector3Field with name and adds it to the container. | |
| Vector3Field * | addVector3 (const char *name, double x, double y, double z) |
Creates a Vector3Field with name and adds it to the container. | |
| Vector4Field * | addVector4 (const char *name) |
Creates a Vector4Field with name and adds it to the container. | |
| Vector4Field * | addVector4 (const char *name, const Vector4 &value) |
Creates a Vector4Field with name and adds it to the container. | |
| Vector4Field * | addVector4 (const char *name, double x, double y, double z, double w) |
Creates a Vector4Field with name and adds it to the container. | |
| Vector5Field * | addVector5 (const char *name) |
Creates a Vector5Field with name and adds it to the container. | |
| Vector5Field * | addVector5 (const char *name, const Vector5 &value) |
Creates a Vector5Field with name and adds it to the container. | |
| Vector6Field * | addVector6 (const char *name) |
Creates a Vector6Field with name and adds it to the container. | |
| Vector6Field * | addVector6 (const char *name, const Vector6 &value) |
Creates a Vector6Field with name and adds it to the container. | |
| Vector10Field * | addVector10 (const char *name) |
Creates a Vector10Field with name and adds it to the container. | |
| Vector10Field * | addVector10 (const char *name, const Vector10 &value) |
Creates a Vector10Field with name and adds it to the container. | |
| ImageVectorField * | addImageVector (const char *name) |
Creates a ImageVectorField with name and adds it to the container. | |
| ImageVectorField * | addImageVector (const char *name, const ImageVector &value) |
Creates a ImageVectorField with name and adds it to the container. | |
| ImageVectorField * | addImageVector (const char *name, MLint x, MLint y, MLint z, MLint c, MLint t, MLint u) |
Creates a ImageVectorField with name and adds it to the container. | |
| SubImageBoxField * | addSubImageBox (const char *name) |
Creates a SubImageBoxField with name and adds it to the container. | |
| SubImageBoxField * | addSubImageBox (const char *name, const SubImageBox &value) |
Creates a SubImageBoxField with name and adds it to the container. | |
| SubImageBoxdField * | addSubImageBoxd (const char *name) |
Creates a SubImageBoxd field with name and adds it to the container. | |
| SubImageBoxdField * | addSubImageBoxd (const char *name, const SubImageBoxd &value) |
Creates a SubImageBoxd field with name and adds it to the container. | |
| ColorField * | addColor (const char *name) |
Creates a ColorField with name and adds it to the container. | |
| ColorField * | addColor (const char *name, float r, float g, float b) |
Creates a ColorField with name and adds it to the container. | |
| ColorField * | addColor (const char *name, const Vector3 &value) |
Creates a ColorField with name and adds it to the container. | |
| PlaneField * | addPlane (const char *name) |
Creates a PlaneField with name and adds it to the container. | |
| PlaneField * | addPlane (const char *name, double f0, double f1, double f2, double f3) |
Creates a PlaneField with name and adds it to the container. | |
| PlaneField * | addPlane (const char *name, const Plane &value) |
Creates a PlaneField with name and adds it to the container. | |
| RotationField * | addRotation (const char *name) |
Creates a RotationField with name and adds it to the container. | |
| RotationField * | addRotation (const char *name, const Rotation &value) |
Creates a RotationField with name and adds it to the container. | |
| Matrix2Field * | addMatrix2 (const char *name) |
Creates a Matrix2Field with name and adds it to the container. | |
| Matrix2Field * | addMatrix2 (const char *name, const Matrix2 &value) |
Creates a Matrix2Field with name and adds it to the container. | |
| Matrix3Field * | addMatrix3 (const char *name) |
Creates a Matrix3Field with name and adds it to the container. | |
| Matrix3Field * | addMatrix3 (const char *name, const Matrix3 &value) |
Creates a Matrix3Field with name and adds it to the container. | |
| Matrix4Field * | addMatrix4 (const char *name) |
Creates a Matrix4Field with name and adds it to the container. | |
| Matrix4Field * | addMatrix4 (const char *name, const Matrix4 &value) |
Creates a Matrix4Field with name and adds it to the container. | |
| Matrix5Field * | addMatrix5 (const char *name) |
Creates a Matrix5Field with name and adds it to the container. | |
| Matrix5Field * | addMatrix5 (const char *name, const Matrix5 &value) |
Creates a Matrix5Field with name and adds it to the container. | |
| Matrix6Field * | addMatrix6 (const char *name) |
Creates a Matrix6Field with name and adds it to the container. | |
| Matrix6Field * | addMatrix6 (const char *name, const Matrix6 &value) |
Creates a Matrix6Field with name and adds it to the container. | |
| MatrixField * | addMatrix (const char *name) |
Creates a MatrixField with name and adds it to the container. | |
| MatrixField * | addMatrix (const char *name, const Matrix4 &value) |
Creates a MatrixField with name and adds it to the container. | |
| MLDataTypeField * | addMLDataType (const char *name) |
Creates a MTDataTypeField with name and adds it to the container. | |
| MLDataTypeField * | addMLDataType (const char *name, MLDataType value) |
Creates a MTDataTypeField with name and adds it to the container. | |
| UniversalTypeField * | addUniversalType (const char *name) |
Creates an UniversalTypeField field with name and adds it to the container. | |
| IntListField * | addIntList (const char *name) |
Creates an IntListField field with name and empty list value and adds it to the container. | |
| IntListField * | addIntList (const char *name, const std::vector< MLint > &value) |
Creates an IntListField field with name and given list value and adds it to the container. | |
| DoubleListField * | addDoubleList (const char *name) |
Creates an DoubleListField field with name and empty list value and adds it to the container. | |
| DoubleListField * | addDoubleList (const char *name, const std::vector< double > &value) |
Creates an DoubleListField field with name and given list value and adds it to the container. | |
| Vector2ListField * | addVector2List (const char *name) |
Creates an Vector2ListField field with name and empty list value and adds it to the container. | |
| Vector2ListField * | addVector2List (const char *name, const std::vector< Vector2 > &value) |
Creates an Vector2ListField field with name and given list value and adds it to the container. | |
| Vector3ListField * | addVector3List (const char *name) |
Creates an Vector3ListField field with name and empty list value and adds it to the container. | |
| Vector3ListField * | addVector3List (const char *name, const std::vector< Vector3 > &value) |
Creates an Vector3ListField field with name and given list value and adds it to the container. | |
| Vector4ListField * | addVector4List (const char *name) |
Creates an Vector4ListField field with name and empty list value and adds it to the container. | |
| Vector4ListField * | addVector4List (const char *name, const std::vector< Vector4 > &value) |
Creates an Vector4ListField field with name and given list value and adds it to the container. | |
| size_t | getNumFields () const |
| Returns the number of added fields. | |
| bool | hasField (const std::string &name) const |
Returns true if the field with name name exists; otherwise, false is returned. | |
| Field * | getField (const std::string &name) const |
| Field * | getField (MLint index) const |
Returns pointer of field at index if it exists. If not, -1 is returned. | |
| MLint | getFieldIndex (Field *field) const |
Returns index of field if it exists. If not, -1 is returned. | |
| void | setFieldStringValue (const std::string &name, const std::string &value) |
| std::string | getFieldStringValue (const std::string &name) const |
| virtual void | deactivateAttachments () |
| Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual Base * | deepCopy () const |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| virtual bool | isRefCountedBase () const |
| Returns whether the instance is derived from RefCountedBase. | |
| virtual std::string | detailString () const |
| virtual bool | implementsPersistence (PersistenceInterface) const |
| virtual std::string | persistentState () const |
| Returns a string describing the object's internal state. | |
| virtual void | setPersistentState (const std::string &state) |
| virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. | |
| virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. | |
| virtual void | writeTo (AbstractPersistenceOutputStream *) const |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Static Public Attributes | |
| static const char *const | LabellingEnumStrings [NumLabellingEnumModes] |
| Strings according to LabellingEnumModes. | |
| static const char *const | ConfigurationAssignmentEnumStrings [NumConfigurationAssignmentEnumModes] |
| Strings according to ConfigurationAssignmentEnumModes. | |
| static const char *const | ProcessingSettingsAssignmentEnumStrings [NumProcSettingsAssignmentEnumModes] |
| Strings according to ProcessingSettingsAssignmentEnumModes. | |
Protected Member Functions | |
| void | activateAttachments () override |
| Update internal state after field reload or clone.. | |
| void | handleNotification (Field *field) override |
| virtual bool | _handleNotificationForPathStringFiltering (Field *field) |
| virtual void | _applyFilePathFiltering (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches) const |
| virtual bool | _handleNotificationForTagStringFiltering (Field *field) |
| virtual void | _applyTagStringFiltering (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches, DCMTree::Const_TreePtr &dcmTree) const |
| void | _updateFlagsAccordingToTagStringValues (const std::vector< std::string > &tagStringValues, bool &passFlag, bool &wasDisabled, bool &wasEnabled, bool &expMatches) const |
| virtual bool | _handleNotificationForTagValueFiltering (Field *field) |
| virtual void | _applyTagValueFiltering (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches, DCMTree::Const_TreePtr dcmTree) const |
| virtual void | _applyLabelling (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches) const |
| virtual void | _applyConfigAssignment (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches) const |
| virtual void | _applyProcessingSettingsAssignment (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList, bool &wasDisabled, bool &wasEnabled, bool &expMatches) const |
| DCMTree::Const_TagPtr | _searchOneOrMultipleTags (DCMTree::Const_TreePtr dcmTree, DCMTree::RawTagId rawTagId, std::vector< DCMTree::Const_TagPtr > *foundTags) const |
| DCMTree::Const_TagPtr | _getNormalOrPrivateTag (DCMTree::Const_TreePtr dcmTree, DCMTree::RawTagId rawTagId, const std::string &privateCreatorStr, std::vector< DCMTree::Const_TagPtr > *foundTags=nullptr) const |
| void | _getTagStringValues (DCMTree::Const_TreePtr dcmTree, std::vector< std::string > &foundValues) const |
| double | _getTagValueForTagValueFilter (DCMTree::Const_TreePtr dcmTree, MLint tagValueFilterId, const std::string &privateCreatorString, MLint valueIndex) const |
| Protected Member Functions inherited from ml::FileListFilterPluginBase | |
| void | handleNotification (Field *field) override |
| virtual BaseField & | _getInputFilterPluginFld () |
| Return a reference to the _inputFilterPluginFld. | |
| virtual BaseField & | _getOutputFilterPluginFld () |
| Return a reference to the _outputFilterPluginFld. | |
| virtual void | _touchOutputFilterPluginFld () |
| Convenience method to touch the output fields. | |
| virtual void | _callInputFileFilter (FileListTools::FileAttribute &filterAttributes, FilterMessageList *messageList=nullptr) const |
| virtual void | _callInputPostFilter (FileAttributeMap &filterAttributeMap, FilterMessageList *messageList=nullptr) const |
| Protected Member Functions inherited from ml::Module | |
| void | handleNotificationInternal (Field *field, FieldSensor::Strength strength) override |
| virtual CalculateOutputImageHandler * | createCalculateOutputImageHandler (PagedImage *outputImage) |
| virtual void | calculateOutputImageProperties (int outputIndex, PagedImage *outputImage) |
| virtual SubImageBox | calculateInputSubImageBox (int, const SubImageBox &outputSubImageBox, int) |
| virtual void | calculateOutputSubImage (SubImage *outputSubImage, int outputIndex, SubImage *inputSubImages) |
| virtual void | provideCustomPage (int, const SubImageBox &, MLMemoryBlockHandle &) |
| void | handleNotificationOff () |
| void | handleNotificationOn () |
| bool | isHandleNotificationOn () |
Returns true if handleNotification calls are permitted; otherwise, it returns false. | |
| void | setOutputImageInplace (MLint outputIndex=0, MLint inputIndex=0) |
| void | unsetOutputImageInplace (MLint outputIndex=0) |
| void | setBypass (MLint outputIndex=0, MLint inputIndex=0) |
| void | setClampPagesToImageExtent (bool flag=true) |
| void | setThreadSupport (THREAD_SUPPORT supportMode) |
| void | permitRecursiveHandleNotifications (bool enable) |
| void | setVoxelDataTypeSupport (PERMITTED_TYPES permTypes) |
Additional Inherited Members | |
| Static Public Member Functions inherited from ml::Module | |
| static MLErrorCode | getTile (PagedImage *image, SubImageBox loc, MLDataType datatype, void **data, const ScaleShiftData &scaleShiftData=ScaleShiftData(), MLRequestProgressCB *progressCallback=nullptr, void *progressCallbackUserData=nullptr) |
| static MLErrorCode | getTile (PagedImage *image, SubImage &subimg, const ScaleShiftData &scaleShiftData=ScaleShiftData(), MLRequestProgressCB *progressCallback=nullptr, void *progressCallbackUserData=nullptr) |
| static MLErrorCode | updateImageProperties (PagedImage *image) |
| static void | freeTile (void *data) |
| For documentation see Host::freeTile(). | |
| static void | updateProgress (const char *info1, const char *info2) |
| For documentation see Host::updateProgress(). | |
| static bool | shouldTerminate () |
| For documentation see Host::shouldTerminate(). | |
| static Field * | getPressedNotifyField () |
| For documentation see Host::getPressedNotifyField(). | |
| static void | adaptPageExtent (ImageVector &pageExtent, MLDataType imageType, const ImageVector &newImgExtent, const ImageVector &oldImgExtent, const ImageVector &pageUnit=ImageVector(0), const ImageVector &minPageExtent=ImageVector(0), const ImageVector &maxPageExtent=ImageVector(0)) |
| static std::string | getVoxelValueAsString (PagedImage *image, const ImageVector &position, MLErrorCode *errorCode=nullptr, const std::string &errorResult="") |
| static size_t | getNumModules () |
| Returns the number of instantiated modules. | |
| static Module * | getModule (size_t index) |
Returns a pointer to instantiated module index. | |
| static MLint | findModuleIndex (Module &module) |
Returns the index of Module module. If not found, -1 is returned. | |
| static void | destroyModule () |
| Protected Types inherited from ml::Module | |
| enum | THREAD_SUPPORT { NO_THREAD_SUPPORT = PagedImage::NO_THREAD_SUPPORT , MULTITHREADED = PagedImage::MULTITHREADED , IO_THREAD = PagedImage::IO_THREAD } |
A concrete module class for file and DCMTree filtering which can be used by FileList importers to filter, classify and label files.
Definition at line 34 of file mlFileListFilterPlugin.h.
Enumerator defining how configurations are assigned to the file/DCMTree attribute structures.
Definition at line 55 of file mlFileListFilterPlugin.h.
Enumerator defining how label values are assigned to the file/DCMTree attribute structures.
| Enumerator | |
|---|---|
| DoNotChangeLabel | Label of attributes are not changed at all. |
| SetLabelIfExpressionMatches | The label is assigned if any expression matches. |
| SetLabelIfExpressionDoesNotMatch | The label is assigned if any expression does not match. |
| SetLabelIfPassFlagIsTrue | The label is assigned if after filtering the pass flag is true or if it was already true before. |
| SetLabelIfPassFlagIsFalse | The label is assigned if after filtering the pass flag is false or if it was false before. |
| SetLabelIfPassFlagIsSet | The label is assigned if the pass flag is set to true (independent of its previous state). |
| SetLabelIfPassFlagIsCleared | The label is assigned if the pass flag is set to false (independent of its previous state). |
| SetLabelIfPassFlagIsUnchanged | The label is assigned if the pass flag is neither set nor cleared by the filter. |
| UnsetLabelIfExpressionMatches | The label is assigned if any expression matches. |
| UnsetLabelIfExpressionDoesNotMatch | The label is assigned if any expression does not match. |
| NumLabellingEnumModes | Number of available modes, not to be used as mode. |
Definition at line 39 of file mlFileListFilterPlugin.h.
Enumerator defining how processing settings are assigned to the file attribute structures.
Definition at line 71 of file mlFileListFilterPlugin.h.
| ml::FileListFilterPlugin::FileListFilterPlugin | ( | int | numIns = 0, |
| int | numOuts = 0 ) |
Constructor. Input and out images are probably not used.
Referenced by _getTagValueForTagValueFilter().
|
override |
Destructor.
|
protectedvirtual |
Sets volume configuration if parameters and filter results require that. It is denoted by wasDisabled if pass flag was overwritten with false, by wasEnabled if pass flag was overwritten with true, and by sets expMatches if the expression was evaluated and matches. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protectedvirtual |
Applies path filtering. Sets wasDisabled if pass flag was overwritten with false, sets wasEnabled if pass flag was overwritten with true, and sets expMatches if the expression was evaluated and matches. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protectedvirtual |
Sets volume label if parameters and filter results require that. It is denoted by wasDisabled if pass flag was overwritten with false, by wasEnabled if pass flag was overwritten with true, and by sets expMatches if the expression was evaluated and matches. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protectedvirtual |
Sets processing settings if parameters and filter results require that. It is denoted by wasDisabled if pass flag was overwritten with false, by wasEnabled if pass flag was overwritten with true, and by sets expMatches if the expression was evaluated and matches. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protectedvirtual |
Applies filtering of tag values as strings. Sets wasDisabled if pass flag was overwritten with false, sets wasEnabled if pass flag was overwritten with true, and sets expMatches if the expression was evaluated and matches. If DICOM tree accesses took place then the tree is also returned in dcmTree and can be reused to reduce tree load operations. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protectedvirtual |
Applies filtering of tag values as numeric values. Sets wasDisabled if pass flag was overwritten with false, sets wasEnabled if pass flag was overwritten with true, and sets expMatches if the expression was evaluated and matches. If DCMTree is passed then it should be the DICOM tree already loaded by _applyTagStringFiltering which can be reused to avoid that reloading costs performance. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
|
protected |
Function to get as many normal or private tag values from the given DCIOM tree dependent on whether tagId has an even (normal) or an odd (private) group id and whether tags shall be searched recursively or not and whether only the first recursively found tag shall be used or all. If necessary the higher byte (bits 8-15) of the private element tag id is replaced by the correct private slot determined from privateCreatorStr.
| dcmTree | The DICOM tree the tag is read from. |
| rawTagId | The id of the tag which shall be retrieved; on private tag ids (if the group id is odd) the highest byte of the element id is ignored and replaced by the private slot determined from privateCreatorStr. |
| privateCreatorStr | Used only if the rawTagId has an odd group id, otherwise ignored. On an odd group id in rawTagId the private slot for the rawTagIs is determined from privateCreatorStr and used to replace the value in bits 8-15 in rawTagId. |
| foundTags | Ignored if nullptr, otherwise all found tags found in the tree are returned in *foundTags which is resized appropriately. The maximum number of searched tags depend on whether the tag is searched recursively and whether only the first or all found tags shall be used. |
|
protected |
Retrieves as many string values from dcmTree as possible and specified by _allowRecursiveTagSearchFld and _checkOnlyFirstRecursiveStringTagFld and returns them in foundValues.
|
protected |
Read tag tagValueFilterId from dcmTree, take its double value and return it.
| dcmTree | The DICOM tree the tag is read from. |
| tagValueFilterId | The id of the tag which shall be retrieved; on private tag ids (if the group id is odd) the highest byte of the element id is ignored and replaced by the private slot determined from privateCreatorStr. |
| privateCreatorString | Used only if the rawTagId has an odd group id, otherwise ignored. On an odd group id in rawTagId the private slot for the rawTagIs is determined from privateCreatorStr and used to replace the value in bits 8-15 in rawTagId. |
| valueIndex | the first value is returned if smaller or equal 0, otherwise the valueIndex's value if it exist; if it does not exist always 0 is returned. |
References FileListFilterPlugin().
|
protectedvirtual |
Do the notification handling for path string filtering, return true if output notification is needed.
|
protectedvirtual |
Do the notification handling for tag string filtering, return true if output notification is needed.
|
protectedvirtual |
Do the notification handling for tag value filtering, return true if output notification is needed.
|
protected |
Dependent on _allowRecursiveTagSearchFld and _checkOnlyFirstRecursiveTagStringFld one or multiple tags with id rawTagId are searched in dcmTree, if possible the first one is returned as return values, foundTags are filled with all found values if passed non-nullptr.
| dcmTree | The tree in which the tags shall be searched. |
| rawTagId | The id of the tag(s) to be searched. |
| foundTags | Ignored if nullptr, otherwise resized to number of found tags and filled with the tag pointers. |
|
protected |
Apply tag string expression on all values in tagStringValues and update the flags.
| tagStringValues | The string values on which the expression shall be applied. |
| passFlag | The pass flag which may be reset or cleared depending of expression results and field configuration. |
| wasDisabled | The flag which may be set if all expression evaluation mismatched and _clearTagStrEvalPassFlagOnPathMismatchesFld is on. |
| wasEnabled | The flag which may be set if at least on expression evaluation matched and _setTagStrEvalPassFlagOnPathMatchesFld is on. |
| expMatches | The flag which may be set if at least on expression evaluation matched. |
|
overrideprotectedvirtual |
Update internal state after field reload or clone..
Reimplemented from ml::FieldContainer.
|
overridevirtual |
Evaluates the regular expression given by field _pathFilterRegExFld on the filterAttributes.filePath. On matches filterAttributes.pass is left unchanged, otherwise it is set to false. Then it calls connected plugins is there are any. If messageList is passed nullptr then messages are posted to the ML error handler, otherwise they are appended to message list.
Reimplemented from ml::FileListFilterPluginBase.
|
inline |
Definition at line 118 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 158 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 119 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 125 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 135 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 129 of file mlFileListFilterPlugin.h.
|
inline |
Provide programming access to field interface, see corresponding member for documentation.
Definition at line 111 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 123 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 156 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 133 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 116 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 149 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 150 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 151 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 152 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 159 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 121 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 131 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 115 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 120 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 117 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 114 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 154 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 153 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 124 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 122 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 155 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 132 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 134 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 137 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 145 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 141 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 138 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 146 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 142 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 139 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 147 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 143 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 140 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 148 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 144 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 130 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 128 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 126 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 127 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 136 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 157 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 113 of file mlFileListFilterPlugin.h.
|
inline |
Definition at line 112 of file mlFileListFilterPlugin.h.
|
overrideprotectedvirtual |
Handle field changes of the field field, typically of the input field where changes are passes as notification to the _outputFilterPluginFld.
Reimplemented from ml::Module.
|
static |
Strings according to ConfigurationAssignmentEnumModes.
Definition at line 90 of file mlFileListFilterPlugin.h.
|
static |
Strings according to LabellingEnumModes.
Definition at line 87 of file mlFileListFilterPlugin.h.
|
static |
Strings according to ProcessingSettingsAssignmentEnumModes.
Definition at line 93 of file mlFileListFilterPlugin.h.