CppParameterInfoExample¶
-
MLModule
¶ author Jan-Martin Kuhnigk
package FMEstable/ReleaseMeVis
dll MLCppParameterInfoExample
definition CppParameterInfoExample.def see also ParameterInfoInspector
keywords test
,example
,tile
,classifi
,ExampleCppTileClassifier
Purpose¶
Example for a C++-based support for ParameterInfo
, which allows convenient inspection (via ParameterInfoInspector
) and storage (via JSON) in python.
Usage¶
The ParameterInfo objects can be retrieved from the outputs by
- Calling the wrapper function (
.object().toDict()
foroutCppParameterInfo
and.object().getParameterInfo()
foroutBaseWithParameterInfoExample
), or - Connecting the
ParameterInfoInspector
, or - Enabling the Output Inspector (in
View/Views
) and left-clicking on one of the outputs
Check out the example network to try this out, and the ParameterInfoInspector sources for advanced usage.
Output Fields¶
Parameter Fields¶
Field Index¶
In Example Double : Double |
In Example Float Vector : Vector3 |
In Example Image Vector : IntVector6 |
In Example Int : Integer |
In Example String : String |
In Example Sub Image Box : String |
Visible Fields¶
In Example Double¶
-
name:
inExampleDouble
, type:
Double
, default:
47.11
¶ Some example double parameter
In Example String¶
-
name:
inExampleString
, type:
String
, default:
Some String
¶ Some example string parameter
In Example Image Vector¶
-
name:
inExampleImageVector
, type:
IntVector6
, default:
1 2 3 4 5 6
¶ Some example ImageVector parameter