#include <WEMGenerator.h>

Public Member Functions | |
| WEMGenerator (std::string type="WEMGenerator", int numInImages=0, int numOutImages=0) | |
| Standard constructor. | |
Protected Member Functions | |
| virtual | ~WEMGenerator () |
| Standard destructor. | |
| virtual void | handleNotification (Field *field) |
| Called when input changes. | |
| virtual void | activateAttachments () |
| Initialize module after loading. | |
| virtual void | _process () |
| Triggers the computation of the generation. | |
| virtual void | _finish (WEMPatch *wemPatch) |
| Finish generation of given WEMPatch. | |
| virtual void | _addWEMPatch (WEMPatch *wemPatch) |
| Adds a new WEMPatch to the output list and applies the default attributes. | |
| void | _applyFields (WEMPatch *wemPatch) |
| Applies the default parameters to the given WEMPatch. | |
| void | _applyMetaFields (WEMPatch *wemPatch) |
| Applies meta information parameters to the given WEMPatch. | |
| void | _applyNodeFields (WEMPatch *wemPatch) |
| Applies node information parameters to the given WEMPatch. | |
| void | _applyEdgeFields (WEMPatch *wemPatch) |
| Applies edge information parameters to the given WEMPatch. | |
| void | _applyFaceFields (WEMPatch *wemPatch) |
| Applies face information parameters to the given WEMPatch. | |
| void | _applyBoundingBoxFields (WEMPatch *wemPatch) |
| Applies bounding box information parameters to the given WEMPatch. | |
| virtual void | _notifyObservers () |
| Notify observers with FINISHED | SELECTION | REPAINT message. | |
| void | _cleanup () |
| Removes previously generated WEMs. | |
Protected Attributes | |
| BoolField * | _autoApplyFld |
| Auto apply field. | |
| BoolField * | _autoUpdateFld |
| Auto update field. | |
| BoolField * | _autoClearFld |
| Auto clear field. | |
| StringField * | _labelFld |
| Field for changing the 'label' attribute of a WEM. | |
| StringField * | _descriptionFld |
| Field for changing the 'description' attribute of a WEM. | |
| bool | _outputWEMOwner |
| Is this module the owner of the outputList? | |
| WEM * | _outWEM |
| A pointer to the output WEM. | |
Basically it determines the type of the WEM and an id that can be used to associate WEMs with their generator.
Definition at line 29 of file WEMGenerator.h.
| ml::WEMGenerator::WEMGenerator | ( | std::string | type = "WEMGenerator", |
|
| int | numInImages = 0, |
|||
| int | numOutImages = 0 | |||
| ) |
Standard constructor.
| virtual ml::WEMGenerator::~WEMGenerator | ( | ) | [protected, virtual] |
Standard destructor.
| virtual void ml::WEMGenerator::_addWEMPatch | ( | WEMPatch * | wemPatch | ) | [protected, virtual] |
Adds a new WEMPatch to the output list and applies the default attributes.
Reimplemented in ml::WEMProcessor.
| void ml::WEMGenerator::_applyBoundingBoxFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies bounding box information parameters to the given WEMPatch.
| void ml::WEMGenerator::_applyEdgeFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies edge information parameters to the given WEMPatch.
| void ml::WEMGenerator::_applyFaceFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies face information parameters to the given WEMPatch.
| void ml::WEMGenerator::_applyFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies the default parameters to the given WEMPatch.
| void ml::WEMGenerator::_applyMetaFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies meta information parameters to the given WEMPatch.
| void ml::WEMGenerator::_applyNodeFields | ( | WEMPatch * | wemPatch | ) | [protected] |
Applies node information parameters to the given WEMPatch.
| void ml::WEMGenerator::_cleanup | ( | ) | [protected] |
Removes previously generated WEMs.
| virtual void ml::WEMGenerator::_finish | ( | WEMPatch * | wemPatch | ) | [protected, virtual] |
Finish generation of given WEMPatch.
| virtual void ml::WEMGenerator::_notifyObservers | ( | ) | [protected, virtual] |
Notify observers with FINISHED | SELECTION | REPAINT message.
| virtual void ml::WEMGenerator::_process | ( | ) | [protected, virtual] |
| virtual void ml::WEMGenerator::activateAttachments | ( | ) | [protected, virtual] |
Initialize module after loading.
Reimplemented from ml::WEMModule.
Reimplemented in ml::WEMProcessor.
| virtual void ml::WEMGenerator::handleNotification | ( | Field * | field | ) | [protected, virtual] |
BoolField* ml::WEMGenerator::_autoApplyFld [protected] |
Auto apply field.
If this is enabled, generating is done whenever any field changes.
Definition at line 47 of file WEMGenerator.h.
BoolField* ml::WEMGenerator::_autoClearFld [protected] |
Auto clear field.
If this is enabled, the output is invalidated whenever the input gets disconnected.
Definition at line 53 of file WEMGenerator.h.
BoolField* ml::WEMGenerator::_autoUpdateFld [protected] |
Auto update field.
If this is enabled, generating is done whenever the input changes.
Definition at line 50 of file WEMGenerator.h.
StringField* ml::WEMGenerator::_descriptionFld [protected] |
Field for changing the 'description' attribute of a WEM.
Definition at line 58 of file WEMGenerator.h.
StringField* ml::WEMGenerator::_labelFld [protected] |
bool ml::WEMGenerator::_outputWEMOwner [protected] |
WEM* ml::WEMGenerator::_outWEM [protected] |
1.5.8