NorMIT-nav  22.09
An IGT application
cx::ViewContainer Class Reference

#include <cxViewContainer.h>

Inheritance diagram for cx::ViewContainer:

Public Member Functions

 ViewContainer (RenderWindowFactoryPtr factory, QWidget *parent=NULL, Qt::WindowFlags f=0)
 
virtual ~ViewContainer ()
 
ViewItemaddView (QString uid, LayoutRegion region, QString name="")
 
virtual void clear ()
 
void renderAll ()
 Use this function to render all views at once. Do not call render on each view. More...
 
virtual void setOffScreenRenderingAndClear (bool on)
 
virtual bool getOffScreenRendering () const
 
vtkRenderWindowPtr getRenderWindow ()
 
virtual void setModified ()
 
virtual QGridLayout * getGridLayout ()
 

Protected Member Functions

virtual void doRender ()
 
ViewItemgetViewItem (int index)
 

Protected Attributes

ViewItemmMouseEventTarget
 
vtkRenderWindowPtr mRenderWindow
 
unsigned long mMTimeHash
 sum of all MTimes in objects rendered More...
 

Detailed Description

More advanced N:1 combination of SSC Views and Qt Widgets Adapted from SSC class provided by Sonowand

Date
2014-09-26
Author
Christian Askeland

Definition at line 39 of file cxViewContainer.h.

Constructor & Destructor Documentation

◆ ViewContainer()

cx::ViewContainer::ViewContainer ( RenderWindowFactoryPtr  factory,
QWidget *  parent = NULL,
Qt::WindowFlags  f = 0 
)

Definition at line 29 of file cxViewContainer.cpp.

◆ ~ViewContainer()

cx::ViewContainer::~ViewContainer ( )
virtual

Definition at line 44 of file cxViewContainer.cpp.

Member Function Documentation

◆ addView()

ViewItem * cx::ViewContainer::addView ( QString  uid,
LayoutRegion  region,
QString  name = "" 
)

Creates and adds a view to this container. Returns a pointer to the created view item that the container owns.

Definition at line 99 of file cxViewContainer.cpp.

◆ clear()

void cx::ViewContainer::clear ( )
virtual

Clears view container, deleting all layout objects

Definition at line 51 of file cxViewContainer.cpp.

◆ doRender()

void cx::ViewContainer::doRender ( )
protectedvirtual

Definition at line 285 of file cxViewContainer.cpp.

◆ getGridLayout()

QGridLayout * cx::ViewContainer::getGridLayout ( )
virtual

Return this widget's grid layout object

Definition at line 67 of file cxViewContainer.cpp.

◆ getOffScreenRendering()

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

Definition at line 120 of file cxViewContainer.cpp.

◆ getRenderWindow()

vtkRenderWindowPtr cx::ViewContainer::getRenderWindow ( )
inline

Definition at line 55 of file cxViewContainer.h.

◆ getViewItem()

ViewItem * cx::ViewContainer::getViewItem ( int  index)
protected

Definition at line 90 of file cxViewContainer.cpp.

◆ renderAll()

void cx::ViewContainer::renderAll ( )

Use this function to render all views at once. Do not call render on each view.

Definition at line 265 of file cxViewContainer.cpp.

◆ setModified()

void cx::ViewContainer::setModified ( )
virtual

Definition at line 78 of file cxViewContainer.cpp.

◆ setOffScreenRenderingAndClear()

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

Definition at line 114 of file cxViewContainer.cpp.

Member Data Documentation

◆ mMouseEventTarget

ViewItem* cx::ViewContainer::mMouseEventTarget
protected

Definition at line 72 of file cxViewContainer.h.

◆ mMTimeHash

unsigned long cx::ViewContainer::mMTimeHash
protected

sum of all MTimes in objects rendered

Definition at line 74 of file cxViewContainer.h.

◆ mRenderWindow

vtkRenderWindowPtr cx::ViewContainer::mRenderWindow
protected

Definition at line 73 of file cxViewContainer.h.


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