Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Static Public Member Functions | List of all members
QtUtils::QtBridge Class Reference

#include <QtBridge.h>

Inheritance diagram for QtUtils::QtBridge:

Static Public Member Functions

static Core::ConnectionHandle Connect (QAbstractButton *qbutton, Core::StateBoolHandle &state)
 Connect a QAbstractButton or its subclasses to StateValue<bool>
 
static Core::ConnectionHandle Connect (QAbstractButton *qbutton, boost::function< void() > function)
 
static Core::ConnectionHandle ConnectBoolean (QAbstractButton *qbutton, boost::function< void(bool) > function)
 
static Core::ConnectionHandle Connect (QAbstractButton *qbutton, std::vector< Core::StateBoolHandle > &state_handles, Core::StateIntSetHandle &index_handle)
 Connect vector of bools to one button controlled by an index.
 
static Core::ConnectionHandle Connect (QtTristateToolButton *tristate_button, Core::StateOptionHandle &state)
 Connect a QtTristateToolButton to a tri-option state.
 
static Core::ConnectionHandle Connect (QButtonGroup *qbuttongroup, Core::StateOptionHandle &state_handle)
 
static Core::ConnectionHandle Connect (QButtonGroup *qbuttongroup, Core::StateLabeledOptionHandle &state)
 
static Core::ConnectionHandle Connect (QtColorBarWidget *cbwidget, Core::StateIntHandle &state_handle, std::vector< Core::StateColorHandle > &colors)
 Connect a SliderIntCombo to a StateRangedIntValue.
 
static Core::ConnectionHandle Connect (QtSliderIntCombo *sscombo, Core::StateRangedIntHandle &state_handle)
 Connect a SliderIntCombo to a StateRangedIntValue.
 
static Core::ConnectionHandle Connect (QtLogSliderIntCombo *sscombo, Core::StateRangedIntHandle &state_handle)
 Connect a LogSliderIntCombo to a StateRangedIntValue.
 
static Core::ConnectionHandle Connect (QtSliderDoubleCombo *sscombo, Core::StateRangedDoubleHandle &state_handle)
 Connect a SliderDoubleCombo to a StateRangedIntValue.
 
static Core::ConnectionHandle Connect (QDoubleSpinBox *qdoublespinbox, Core::StateDoubleHandle &state_handle)
 Connect a QDoubleSpinBox to a StateDoubleValue.
 
static Core::ConnectionHandle Connect (QDoubleSpinBox *qdoublespinbox, Core::StateRangedDoubleHandle &state)
 Connect a QDoubleSpinBox to a StateRangedDouble.
 
static Core::ConnectionHandle Connect (QSpinBox *qspinbox, Core::StateIntHandle &state)
 Connect a QSpinBox to a StateInt.
 
static Core::ConnectionHandle Connect (QSpinBox *qspinbox, Core::StateRangedIntHandle &state)
 Connect a QSpinBox to a StateRangedInt.
 
static Core::ConnectionHandle Connect (QComboBox *qcombobox, Core::StateOptionHandle &state_handle)
 Connect a QComboBox to StateOptionHandle.
 
static Core::ConnectionHandle Connect (QComboBox *qcombobox, Core::StateLabeledOptionHandle &state)
 
static Core::ConnectionHandle Connect (QtColorButton *colorbutton, Core::StateColorHandle &state_handle)
 
static Core::ConnectionHandle Connect (QLineEdit *qlineedit, Core::StateStringHandle &state_handle, bool immediate_update=false)
 Connect QLineEdits.
 
static Core::ConnectionHandle Connect (QLineEdit *qlineedit, Core::StateNameHandle &state_handle, bool immediate_update=false)
 
static Core::ConnectionHandle Connect (QPlainTextEdit *qwidget, Core::StateStringHandle &state)
 
static Core::ConnectionHandle Connect (QLabel *qlabel, Core::StateBaseHandle state)
 Connect QLabel to display the string representation of a state variable.
 
static Core::ConnectionHandle Connect (QActionGroup *qactiongroup, Core::StateOptionHandle &state_handle)
 
static Core::ConnectionHandle Connect (QAction *qaction, boost::function< void() > function)
 Connect menu action to dispatcher.
 
static Core::ConnectionHandle Connect (QAction *qaction, Core::StateBoolHandle &state_handle)
 Connect menu toggle action to state variable.
 
static Core::ConnectionHandle Connect (QAction *qaction, std::vector< Core::StateBoolHandle > &state_handles, Core::StateIntHandle &index_handle)
 Connect vector of bools to one button controlled by an index.
 
static Core::ConnectionHandle Connect (QListWidget *qlistwidget, Core::StateLabeledMultiOptionHandle &state)
 Connect QListWidget and StateLabeledMultiOption.
 
static Core::ConnectionHandle Connect (QListWidget *qwidget, Core::StateStringVectorHandle &state)
 
static Core::ConnectionHandle Connect (QtTransferFunctionScene *tf_scene, Core::TransferFunctionHandle &tf)
 Connect QtTransferFunctionScene and TransferFunction.
 
static Core::ConnectionHandle Connect (QtTransferFunctionCurve *tf_curve, Core::TransferFunctionFeatureHandle &feature)
 Connect QtTransferFunctionCurve and TransferFunctionFeature.
 
static Core::ConnectionHandle Enable (QAction *qaction, Core::StateBoolHandle &state, bool opposite_logic=false)
 Enable / Disable a button from state engine.
 
static Core::ConnectionHandle Enable (QWidget *qwidget, Core::StateBoolHandle &state, bool opposite_logic=false)
 
static Core::ConnectionHandle Enable (QtHistogramWidget *histogram, Core::StateBoolHandle &state, bool opposite_logic=false)
 
static Core::ConnectionHandle Enable (QWidget *qwidget, Core::StateBaseHandle state, boost::function< bool() > condition)
 
static Core::ConnectionHandle Enable (QWidget *qwidget, std::vector< Core::StateBaseHandle > &states, boost::function< bool() > condition)
 
static Core::ConnectionHandle Show (QWidget *qwidget, Core::StateBoolHandle &state, bool opposite_logic=false)
 Connect the visibility of the QWidget to a StateBool.
 
static Core::ConnectionHandle Show (QtCustomDockWidget *dockwidget, Core::StateBoolHandle &state, bool opposite_logic=false)
 Connect the visibility of the QtCustomDockWidget to a StateBool.
 
static Core::ConnectionHandle Show (QtCustomDialog *dialog, Core::StateBoolHandle &state, bool opposite_logic=false)
 Connect the visibility of the QtCustomDialog to a StateBool.
 
static Core::ConnectionHandle Show (QWidget *qwidget, Core::StateBaseHandle state, boost::function< bool() > condition)
 Connect the visibility of the QWidget to a Statebase.
 
static Core::ConnectionHandle Show (QWidget *qwidget, std::vector< Core::StateBaseHandle > &states, boost::function< bool() > condition)
 Connect the visibility of the QWidget to a StateBool.
 

Detailed Description

CLASS QTBRIDGE: This class provides bridges between widgets and state variables

Member Function Documentation

Core::ConnectionHandle QtUtils::QtBridge::Connect ( QActionGroup *  qactiongroup,
Core::StateOptionHandle &  state_handle 
)
static

Connect QActionGroup and StateOption NOTE: This requires that each QAction in the QActionGroup has its objectName the same as its corresponding option string


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