NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Signals | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
FootpedalHotkeyView Class Reference
Inheritance diagram for FootpedalHotkeyView:
Inheritance graph
[legend]
Collaboration diagram for FootpedalHotkeyView:
Collaboration graph
[legend]

Signals

void OnFootSwitch1Start (ctkDictionary d)
 
void OnFootSwitch1Stop (ctkDictionary d)
 
void OnFootSwitch2Start (ctkDictionary d)
 
void OnFootSwitch2Stop (ctkDictionary d)
 
void OnFootSwitch3Start (ctkDictionary d)
 
void OnFootSwitch3Stop (ctkDictionary d)
 

Public Member Functions

 FootpedalHotkeyView ()
 
virtual ~FootpedalHotkeyView ()
 
virtual std::string GetViewID () const
 Returns the view ID. More...
 
- Public Member Functions inherited from niftk::BaseView
 BaseView ()
 
virtual ~BaseView ()
 
virtual void onVisibilityChanged (const mitk::DataNode *node) override
 Called when the visibility of a node in the data storage changed. More...
 
virtual void OnFocusChanged ()
 Called when the window focus changes, and tracks the current mitk::BaseRenderer*. More...
 
virtual bool IsExclusiveFunctionality () const
 Returns whether this functionality should be exclusive, or in other words, the only active plugin. More...
 
virtual bool IsActivated ()
 Returns the activation status. More...
 
virtual bool IsVisible ()
 Returns the visible status. More...
 
mitk::DataStorage::Pointer GetDataStorage () const override
 Gets the currently active data storage. More...
 
virtual void SetCurrentSelection (mitk::DataNode::Pointer dataNode) override
 Selects the data node in this view and also in the data manager. It sets the "selected" property of the node. As a (positive) side effect of changing the data manager selection, the "selected" property of the previously selected nodes will be cleared. More...
 
virtual void OnSelectionChanged (berry::IWorkbenchPart::Pointer part, const QList< mitk::DataNode::Pointer > &nodes) override
 
virtual QmitkRenderWindow * GetRenderWindow (QString id)
 Retrieves a RenderWindow from the mitkRenderWindowPart. More...
 
virtual QmitkRenderWindow * GetSelectedRenderWindow () const override
 Retrieves the currently selected RenderWindow from the mitkRenderWindowPart. More...
 
virtual bool IsActiveEditorCursorVisible () const override
 Gets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More...
 
virtual void SetActiveEditorCursorVisible (bool visible) const override
 Sets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More...
 
virtual void RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override
 Request an update of all render windows of the currently active render window part. More...
 
QList< mitk::DataNode::Pointer > GetDataManagerSelection () const override
 Gets the list of nodes selected in the data manager. More...
 
virtual void FireNodeSelected (mitk::DataNode::Pointer node) override
 Informs other parts of the workbench that node is selected via the blueberry selection service. More...
 
virtual
mitk::SliceNavigationController * 
GetSliceNavigationController () override
 Retrieve the current slice navigation controller from the currently focused render window. More...
 
virtual void FocusOnCurrentWindow () const override
 Used to try and get the FocusManager to focus on the Current IRenderWindowPart. More...
 
virtual mitk::Point3D GetSelectedPosition () const override
 Gets the selected position in the active render window part. More...
 
virtual void SetSelectedPosition (const mitk::Point3D &selectedPosition) override
 Sets the selected position in the active render window part. More...
 
- Public Member Functions inherited from niftk::VisibilityChangeObserver
 VisibilityChangeObserver ()
 
virtual ~VisibilityChangeObserver ()
 

Static Public Attributes

static const char * VIEW_ID = "uk.ac.ucl.cmic.igifootpedalhotkey"
 Static view ID = uk.ac.ucl.cmic.igifootpedalhotkey. 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, sets the focus on a specific widget. More...
 
void WriteCurrentConfig (const QString &directory) const
 
- Protected Member Functions inherited from niftk::BaseView
virtual void Activated () override
 
virtual void Deactivated () override
 
virtual void Visible () override
 
virtual void Hidden () override
 
virtual QWidget * GetParent ()
 
virtual void SetParent (QWidget *)
 Normally called from within CreateQtPartControl, we store the parent widget. More...
 
void SetViewToCoordinate (const mitk::Point3D &coordinate)
 Gets the current render window, and sets it to the given coordinate, specified in millimetres. More...
 

Additional Inherited Members

- Public Types inherited from niftk::BaseView
typedef QmitkAbstractView SuperClass
 

Detailed Description

Reacts to presses on a foot pedal. The pedals generate keystrokes that are registered as system-wide hotkeys, i.e. no matter what window currently has focus, the foot pedal presses will always be routed to this plugin. It then sends off a CTK event to trigger an action in some other plugin.

Constructor & Destructor Documentation

FootpedalHotkeyView::FootpedalHotkeyView ( )
FootpedalHotkeyView::~FootpedalHotkeyView ( )
virtual

Member Function Documentation

void FootpedalHotkeyView::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

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

std::string FootpedalHotkeyView::GetViewID ( ) const
virtual

Returns the view ID.

void FootpedalHotkeyView::OnFootSwitch1Start ( ctkDictionary  d)
signal
void FootpedalHotkeyView::OnFootSwitch1Stop ( ctkDictionary  d)
signal
void FootpedalHotkeyView::OnFootSwitch2Start ( ctkDictionary  d)
signal
void FootpedalHotkeyView::OnFootSwitch2Stop ( ctkDictionary  d)
signal
void FootpedalHotkeyView::OnFootSwitch3Start ( ctkDictionary  d)
signal
void FootpedalHotkeyView::OnFootSwitch3Stop ( ctkDictionary  d)
signal
void FootpedalHotkeyView::SetFocus ( )
protectedvirtual

Called by framework, sets the focus on a specific widget.

void FootpedalHotkeyView::WriteCurrentConfig ( const QString &  directory) const
protected

Called via ctk-event bus when user starts an IGI data recording session.

Member Data Documentation

const char * FootpedalHotkeyView::VIEW_ID = "uk.ac.ucl.cmic.igifootpedalhotkey"
static

Static view ID = uk.ac.ucl.cmic.igifootpedalhotkey.


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