CustusX  22.04-rc2
An IGT application
cx::ViewCollectionWidget Class Referenceabstract

#include <cxViewCollectionWidget.h>

Inheritance diagram for cx::ViewCollectionWidget:
cx::LayoutWidgetUsingViewWidgets cx::ViewCollectionWidgetMixed cx::ViewCollectionWidgetUsingViewContainer

Signals

void rendered ()
 

Public Member Functions

virtual ~ViewCollectionWidget ()
 
virtual ViewPtr addView (View::Type type, LayoutRegion region)=0
 
virtual void setOffScreenRenderingAndClear (bool on)=0
 
virtual bool getOffScreenRendering () const =0
 
virtual void clearViews ()=0
 
virtual void setModified ()=0
 
virtual void render ()=0
 
virtual void setGridSpacing (int val)=0
 
virtual void setGridMargin (int val)=0
 
virtual int getGridSpacing () const =0
 
virtual int getGridMargin () const =0
 
virtual void enableContextMenuForViews (bool enable)=0
 
virtual std::vector< ViewPtrgetViews ()=0
 
virtual QPoint getPosition (ViewPtr view)=0
 

Static Public Member Functions

static QPointer< ViewCollectionWidgetcreateViewWidgetLayout (RenderWindowFactoryPtr factory, QWidget *parent=NULL)
 
static QPointer< ViewCollectionWidgetcreateOptimizedLayout (RenderWindowFactoryPtr factory, QWidget *parent=NULL)
 

Protected Member Functions

 ViewCollectionWidget (QWidget *parent)
 

Detailed Description

Widget for displaying Views.

This is the main class for displaying visualizations. Add Views using addView(), then add Reps to the Views.

Date
2013-11-05
2014-09-26
Author
christiana

Definition at line 39 of file cxViewCollectionWidget.h.

Constructor & Destructor Documentation

virtual cx::ViewCollectionWidget::~ViewCollectionWidget ( )
inlinevirtual

Definition at line 46 of file cxViewCollectionWidget.h.

cx::ViewCollectionWidget::ViewCollectionWidget ( QWidget *  parent)
inlineprotected

Definition at line 70 of file cxViewCollectionWidget.h.

Member Function Documentation

virtual ViewPtr cx::ViewCollectionWidget::addView ( View::Type  type,
LayoutRegion  region 
)
pure virtual
virtual void cx::ViewCollectionWidget::clearViews ( )
pure virtual
QPointer< ViewCollectionWidget > cx::ViewCollectionWidget::createOptimizedLayout ( RenderWindowFactoryPtr  factory,
QWidget *  parent = NULL 
)
static

Definition at line 36 of file cxViewCollectionWidget.cpp.

QPointer< ViewCollectionWidget > cx::ViewCollectionWidget::createViewWidgetLayout ( RenderWindowFactoryPtr  factory,
QWidget *  parent = NULL 
)
static

Definition at line 29 of file cxViewCollectionWidget.cpp.

virtual void cx::ViewCollectionWidget::enableContextMenuForViews ( bool  enable)
pure virtual
virtual int cx::ViewCollectionWidget::getGridMargin ( ) const
pure virtual
virtual int cx::ViewCollectionWidget::getGridSpacing ( ) const
pure virtual
virtual bool cx::ViewCollectionWidget::getOffScreenRendering ( ) const
pure virtual
virtual QPoint cx::ViewCollectionWidget::getPosition ( ViewPtr  view)
pure virtual

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

Implemented in cx::ViewCollectionWidgetMixed, cx::LayoutWidgetUsingViewWidgets, and cx::ViewCollectionWidgetUsingViewContainer.

virtual std::vector<ViewPtr> cx::ViewCollectionWidget::getViews ( )
pure virtual
virtual void cx::ViewCollectionWidget::render ( )
pure virtual
void cx::ViewCollectionWidget::rendered ( )
signal
virtual void cx::ViewCollectionWidget::setGridMargin ( int  val)
pure virtual
virtual void cx::ViewCollectionWidget::setGridSpacing ( int  val)
pure virtual
virtual void cx::ViewCollectionWidget::setModified ( )
pure virtual
virtual void cx::ViewCollectionWidget::setOffScreenRenderingAndClear ( bool  on)
pure virtual

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