CustusX  15.8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ViewCollectionWidgetMixed Class Reference

#include <cxViewCollectionWidgetMixed.h>

Inheritance diagram for cx::ViewCollectionWidgetMixed:
cx::ViewCollectionWidget

Public Member Functions

 ViewCollectionWidgetMixed (QWidget *parent)
 
virtual ~ViewCollectionWidgetMixed ()
 
ViewPtr addView (View::Type type, LayoutRegion region)
 
void clearViews ()
 
virtual void setModified ()
 
virtual void render ()
 
virtual void setGridSpacing (int val)
 
virtual void setGridMargin (int val)
 
- Public Member Functions inherited from cx::ViewCollectionWidget
virtual ~ViewCollectionWidget ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::ViewCollectionWidget
static QPointer
< ViewCollectionWidget
createViewWidgetLayout (QWidget *parent=NULL)
 
static QPointer
< ViewCollectionWidget
createOptimizedLayout (QWidget *parent=NULL)
 
- Protected Member Functions inherited from cx::ViewCollectionWidget
 ViewCollectionWidget (QWidget *parent)
 

Detailed Description

Widget for displaying Views, minimizing number of renderwindows but keeping the 3D views in separate renderwindows.

The rationale behind this class is:

  • The cost of rendering several vtkRenderWindows is high, especially on new Linux NVidia cards/drivers. I.e. try to reduce the number using LayoutWidgetUsingViewCollection.
  • vtkRenderWindowInteractor is connected to a vtkRenderWindow, and this is used in 3D views, thus we need unique vtkRenderWindows for each 3D View.

The solution here is to use a LayoutWidgetUsingViewCollection as basis, then adding LayoutWidgetUsingViewWidgets each containing one 3D view, and placing these on top of the basis in the QGridLayout.

Date
2014-09-26
Author
Christian Askeland

Definition at line 69 of file cxViewCollectionWidgetMixed.h.

Constructor & Destructor Documentation

cx::ViewCollectionWidgetMixed::ViewCollectionWidgetMixed ( QWidget *  parent)

Definition at line 45 of file cxViewCollectionWidgetMixed.cpp.

cx::ViewCollectionWidgetMixed::~ViewCollectionWidgetMixed ( )
virtual

Definition at line 55 of file cxViewCollectionWidgetMixed.cpp.

Member Function Documentation

ViewPtr cx::ViewCollectionWidgetMixed::addView ( View::Type  type,
LayoutRegion  region 
)
virtual

Implements cx::ViewCollectionWidget.

Definition at line 70 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::clearViews ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 104 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::render ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 132 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setGridMargin ( int  val)
virtual

Implements cx::ViewCollectionWidget.

Definition at line 148 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setGridSpacing ( int  val)
virtual

Implements cx::ViewCollectionWidget.

Definition at line 142 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setModified ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 125 of file cxViewCollectionWidgetMixed.cpp.


The documentation for this class was generated from the following files: