Hi Aida,

 

                Enable function is called at initialization with the value
enable == false. Could you try to change layout only when enable is true?

 

                If this doesn’t work, could you give me more details about
the error you get?

 

Thanks!

Xavi

 

From: Aida Ninyerola [mailto:[email protected]] 
Sent: viernes, 22 de julio de 2011 14:36
To: Xavier Planes
Cc: [email protected]
Subject: Re: [Gimias-developers] working area

 

Hi,

I've used the Enable function like this:

bool ReconstructionPlugin::ReconstructionPanelWidget::Enable( bool enable
/*= true */ )
{
    bool bReturn = ReconstructionPluginReconstructionPanelWidgetUI::Enable(
enable );

    GetMultiRenderWindow()->GetMetadata()->AddTag( "LayoutType",
int(mitk::Single2D_Z ) );
    GetMultiRenderWindow()->GetMetadataHolder( )->NotifyObservers( );

    // If this panel widget is selected -> Update the widget
    if ( enable )
    {
        UpdateWidget();
    }

    return bReturn;
}

I don't know if I've missed something because I doesn't work.

Thanks!
Aida

2011/7/22 Xavier Planes <[email protected]>

Hi Aida,

 

                Can you try to set it at Enable() function? You need to
overwrite it from parent class and call the parent Enable() function.

 

                Enable will be called when the widget is shown in the plugin
tab.

 

Best,

Xavi

 

From: Aida Ninyerola [mailto:[email protected]] 
Sent: jueves, 21 de julio de 2011 17:58
To: Xavier Planes
Cc: [email protected]
Subject: Re: [Gimias-developers] working area

 

Thank you, it worked!

But I have another problem. I would like to have the working area in the
Single2D_Z view at the begining of my process. I thought that the procces
OnInit would be useful for this purpose, but I get an error.
Can you tell me where can I put the view I want my plugin begin?

Thank you very much,
Aida

2011/7/20 Xavier Planes <[email protected]>

Hi Aida!

       You can change the layout of the selected render window calling
these functions:
       #include "wxMitkMultiRenderWindowLayout.h"

       GetMultiRenderWindow()->GetMetadata()->AddTag( "LayoutType", int(
mitk::Single2D_X ) );
       GetMultiRenderWindow()->GetMetadataHolder( )->NotifyObservers( );

Best,
Xavi

From: Aida Ninyerola [mailto:[email protected]]
Sent: miércoles, 20 de julio de 2011 13:13
To: [email protected]
Subject: [Gimias-developers] working area


Hi,

I would like to change the views of the working area during my process. At
first I have one image that I only want to view in the X axis view. After
processing the image, I want to show the result with the tres axis view and
3D (as I have it now). I hope I've explained myself correctly.

How can I achieve that? Is there any example that I can follow?


Thank you very much,
Aida

 

 

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to