#include <WEMProcessor.h>

Public Member Functions | |
| WEMProcessor (std::string type="WEMProcessor", bool useInput=true, int numInImages=0, int numOutImages=0) | |
| Standard constructor. | |
Protected Member Functions | |
| virtual | ~WEMProcessor () |
| Standard destructor. | |
| WEMRequirements * | getRequirements () |
| Get requirements. | |
| bool | areEdgesRequired () |
| Are edges required? | |
| bool | isPatchTypeRequired (PatchTypes patchType) |
| Is patch type required? | |
| bool | isOrientationTypeRequired (OrientationTypes orientationType) |
| Is orientation type required? | |
| void | requireEdges (bool requireEdgesFlag=true) |
| Require edges. | |
| void | requirePatchType (PatchTypes patchType) |
| Require patch type. | |
| void | requireOrientationType (OrientationTypes orientationType) |
| Require orientation type. | |
| virtual void | handleNotification (Field *field) |
| Called when input changes. | |
| virtual void | activateAttachments () |
| Initialize module after loading. | |
| virtual void | _process () |
| Triggers the computation of the preprocessing. | |
| virtual void | _inWEMChanged () |
| Called when the inputWEM has changed. | |
| virtual void | _addWEMPatch (WEMPatch *wemPatch) |
| Adds a new WEMPatch to the output list and optionally applies the default attributes. | |
| WEMPatch * | _makeCompatible (WEMPatch *wemPatch) |
| Make given WEMPatch compatible with module requirements. | |
| void | _copyWEMPatch (WEMPatch *wemPatch) |
| Copy given WEM. | |
Static Protected Member Functions | |
| static void | _wemNotificationCB (void *userData, std::vector< WEMEventContainer > ecList) |
| Callback method that gets triggered on notifications. | |
Protected Attributes | |
| BoolField * | _copyInputWEMsFld |
| Copy WEM? | |
| ProgressField * | _progressFld |
| Progress field. | |
| EnumField * | _triangulationModeFld |
| Triangulation mode (used to get compatible patch on requireTriangulation). | |
| BoolField * | _modifyAttributesFld |
| Modify attribute fields when using copy? | |
| WEM * | _inWEM |
| Pointer to inWEM. | |
| bool | _isInNotificationCB |
| Is this module currently in the notification callback? | |
| bool | _isNotifyingMyself |
| Is this module notifying itself? | |
| bool | _forceCompatible |
| Make compatible during creation of _outWEM? If new patches are created, _copyInputWEMs is set to true. | |
Basically it determines the type of the WEM and an id that can be used to associate WEMs with their processor. Modules with a WEM input and a WEM output derive from this module.
Definition at line 32 of file WEMProcessor.h.
| ml::WEMProcessor::WEMProcessor | ( | std::string | type = "WEMProcessor", |
|
| bool | useInput = true, |
|||
| int | numInImages = 0, |
|||
| int | numOutImages = 0 | |||
| ) |
Standard constructor.
| virtual ml::WEMProcessor::~WEMProcessor | ( | ) | [protected, virtual] |
Standard destructor.
| virtual void ml::WEMProcessor::_addWEMPatch | ( | WEMPatch * | wemPatch | ) | [protected, virtual] |
Adds a new WEMPatch to the output list and optionally applies the default attributes.
Reimplemented from ml::WEMGenerator.
| virtual void ml::WEMProcessor::_inWEMChanged | ( | ) | [protected, virtual] |
Called when the inputWEM has changed.
Make given WEMPatch compatible with module requirements.
| virtual void ml::WEMProcessor::_process | ( | ) | [protected, virtual] |
| static void ml::WEMProcessor::_wemNotificationCB | ( | void * | userData, | |
| std::vector< WEMEventContainer > | ecList | |||
| ) | [static, protected] |
Callback method that gets triggered on notifications.
| virtual void ml::WEMProcessor::activateAttachments | ( | ) | [protected, virtual] |
| bool ml::WEMProcessor::areEdgesRequired | ( | ) | [inline, protected] |
| WEMRequirements* ml::WEMProcessor::getRequirements | ( | ) | [inline, protected] |
| virtual void ml::WEMProcessor::handleNotification | ( | Field * | field | ) | [protected, virtual] |
| bool ml::WEMProcessor::isOrientationTypeRequired | ( | OrientationTypes | orientationType | ) | [inline, protected] |
| bool ml::WEMProcessor::isPatchTypeRequired | ( | PatchTypes | patchType | ) | [inline, protected] |
| void ml::WEMProcessor::requireEdges | ( | bool | requireEdgesFlag = true |
) | [inline, protected] |
| void ml::WEMProcessor::requireOrientationType | ( | OrientationTypes | orientationType | ) | [inline, protected] |
| void ml::WEMProcessor::requirePatchType | ( | PatchTypes | patchType | ) | [inline, protected] |
BoolField* ml::WEMProcessor::_copyInputWEMsFld [protected] |
bool ml::WEMProcessor::_forceCompatible [protected] |
Make compatible during creation of _outWEM? If new patches are created, _copyInputWEMs is set to true.
Definition at line 89 of file WEMProcessor.h.
WEM* ml::WEMProcessor::_inWEM [protected] |
bool ml::WEMProcessor::_isInNotificationCB [protected] |
Is this module currently in the notification callback?
Definition at line 65 of file WEMProcessor.h.
bool ml::WEMProcessor::_isNotifyingMyself [protected] |
BoolField* ml::WEMProcessor::_modifyAttributesFld [protected] |
ProgressField* ml::WEMProcessor::_progressFld [protected] |
EnumField* ml::WEMProcessor::_triangulationModeFld [protected] |
Triangulation mode (used to get compatible patch on requireTriangulation).
Definition at line 54 of file WEMProcessor.h.
1.5.8