Fraxinus  17.12-rc4
An IGT application
cx::ViewCollectionWidgetMixed Class Reference

#include <cxViewCollectionWidgetMixed.h>

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

Public Member Functions

 ViewCollectionWidgetMixed (RenderWindowFactoryPtr factory, QWidget *parent)
 
virtual ~ViewCollectionWidgetMixed ()
 
ViewPtr addView (View::Type type, LayoutRegion region)
 
virtual void setOffScreenRenderingAndClear (bool on)
 
virtual bool getOffScreenRendering () const
 
virtual 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)
 
virtual void enableContextMenuForViews (bool enable)
 
- Public Member Functions inherited from cx::ViewCollectionWidget
virtual ~ViewCollectionWidget ()
 

Protected Attributes

ViewCollectionWidgetmBaseLayout
 

Additional Inherited Members

- Signals inherited from cx::ViewCollectionWidget
void rendered ()
 
- Static Public Member Functions inherited from cx::ViewCollectionWidget
static QPointer< ViewCollectionWidgetcreateViewWidgetLayout (RenderWindowFactoryPtr factory, QWidget *parent=NULL)
 
static QPointer< ViewCollectionWidgetcreateOptimizedLayout (RenderWindowFactoryPtr factory, 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 74 of file cxViewCollectionWidgetMixed.h.

Constructor & Destructor Documentation

cx::ViewCollectionWidgetMixed::ViewCollectionWidgetMixed ( RenderWindowFactoryPtr  factory,
QWidget *  parent 
)

Definition at line 47 of file cxViewCollectionWidgetMixed.cpp.

cx::ViewCollectionWidgetMixed::~ViewCollectionWidgetMixed ( )
virtual

Definition at line 60 of file cxViewCollectionWidgetMixed.cpp.

Member Function Documentation

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

Implements cx::ViewCollectionWidget.

Definition at line 71 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::clearViews ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 118 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::enableContextMenuForViews ( bool  enable)
virtual

Implements cx::ViewCollectionWidget.

Definition at line 205 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 173 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 168 of file cxViewCollectionWidgetMixed.cpp.

bool cx::ViewCollectionWidgetMixed::getOffScreenRendering ( ) const
virtual

Implements cx::ViewCollectionWidget.

Definition at line 106 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 187 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 179 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::render ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 144 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 162 of file cxViewCollectionWidgetMixed.cpp.

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

Implements cx::ViewCollectionWidget.

Definition at line 156 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setModified ( )
virtual

Implements cx::ViewCollectionWidget.

Definition at line 137 of file cxViewCollectionWidgetMixed.cpp.

void cx::ViewCollectionWidgetMixed::setOffScreenRenderingAndClear ( bool  on)
virtual

Implements cx::ViewCollectionWidget.

Definition at line 100 of file cxViewCollectionWidgetMixed.cpp.

Member Data Documentation

ViewCollectionWidget* cx::ViewCollectionWidgetMixed::mBaseLayout
protected

Definition at line 96 of file cxViewCollectionWidgetMixed.h.


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