Extended the device parameter notation to include offsets using

'+' and '-' in the same way that '*' is currently used for specifying
a parameter scaling.  The combination of a scale and offset for the
same parameter has not (yet) been implemented.
This commit is contained in:
Tim Edwards
2023-06-21 20:44:38 -04:00
parent 482d7534a2
commit 07267dc126
8 changed files with 69 additions and 19 deletions
+8
View File
@@ -1662,6 +1662,10 @@ extOutputParameters(def, transList, outFile)
fprintf(outFile, " %c%c=%s*%g",
plist->pl_param[0], plist->pl_param[1],
plist->pl_name, plist->pl_scale);
else if (plist->pl_offset != 0.0)
fprintf(outFile, " %c%c=%s%+g",
plist->pl_param[0], plist->pl_param[1],
plist->pl_name, plist->pl_offset);
else
fprintf(outFile, " %c%c=%s", plist->pl_param[0],
plist->pl_param[1], plist->pl_name);
@@ -1672,6 +1676,10 @@ extOutputParameters(def, transList, outFile)
fprintf(outFile, " %c=%s*%g",
plist->pl_param[0],
plist->pl_name, plist->pl_scale);
if (plist->pl_offset != 0.0)
fprintf(outFile, " %c=%s%+g",
plist->pl_param[0],
plist->pl_name, plist->pl_offset);
else
fprintf(outFile, " %c=%s", plist->pl_param[0],
plist->pl_name);