Hello Victor,

        To change the current working area of your plugin tab you can use this 
code:
        if ( GetPluginTab() )
        {
                GetPluginTab()->ShowWindow( "SideBySideWorkingArea", true );
        }

        When a widget process some data and you want to choose the render 
window where you want to render it, you need to change the active window of the 
working area:
        wxWindow* win = 
GetPluginTab()->GetWorkingAreaManager()->GetActiveWorkingArea( );
        Core::Widgets::RenderWindowContainer* container;
        container = dynamic_cast<Core::Widgets::RenderWindowContainer*> ( win );
        container->SetActiveWindow( 0 );
        GetRenderingTree( )->Add( ...
        container->SetActiveWindow( 1 );
        GetRenderingTree( )->Add( ...

        Finally, you can also create a custom working area, adding a MITK 
render window, buttons, labels...
        
https://sourceforge.net/apps/mediawiki/gimias/index.php?title=HowToCreateNewWorkingArea

Best regards,
Xavi

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to