| Why isn't it allowed to reassign a window to a V3d_View? |
 |
| Timo |
2012/06/06 17:32 |
When V3d_View::SetWindow (const Handle< Aspect_Window > &IdWin) is called a second time on a view, an exception is thrown.
Documentation says:
Activates the view in the window specified and Map the Window to the screen.
//! Warning! raises MultiplyDefined from Standard if the view is already activated in a window.
Is there a way to disconnect the window from the view?
If not, I would like to understand more the reason behind it.
In my case, I'm using the view with docking. When the window is docked or undocked, the window handle changes. So, I have to create a new window and I would like to assign it to the existing V3d_View.
I know, I can create a new V3d_View instead and assign the window to it, but I don't understand why this is necessary and I had also some problems with it because the default view mapping changes if the view was scaled.
Regards,
Timo |
 |
| | | |