16#if !defined(__mlKernelEditor_H)
17#define __mlKernelEditor_H
Field to encapsulate a double value.
Base class for all fields used in the ML.
Field to encapsulate an integer value.
The class to edit a 6D kernel.
IntField * getKernelUFld() const
IntField * getKernelXFld() const
NotifyField * getPowFld() const
std::vector< std::string > _undoList
List of strings to push recent kernels.
NotifyField * getDivFld() const
StringField * getKernelStringFld() const
NotifyField * getSphereFld() const
NotifyField * getInvDivFld() const
DoubleField * getValueFld() const
virtual void _updateInfo(std::string errString="")
Update the kernel information line with kernel infos or error lines.
NotifyField * getMirrorFld() const
NotifyField * getSetElementValuesFld() const
void calculateOutputImageProperties(int outIndex, PagedImage *outputImage) override
Return kernel size as output image size. Set page size to 64x64x1x1x1x1.
NotifyField * getSubFld() const
void activateAttachments() override
Called when field settings are finished after load.
NotifyField * getSqrFld() const
NotifyField * getMirrorCFld() const
NotifyField * getInvSubFld() const
NotifyField * getMultFld() const
virtual void _stringToKernel(bool addToUndo=true)
Converts current editor string to a kernel and append it to the undo list if addToUndo is true.
IntField * getFieldWidthFld() const
IntField * getKernelYFld() const
IntField * getKernelCFld() const
IntField * getKernelTFld() const
void calculateOutputSubImage(SubImage *outSubImg, int, SubImage *) override
Implements the call of calculateOutputSubImage() for all data types.
NotifyField * getMirrorUFld() const
SubImageBox calculateInputSubImageBox(int, const SubImageBox &, int) override
We don't need any input image to calculate the output. So return an empty box.
void handleNotification(Field *field) override
Called when a parameter field is changed.
NotifyField * getGaussFld() const
NotifyField * getNormalizeFld() const
NotifyField * getLogFld() const
NotifyField * getSetExtFld() const
ML_MODULE_CLASS_HEADER(KernelEditor)
Macro to declare methods for the runtime system, defined in mlRuntimeSubClass.h.
IntField * getKernelZFld() const
NotifyField * getRedoFld() const
IntField * getNumElementsFld() const
MLint _recEntries
Counter for recursive entries in handleNotifications.
void calculateOutputSubImage(TSubImage< DATATYPE > *outSubImg, int outIndex)
Return kernel as output image.
NotifyField * getMirrorZFld() const
NotifyField * getSqrtFld() const
NotifyField * getAddFld() const
std::vector< std::string > _redoList
List of strings to redo recent kernels.
IntField * getPrecisionFld() const
KernelEditor()
Constructor.
NotifyField * getMirrorXFld() const
NotifyField * getFillFld() const
NotifyField * getMirrorYFld() const
NotifyField * getMirrorTFld() const
NotifyField * getUndoFld() const
virtual void _kernelToString(bool addToUndo=true)
Converts the current kernel to the editor string and append it to the undo list if addToUndo is true.
DoubleField * getElementSumFld() const
StringField * getInfoFld() const
Base class for an image processing module of the ML.
Field without value for notifications.
Class which represents an image, which manages properties of an image and image data which is located...
Field to encapsulate a string value.
This class manages/represents a rectangular 6d image region which is organized linearly in memory.
This template class manages/represents a rectangular 6d image region in memory which is organized lin...
#define MLKERNELEXPORT
Includes files used in many parts of the dll, defined dll-specific macros and controls any system dep...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
TSubImageBox< MLint > SubImageBox
Define the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type.