NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
niftk::Single3DViewWidget Class Referenceabstract

Base class widget containing a single 3D render window whose purpose is to render a 3D VTK scene, blended with image data, such as might be available from video or ultrasound. More...

Inheritance diagram for niftk::Single3DViewWidget:
Inheritance graph
[legend]
Collaboration diagram for niftk::Single3DViewWidget:
Collaboration graph
[legend]

Public Member Functions

 Single3DViewWidget (QWidget *parent=0, Qt::WindowFlags f=0, mitk::RenderingManager *renderingManager=0)
 
virtual ~Single3DViewWidget ()
 
QmitkRenderWindow * GetRenderWindow () const
 Returns a pointer to the contained QmitkRenderWindow. More...
 
void EnableGradientBackground ()
 Calls mitk::GradientBackground::EnableGradientBackground(). More...
 
void DisableGradientBackground ()
 Calls mitk::GradientBackground::DisableGradientBackground(). More...
 
void SetGradientBackgroundColors (const mitk::Color &upper, const mitk::Color &lower)
 Calls mitk::GradientBackground::SetGradientColors(). More...
 
void EnableDepartmentLogo ()
 Calls niftk::CMICLogo::EnableDepartmentLogo(), and is currently unused. More...
 
void DisableDepartmentLogo ()
 Calls niftk::CMICLogo::DisableDepartmentLogo(), and is currently unused. More...
 
void SetDepartmentLogoPath (const QString &path)
 Calls niftk::CMICLogo::SetDepartmentLogoPath(), and is currently unused. More...
 
void SetClippingRange (const double &near, const double &far)
 Sets the clipping range, which derived classes use in different ways. More...
 
virtual void SetImageNode (mitk::DataNode *node)
 Stores the node locally in this base class. More...
 
virtual void SetDataStorage (mitk::DataStorage *ds)
 Stores data source locally in this base class, and sets the data storage on the QmitkRenderWindow. More...
 
virtual void Update ()=0
 Derived classes need to update this to correctly rescale. More...
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event) override
 Re-implemented so we can correctly scale image while resizeing. More...
 
virtual void NodeRemoved (const mitk::DataNode *node)
 Called when a DataStorage Node Removed Event was emitted. More...
 
virtual void NodeChanged (const mitk::DataNode *node)
 Called when a DataStorage Node Changes Event was emitted. More...
 
virtual void NodeAdded (const mitk::DataNode *node)
 Called when a DataStorage Node Added Event was emitted. More...
 

Protected Attributes

mitk::DataStorage::Pointer m_DataStorage
 
mitk::Image::Pointer m_Image
 
mitk::DataNode::Pointer m_ImageNode
 
double m_ClippingRange [2]
 

Detailed Description

Base class widget containing a single 3D render window whose purpose is to render a 3D VTK scene, blended with image data, such as might be available from video or ultrasound.

Constructor & Destructor Documentation

niftk::Single3DViewWidget::Single3DViewWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0,
mitk::RenderingManager *  renderingManager = 0 
)
niftk::Single3DViewWidget::~Single3DViewWidget ( )
virtual

Member Function Documentation

void niftk::Single3DViewWidget::DisableDepartmentLogo ( )

Calls niftk::CMICLogo::DisableDepartmentLogo(), and is currently unused.

void niftk::Single3DViewWidget::DisableGradientBackground ( )

Calls mitk::GradientBackground::DisableGradientBackground().

void niftk::Single3DViewWidget::EnableDepartmentLogo ( )

Calls niftk::CMICLogo::EnableDepartmentLogo(), and is currently unused.

void niftk::Single3DViewWidget::EnableGradientBackground ( )

Calls mitk::GradientBackground::EnableGradientBackground().

QmitkRenderWindow * niftk::Single3DViewWidget::GetRenderWindow ( ) const

Returns a pointer to the contained QmitkRenderWindow.

virtual void niftk::Single3DViewWidget::NodeAdded ( const mitk::DataNode *  node)
inlineprotectedvirtual

Called when a DataStorage Node Added Event was emitted.

Reimplemented in niftk::SingleVideoWidget.

virtual void niftk::Single3DViewWidget::NodeChanged ( const mitk::DataNode *  node)
inlineprotectedvirtual

Called when a DataStorage Node Changes Event was emitted.

Reimplemented in niftk::SingleVideoWidget.

virtual void niftk::Single3DViewWidget::NodeRemoved ( const mitk::DataNode *  node)
inlineprotectedvirtual

Called when a DataStorage Node Removed Event was emitted.

Reimplemented in niftk::SingleVideoWidget.

void niftk::Single3DViewWidget::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

Re-implemented so we can correctly scale image while resizeing.

Reimplemented in niftk::SingleVideoWidget.

void niftk::Single3DViewWidget::SetClippingRange ( const double &  near,
const double &  far 
)

Sets the clipping range, which derived classes use in different ways.

void niftk::Single3DViewWidget::SetDataStorage ( mitk::DataStorage *  ds)
virtual

Stores data source locally in this base class, and sets the data storage on the QmitkRenderWindow.

Reimplemented in niftk::SingleVideoWidget.

void niftk::Single3DViewWidget::SetDepartmentLogoPath ( const QString &  path)

Calls niftk::CMICLogo::SetDepartmentLogoPath(), and is currently unused.

void niftk::Single3DViewWidget::SetGradientBackgroundColors ( const mitk::Color &  upper,
const mitk::Color &  lower 
)

Calls mitk::GradientBackground::SetGradientColors().

void niftk::Single3DViewWidget::SetImageNode ( mitk::DataNode *  node)
virtual

Stores the node locally in this base class.

Reimplemented in niftk::SingleVideoWidget, and niftk::SingleUltrasoundWidget.

virtual void niftk::Single3DViewWidget::Update ( )
pure virtual

Derived classes need to update this to correctly rescale.

Implemented in niftk::SingleVideoWidget, and niftk::SingleUltrasoundWidget.

Member Data Documentation

double niftk::Single3DViewWidget::m_ClippingRange[2]
protected
mitk::DataStorage::Pointer niftk::Single3DViewWidget::m_DataStorage
protected
mitk::Image::Pointer niftk::Single3DViewWidget::m_Image
protected
mitk::DataNode::Pointer niftk::Single3DViewWidget::m_ImageNode
protected

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