ObjectStateManager

The viewercommon object that holds the visible, hidden and selected Qid sets and the per-object colours, shared by every viewer attached to it. Its inputs are Qids or a BQL query.

Selection, visibility and colour are state, not rendering, so they live outside the viewers: every method (setToSelectionSet, addToVisibleSet, setColor, …) takes a set of Qids or a BQL query, which is resolved on the server, and the 3D and 2D viewers attached to the same manager react together. An application can run two managers over one ModelManager when two viewers must show different states.