NorMIT-nav  22.09
An IGT application
cxMultiViewCache.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXMULTIVIEWCACHE_H
13 #define CXMULTIVIEWCACHE_H
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include <QWidget>
18 #include <QLayout>
19 #include <vector>
20 #include "cxTypeConversions.h"
21 #include "cxOSXHelper.h"
22 #include "cxViewWidget.h"
23 #include "cxViewCache.h"
24 
25 namespace cx
26 {
42 typedef boost::shared_ptr<class MultiViewCache> MultiViewCachePtr;
43 
44 class cxResourceVisualization_EXPORT MultiViewCache
45 {
46 public:
49 
50  ViewWidget* retrieveView(QWidget* widget, View::Type type, bool offScreenRendering);
51  void clearViews();
52  void clearCache();
53 
54 private:
55  typedef boost::shared_ptr<ViewCache<ViewWidget> > ViewCachePtr;
56  std::map<QString, ViewCachePtr> mViewCache;
57  vtkRenderWindowPtr mStaticRenderWindow;
58  RenderWindowFactoryPtr mRenderWindowFactory;
59 };
60 
64 } // namespace cx
65 
66 
67 #endif // CXMULTIVIEWCACHE_H
cxViewCache.h
cxOSXHelper.h
cx::MultiViewCachePtr
boost::shared_ptr< class MultiViewCache > MultiViewCachePtr
Definition: cxViewContainer.h:28
vtkRenderWindowPtr
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
Definition: vtkForwardDeclarations.h:124
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::MultiViewCache
Definition: cxMultiViewCache.h:44
cx::ViewWidget
Definition: cxViewWidget.h:29
cx::RenderWindowFactoryPtr
boost::shared_ptr< class RenderWindowFactory > RenderWindowFactoryPtr
Definition: cxForwardDeclarations.h:161
cxViewWidget.h
cxTypeConversions.h
cx::MultiViewCache::create
static MultiViewCachePtr create(RenderWindowFactoryPtr factory)
Definition: cxMultiViewCache.h:47
cx::View::Type
Type
Definition: cxView.h:52