I have a use case (for aeva) where I would like an operation to modify the application’s selection. I see a few ways to do it:
ReferenceItems to the operator’s
Resultattribute named append to selection and remove from selection. Then the application can decide what to do with them when processing the result. The reference items can have
HoldReference="true"so that shared pointer things (like ephemeral selection objects).
bad: add a new
XMLOperationand have the application register its
Selectionwith the operation manager, which will construct each SelectionOperation it creates with the application’s selection object.
ugly: have the operation link to the SMTK’s
paraview/appcomponentslibrary. When the application runs, it fetches the application’s selection from the
pqSMTKBehaviorinstance and modifies it.
While I included the ugly option as a joke (albeit a prank I may pull in the short term), does anyone have a preference for the long-term solution?