Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxViewCollectionWidget.cpp
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 #include "cxViewCollectionWidget.h"
13 #include <QGridLayout>
14 
15 #include "vtkRenderWindow.h"
16 #include "vtkRenderWindowInteractor.h"
17 
18 
22 
23 #include "cxViewContainer.h"
24 #include "cxRenderWindowFactory.h"
25 
26 namespace cx
27 {
28 
29 QPointer<ViewCollectionWidget> ViewCollectionWidget::createViewWidgetLayout(RenderWindowFactoryPtr factory, QWidget *parent)
30 {
31 // return new LayoutWidgetUsingViewCollection(); // testing
32  return new LayoutWidgetUsingViewWidgets(factory, parent);
33 // return new ViewCollectionWidgetMixed(); //testing
34 }
35 
36 QPointer<ViewCollectionWidget> ViewCollectionWidget::createOptimizedLayout(RenderWindowFactoryPtr factory, QWidget *parent)
37 {
38 // return new ViewCollectionWidgetUsingViewContainer();
39  return new ViewCollectionWidgetMixed(factory, parent);
40 }
41 
42 } // namespace cx
43 
static QPointer< ViewCollectionWidget > createViewWidgetLayout(RenderWindowFactoryPtr factory, QWidget *parent=NULL)
boost::shared_ptr< class RenderWindowFactory > RenderWindowFactoryPtr
static QPointer< ViewCollectionWidget > createOptimizedLayout(RenderWindowFactoryPtr factory, QWidget *parent=NULL)
Namespace for all CustusX production code.