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];
43 vw->getRenderWindow()->SetOffScreenRendering(offScreenRendering);
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();