Fraxinus  16.5.0-fx-rc9
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)
 
virtual int getGridSpacing () const
 
virtual int getGridMargin () const
 
virtual std::vector< ViewPtrgetViews ()
 
virtual QPoint getPosition (ViewPtr view)
 
- Public Member Functions inherited from cx::ViewCollectionWidget
virtual ~ViewCollectionWidget ()
 

Additional Inherited Members

- Signals inherited from cx::ViewCollectionWidget
void rendered ()
 
- 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 103 of file cxViewCollectionWidgetMixed.cpp.

int cx::ViewCollectionWidgetMixed::getGridMargin ( ) const
virtual

Implements cx::ViewCollectionWidget.

Definition at line 160 of file cxViewCollectionWidgetMixed.cpp.

int cx::ViewCollectionWidgetMixed::getGridSpacing ( ) const
virtual

Implements cx::ViewCollectionWidget.

Definition at line 155 of file cxViewCollectionWidgetMixed.cpp.

QPoint cx::ViewCollectionWidgetMixed::getPosition ( ViewPtr  view)
virtual

Get the position of the Upper Left corner of the view, given in qt-coordinates of this (the ViewCollectionWidget).

Implements cx::ViewCollectionWidget.

Definition at line 174 of file cxViewCollectionWidgetMixed.cpp.

std::vector< ViewPtr > cx::ViewCollectionWidgetMixed::getViews ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 166 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::render ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 131 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 149 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 143 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setModified ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 124 of file cxViewCollectionWidgetMixed.cpp.


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