NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | List of all members
MITKSegmentationView Class Reference

A cut down version of the MITK Segmentation plugin. More...

Inheritance diagram for MITKSegmentationView:
Inheritance graph
[legend]
Collaboration diagram for MITKSegmentationView:
Collaboration graph
[legend]

Public Member Functions

 MITKSegmentationView ()
 Constructor. More...
 
 MITKSegmentationView (const MITKSegmentationView &other)
 Copy constructor which deliberately throws a runtime exception, as no-one should call it. More...
 
virtual ~MITKSegmentationView ()
 Destructor. More...
 
virtual std::string GetViewID () const
 Returns the VIEW_ID = "uk.ac.ucl.cmic.mitksegmentation". More...
 

Static Public Attributes

static const std::string VIEW_ID = "uk.ac.ucl.cmic.mitksegmentation"
 Each View for a plugin has its own globally unique ID, this one is "uk.ac.ucl.cmic.mitksegmentation" and the .cxx file and plugin.xml should match. More...
 

Protected Slots

void OnCreateNewSegmentationButtonPressed ()
 Qt slot called when the user hits the button "New segmentation", which creates the new image. More...
 

Protected Member Functions

virtual void CreateQtPartControl (QWidget *parent)
 Called by framework, this method creates all the controls for this view. More...
 
virtual void SetFocus ()
 Called by framework, this method can set the focus on a specific widget, but we currently do nothing. More...
 
virtual void CreateConnections ()
 Creates the connections of widgets in this class to the slots in this class. More...
 
virtual void RetrievePreferenceValues ()
 Retrieve's the pref values from preference service, and store locally. More...
 
virtual void EnableSegmentationWidgets (bool b)
 Method to enable derived classes to turn all widgets off/on to signify when the view is considered enabled/disabled. More...
 
virtual bool IsNodeASegmentationImage (const mitk::DataNode::Pointer node)
 For MITK Editing, a Segmentation image should be binary and have a grey scale parent. More...
 
virtual bool CanStartSegmentationForBinaryNode (const mitk::DataNode::Pointer node)
 We return true if the segmentation can be "re-started", i.e. you switch between binary images in the DataManager, and if the image is a binary image with a grey scale parent, will return true, indicating that it is a valid thing to be segmenting. More...
 
virtual QString GetPreferencesNodeName ()
 Returns the name of the preferences node to look up. More...
 

Detailed Description

A cut down version of the MITK Segmentation plugin.

See also
QmitkMIDASBaseSegmentationFunctionality

Constructor & Destructor Documentation

MITKSegmentationView::MITKSegmentationView ( )

Constructor.

MITKSegmentationView::MITKSegmentationView ( const MITKSegmentationView other)

Copy constructor which deliberately throws a runtime exception, as no-one should call it.

MITKSegmentationView::~MITKSegmentationView ( )
virtual

Destructor.

Member Function Documentation

bool MITKSegmentationView::CanStartSegmentationForBinaryNode ( const mitk::DataNode::Pointer  node)
protectedvirtual

We return true if the segmentation can be "re-started", i.e. you switch between binary images in the DataManager, and if the image is a binary image with a grey scale parent, will return true, indicating that it is a valid thing to be segmenting.

void MITKSegmentationView::CreateConnections ( )
protectedvirtual

Creates the connections of widgets in this class to the slots in this class.

void MITKSegmentationView::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Called by framework, this method creates all the controls for this view.

void MITKSegmentationView::EnableSegmentationWidgets ( bool  b)
protectedvirtual

Method to enable derived classes to turn all widgets off/on to signify when the view is considered enabled/disabled.

See also
QmitkMIDASBaseSegmentation::EnableSegmentationWidgets
virtual QString MITKSegmentationView::GetPreferencesNodeName ( )
inlineprotectedvirtual

Returns the name of the preferences node to look up.

See also
QmitkMIDASBaseSegmentationFunctionality::GetPreferencesNodeName
std::string MITKSegmentationView::GetViewID ( ) const
virtual

Returns the VIEW_ID = "uk.ac.ucl.cmic.mitksegmentation".

bool MITKSegmentationView::IsNodeASegmentationImage ( const mitk::DataNode::Pointer  node)
protectedvirtual

For MITK Editing, a Segmentation image should be binary and have a grey scale parent.

void MITKSegmentationView::OnCreateNewSegmentationButtonPressed ( )
protectedslot

Qt slot called when the user hits the button "New segmentation", which creates the new image.

void MITKSegmentationView::RetrievePreferenceValues ( )
protectedvirtual

Retrieve's the pref values from preference service, and store locally.

void MITKSegmentationView::SetFocus ( )
protectedvirtual

Called by framework, this method can set the focus on a specific widget, but we currently do nothing.

Member Data Documentation

const std::string MITKSegmentationView::VIEW_ID = "uk.ac.ucl.cmic.mitksegmentation"
static

Each View for a plugin has its own globally unique ID, this one is "uk.ac.ucl.cmic.mitksegmentation" and the .cxx file and plugin.xml should match.


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