Hi Xavi again,
Now the event is processed by
DicomPlugin::DicomMenuEventHandler::OnMenuOpenDirectory, perfect.
But when I send the event from my plugin i obtain this error "call to empty
boost::function" in:
void WorkingAreaPanelWidget::RenderDicomSlice(wxTreeItemId sliceTreeItemId){
(...)
m_SlicePathObserverMethod(); -> This line sends the error "call to empty
boost::function"
(...)
You can see my lines of code in the following lines after:
GetPluginTab( )->ShowWindow( "DICOM working area", true);
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED );
cmd.SetId(wxID_OpenDirectoryMenuItem );
cmd.SetString( dataPath + experimentSelected );
Core::Runtime::wxMitkGraphicalInterface::Pointer gIface;
gIface = Core::Runtime::Kernel::GetGraphicalInterface();
wxFrame* mainFrame = dynamic_cast<wxFrame*> (gIface->GetMainWindow());
mainFrame->GetEventHandler( )->ProcessEvent( cmd );
-----Original Message-----
From: Xavier Planes [mailto:[email protected]]
Sent: Friday, February 10, 2012 4:56 PM
To: Ana Maria Quintero Padron; [email protected]
Subject: RE: [Gimias-developers] DICOM tree Viewer.
Hi Miriam,
Sorry, replace this line by this other one:
mainFrame->GetMenuBar( )->ProcessEvent( cmd );
mainFrame->GetEventHandler()->ProcessEvent( cmd );
Best,
Xavi
-----Original Message-----
From: Ana Maria Quintero Padron [mailto:[email protected]]
Sent: viernes, 10 de febrero de 2012 16:23
To: [email protected]
Subject: Re: [Gimias-developers] DICOM tree Viewer.
Hi Xavi,
About your solution, I have been taken a look and trying everything and I have
got a problem, maybe I am doing something wrong.
1.- GetPluginTab()->ShowWindow("DICOM working area", true); OK, no problem
whit this.
2.- send the event "open a directory": Whit the code below a get the event void
Core::Widgets::MainMenu::OnMenuOpenDirectory( wxCommandEvent& event )
3.- The event will be processed by
DicomPlugin::DicomMenuEventHandler::OnMenuOpenDirectory(): This is the problem
the event is processed by void Core::Widgets::MainMenu::OnMenuOpenDirectory,
not by DicomPlugin::DicomMenuEventHandler::OnMenuOpenDirectory, which is what I
pretend.
Do you have any clue about what could be happening.
Thank you.
MIRIAM
-----Original Message-----
From: Xavier Planes [mailto:[email protected]]
Sent: Friday, February 10, 2012 10:15 AM
To: Ana Maria Quintero Padron; [email protected]
Cc: Carlos Cavero Barca
Subject: RE: [Gimias-developers] DICOM tree Viewer.
Hi Miriam,
I propose you this solution for what you are asking for:
1. From any widget you can change the currently selected working area
and switch to DICOM Working area:
GetPluginTab()->ShowWindow("DICOM working area",true);
2. You can send the event "open a directory" to the main menu from your
widget:
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED );
cmd.SetId(wxID_OpenDirectoryMenuItem );
cmd.SetString( "C:\\Temp" );
Core::Runtime::wxMitkGraphicalInterface::Pointer gIface;
gIface = Core::Runtime::Kernel::GetGraphicalInterface();
wxFrame* mainFrame = dynamic_cast<wxFrame*> (
gIface->GetMainWindow() );
mainFrame->GetMenuBar( )->ProcessEvent( cmd );
3. The event will be processed by
DicomPlugin::DicomMenuEventHandler::OnMenuOpenDirectory( ). This handler will
open a wxDirDialog where the user can select a DICOM folder. Instead of this
behavior, you need to change this handler to use the string property of the
event if it's not empty. You can see an example here:
void MainMenu::OnMenuOpenFile(wxCommandEvent& event)
I hope this can help you.
Best,
Xavi
From: Ana Maria Quintero Padron [mailto:[email protected]]
Sent: jueves, 09 de febrero de 2012 12:32
To: [email protected]
Cc: Carlos Cavero Barca
Subject: [Gimias-developers] DICOM tree Viewer.
Hello everyone,
I'm writing you this email because we need to load an image in DICOM tree
Viewer.
Currently, DICOM Plugin handle the event fired by Load Directory and follow the
directory loading each image found. Is there any way to provide a valid
directory path to DICOM Plugin from our plugin? I mean, we have the path
already selected in our plugin and need to load those images in DICOM tree
Viewer.
Is there any public procedure or something, do you have any idea to solve this?
I would appreciate your help.
Thank you very much in advance.
Best regards,
MIRIAM
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos group liability
cannot be triggered for the message content. Although the sender endeavours to
maintain a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar
protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos no se
hace responsable por su contenido. Su contenido no constituye ningun compromiso
para el grupo Atos, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no
puede garantizar nada al respecto y no sera responsable de cualesquiera danos
que puedan resultar de una transmision de virus.
------------------------------------------------------------------
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos group liability
cannot be triggered for the message content. Although the sender endeavours to
maintain a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar
protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos no se
hace responsable por su contenido. Su contenido no constituye ningun compromiso
para el grupo Atos, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no
puede garantizar nada al respecto y no sera responsable de cualesquiera danos
que puedan resultar de una transmision de virus.
------------------------------------------------------------------
----------------------------------------------------------------------------
--
Virtualization & Cloud Management Using Capacity Planning Cloud computing makes
use of virtualization - but cloud computing also focuses on allowing computing
to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers