Overview
Example
Say, we want to disclose the parameterization of a class MyAlgorithm:
The header file of an example object we want to provide the parameter info of:
private:
ParameterInfo _getParameterInfo() const override;
ml::SubImageBox _exampleSubImageBox{ { 1, 2, 3, 4, 5, 6 }, { 1, 2, 3, 4, 5, 6 } };
};
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.
In the MeVisLab network, we would want the ParameterInfoInspector module to show for that object:
{
"ExampleInt": 4711,
"ExampleDouble": 47.11,
"ExampleString": "Some String",
"ComplexDatatypes": {
"ExampleImageVector": [ 1, 2, 3, 4, 5, 6 ],
"ExampleFloatVector": [ 1.1, 2.2, 3.3 ],
"ExampleSubImageBox": [ [ 1, 2, 3, 4, 5, 6 ], [ 1, 2, 3, 4, 5, 6 ] ]
}
}
We could achieve this with this implementation in the corresponding source file:
void MyAlgorithm::_getParameterInfo() const {
}
#define ML_CLASS_SOURCE(className, parentName)
This macro has to be put into the source file of a non-abstract class to implement the methods declar...
QVariantList ToQVariantList(const TImageVector< ValueType > &vec)
QVariantList FloatVectorToQVariantList(const FloatingPointVector< ValueType, N, DC > &vec)