CustusX  15.8
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...
 
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 58 of file cxViewContainer.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file cxViewContainer.cpp.

cx::ViewContainer::~ViewContainer ( )
virtual

Definition at line 58 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 113 of file cxViewContainer.cpp.

void cx::ViewContainer::clear ( )
virtual

Clears view container, deleting all layout objects

Definition at line 65 of file cxViewContainer.cpp.

void cx::ViewContainer::doRender ( )
protectedvirtual

Definition at line 265 of file cxViewContainer.cpp.

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

Return this widget's grid layout object

Definition at line 81 of file cxViewContainer.cpp.

vtkRenderWindowPtr cx::ViewContainer::getRenderWindow ( )
inline

Definition at line 71 of file cxViewContainer.h.

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

Definition at line 104 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 245 of file cxViewContainer.cpp.

void cx::ViewContainer::setModified ( )
virtual

Definition at line 92 of file cxViewContainer.cpp.

Member Data Documentation

ViewItem* cx::ViewContainer::mMouseEventTarget
protected

Definition at line 88 of file cxViewContainer.h.

unsigned long cx::ViewContainer::mMTimeHash
protected

sum of all MTimes in objects rendered

Definition at line 90 of file cxViewContainer.h.

vtkRenderWindowPtr cx::ViewContainer::mRenderWindow
protected

Definition at line 89 of file cxViewContainer.h.


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