34 #include "vtkRenderWindow.h" 42 mRenderWindowFactory(factory)
46 if (!mStaticRenderWindow.GetPointer())
48 mStaticRenderWindow = mRenderWindowFactory->getSharedRenderWindow();
49 if(mStaticRenderWindow)
50 mStaticRenderWindow->Render();
58 QString cache_uid = QString(
"View_%1_%2").arg(type).arg(offScreenRendering);
59 if (!mViewCache.count(cache_uid))
61 ViewCachePtr cache = mViewCache[cache_uid];
70 for (std::map<QString, ViewCachePtr>::iterator iter=mViewCache.begin(); iter!=mViewCache.end(); ++iter)
72 iter->second->clearUsedViews();
78 for (std::map<QString, ViewCachePtr>::iterator iter=mViewCache.begin(); iter!=mViewCache.end(); ++iter)
80 iter->second->clearCache();
MultiViewCache(RenderWindowFactoryPtr factory)
ViewWidget * retrieveView(QWidget *widget, View::Type type, bool offScreenRendering)
boost::shared_ptr< class RenderWindowFactory > RenderWindowFactoryPtr
Namespace for all CustusX production code.