NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | List of all members
niftk::SingleUltrasoundWidget Class Reference

Derived from niftk::Single3DViewWidget to provide a widget that given an image, will always position the camera to face the image and scale the image to maximally fill the window. In contrast to niftk::SingleVideoWidget the image plane is a plane in 3D space, not a projection through a camera model. Therefore, the image is modelled as a texture plane, so 3D geometry objects can appear infront or behind the plane. More...

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

Public Member Functions

 SingleUltrasoundWidget (QWidget *parent=0, Qt::WindowFlags f=0, mitk::RenderingManager *renderingManager=0)
 
virtual ~SingleUltrasoundWidget ()
 
virtual void Update ()
 Called from base class and gives us an opportunity to position camera. More...
 
virtual void SetImageNode (mitk::DataNode *node)
 Overrides base class to create an additional texture plane mapper. More...
 
void SetClipToImagePlane (const bool &clipToImagePlane)
 If true, sets the viewer to clip geometry +/- 1mm from image plane, giving a crude contouring effect. More...
 
- Public Member Functions inherited from niftk::Single3DViewWidget
 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 SetDataStorage (mitk::DataStorage *ds)
 Stores data source locally in this base class, and sets the data storage on the QmitkRenderWindow. More...
 

Additional Inherited Members

- Protected Member Functions inherited from niftk::Single3DViewWidget
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 inherited from niftk::Single3DViewWidget
mitk::DataStorage::Pointer m_DataStorage
 
mitk::Image::Pointer m_Image
 
mitk::DataNode::Pointer m_ImageNode
 
double m_ClippingRange [2]
 

Detailed Description

Derived from niftk::Single3DViewWidget to provide a widget that given an image, will always position the camera to face the image and scale the image to maximally fill the window. In contrast to niftk::SingleVideoWidget the image plane is a plane in 3D space, not a projection through a camera model. Therefore, the image is modelled as a texture plane, so 3D geometry objects can appear infront or behind the plane.

Constructor & Destructor Documentation

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

Member Function Documentation

void niftk::SingleUltrasoundWidget::SetClipToImagePlane ( const bool &  clipToImagePlane)

If true, sets the viewer to clip geometry +/- 1mm from image plane, giving a crude contouring effect.

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

Overrides base class to create an additional texture plane mapper.

See also
niftk::Single3DViewWidget::SetImageNode()

Reimplemented from niftk::Single3DViewWidget.

void niftk::SingleUltrasoundWidget::Update ( void  )
virtual

Called from base class and gives us an opportunity to position camera.

Implements niftk::Single3DViewWidget.


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