Note: lists.aswf.io will be down for maintenance on Wednesday, October 5th, starting at 9AM Pacific Time (4PM Wednesday October 5, 2022 UTC), for approximately one hour.
Implementing a CustomTransform
Lukas Stockner <lukas.s...@...>
I recently found that it would be quite useful to have a CustomTransform that allows to add own Transforms without changing the actual OCIO code.
My idea for this would be to have a CustomTransform class with a pure virtual function which is called by BuildCustomOps and puts the required Ops into the OpRcPtrVec.
To add an own transform, it would then be enough to inherit MyTransform from CustomTransform and implement this virtual function (in addition to the regular Transform member functions), which then pushes self-defined Ops into the OpRcPtrVec.
Are there problems with this approach? If no, should I implement it and send a pull request?