Hello, 

Thank you very much, this is exactly what I wanted.
I will take a look  and let you know.


On the other hand, I did not get any answer about an email I sent before of 
this (Fri 2/3/2012 10:56 AM), could you, please, take a look at this. You can 
see it on the following lines after:

Thank you very much
MIRIAM.


-----------------------------------------------------------------------------------------------------------
Hello everyone,

I'm writing you this email because we need to get the .png image from a Data 
Entity.

We browse through the data tree like this:

      Core::DataEntity::Pointer dataEntity1;
      Core::DataEntityList::Pointer dataEntityList = 
GetListBrowser()->GetDataEntityList();
      Core::DataEntityList::iterator it = dataEntityList->Begin();
      Core::DataEntityHelper helper;

      for ( int i=0; it != dataEntityList->End(); ++it,i++) 
      {
            dataEntity1 = dataEntityList->Get(it);
                  (...)
}

We need to get a file with the .png image from each dataEntity. I have tried to 
find an example in the existing source code, I have found the following lines 
after:

vtkRenderer* vtkrenderer;
      wxColour paleWhite(241,244,250);
      vtkrenderer = Get3D()->GetRenderer()->GetVtkRenderer();
      vtkrenderer->SetBackground(1,1,1);
      vtkRenderLargeImage* renderLarge = vtkRenderLargeImage::New();
      renderLarge->SetInput(vtkrenderer);
      vtkPNGWriter* writer=vtkPNGWriter::New();
      writer->SetInputConnection(renderLarge->GetOutputPort());
      writer->SetFileName(imageName.c_str()) ;
      writer->Write();
      vtkrenderer->SetBackground(0,0,0);

Which is perfect for saving image of the current view, but the image has to be 
already loaded in the working area, and we need to get the image .png from the 
data entity, maybe going through vtkSmartPointer< vtkImageData > vtkImage; but 
I do not know how I could do this.


Do you have any idea to solve this? I would appreciate your help.
Thank you very much in advance.
Best regards,

--------------------------------------------------------------------------------------------------------

-----Original Message-----
From: Xavier Planes [mailto:xavier.pla...@upf.edu] 
Sent: Friday, February 10, 2012 10:15 AM
To: Ana Maria Quintero Padron; gimias-developers@lists.sourceforge.net
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:ana.quint...@atos.net]
Sent: jueves, 09 de febrero de 2012 12:32
To: gimias-developers@lists.sourceforge.net
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
Gimias-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to