NorMIT-nav  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

◆ ViewItem()

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

Definition at line 23 of file cxViewContainerItem.cpp.

◆ ~ViewItem()

cx::ViewItem::~ViewItem ( )
virtual

Definition at line 33 of file cxViewContainerItem.cpp.

Member Function Documentation

◆ customContextMenuRequestedGlobalSlot()

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

Definition at line 75 of file cxViewContainerItem.h.

◆ customContextMenuRequestedInGlobalPos

void cx::ViewItem::customContextMenuRequestedInGlobalPos ( const QPoint &  )
signal

◆ expandingDirections()

virtual Qt::Orientations cx::ViewItem::expandingDirections ( ) const
inlinevirtual

Definition at line 60 of file cxViewContainerItem.h.

◆ focusChange

void cx::ViewItem::focusChange ( bool  gotFocus,
Qt::FocusReason  reason 
)
signal

◆ geometry()

virtual QRect cx::ViewItem::geometry ( ) const
inlinevirtual

Definition at line 61 of file cxViewContainerItem.h.

◆ get_vpMs()

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

Definition at line 64 of file cxViewContainerItem.cpp.

◆ getRenderer()

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

Definition at line 49 of file cxViewContainerItem.h.

◆ getRenderWindow()

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

Definition at line 48 of file cxViewContainerItem.h.

◆ getView()

ViewRepCollectionPtr cx::ViewItem::getView ( )
inline

Definition at line 43 of file cxViewContainerItem.h.

◆ getViewport()

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

return the pixel viewport.

Definition at line 76 of file cxViewContainerItem.cpp.

◆ getViewport_s()

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

Definition at line 59 of file cxViewContainerItem.cpp.

◆ getZoomFactor()

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

Definition at line 53 of file cxViewContainerItem.h.

◆ isEmpty()

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

Definition at line 62 of file cxViewContainerItem.h.

◆ maximumSize()

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

Definition at line 63 of file cxViewContainerItem.h.

◆ minimumSize()

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

Definition at line 64 of file cxViewContainerItem.h.

◆ mouseMove

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

◆ mouseMoveSlot()

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

Definition at line 70 of file cxViewContainerItem.h.

◆ mousePress

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

◆ mousePressSlot()

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

Definition at line 71 of file cxViewContainerItem.h.

◆ mouseRelease

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

◆ mouseReleaseSlot()

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

Definition at line 72 of file cxViewContainerItem.h.

◆ mouseWheel

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

◆ mouseWheelSlot()

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

Definition at line 73 of file cxViewContainerItem.h.

◆ resized

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

◆ resizedSlot()

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

Definition at line 74 of file cxViewContainerItem.h.

◆ setGeometry()

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

Definition at line 47 of file cxViewContainerItem.cpp.

◆ setModified()

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

Definition at line 57 of file cxViewContainerItem.h.

◆ setZoomFactor()

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

Definition at line 37 of file cxViewContainerItem.cpp.

◆ shown

void cx::ViewItem::shown ( )
signal

◆ size()

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

Definition at line 50 of file cxViewContainerItem.h.

◆ sizeHint()

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: