I wonder if I need a context for each viewer ? can viewers share the context ? My windows show different views of single physical object. Can I somehow pass them a single context ?
I.E.
When I create my windows, a context is created. Do I need a seperate context for each window ? I have attached a picture of my application. Two views of the same geometric object is shown. Can I use a single context for all the vindows ?
myViewer = new V3d_Viewer(GetGraphicDriver());
myView = myViewer->CreateView();
myView->SetWindow(wind);
if (!wind->IsMapped()) wind->Map();
// Create AISInteractiveContext
myContext = new AIS_InteractiveContext(myViewer);
Also as each window has its own context, when a selection is done in one window, the other windows does not reflect the selection. So do I manage that manually as well or share the same context between widows somehow.
I.E.
When I create my windows, a context is created. Do I need a seperate context for each window ? I have attached a picture of my application. Two views of the same geometric object is shown. Can I use a single context for all the vindows ?
myViewer = new V3d_Viewer(GetGraphicDriver());
myView = myViewer->CreateView();
myView->SetWindow(wind);
if (!wind->IsMapped()) wind->Map();
// Create AISInteractiveContext
myContext = new AIS_InteractiveContext(myViewer);
Also as each window has its own context, when a selection is done in one window, the other windows does not reflect the selection. So do I manage that manually as well or share the same context between widows somehow.
Attachments
Last edited: