rtVTK  0.6.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
rtVTK::PipelineDialog Class Reference

Dialog box for configuring plugin pipeline. More...

List of all members.

Signals

void sgnlGetOrder (const vector< string > &)
void sgnlDisableIdle ()
void sgnlRestoreIdle ()
void sgnlPauseTimers ()
void sgnlUnpauseTimers ()

Public Member Functions

 PipelineDialog (QWidget *parent=0)
 ~PipelineDialog ()
void populate (const vector< string > &, const vector< string > &)

Private Slots

void slotReturnOrder ()
void slotOnCancel ()
void slotMoveSelectedPluginUpList1 ()
void slotMoveSelectedPluginDownList1 ()
void slotMoveSelectedPluginUpList2 ()
void slotMoveSelectedPluginDownList2 ()
void slotMovePluginIntoList2 ()
void slotMovePluginOutOfList2 ()

Private Member Functions

void showEvent (QShowEvent *)
void closeEvent (QCloseEvent *)

Private Attributes

Ui::PipelineDialog * ui

Detailed Description

Dialog box for configuring plugin pipeline.

Author:
QuigleyEJ1

Constructor & Destructor Documentation

rtVTK::PipelineDialog::PipelineDialog ( QWidget *  parent = 0) [explicit]

Deletes ui pointer.

References ui.


Member Function Documentation

void rtVTK::PipelineDialog::closeEvent ( QCloseEvent *  ) [private]

This function is inherited from QDialog. It is called when the user closes the dialog box by clicking the 'X' on the window frame. This override is necessary because we want to restore idle settings / emit sgnlRender regardless of how the dialog box is closed.

Parameters:
QCloseEvent*- currently unused.

References sgnlRestoreIdle(), and sgnlUnpauseTimers().

void rtVTK::PipelineDialog::populate ( const vector< string > &  loadedNames,
const vector< string > &  activeNames 
)

This function sets up the dialog box - available but inactive plugins are listed on the left, while active plugins are listed on the right. The plugins that remain on the right when the user clicks the Ok button become MainDialog's new pipeline.

Parameters:
loadedNames: const vector<string>& - names of all loaded plugins.
activeNames: const vector<string>& - names of all plugins currently in the pipeline.

References ui.

Referenced by rtVTK::MainWindow::slotShowPipeline().

Referenced by showEvent().

void rtVTK::PipelineDialog::sgnlGetOrder ( const vector< string > &  ) [signal]

Referenced by slotReturnOrder().

Referenced by showEvent().

void rtVTK::PipelineDialog::showEvent ( QShowEvent *  e) [private]

This function is inherited from QDialog. It is called when the dialog box is shown. This override is used to emit sgnlRender for the glWidget when the dialog box is opened. Note that the base class version is also called, which positions the dialog box at a reasonable position on the screen.

Parameters:
e: QShowEvent* - passed to QDialog::showEvent().

References sgnlDisableIdle(), sgnlPauseTimers(), and ui.

References ui.

Referenced by PipelineDialog().

References ui.

Referenced by PipelineDialog().

References ui.

Referenced by PipelineDialog().

References ui.

Referenced by PipelineDialog().

This (and the five functions following it) move the plugin around in the lists. Be advised that QListWidget::currentRow() starts at zero, but QListWidget::count() starts at 1.

References ui.

Referenced by PipelineDialog().

References ui.

Referenced by PipelineDialog().

void rtVTK::PipelineDialog::slotOnCancel ( ) [private, slot]

This function is to be called if the user closes the dialog box by clicking the Cancel button.
Emits sgnlRestoreIdle and sgnlUnpauseTimers.

References sgnlRestoreIdle(), and sgnlUnpauseTimers().

Referenced by PipelineDialog().

void rtVTK::PipelineDialog::slotReturnOrder ( ) [private, slot]

Assembles a vector of names of the plugins in the right-hand column. These plugins, in their current order, will be the new pipeline.
Emits sgnlRestoreIdle and sgnlUnpauseTimers.
Emits sgnlGetOrder with the vector of names as an argument.

References sgnlGetOrder(), sgnlRestoreIdle(), sgnlUnpauseTimers(), and ui.

Referenced by PipelineDialog().


Member Data Documentation

Ui::PipelineDialog* rtVTK::PipelineDialog::ui [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends