104 std::vector <WEMEventContainer> _delayedEvents;
113 static void _WEMOwnerCB(
void* userData,
int notificationFlag,
int dataFlag = 0);
Field to encapsulate a pointer to an ML base object.
Field to encapsulate a boolean value.
Base class for all fields used in the ML.
Field to encapsulate an integer value.
Field without value for notifications.
Field to encapsulate a string value.
TypedEnumField is used to encapsulate a C++ enum value and work with a real enum value instead of int...
The WEMGenerator is the base class for all modules that generate WEMs, be it automatically or interac...
NotifyField * _applyFld
Apply field, click to start generation.
void _applyMetaFields(WEMPatch *wemPatch)
Applies meta information parameters to the given WEMPatch.
StringField * _labelFld
Field for changing the 'label' attribute of a WEM.
BaseField * _outputWEMFld
WEM output field.
void activateAttachments() override
Initialize module after loading.
WEMGenerator(std::string type="WEMGenerator", int numInImages=0, int numOutImages=0, bool shouldGenerateApplyField=true)
Standard constructor.
void handleNotification(Field *field) override
Called when input changes.
virtual void _finish(WEMPatch *wemPatch)
Finish generation of given WEMPatch.
WEMPtr _outWEM
A pointer to the output WEM.
virtual void _addWEMPatch(WEMPatch *wemPatch)
Adds a new WEMPatch to the output list and applies the default attributes.
virtual void _process()
Triggers the computation of the generation.
StringField * _descriptionFld
Field for changing the 'description' attribute of a WEM.
TypedEnumField< WEMUpdateMode > * _updateModeFld
Update mode: defines how the module reacts on any input change.
void _applyFields(WEMPatch *wemPatch)
Applies the default parameters to the given WEMPatch.
BoolField * _autoApplyFld
Auto apply field.
virtual void _notifyObservers()
Notify observers with FINISHED | SELECTION | REPAINT message.
BoolField * _overwriteLabelDescriptionFld
Shall the label and the description be overwritten?
void _finishProcessing() override
Finishing processing: measuring time and optionally apply meta field values.
NotifyField * _clearFld
Clear field, click to clear a module's WEM output (WEM is empty).
BoolField * _shouldComputeNormalsFld
Should the normals be computed anew on finishing a process?
~WEMGenerator() override
Standard destructor.
The WEMModule class provides some common fields and methods for WEMProcessors, WEMGenerators and WEMI...
Base class for triangle and quad patches.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.