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]] Sent: Donnerstag, 24. Januar 2013 09:20 To: [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, 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 ------------------------------------------------------------------------------ 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
