13 #include "vtkRenderWindow.h" 21 mRenderWindowFactory(factory)
25 if (!mStaticRenderWindow.GetPointer())
27 mStaticRenderWindow = mRenderWindowFactory->getSharedRenderWindow();
28 if(mStaticRenderWindow)
29 mStaticRenderWindow->Render();
37 QString cache_uid = QString(
"View_%1_%2").arg(type).arg(offScreenRendering);
38 if (!mViewCache.count(cache_uid))
40 ViewCachePtr cache = mViewCache[cache_uid];
49 for (std::map<QString, ViewCachePtr>::iterator iter=mViewCache.begin(); iter!=mViewCache.end(); ++iter)
51 iter->second->clearUsedViews();
57 for (std::map<QString, ViewCachePtr>::iterator iter=mViewCache.begin(); iter!=mViewCache.end(); ++iter)
59 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.