-
Hi all - In the algorithm I'm working on, I realized I need to pass in a scalar value into my generator() method. Similar in concept to the "offset" Param that's in lesson_10*. Also, this is not an ImageParam, nor a GeneratorParam, if there's confusion in my meaning. However, my generator library is generated with the steps outlined in lesson_21 (where I don't invoke Func.compile_to_static_library(...) ) So, my runner code knows the nature of the scalar, but how do I pass it into my generator prototype fct? Thanks, Charles. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If I understand correctly, yyou're asking is for the Generator equivalent of a If the value of the scalar is known at compile-time and you want to make compile-time decisions based on it, that's a GeneratorParam. |
Beta Was this translation helpful? Give feedback.
Correct. I was just looking at that lesson21 generator. I guess I can interpret it this way:
When you declare your Generator class, you have this sequence of public-scoped member variables:
When I run the GenGen.cpp - oriented mygenerator_generator executable, it effectively outputs this prototype in the mygen.h header file