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

#include <cxViewContainerItem.h>

Inheritance diagram for cx::ViewItem:

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 ()
 
 ViewItem (QString uid, QString name, QWidget *parent, vtkRenderWindowPtr renderWindow, QRect rect)
 
virtual ~ViewItem ()
 
virtual vtkRenderWindowPtr getRenderWindow ()
 
virtual vtkRendererPtr getRenderer ()
 
virtual QSize size () const
 
virtual void setZoomFactor (double factor)
 
virtual double getZoomFactor () const
 
virtual Transform3D get_vpMs () const
 
virtual DoubleBoundingBox3D getViewport () const
 
virtual DoubleBoundingBox3D getViewport_s () const
 
virtual void setModified ()
 
virtual Qt::Orientations expandingDirections () const
 
virtual QRect geometry () const
 
virtual bool isEmpty () const
 
virtual QSize maximumSize () const
 
virtual QSize minimumSize () const
 
virtual void setGeometry (const QRect &r)
 
virtual QSize sizeHint () const
 
void mouseMoveSlot (int x, int y, Qt::MouseButtons buttons)
 
void mousePressSlot (int x, int y, Qt::MouseButtons buttons)
 
void mouseReleaseSlot (int x, int y, Qt::MouseButtons buttons)
 
void mouseWheelSlot (int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
 
void resizedSlot (QSize size)
 
void customContextMenuRequestedGlobalSlot (const QPoint &point)
 

Detailed Description

Adapted from SSC class provided by Sonowand

Date
2014-09-26
Author
Christian Askeland

Definition at line 38 of file cxViewContainerItem.h.

Constructor & Destructor Documentation

cx::ViewItem::ViewItem ( QString  uid,
QString  name,
QWidget *  parent,
vtkRenderWindowPtr  renderWindow,
QRect  rect 
)

Definition at line 23 of file cxViewContainerItem.cpp.

cx::ViewItem::~ViewItem ( )
virtual

Definition at line 33 of file cxViewContainerItem.cpp.

Member Function Documentation

void cx::ViewItem::customContextMenuRequestedGlobalSlot ( const QPoint &  point)
inline

Definition at line 75 of file cxViewContainerItem.h.

void cx::ViewItem::customContextMenuRequestedInGlobalPos ( const QPoint &  )
signal
virtual Qt::Orientations cx::ViewItem::expandingDirections ( ) const
inlinevirtual

Definition at line 60 of file cxViewContainerItem.h.

void cx::ViewItem::focusChange ( bool  gotFocus,
Qt::FocusReason  reason 
)
signal
virtual QRect cx::ViewItem::geometry ( ) const
inlinevirtual

Definition at line 61 of file cxViewContainerItem.h.

Transform3D cx::ViewItem::get_vpMs ( ) const
virtual

Definition at line 64 of file cxViewContainerItem.cpp.

virtual vtkRendererPtr cx::ViewItem::getRenderer ( )
inlinevirtual

Definition at line 49 of file cxViewContainerItem.h.

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

Definition at line 48 of file cxViewContainerItem.h.

ViewRepCollectionPtr cx::ViewItem::getView ( )
inline

Definition at line 43 of file cxViewContainerItem.h.

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

return the pixel viewport.

Definition at line 76 of file cxViewContainerItem.cpp.

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

Definition at line 59 of file cxViewContainerItem.cpp.

virtual double cx::ViewItem::getZoomFactor ( ) const
inlinevirtual

Definition at line 53 of file cxViewContainerItem.h.

virtual bool cx::ViewItem::isEmpty ( ) const
inlinevirtual

Definition at line 62 of file cxViewContainerItem.h.

virtual QSize cx::ViewItem::maximumSize ( ) const
inlinevirtual

Definition at line 63 of file cxViewContainerItem.h.

virtual QSize cx::ViewItem::minimumSize ( ) const
inlinevirtual

Definition at line 64 of file cxViewContainerItem.h.

void cx::ViewItem::mouseMove ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewItem::mouseMoveSlot ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
inline

Definition at line 70 of file cxViewContainerItem.h.

void cx::ViewItem::mousePress ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewItem::mousePressSlot ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
inline

Definition at line 71 of file cxViewContainerItem.h.

void cx::ViewItem::mouseRelease ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewItem::mouseReleaseSlot ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
inline

Definition at line 72 of file cxViewContainerItem.h.

void cx::ViewItem::mouseWheel ( int  x,
int  y,
int  delta,
int  orientation,
Qt::MouseButtons  buttons 
)
signal
void cx::ViewItem::mouseWheelSlot ( int  x,
int  y,
int  delta,
int  orientation,
Qt::MouseButtons  buttons 
)
inline

Definition at line 73 of file cxViewContainerItem.h.

void cx::ViewItem::resized ( QSize  size)
signal
void cx::ViewItem::resizedSlot ( QSize  size)
inline

Definition at line 74 of file cxViewContainerItem.h.

void cx::ViewItem::setGeometry ( const QRect &  r)
virtual

Definition at line 47 of file cxViewContainerItem.cpp.

virtual void cx::ViewItem::setModified ( )
inlinevirtual

Definition at line 57 of file cxViewContainerItem.h.

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

Definition at line 37 of file cxViewContainerItem.cpp.

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

Definition at line 50 of file cxViewContainerItem.h.

virtual QSize cx::ViewItem::sizeHint ( ) const
inlinevirtual

Definition at line 66 of file cxViewContainerItem.h.


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