Hi Tab,

so you don't have a view, but the call is still in the GUI. Sounds fine to me.

But may I ask why you don't use our mitkWorkbench? It brings you already a 
QmitkStdMultiWidget including a QmitkDataManager and some nice other features. 
You could add your own view/plugin for your own purposes. It is much easier 
then building a complete App alone.

Regards,
Thomas 
________________________________________
Von: qt.itk.vtk.help [[email protected]]
Gesendet: Dienstag, 29. Januar 2013 07:59
An: Kilgus, Thomas
Cc: [email protected]
Betreff: Re: [mitk-users] Update after modifying surface data

Hi,

I have made a Qt mainwindow with QmitkStdMultiWidget as a central widget and 
made some slots to perform filter operations on a loaded image. This discussion 
attracted me due to following comment:

>Else you would have to the call the rendering manager via e.g. 
>"mitk::RenderingManager::GetInstance()->RequestUpdateAll();", but >I don't 
>recommend to implement this inside any algorithm.

Since I am using "mitk::RenderingManager::GetInstance()->RequestUpdateAll();" 
in end of each slot after saving that filtered data in a node. Its working but 
I don't know what is right way if it is not recommended. Please can you suggest 
solution for this case?

Regards,
Tab

On Thu, Jan 24, 2013 at 4:46 AM, Kilgus, Thomas 
<[email protected]<mailto:[email protected]>> wrote:
Hi Horst,

if you have set up your on render window and your own application, did you 
follow the tutorial steps1-10?

If you modify data you should call pNode->Update(); and after a reinit:

 mitk::TimeSlicedGeometry::Pointer geo = 
ds->ComputeBoundingGeometry3D(ds->GetAll());
 mitk::RenderingManager::GetInstance()->InitializeViews( geo );

the mitk::RenderingManager::GetInstance()->RequestUpdateAll(); should do the 
job. If not you could try to directly call renderWindow.render(); but this 
would be a bug in my opinion. But I never tried to modify and refresh the 
content of any example, yet.

-----Original Message-----
From: Kilgus, Thomas 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Donnerstag, 24. Januar 2013 13:38
To: [email protected]<mailto:[email protected]>
Subject: Re: [mitk-users] Update after modifying surface data

Hi Horst,

I assume you are inside a plugin view? There you can just call 
this->RequestRenderWindowUpdate(); (with an optional parameter telling which 
render window you would like to update).

Else you would have to the call the rendering manager via e.g. 
"mitk::RenderingManager::GetInstance()->RequestUpdateAll();", but I don't 
recommend to implement this inside any algorithm.

Regards,
Thomas

-----Original Message-----
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Donnerstag, 24. Januar 2013 09:20
To: [email protected]<mailto:[email protected]>
Subject: [mitk-users] Update after modifying surface data

Hi,

after modifying the data of a surface node, I looked for a possibility to 
update the mapper to render the manipulated data. When using pure VTK this is 
possible with the following statements:

        pMapper->Modified();
        pMapper->Update();

But I can't find something similar in MITK. Isn't there really no mechanism to 
update the mapper of a node? Is it really necessary to create a new surface 
object like this?

        // get surface data
        mitk::Surface* pSurface =
dynamic_cast<mitk::Surface*>(pNode->GetData());
        vtkPolyData* pData = pSurface->GetVtkPolyData();
      vtkPoints* pPoints = pData->GetPoints();

        // manipulate data

        // create new surface to render manipulated data
        mitk::Surface::Pointer pNewSurface = mitk::Surface::New();
      pNewSurface->SetVtkPolyData(pData);
      pNode->SetData(pNewSurface);

Thanks.
Horst

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, 
CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current 
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and 
experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, 
CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current 
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and 
experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, 
CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to