CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::ViewWidget Class Reference

#include <cxViewWidget.h>

Inheritance diagram for cx::ViewWidget:

Signals

void resized (QSize size)
 
void mouseMove (int x, int y, Qt::MouseButtons buttons)
 
void mousePress (int x, int y, Qt::MouseButtons buttons)
 
void mouseRelease (int x, int y, Qt::MouseButtons buttons)
 
void mouseWheel (int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
 
void shown ()
 
void focusChange (bool gotFocus, Qt::FocusReason reason)
 
void customContextMenuRequestedInGlobalPos (const QPoint &)
 

Public Member Functions

ViewRepCollectionPtr getView ()
 
 ViewWidget (RenderWindowFactoryPtr factory, const QString &uid="", const QString &name="", QWidget *parent=NULL, Qt::WindowFlags f=0)
 constructor More...
 
virtual ~ViewWidget ()
 
virtual vtkRenderWindowPtr getRenderWindow ()
 Get the vtkRenderWindow used by this View. More...
 
virtual QSize size () const
 
virtual void setZoomFactor (double factor)
 
virtual vtkRendererPtr getRenderer ()
 Get the renderer used by this View. More...
 
virtual double getZoomFactor () const
 
virtual Transform3D get_vpMs () const
 
virtual double mmPerPix () const
 
virtual DoubleBoundingBox3D getViewport () const
 
virtual DoubleBoundingBox3D getViewport_s () const
 
virtual void setModified ()
 
void render ()
 

Detailed Description

Simple 1:1 conflation of SSC Views and Qt Widgets

Definition at line 29 of file cxViewWidget.h.

Constructor & Destructor Documentation

cx::ViewWidget::ViewWidget ( RenderWindowFactoryPtr  factory,
const QString &  uid = "",
const QString &  name = "",
QWidget *  parent = NULL,
Qt::WindowFlags  f = 0 
)

constructor

Definition at line 28 of file cxViewWidget.cpp.

cx::ViewWidget::~ViewWidget ( )
virtual

Definition at line 56 of file cxViewWidget.cpp.

Member Function Documentation

void cx::ViewWidget::customContextMenuRequestedInGlobalPos ( const QPoint &  )
signal
void cx::ViewWidget::focusChange ( bool  gotFocus,
Qt::FocusReason  reason 
)
signal
Transform3D cx::ViewWidget::get_vpMs ( ) const
virtual

Definition at line 160 of file cxViewWidget.cpp.

vtkRendererPtr cx::ViewWidget::getRenderer ( )
virtual

Get the renderer used by this View.

Definition at line 61 of file cxViewWidget.cpp.

virtual vtkRenderWindowPtr cx::ViewWidget::getRenderWindow ( )
inlinevirtual

Get the vtkRenderWindow used by this View.

Definition at line 40 of file cxViewWidget.h.

ViewRepCollectionPtr cx::ViewWidget::getView ( )

Definition at line 51 of file cxViewWidget.cpp.

DoubleBoundingBox3D cx::ViewWidget::getViewport ( ) const
virtual

return the pixel viewport.

Definition at line 172 of file cxViewWidget.cpp.

DoubleBoundingBox3D cx::ViewWidget::getViewport_s ( ) const
virtual

Definition at line 155 of file cxViewWidget.cpp.

double cx::ViewWidget::getZoomFactor ( ) const
virtual

Definition at line 150 of file cxViewWidget.cpp.

double cx::ViewWidget::mmPerPix ( ) const
virtual

Definition at line 177 of file cxViewWidget.cpp.

void cx::ViewWidget::mouseMove ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewWidget::mousePress ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewWidget::mouseRelease ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewWidget::mouseWheel ( int  x,
int  y,
int  delta,
int  orientation,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewWidget::render ( )

Definition at line 66 of file cxViewWidget.cpp.

void cx::ViewWidget::resized ( QSize  size)
signal
virtual void cx::ViewWidget::setModified ( )
inlinevirtual

Definition at line 50 of file cxViewWidget.h.

void cx::ViewWidget::setZoomFactor ( double  factor)
virtual

Definition at line 140 of file cxViewWidget.cpp.

void cx::ViewWidget::shown ( )
signal
virtual QSize cx::ViewWidget::size ( ) const
inlinevirtual

Definition at line 41 of file cxViewWidget.h.


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