PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
QPlusDeviceSetSelectorWidget Class Reference

#include <src/PlusWidgets/QPlusDeviceSetSelectorWidget.h>

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

Signals

void ConfigurationDirectoryChanged (std::string)
 
void ConnectToDevicesByConfigFileInvoked (std::string)
 
void DeviceSetSelected (std::string)
 
void ResetTracker ()
 

Public Member Functions

void ClearDescriptionSuffix ()
 
bool GetConnectionSuccessful ()
 
std::string GetSelectedDeviceSetConfigFilePath ()
 
std::string GetSelectedDeviceSetDescription ()
 
 QPlusDeviceSetSelectorWidget (QWidget *aParent=0)
 
PlusStatus SetConfigurationDirectory (const QString &aDirectory)
 
PlusStatus SetConfigurationFile (const QString &aFilename)
 
void SetConnectButtonText (QString text)
 
void SetConnectionSuccessful (bool aConnectionSuccessful)
 
void SetDescriptionSuffix (const QString &string)
 
void SetDeviceSetComboBoxMaximumSizeRatio (double ratio)
 
void ShowResetTrackerButton (bool aValue)
 
void UpdateDescriptionText ()
 
 ~QPlusDeviceSetSelectorWidget ()
 

Protected Slots

void DeviceSetSelected (int)
 
void EditAppConfig ()
 
void EditConfiguration ()
 
void InvokeConnect ()
 
void InvokeDisconnect ()
 
void OpenConfigurationDirectory ()
 
void RefreshFolder ()
 
void ResetTrackerButtonClicked ()
 
void SelectEditor ()
 
void ShowEditContextMenu (QPoint)
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
QString FindCalibrationDetails (const QDomDocument &doc, vtkSmartPointer< vtkIGSIOTransformRepository > tr, const QString &tagName, const QString &outputPrefix, const QString &firstFrame, const QString &secondFrame)
 
void FixComboBoxDropDownListSizeAdjustemnt (QComboBox *cb)
 
PlusStatus ParseDirectory (const QString &aDirectory)
 
virtual void resizeEvent (QResizeEvent *event)
 

Protected Attributes

QString m_ConfigurationDirectory
 
bool m_ConnectionSuccessful
 
QString m_DescriptionBody
 
QString m_DescriptionPrefix
 
QString m_DescriptionSuffix
 
double m_DeviceSetComboBoxMaximumSizeRatio
 
QAction * m_EditApplicationConfigFileAction
 
QMenu * m_EditMenu
 
QAction * m_EditorSelectAction
 
Ui::DeviceSetSelectorWidget ui
 

Detailed Description

Definition at line 35 of file QPlusDeviceSetSelectorWidget.h.

Constructor & Destructor Documentation

◆ QPlusDeviceSetSelectorWidget()

QPlusDeviceSetSelectorWidget::QPlusDeviceSetSelectorWidget ( QWidget *  aParent = 0)

Constructor

Parameters
aParentparent
aFlagswidget flag

Definition at line 41 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ~QPlusDeviceSetSelectorWidget()

QPlusDeviceSetSelectorWidget::~QPlusDeviceSetSelectorWidget ( )

Destructor

Definition at line 83 of file QPlusDeviceSetSelectorWidget.cxx.

Member Function Documentation

◆ ClearDescriptionSuffix()

void QPlusDeviceSetSelectorWidget::ClearDescriptionSuffix ( )

Clear optional suffix in the description box separated by a blank line

Definition at line 784 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ConfigurationDirectoryChanged

void QPlusDeviceSetSelectorWidget::ConfigurationDirectoryChanged ( std::string  )
signal

Emitted when configuration directory is changed (notifies application)

Parameters
Configurationdirectory path

◆ ConnectToDevicesByConfigFileInvoked

void QPlusDeviceSetSelectorWidget::ConnectToDevicesByConfigFileInvoked ( std::string  )
signal

Emitted when connecting to devices

Parameters
Deviceset configuration file

◆ DeviceSetSelected [1/2]

void QPlusDeviceSetSelectorWidget::DeviceSetSelected ( std::string  )
signal

Emitted when device set selected (notifies application)

Parameters
Configurationfile path

◆ DeviceSetSelected [2/2]

void QPlusDeviceSetSelectorWidget::DeviceSetSelected ( int  aIndex)
protectedslot

Called when device set selection has been changed

Definition at line 225 of file QPlusDeviceSetSelectorWidget.cxx.

◆ dragEnterEvent()

void QPlusDeviceSetSelectorWidget::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 571 of file QPlusDeviceSetSelectorWidget.cxx.

◆ dropEvent()

void QPlusDeviceSetSelectorWidget::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 589 of file QPlusDeviceSetSelectorWidget.cxx.

◆ EditAppConfig

void QPlusDeviceSetSelectorWidget::EditAppConfig ( )
protectedslot

Called when the edit application config file is called

Definition at line 733 of file QPlusDeviceSetSelectorWidget.cxx.

◆ EditConfiguration

void QPlusDeviceSetSelectorWidget::EditConfiguration ( )
protectedslot

Called when Edit configuration button is left-clicked - opens currently selected configuration in editor application

Definition at line 658 of file QPlusDeviceSetSelectorWidget.cxx.

◆ FindCalibrationDetails()

QString QPlusDeviceSetSelectorWidget::FindCalibrationDetails ( const QDomDocument &  doc,
vtkSmartPointer< vtkIGSIOTransformRepository >  tr,
const QString &  tagName,
const QString &  outputPrefix,
const QString &  firstFrame,
const QString &  secondFrame 
)
protected

Definition at line 500 of file QPlusDeviceSetSelectorWidget.cxx.

◆ FixComboBoxDropDownListSizeAdjustemnt()

void QPlusDeviceSetSelectorWidget::FixComboBoxDropDownListSizeAdjustemnt ( QComboBox *  cb)
protected

Definition at line 598 of file QPlusDeviceSetSelectorWidget.cxx.

◆ GetConnectionSuccessful()

bool QPlusDeviceSetSelectorWidget::GetConnectionSuccessful ( )

Get connection successful flag (if true then it is connected so on InvokeConnect, the application should disconnect)

Returns
Connection successful flag

Definition at line 313 of file QPlusDeviceSetSelectorWidget.cxx.

◆ GetSelectedDeviceSetConfigFilePath()

std::string QPlusDeviceSetSelectorWidget::GetSelectedDeviceSetConfigFilePath ( )

Return currently selected configuration file full path

Definition at line 196 of file QPlusDeviceSetSelectorWidget.cxx.

◆ GetSelectedDeviceSetDescription()

std::string QPlusDeviceSetSelectorWidget::GetSelectedDeviceSetDescription ( )

Return currently selected device set description

Definition at line 204 of file QPlusDeviceSetSelectorWidget.cxx.

◆ InvokeConnect

void QPlusDeviceSetSelectorWidget::InvokeConnect ( )
protectedslot

Called when Connect button is pushed - connects to devices

Definition at line 174 of file QPlusDeviceSetSelectorWidget.cxx.

◆ InvokeDisconnect

void QPlusDeviceSetSelectorWidget::InvokeDisconnect ( )
protectedslot

Called when Disconnect button is pushed - disconnects from devices

Definition at line 212 of file QPlusDeviceSetSelectorWidget.cxx.

◆ OpenConfigurationDirectory

void QPlusDeviceSetSelectorWidget::OpenConfigurationDirectory ( )
protectedslot

Pops up open directory dialog and saves the selected one into application

Definition at line 156 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ParseDirectory()

PlusStatus QPlusDeviceSetSelectorWidget::ParseDirectory ( const QString &  aDirectory)
protected

Fills the combo box with the valid device set configuration files found in input directory

Parameters
aDirectoryThe directory to search in
Successflag

Definition at line 321 of file QPlusDeviceSetSelectorWidget.cxx.

◆ RefreshFolder

void QPlusDeviceSetSelectorWidget::RefreshFolder ( )
protectedslot

Called when Refresh folder button is clicked - refreshes device set list

Definition at line 647 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ResetTracker

void QPlusDeviceSetSelectorWidget::ResetTracker ( )
signal

Called when the reset tracker button is pushed Emits a signal to tell the tracker to reset itself

◆ ResetTrackerButtonClicked

void QPlusDeviceSetSelectorWidget::ResetTrackerButtonClicked ( )
protectedslot

Definition at line 757 of file QPlusDeviceSetSelectorWidget.cxx.

◆ resizeEvent()

void QPlusDeviceSetSelectorWidget::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Definition at line 615 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SelectEditor

void QPlusDeviceSetSelectorWidget::SelectEditor ( )
protectedslot

Called when the select editor menu item is called

Definition at line 718 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetConfigurationDirectory()

PlusStatus QPlusDeviceSetSelectorWidget::SetConfigurationDirectory ( const QString &  aDirectory)

Set device set configuration directory

Parameters
aDirectoryInput configuration directory
Returns
Success flag

Definition at line 105 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetConfigurationFile()

PlusStatus QPlusDeviceSetSelectorWidget::SetConfigurationFile ( const QString &  aFilename)

Set device set configuration file, if it contains a folder structure, the directory is changed and the file is selected

Parameters
aFilenameInput configuration filename
Returns
Success flag

Definition at line 138 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetConnectButtonText()

void QPlusDeviceSetSelectorWidget::SetConnectButtonText ( QString  text)

Provide access to the Connect push button text

Definition at line 771 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetConnectionSuccessful()

void QPlusDeviceSetSelectorWidget::SetConnectionSuccessful ( bool  aConnectionSuccessful)

Set connection successful flag

Parameters
aConnectionSuccessfulIf true, Connect button will be disabled until changing another device set

Definition at line 246 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetDescriptionSuffix()

void QPlusDeviceSetSelectorWidget::SetDescriptionSuffix ( const QString &  string)

Allow settings of an optional suffix in the description box separated by a blank line

Definition at line 777 of file QPlusDeviceSetSelectorWidget.cxx.

◆ SetDeviceSetComboBoxMaximumSizeRatio()

void QPlusDeviceSetSelectorWidget::SetDeviceSetComboBoxMaximumSizeRatio ( double  ratio)

Set the device set combo box maximum size ratio

Parameters
ratiothe ratio to set

Definition at line 77 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ShowEditContextMenu

void QPlusDeviceSetSelectorWidget::ShowEditContextMenu ( QPoint  point)
protectedslot

Called when the context menu is requested on the edit button

Definition at line 692 of file QPlusDeviceSetSelectorWidget.cxx.

◆ ShowResetTrackerButton()

void QPlusDeviceSetSelectorWidget::ShowResetTrackerButton ( bool  aValue)

Hide/show the reset tracker button

Definition at line 765 of file QPlusDeviceSetSelectorWidget.cxx.

◆ UpdateDescriptionText()

void QPlusDeviceSetSelectorWidget::UpdateDescriptionText ( )

Fill the description text box with prefix + body + suffix Newline separated if prefix or suffix is not empty

Definition at line 628 of file QPlusDeviceSetSelectorWidget.cxx.

Member Data Documentation

◆ m_ConfigurationDirectory

QString QPlusDeviceSetSelectorWidget::m_ConfigurationDirectory
protected

Configuration directory path

Definition at line 220 of file QPlusDeviceSetSelectorWidget.h.

◆ m_ConnectionSuccessful

bool QPlusDeviceSetSelectorWidget::m_ConnectionSuccessful
protected

Flag telling whether connection has been successful

Definition at line 228 of file QPlusDeviceSetSelectorWidget.h.

◆ m_DescriptionBody

QString QPlusDeviceSetSelectorWidget::m_DescriptionBody
protected

Description in the main text box

Definition at line 237 of file QPlusDeviceSetSelectorWidget.h.

◆ m_DescriptionPrefix

QString QPlusDeviceSetSelectorWidget::m_DescriptionPrefix
protected

Prefix to the description in the main text box

Definition at line 234 of file QPlusDeviceSetSelectorWidget.h.

◆ m_DescriptionSuffix

QString QPlusDeviceSetSelectorWidget::m_DescriptionSuffix
protected

Suffix to the description in the main text box

Definition at line 240 of file QPlusDeviceSetSelectorWidget.h.

◆ m_DeviceSetComboBoxMaximumSizeRatio

double QPlusDeviceSetSelectorWidget::m_DeviceSetComboBoxMaximumSizeRatio
protected

If not -1, define the maximum size of the device set combobox relative to the current screen size

Definition at line 231 of file QPlusDeviceSetSelectorWidget.h.

◆ m_EditApplicationConfigFileAction

QAction* QPlusDeviceSetSelectorWidget::m_EditApplicationConfigFileAction
protected

Definition at line 224 of file QPlusDeviceSetSelectorWidget.h.

◆ m_EditMenu

QMenu* QPlusDeviceSetSelectorWidget::m_EditMenu
protected

Definition at line 225 of file QPlusDeviceSetSelectorWidget.h.

◆ m_EditorSelectAction

QAction* QPlusDeviceSetSelectorWidget::m_EditorSelectAction
protected

Action triggered when button right-clicked

Definition at line 223 of file QPlusDeviceSetSelectorWidget.h.

◆ ui

Ui::DeviceSetSelectorWidget QPlusDeviceSetSelectorWidget::ui
protected

Definition at line 243 of file QPlusDeviceSetSelectorWidget.h.


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