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

#include <cxViewContainer.h>

Inheritance diagram for cx::ViewContainer:

Public Member Functions

 ViewContainer (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 59 of file cxViewContainer.h.

Constructor & Destructor Documentation

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

Definition at line 50 of file cxViewContainer.cpp.

cx::ViewContainer::~ViewContainer ( )
virtual

Definition at line 64 of file cxViewContainer.cpp.

Member Function Documentation

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 119 of file cxViewContainer.cpp.

void cx::ViewContainer::clear ( )
virtual

Clears view container, deleting all layout objects

Definition at line 71 of file cxViewContainer.cpp.

void cx::ViewContainer::doRender ( )
protectedvirtual

Definition at line 295 of file cxViewContainer.cpp.

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

Return this widget's grid layout object

Definition at line 87 of file cxViewContainer.cpp.

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

Definition at line 140 of file cxViewContainer.cpp.

vtkRenderWindowPtr cx::ViewContainer::getRenderWindow ( )
inline

Definition at line 75 of file cxViewContainer.h.

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

Definition at line 110 of file cxViewContainer.cpp.

void cx::ViewContainer::renderAll ( )

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

Definition at line 275 of file cxViewContainer.cpp.

void cx::ViewContainer::setModified ( )
virtual

Definition at line 98 of file cxViewContainer.cpp.

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

Definition at line 134 of file cxViewContainer.cpp.

Member Data Documentation

ViewItem* cx::ViewContainer::mMouseEventTarget
protected

Definition at line 92 of file cxViewContainer.h.

unsigned long cx::ViewContainer::mMTimeHash
protected

sum of all MTimes in objects rendered

Definition at line 94 of file cxViewContainer.h.

vtkRenderWindowPtr cx::ViewContainer::mRenderWindow
protected

Definition at line 93 of file cxViewContainer.h.


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